From ce04ab41a801b7df597aa2272a71b001ad080daa Mon Sep 17 00:00:00 2001 From: AlexisRenchon Date: Thu, 3 Feb 2022 11:41:19 -0600 Subject: [PATCH] tidy 2 --- src/functions/maths/DAMM.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/maths/DAMM.jl b/src/functions/maths/DAMM.jl index 77202e3..f66160b 100644 --- a/src/functions/maths/DAMM.jl +++ b/src/functions/maths/DAMM.jl @@ -34,7 +34,7 @@ function DAMM(x::VecOrMat{<: Real}, p::NTuple{7, Float64}) MMₛₓ = @. Sₓ / (kMₛₓ * Q10Km^(ustrip(Tₛ - Tref)/10.0) + Sₓ) # Availability of substrate factor, 0-1 porosityₐᵢᵣ = porosity .- θ # Air filled porosity porosityₐᵢᵣ[porosityₐᵢᵣ .< 0.0] .= NaN # Moisture cannot be greater than porosity - O₂ = @. Dₒₐ * O₂ₐ * (airfilled_porosity^(4/3)) # Oxygen concentration + O₂ = @. Dₒₐ * O₂ₐ * (porosityₐᵢᵣ^(4/3)) # Oxygen concentration MMₒ₂ = @. O₂ / (kMₒ₂ + O₂) # Oxygen limitation factor, 0-1 Rₛₘ = @. Vmax * MMₛₓ * MMₒ₂ # Respiration, mg C cm⁻³ hr⁻¹ Rₛₘₛ = @. Rₛₘ * Eₛ # Respiration, effective depth 10 cm, mg C cm⁻² hr⁻¹