Skip to content

Commit

Permalink
Actually close files in get_run_info() when parallel_io=false
Browse files Browse the repository at this point in the history
Do not need/use open files in this case (they are reopened as
necessary), so actually close all the files.
  • Loading branch information
johnomotani committed Oct 8, 2024
1 parent b1594c7 commit c3f7123
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions moment_kinetics/src/load_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3601,6 +3601,9 @@ function get_run_info_no_setup(run_dir::Union{AbstractString,Tuple{AbstractStrin
# Don't keep open files as read_distributed_zr_data!(), etc. open the files
# themselves
files = run_prefixes
for f fids0
close(f)
end
end

run_info = (run_name=run_name, run_prefix=base_prefix, parallel_io=parallel_io,
Expand Down

0 comments on commit c3f7123

Please sign in to comment.