Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisRenchon committed Aug 20, 2024
1 parent 2bd101b commit 0a073b2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/diagnostics/land_compute_methods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,20 @@ end
@diagnostic_compute "vapor_flux" SoilCanopyModel p.soil.turbulent_fluxes.vapor_flux

# Soil - SoilCO2
@diagnostic_compute "heterotrophic_respiration" SoilCanopyModel (p.soilco2.top_bc*83.26) # convert from kg C to mol CO2
function compute_heterotrophic_respiration!(
out,
Y,
p,
t,
land_model::SoilCanopyModel{FT},
) where {FT}
if isnothing(out)
return p.soilco2.top_bc .* FT(83.26)
else
out .= p.soilco2.top_bc .* FT(83.26)
end
end # Convert from kg C to mol CO2

@diagnostic_compute "soilco2_diffusivity" SoilCanopyModel p.soilco2.D
@diagnostic_compute "soilco2_source_microbe" SoilCanopyModel p.soilco2.Sm

Expand Down

0 comments on commit 0a073b2

Please sign in to comment.