Skip to content

Commit

Permalink
rename to nz_faces
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed Jan 31, 2024
1 parent d23fc3f commit 6d31acc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions experiments/AMIP/components/atmosphere/climaatmos_init.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 6d31acc

Please sign in to comment.