Skip to content

Commit

Permalink
print whether using parallel I/O, to check the CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johnomotani committed Oct 8, 2024
1 parent a99f5ef commit 2b1b310
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions moment_kinetics/src/file_io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ function setup_file_io(io_input, boundary_distributions, vz, vr, vzeta, vpa, vpe
composition, collisions, evolve_density, evolve_upar, evolve_ppar,
external_source_settings, input_dict, restart_time_index,
previous_runs_info, time_for_setup, t_params, nl_solver_params)
println("\nUsing parallel I/O? ", io_input.parallel_io, "\n")
begin_serial_region()
@serial_region begin
# Only read/write from first process in each 'block'
Expand Down
6 changes: 3 additions & 3 deletions moment_kinetics/test/setup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ Intended to be used as a context manager, so call like::
end
"""
function quietoutput(body)
oldstd = stdout
#oldstd = stdout
try
redirect_stdout(open("/dev/null", "w"))
#redirect_stdout(open("/dev/null", "w"))

# execute body code
body()

finally
# Restore regular output
redirect_stdout(oldstd)
#redirect_stdout(oldstd)
end
end

Expand Down

0 comments on commit 2b1b310

Please sign in to comment.