diff --git a/src/callbacks/callbacks.jl b/src/callbacks/callbacks.jl index 257ee50f42..8bd6a11844 100644 --- a/src/callbacks/callbacks.jl +++ b/src/callbacks/callbacks.jl @@ -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), @@ -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), diff --git a/src/parameterized_tendencies/radiation/radiation.jl b/src/parameterized_tendencies/radiation/radiation.jl index 3cd726c23d..bd1c3ef623 100644 --- a/src/parameterized_tendencies/radiation/radiation.jl +++ b/src/parameterized_tendencies/radiation/radiation.jl @@ -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)`