Skip to content
Snippets Groups Projects
Commit 70c9905f authored by Theresa Schollenberger's avatar Theresa Schollenberger Committed by Timo Koch
Browse files

[brookscorey] fix wrong implementation of dkrn_dswe

parent 85dbcbc7
No related branches found
No related tags found
1 merge request!1912Fix wrong implementation of dkrn_dswe in Brooks-Corey and Van Genuchten
...@@ -269,10 +269,8 @@ public: ...@@ -269,10 +269,8 @@ public:
swe = min(max(swe, 0.0), 1.0); // the equation below is only defined for 0.0 <= sw <= 1.0 swe = min(max(swe, 0.0), 1.0); // the equation below is only defined for 0.0 <= sw <= 1.0
return 2.0*(swe - 1)*(1 + pow(swe, 2.0/params.lambda())*(1.0/params.lambda() + 1.0/2 return 2.0*(swe - 1)*(1 + (0.5 + 1/params.lambda())*pow(swe, 2.0/params.lambda())
- swe*(1.0/params.lambda() + 1.0/2) - (3.0/2.0 + 1/params.lambda())*pow(swe, 2.0/params.lambda()+1));
)
);
} }
}; };
......
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