Skip to content

Commit

Permalink
Merge pull request #2522 from CliMA/gb/diagnostics_levels
Browse files Browse the repository at this point in the history
Inline information about registered diagnostics
  • Loading branch information
Sbozzolo authored Jan 14, 2024
2 parents 60d2053 + ac19edb commit 1de4615
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/solver/type_getters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -835,9 +835,14 @@ function get_simulation(config::AtmosConfig)

length(diagnostics) > 0 && @info "Computing diagnostics:"

for diag in diagnostics
writer = nameof(typeof(diag.output_writer))
@info "- $(diag.output_short_name) ($writer)"
for writer in writers
writer_str = nameof(typeof(writer))
diags_with_writer =
filter((x) -> getproperty(x, :output_writer) == writer, diagnostics)
diags_outputs = [
getproperty(diag, :output_short_name) for diag in diags_with_writer
]
@info "$writer_str: $diags_outputs"
end

# First, we convert all the ScheduledDiagnosticTime into ScheduledDiagnosticIteration,
Expand Down

0 comments on commit 1de4615

Please sign in to comment.