From: David Wells Date: Sat, 20 Feb 2016 18:12:33 +0000 (-0500) Subject: Change initialization to avoid a static variable. X-Git-Tag: v8.5.0-rc1~1302^2~5 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab9e542208684ee21563356aaed45a07e5ffc515;p=dealii.git Change initialization to avoid a static variable. m_inverse depends on inner_control, so initialize inner_control first rather than making it static. --- diff --git a/examples/step-20/step-20.cc b/examples/step-20/step-20.cc index b63de089de..d754d35497 100644 --- a/examples/step-20/step-20.cc +++ b/examples/step-20/step-20.cc @@ -700,11 +700,11 @@ namespace Step20 template void MixedLaplaceProblem::solve () { + ReductionControl inner_control(1000, 0., 1.e-13); PreconditionIdentity identity; IterativeInverse > m_inverse; m_inverse.initialize(system_matrix.block(0,0), identity); m_inverse.solver.select("cg"); - static ReductionControl inner_control(1000, 0., 1.e-13); m_inverse.solver.set_control(inner_control); Vector tmp (solution.block(0).size());