Skip to content

Commit

Permalink
Merge pull request #3175 from CliMA/ck/dz_field
Browse files Browse the repository at this point in the history
Use ClimaCore dz_field
  • Loading branch information
charleskawczynski authored Jul 7, 2024
2 parents 98e60b9 + ef8be56 commit dc03855
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/callbacks/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ NVTX.@annotate function rrtmgp_model_callback!(integrator)
radiation_mode isa RRTMGPI.GrayRadiation ||
radiation_mode isa RRTMGPI.ClearSkyRadiation
)
ᶜΔz = Fields.local_geometry_field(Y.c).∂x∂ξ.components.data.:9
ᶜΔz = Fields.Δz_field(Y.c)
ᶜlwp = Fields.array2field(
rrtmgp_model.center_cloud_liquid_water_path,
axes(Y.c),
Expand All @@ -158,7 +158,7 @@ NVTX.@annotate function rrtmgp_model_callback!(integrator)

if !(radiation_mode isa RRTMGPI.GrayRadiation)
if radiation_mode.aerosol_radiation
ᶜΔz = Fields.local_geometry_field(Y.c).∂x∂ξ.components.data.:9
ᶜΔz = Fields.Δz_field(Y.c)
ᶜaero_conc = Fields.array2field(
rrtmgp_model.center_aerosol_column_mass_density,
axes(Y.c),
Expand Down
2 changes: 1 addition & 1 deletion src/parameterized_tendencies/radiation/radiation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function radiation_model_cache(
ice_roughness = 2,
)
ᶜz = Fields.coordinate_field(Y.c).z
ᶜΔz = Fields.local_geometry_field(Y.c).∂x∂ξ.components.data.:9
ᶜΔz = Fields.Δz_field(Y.c)
if idealized_clouds # icy cloud on top and wet cloud on bottom
# TODO: can we avoid using DataLayouts with this?
# `ᶜis_bottom_cloud = similar(ᶜz, Bool)`
Expand Down

0 comments on commit dc03855

Please sign in to comment.