]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Mostly formatting work.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 Mar 2000 11:53:12 +0000 (11:53 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 Mar 2000 11:53:12 +0000 (11:53 +0000)
git-svn-id: https://svn.dealii.org/trunk@2634 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/solver_minres.h

index be9bb510108582935a946c8ee5cd6f08cbaea0bd..78098f25244954635041349c02835d189b27874c 100644 (file)
@@ -189,11 +189,10 @@ SolverMinRes<Matrix,Vector>::solve (const Matrix &A,
   int j = 1;
   
 
-                                  // Start of the solving process
-  
+                                  // Start of the solution process
   A.vmult(m[0],x);
   u[1] = b;
-  u[1].add(-1.,m[0]);
+  u[1] -= m[0];
                                   // Precondition is applied.
                                   // The preconditioner has to be
                                   // positiv definite and symmetric
@@ -226,7 +225,7 @@ SolverMinRes<Matrix,Vector>::solve (const Matrix &A,
        v.reinit(VS,0);
 
       A.vmult(u[2],v);
-      u[2].add(-sqrt(delta[1]/delta[0]),u[0]);
+      u[2].add (-sqrt(delta[1]/delta[0]), u[0]);
 
       gamma = u[2] * v;
       u[2].add (-gamma / sqrt(delta[1]), u[1]);

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.