]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
reverted to previous behavior
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 24 Nov 2001 18:47:28 +0000 (18:47 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 24 Nov 2001 18:47:28 +0000 (18:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@5263 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/solver_richardson.h

index a59da8dc8af6ed6734d61c257e2f8f89984f53a5..8700443a62b9e40c8596eed9adaab8cc9cf0d997 100644 (file)
@@ -58,7 +58,7 @@ class SolverRichardson : public Solver<VECTOR>
                                          * to one.
                                          */
        AdditionalData(double omega=1,
-                      bool use_preconditioned_residual = true):
+                      bool use_preconditioned_residual = false):
                        omega(omega),
                        use_preconditioned_residual(use_preconditioned_residual)
          {};
@@ -207,10 +207,7 @@ SolverRichardson<VECTOR>::solve (const MATRIX         &A,
       if (!additional_data.use_preconditioned_residual)
        {
          res = r*r;
-//      cout << '[' << res << ' ';
          res=sqrt(res);
-//      cout << res << ' ' << r.l1_norm() << ']';
-//      r.print(cout);
          conv = control().check (iter, criterion());
          if (conv != SolverControl::iterate)
            break;
@@ -220,10 +217,7 @@ SolverRichardson<VECTOR>::solve (const MATRIX         &A,
       if (additional_data.use_preconditioned_residual)
        {
          res = d*d;
-//      cout << '[' << res << ' ';
          res=sqrt(res);
-//      cout << res << ' ' << r.l1_norm() << ']';
-//      r.print(cout);
          conv = control().check (iter, criterion());
          if (conv != SolverControl::iterate)
            break;

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.