Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
szy21 committed Jan 26, 2024
1 parent b0adf40 commit e15526c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions src/diagnostics/default_diagnostics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,18 @@ function default_diagnostics(
::RRTMGPI.AllSkyRadiationWithClearSkyDiagnostics;
output_writer,
)
rad_diagnostics =
["rsd", "rsdt", "rsds", "rsu", "rld", "rlu", "rsdcs", "rsucs", "rldcs", "rlucs"]
rad_diagnostics = [
"rsd",
"rsdt",
"rsds",
"rsu",
"rld",
"rlu",
"rsdcs",
"rsucs",
"rldcs",
"rlucs",
]

return [daily_averages(rad_diagnostics...; output_writer)...]
end
Expand Down
2 changes: 1 addition & 1 deletion src/diagnostics/radiation_diagnostics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function compute_rsdt!(
time,
radiation_mode::T,
) where {T <: RRTMGPI.AbstractRRTMGPMode}
nlevels = Spaces.nlevels(axes(Y.c))
nlevels = Spaces.nlevels(axes(state.c))
if isnothing(out)
return Fields.level(
RRTMGPI.array2field(
Expand Down

0 comments on commit e15526c

Please sign in to comment.