From 6d31acc6bd0de4b82dda26b640fd4d883bb94a1f Mon Sep 17 00:00:00 2001 From: Julia Sloan Date: Tue, 30 Jan 2024 17:51:15 -0800 Subject: [PATCH] rename to nz_faces --- .../AMIP/components/atmosphere/climaatmos_init.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/experiments/AMIP/components/atmosphere/climaatmos_init.jl b/experiments/AMIP/components/atmosphere/climaatmos_init.jl index e44f63dc6b..445c3ec5c5 100644 --- a/experiments/AMIP/components/atmosphere/climaatmos_init.jl +++ b/experiments/AMIP/components/atmosphere/climaatmos_init.jl @@ -308,23 +308,23 @@ function get_field(atmos_sim::ClimaAtmosSimulation, ::Val{:F_radiative_TOA}) # save radiation source if radiation != nothing face_space = axes(atmos_sim.integrator.u.f) - n_faces = length(face_space.grid.vertical_grid.topology.mesh.faces) + nz_faces = length(Spaces.vertical_topology(face_space).mesh.faces) LWd_TOA = Fields.level( CA.RRTMGPI.array2field(FT.(atmos_sim.integrator.p.radiation.radiation_model.face_lw_flux_dn), face_space), - n_faces - half, + nz_faces - half, ) LWu_TOA = Fields.level( CA.RRTMGPI.array2field(FT.(atmos_sim.integrator.p.radiation.radiation_model.face_lw_flux_up), face_space), - n_faces - half, + nz_faces - half, ) SWd_TOA = Fields.level( CA.RRTMGPI.array2field(FT.(atmos_sim.integrator.p.radiation.radiation_model.face_sw_flux_dn), face_space), - n_faces - half, + nz_faces - half, ) SWu_TOA = Fields.level( CA.RRTMGPI.array2field(FT.(atmos_sim.integrator.p.radiation.radiation_model.face_sw_flux_up), face_space), - n_faces - half, + nz_faces - half, ) return @. -(LWd_TOA + SWd_TOA - LWu_TOA - SWu_TOA) # [W/m^2]