seulex: Reduce the underflow time-step

This commit is contained in:
Henry
2015-02-16 22:16:50 +00:00
parent c3a9a6c10f
commit b1ce18096c

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -250,7 +250,7 @@ void Foam::seulex::solve
firstk = false;
step.reject = false;
if (mag(dx) <= mag(x)*SMALL)
if (mag(dx) <= mag(x)*sqr(SMALL))
{
WarningIn("seulex::solve(scalar& x, scalarField& y, stepState&")
<< "step size underflow :" << dx << endl;