Skip to content

Commit

Permalink
remove unnecessary close statments. Try to force file removal
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwinters5000 committed Jun 24, 2024
1 parent 8b553b3 commit f37eff9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/HOHQMesh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@ function generate_mesh(control_file;
end
end
flush(tmpio)
# For safety, ensure that the filestream to the `control_file` is closed.
close(control_file)

# Run HOHQMesh and store output
if verbose
Expand Down
2 changes: 1 addition & 1 deletion src/Mesh/Meshing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function remove_mesh!(proj::Project)
rm(fileName)
# Get the control file name of the current project
fileName = joinpath(proj.projectDirectory,proj.name) * ".control"
rm(fileName)
rm(fileName; force=true)
fileName = getPlotFileName(proj)
rm(fileName)
fileName = getStatsFileName(proj)
Expand Down

0 comments on commit f37eff9

Please sign in to comment.