ODESolvers/seulex: Documented the current stability/monotonicity check

This commit is contained in:
Henry Weller
2018-06-22 12:05:36 +01:00
parent c23f291acb
commit 70181745c9

View File

@ -153,8 +153,13 @@ bool Foam::seulex::seul
LUBacksubstitute(a_, pivotIndices_, dy_);
// This form from the original paper is unreliable
// step size underflow for some cases
// const scalar denom = max(1, dy1);
// This form is reliable but limits how large the step size can be
const scalar denom = min(1, dy1 + small);
scalar dy2 = 0;
for (label i=0; i<n_; i++)
{