Skip to content

Commit

Permalink
Inline information about registered diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbozzolo committed Jan 12, 2024
1 parent 97bf370 commit ac19edb
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 @@ -834,9 +834,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 ac19edb

Please sign in to comment.