Skip to content

Commit

Permalink
Merge pull request #2582 from CliMA/ck/progress_option
Browse files Browse the repository at this point in the history
Add option for disabling progress logging
  • Loading branch information
charleskawczynski authored Jan 26, 2024
2 parents c362c5f + 824d44a commit 5ed6f6e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
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

0 comments on commit 5ed6f6e

Please sign in to comment.