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

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

index cf6aab0ad904c17c64b1b4f81022483282ad87b6..36f38faf298224b0f8a3afdd0586a29125eec7d2 100644 (file)
@@ -1020,7 +1020,7 @@ void MixedLaplaceProblem<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.