Skip to content

Commit

Permalink
Workaround "type instability" in vtk_save
Browse files Browse the repository at this point in the history
Fixes #116
  • Loading branch information
jipolanco committed Feb 15, 2023
1 parent 767df63 commit 30f72f4
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 30f72f4

Please sign in to comment.