Skip to content

Commit

Permalink
remove PrescribedAtmos [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed Feb 27, 2025
1 parent 1c778ab commit 7820a29
Showing 1 changed file with 3 additions and 31 deletions.
34 changes: 3 additions & 31 deletions experiments/ClimaEarth/components/land/climaland_integrated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,43 +85,15 @@ function ClimaLandSimulation(

Csom = ClimaLand.PrescribedSoilOrganicCarbon{FT}(TimeVaryingInput((t) -> 5))

# TODO remove this once CL functions are extended for CoupledAtmosphere
precip = TimeVaryingInput((t) -> -1.0e-7)
atmos_q = TimeVaryingInput((t) -> 0.002)
atmos_T = TimeVaryingInput((t) -> 298.0)
atmos_p = TimeVaryingInput((t) -> 101320)
atmos_u = TimeVaryingInput((t) -> 3.0)
LW_IN = TimeVaryingInput((t) -> 5.67e-8 * 298.0^4)
SW_IN = TimeVaryingInput((t) -> 500.0)
snow_precip = TimeVaryingInput((t) -> 0.0)
atmos_h = FT(32)
atmos = ClimaLand.PrescribedAtmosphere(
precip,
snow_precip,
atmos_T,
atmos_u,
atmos_q,
atmos_p,
start_date,
atmos_h,
earth_param_set;
)
radiation = ClimaLand.PrescribedRadiativeFluxes(
FT,
SW_IN,
LW_IN,
start_date,
# θs = zenith_angle,
)
land_input = (
atmos = atmos,#ClimaLand.CoupledAtmosphere{FT}(),
radiation = radiation,#ClimaLand.CoupledRadiativeFluxes{FT}(),
atmos = ClimaLand.CoupledAtmosphere{FT}(),
radiation = ClimaLand.CoupledRadiativeFluxes{FT}(),
runoff = runoff_model,
soil_organic_carbon = Csom,
)

land = ClimaLand.LandModel{FT}(;
soilco2_type = soilco2_type, # TODO this fails because soil CO2 requires PrescribedAtmosphere currently
soilco2_type = soilco2_type,
soilco2_args = soilco2_args,
land_args = land_input,
soil_model_type = soil_model_type,
Expand Down

0 comments on commit 7820a29

Please sign in to comment.