1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

Report resid on failed convergence

This commit is contained in:
Peter Boyle 2023-11-15 17:56:22 -05:00
parent 807aeebe4c
commit 043031a757

View File

@ -207,7 +207,8 @@ public:
TrueResidual = sqrt(norm2(p)/ssq);
std::cout << GridLogMessage << "ConjugateGradient did NOT converge "<<k<<" / "<< MaxIterations<< std::endl;
std::cout << GridLogMessage << "ConjugateGradient did NOT converge "<<k<<" / "<< MaxIterations
<<" residual "<< TrueResidual<< std::endl;
if (ErrorOnNoConverge) assert(0);
IterationsToComplete = k;