From 8b91924048bf179cc6d9722314f1787c654fe268 Mon Sep 17 00:00:00 2001 From: Julia Sloan Date: Thu, 29 Feb 2024 21:21:35 -0800 Subject: [PATCH] remove scalar indexing --- experiments/AMIP/components/atmosphere/climaatmos_init.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/experiments/AMIP/components/atmosphere/climaatmos_init.jl b/experiments/AMIP/components/atmosphere/climaatmos_init.jl index 724fef4aea..336d4a8fee 100644 --- a/experiments/AMIP/components/atmosphere/climaatmos_init.jl +++ b/experiments/AMIP/components/atmosphere/climaatmos_init.jl @@ -129,7 +129,7 @@ function update_field!(atmos_sim::ClimaAtmosSimulation, ::Val{:co2_gm}, field) @warn("Gray radiation model initialized, skipping CO2 update", maxlog = 1) return else - atmos_sim.integrator.p.radiation.radiation_model.volume_mixing_ratio_co2 .= parent(field)[1] + atmos_sim.integrator.p.radiation.radiation_model.volume_mixing_ratio_co2 .= mean(parent(field)) end end # extensions required by the Interfacer