Skip to content
Snippets Groups Projects
Commit 8a988ae5 authored by Brian Groenke's avatar Brian Groenke
Browse files

Fix bug in SURFEX volumetric organic impl

parent fc083168
No related branches found
No related tags found
No related merge requests found
...@@ -36,9 +36,9 @@ function default_surfex_freezecurve(texture::SoilTexture, ρ_soc, ρ_org, por_or ...@@ -36,9 +36,9 @@ function default_surfex_freezecurve(texture::SoilTexture, ρ_soc, ρ_org, por_or
end end
# Soil methods # Soil methods
organic(soil::Soil{<:SURFEX}) = organic_fraction(soil.para)*porosity(soil) organic(soil::Soil{<:SURFEX}) = organic_fraction(soil.para)*(1 - porosity(soil))
mineral(soil::Soil{<:SURFEX}) = (1 - porosity(soil))*(1 - organic_fraction(soil.para)) mineral(soil::Soil{<:SURFEX}) = (1 - organic_fraction(soil.para))*(1 - porosity(soil))
saturation(soil::Soil{<:SURFEX}) = soil.para.sat saturation(soil::Soil{<:SURFEX}) = soil.para.sat
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment