From: heister Date: Tue, 19 Oct 2010 07:29:30 +0000 (+0000) Subject: temporary fix for step-20 and the changes in SolverControl. Is there a better way? X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35a9194e1c29f7a740bb665f1e8798b251b1f7e2;p=dealii-svn.git temporary fix for step-20 and the changes in SolverControl. Is there a better way? git-svn-id: https://svn.dealii.org/trunk@22382 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-20/step-20.cc b/deal.II/examples/step-20/step-20.cc index febeb0602f..3c105d1aff 100644 --- a/deal.II/examples/step-20/step-20.cc +++ b/deal.II/examples/step-20/step-20.cc @@ -899,8 +899,8 @@ void MixedLaplaceProblem::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 tmp (solution.block(0).size()); @@ -935,7 +935,7 @@ void MixedLaplaceProblem::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(),