Skip to content
Snippets Groups Projects
Commit 9f3b1700 authored by Henry's avatar Henry
Browse files

ODESolver: Add more diagnostics when the max number of iterations is reached

parent 549e419a
No related merge requests found
......@@ -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);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment