Skip to content

Commit

Permalink
remove scalar indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed Mar 1, 2024
1 parent 51f756b commit d65b6f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion experiments/AMIP/components/atmosphere/climaatmos_init.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d65b6f3

Please sign in to comment.