Skip to content

Commit

Permalink
add an additional close statement to see if Windows works
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwinters5000 committed Jun 24, 2024
1 parent 27158f3 commit 56d74d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/HOHQMesh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ function generate_mesh(control_file;
readchomp(`$(HOHQMesh_jll.HOHQMesh()) -sLimit $subdivision_maximum -f $tmppath`)
end
end
# For safety, ensure that the filestream to the `control_file` is closed.
close(control_file)

String(output)
end
Expand Down
7 changes: 3 additions & 4 deletions src/Mesh/Meshing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ function remove_mesh!(proj::Project)
# Remove all the output files associated with the current `proj`
fileName = getMeshFileName(proj)
rm(fileName)
# TODO: See if it is only the control file that causes issues on Windows
# # Get the control file name of the current project
# fileName = joinpath(proj.projectDirectory,proj.name) * ".control"
# rm(fileName)
# Get the control file name of the current project
fileName = joinpath(proj.projectDirectory,proj.name) * ".control"
rm(fileName)
fileName = getPlotFileName(proj)
rm(fileName)
fileName = getStatsFileName(proj)
Expand Down

0 comments on commit 56d74d7

Please sign in to comment.