]> 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:57:16 +0000 (19:57 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 7 Oct 2008 19:57:16 +0000 (19:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@17136 0785d39b-7218-0410-832d-ea1e28bc413d

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

index cf1c0112875aa853155e12a2b15c264c7f83a1f9..b490275e58f5bad191e6d6f20876e6e387369e4c 100644 (file)
@@ -1106,7 +1106,7 @@ void TwoPhaseFlowProblem<dim>::solve ()
       preconditioner (approximate_schur_complement);
 
     
-    SolverControl solver_control (system_matrix.block(0,0).m(),
+    SolverControl solver_control (solution.block(1).size(),
                                   1e-12*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.