mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-25 21:25:56 +01:00
Report resid on failed convergence
This commit is contained in:
parent
807aeebe4c
commit
043031a757
@ -207,7 +207,8 @@ public:
|
|||||||
|
|
||||||
TrueResidual = sqrt(norm2(p)/ssq);
|
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);
|
if (ErrorOnNoConverge) assert(0);
|
||||||
IterationsToComplete = k;
|
IterationsToComplete = k;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user