]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
temporary fix for step-20 and the changes in SolverControl. Is there a better way?
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 19 Oct 2010 07:29:30 +0000 (07:29 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 19 Oct 2010 07:29:30 +0000 (07:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@22382 0785d39b-7218-0410-832d-ea1e28bc413d

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

index febeb0602f06d83387a3efc2e1cf8bf9f0df948b..3c105d1affe15898d2fcbb6bbeaa25d16efe21ce 100644 (file)
@@ -899,8 +899,8 @@ void MixedLaplaceProblem<dim>::solve ()
     m_inverse;
   m_inverse.initialize(system_matrix.block(0,0), identity);
   m_inverse.solver.select("cg");
-  ReductionControl inner_control(1000, 0., 1.e-13);
-  m_inverse.solver.control = inner_control;
+  static ReductionControl inner_control(1000, 0., 1.e-13);
+  m_inverse.solver.set_control(inner_control);
   
   Vector<double> tmp (solution.block(0).size());
 
@@ -935,7 +935,7 @@ void MixedLaplaceProblem<dim>::solve ()
       preconditioner;
     preconditioner.initialize(approximate_schur_complement, identity);
     preconditioner.solver.select("cg");
-    preconditioner.solver.control = inner_control;
+    preconditioner.solver.set_control(inner_control);
 
     
     SolverControl solver_control (solution.block(1).size(),

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.