Skip to content

Commit

Permalink
Merge pull request #3248 from CliMA/ck/inference
Browse files Browse the repository at this point in the history
Fix inference in radiation.jl
  • Loading branch information
charleskawczynski authored Aug 18, 2024
2 parents b5c7cf2 + 6ec9e62 commit 988ffe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parameterized_tendencies/radiation/radiation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ function radiation_model_cache(
reshape(input_data["pres_layer"][:, :], n, :);
dims = 2,
),
)
)::Vector{FT}
# the first values along the third dimension of the ozone concentration
# data are the present-day values
input_center_volume_mixing_ratio_o3 = vec(
mean(reshape(input_data["ozone"][:, :, 1], n, :); dims = 2),
)
)::Vector{FT}

# interpolate the ozone concentrations to our initial pressures
pressure2ozone = Intp.extrapolate(
Expand Down

0 comments on commit 988ffe0

Please sign in to comment.