Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option for disabling progress logging #2582

Merged
merged 1 commit into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config/default_configs/default_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,3 +259,6 @@ netcdf_output_at_levels:
warn_allocations_diagnostics:
help: "When true, a dry-run for all the diagnostics is performed to check whether the functions allocate additional memory (which reduces performances)"
value: false
log_progress:
help: "Log simulation progress, including wall-time estimates"
value: true
1 change: 1 addition & 0 deletions config/default_configs/default_perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ precip_model: "0M"
dt_save_to_sol: "Inf"
rad: "allskywithclear"
warn_allocations_diagnostics: true
log_progress: false
3 changes: 2 additions & 1 deletion src/solver/type_getters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,8 @@ function get_callbacks(parsed_args, sim_info, atmos, params, comms_ctx)
(; dt, output_dir) = sim_info

callbacks = ()
if !sim_info.restart
if parsed_args["log_progress"] && !sim_info.restart
@info "Progress logging enabled."
callbacks = (
callbacks...,
call_every_n_steps(
Expand Down
Loading