Skip to content

Commit b46036a

Browse files
authored
Merge pull request #1532 from CliMA/cc/land_updates
Use updated ClimaLand IC API for weatherquest setup.
2 parents ea14db9 + fb399bb commit b46036a

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

experiments/ClimaEarth/components/land/climaland_integrated.jl

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function ClimaLandSimulation(
155155
T_sfc0 = T_base .+ temp_anomaly.(coords.subsurface)
156156
else
157157
# constant field on subsurface space
158-
T_sfc0 = CC.Fields.Field(T_base .* CC.Fields.ones(subsurface_space))
158+
T_sfc0 = T_base .* CC.Fields.ones(subsurface_space)
159159
end
160160
lapse_rate = FT(6.5e-3)
161161
# Adjust initial temperature to account for orography of the surface
@@ -218,18 +218,20 @@ function ClimaLandSimulation(
218218
p,
219219
surface_space,
220220
ic_path,
221-
model.snow.parameters,
221+
model.snow.parameters;
222+
regridder_type = regridder_type,
223+
extrapolation_bc = extrapolation_bc,
224+
interpolation_method = interpolation_method,
222225
)
223226

224-
T_bounds = extrema(Y.canopy.energy.T)
225-
CL.Simulations.set_soil_initial_conditions!(
227+
CL.Simulations.set_soil_initial_conditions_from_temperature_and_total_water!(
226228
Y,
227-
ν,
228-
θ_r,
229229
subsurface_space,
230230
ic_path,
231-
model.soil,
232-
T_bounds,
231+
model.soil;
232+
regridder_type = regridder_type,
233+
extrapolation_bc = extrapolation_bc,
234+
interpolation_method = interpolation_method,
233235
)
234236
elseif land_spun_up_ic
235237
# Use artifact spun-up initial conditions

0 commit comments

Comments
 (0)