]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use relative improvements
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 28 Aug 2000 20:32:20 +0000 (20:32 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 28 Aug 2000 20:32:20 +0000 (20:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@3281 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/eigen.h

index 81fd1e489acd81d2e278ef4c650ea0902030389f..a2aee20d999a750b64a34388b71261309496d72e 100644 (file)
@@ -354,7 +354,7 @@ EigenPower<VECTOR>::solve (double       &value,
 
                                       // Check the change of the eigenvalue
                                       // Brrr, this is not really a good criterion
-      conv = control().check (iter, fabs(1.-length/old_length));
+      conv = control().check (iter, fabs(1./length-1./old_length));
     }
   
   memory.free(Vy);
@@ -461,7 +461,7 @@ EigenInverse<VECTOR>::solve (double       &value,
                                           // Check the residual
          conv = control().check (iter, res);
        } else {
-         conv = control().check (iter, fabs(1.-old_value/value));
+         conv = control().check (iter, fabs(1./value-1./old_value));
        }
       old_value = value;
     }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.