]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use the proper dimensions for the maximal number of iterations.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 7 Oct 2008 19:55:37 +0000 (19:55 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 7 Oct 2008 19:55:37 +0000 (19:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@17134 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-22/step-22.cc

index bb32942295b4848a9de936fbfc2c04eddd598482..a6e73ce1e3b59b06a930e5a16989f63b7f68752c 100644 (file)
@@ -1037,7 +1037,7 @@ void StokesProblem<dim>::solve ()
     
                                     // The usual control structures for
                                     // the solver call are created...
-    SolverControl solver_control (system_matrix.block(0,0).m(),
+    SolverControl solver_control (solution.block(1).size(),
                                  1e-6*schur_rhs.l2_norm());
     SolverCG<>    cg (solver_control);
     

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.