From 94ebcf551c1402d7ebff22959f0ff40361f66205 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Wed, 24 Apr 2019 06:28:14 +0100 Subject: [PATCH] Iteratoin range fix --- Grid/algorithms/iterative/ConjugateGradient.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Grid/algorithms/iterative/ConjugateGradient.h b/Grid/algorithms/iterative/ConjugateGradient.h index 25d206f5..c1717e2a 100644 --- a/Grid/algorithms/iterative/ConjugateGradient.h +++ b/Grid/algorithms/iterative/ConjugateGradient.h @@ -106,7 +106,7 @@ class ConjugateGradient : public OperatorFunction { SolverTimer.Start(); int k; - for (k = 1; k <= MaxIterations*1000; k++) { + for (k = 1; k <= MaxIterations; k++) { c = cp; MatrixTimer.Start(); @@ -167,8 +167,7 @@ class ConjugateGradient : public OperatorFunction { return; } } - std::cout << GridLogMessage << "ConjugateGradient did NOT converge" - << std::endl; + std::cout << GridLogMessage << "ConjugateGradient did NOT converge "<