Skip to content

Commit

Permalink
adjust to let total soil thickness and max root depth not fixed in th…
Browse files Browse the repository at this point in the history
…e code
  • Loading branch information
MostafaGomaa93 authored Jul 3, 2024
1 parent 3fa65aa commit f96ca1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calc_rsoil.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% load Constants
Constants = io.define_constants();

SMC = SoilVariables.Theta_LL(1:54, 2);
SMC = SoilVariables.Theta_LL(1:end - 1, 2);
Se = (SMC - VanGenuchten.Theta_r') ./ (VanGenuchten.Theta_s' - VanGenuchten.Theta_r');
Ksoil = SoilVariables.Ks' .* Se.^Constants.l .* (1 - (1 - Se.^(1 ./ VanGenuchten.m')).^(VanGenuchten.m')).^2;

Expand Down

0 comments on commit f96ca1c

Please sign in to comment.