Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround "type instability" in vtk_save #117

Merged
merged 2 commits into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "WriteVTK"
uuid = "64499a7a-5c06-52f2-abe2-ccb03c286192"
authors = ["Juan Ignacio Polanco <[email protected]>"]
version = "1.17.0"
version = "1.17.1"

[deps]
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
Expand Down
3 changes: 2 additions & 1 deletion src/save_files.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ function vtk_save(vtk::DatasetFile)
else
save_file(vtk.xdoc, vtk.path)
end
@assert isopen(vtk)
end
if isopen(vtk) # just in case the file was closed by calls to save_* above
close(vtk)
end
return [vtk.path] :: Vector{String}
Expand Down