diff --git a/docs/src/interfacer.md b/docs/src/interfacer.md index d2d23e8888..88b23bd42c 100644 --- a/docs/src/interfacer.md +++ b/docs/src/interfacer.md @@ -144,7 +144,7 @@ for the following properties: | `LW_d` | downwards longwave flux | W m^-2 | | `SW_d` | downwards shortwave flux | W m^-2 | -Note that `air_temperature`, `air_pressure`, `cos_zenith_angle`, `co2`, `diffuse_fraction`, `LW_d` and +Note that `air_temperature`, `air_pressure`, `cos_zenith`, `co2`, `diffuse_fraction`, `LW_d` and `SW_d` will not be present in a `ClimaAtmosSimulation` if the model is setup with no radiation. Because of this, a `ClimaAtmosSimulation` must have radiation if running with the full `ClimaLand` model. diff --git a/experiments/ClimaEarth/components/atmosphere/climaatmos.jl b/experiments/ClimaEarth/components/atmosphere/climaatmos.jl index e2d69693dd..1e641b19ae 100644 --- a/experiments/ClimaEarth/components/atmosphere/climaatmos.jl +++ b/experiments/ClimaEarth/components/atmosphere/climaatmos.jl @@ -178,7 +178,7 @@ Interfacer.get_field(sim::ClimaAtmosSimulation, ::Val{:air_temperature}) = sim.integrator.p.params.thermodynamics_params, CC.Fields.level(sim.integrator.p.precomputed.ᶜts, 1), ) -Interfacer.get_field(sim::ClimaAtmosSimulation, ::Val{:cos_zenith_angle}) = CC.Fields.array2field( +Interfacer.get_field(sim::ClimaAtmosSimulation, ::Val{:cos_zenith}) = CC.Fields.array2field( sim.integrator.p.radiation.rrtmgp_model.cos_zenith, CC.Fields.level(axes(sim.integrator.u.c), 1), ) diff --git a/src/Interfacer.jl b/src/Interfacer.jl index 164028cde4..812c4d5930 100644 --- a/src/Interfacer.jl +++ b/src/Interfacer.jl @@ -157,7 +157,7 @@ get_field( val::Union{ Val{:air_pressure}, Val{:air_temperature}, - Val{:cos_zenith_angle}, + Val{:cos_zenith}, Val{:co2}, Val{:diffuse_fraction}, Val{:height_int}, diff --git a/test/interfacer_tests.jl b/test/interfacer_tests.jl index c1cea0bf4a..af258249ab 100644 --- a/test/interfacer_tests.jl +++ b/test/interfacer_tests.jl @@ -157,7 +157,7 @@ end for value in ( :air_pressure, :air_temperature, - :cos_zenith_angle, + :cos_zenith, :co2, :diffuse_fraction, :height_int,