mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-09 01:08:06 +01:00
Set iteration count if guess is already good
This commit is contained in:
1 parent
b595f58e4c
commit
6505efcb57
1 file changed
+2
@@ -89,6 +89,8 @@ class ConjugateGradient : public OperatorFunction<Field> {
|
||||
|
||||
// Check if guess is really REALLY good :)
|
||||
if (cp <= rsq) {
|
||||
std::cout << GridLogMessage << "ConjugateGradient guess is converged already " << std::endl;
|
||||
IterationsToComplete = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user