Skip to content

Commit

Permalink
Remove FT. from biogeochemistry
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbozzolo committed Jul 2, 2024
1 parent 3ed8e59 commit 382293b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/standalone/Soil/Biogeochemistry/Biogeochemistry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -403,13 +403,12 @@ This has been written so as to work with Differential Equations.jl.
function ClimaLand.make_update_aux(model::SoilCO2Model)
function update_aux!(p, Y, t)
# get FT to enforce types of variables not stored directly in `p`
FT = eltype(Y.soilco2.C)
params = model.parameters
z = model.domain.fields.z
T_soil = FT.(soil_temperature(model.driver.met, p, Y, t, z))
θ_l = FT.(soil_moisture(model.driver.met, p, Y, t, z))
Csom = FT.(soil_SOM_C(model.driver.soc, p, Y, t, z))
P_sfc = FT.(air_pressure(model.driver.atmos, p, Y, t))
T_soil = soil_temperature(model.driver.met, p, Y, t, z)
θ_l = soil_moisture(model.driver.met, p, Y, t, z)
Csom = soil_SOM_C(model.driver.soc, p, Y, t, z)
P_sfc = air_pressure(model.driver.atmos, p, Y, t)
θ_w = θ_l

p.soilco2.D .= co2_diffusivity.(T_soil, θ_w, P_sfc, Ref(params))
Expand Down

0 comments on commit 382293b

Please sign in to comment.