Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ClimaCore dz_field #3175

Merged
merged 1 commit into from
Jul 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading