mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ODESolver: Add more diagnostics when the max number of iterations is reached
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -89,7 +89,9 @@ void Foam::ODESolver::solve
|
|||||||
stepState& step
|
stepState& step
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
|
scalar x0 = x;
|
||||||
solve(x, y, step.dxTry);
|
solve(x, y, step.dxTry);
|
||||||
|
step.dxDid = x - x0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -149,6 +151,8 @@ void Foam::ODESolver::solve
|
|||||||
"(const scalar xStart, const scalar xEnd,"
|
"(const scalar xStart, const scalar xEnd,"
|
||||||
"scalarField& y, scalar& dxTry) const"
|
"scalarField& y, scalar& dxTry) const"
|
||||||
) << "Integration steps greater than maximum " << maxSteps_
|
) << "Integration steps greater than maximum " << maxSteps_
|
||||||
|
<< "xStart = " << xStart << ", xEnd = " << xEnd
|
||||||
|
<< ", x = " << x << ", dxDid = " << step.dxDid
|
||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user