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
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -89,7 +89,9 @@ void Foam::ODESolver::solve
|
||||
stepState& step
|
||||
) const
|
||||
{
|
||||
scalar x0 = x;
|
||||
solve(x, y, step.dxTry);
|
||||
step.dxDid = x - x0;
|
||||
}
|
||||
|
||||
|
||||
@ -149,6 +151,8 @@ void Foam::ODESolver::solve
|
||||
"(const scalar xStart, const scalar xEnd,"
|
||||
"scalarField& y, scalar& dxTry) const"
|
||||
) << "Integration steps greater than maximum " << maxSteps_
|
||||
<< "xStart = " << xStart << ", xEnd = " << xEnd
|
||||
<< ", x = " << x << ", dxDid = " << step.dxDid
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user