From b50250034d012d07c9bffb429ff3f9c9cf044de2 Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Fri, 16 Dec 2011 16:17:21 +0100 Subject: [PATCH] Move declaration and initialisation around --- src/one-body-sample.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc index 34fb4b55..7a7ece38 100644 --- a/src/one-body-sample.cc +++ b/src/one-body-sample.cc @@ -300,10 +300,6 @@ int main(int argc, char *argv[]) { u1 += u1_diff; if (parset.get<bool>("useTNNMG")) { - MyConvexProblemType myConvexProblem(stiffnessMatrix, - *myGlobalNonlinearity, b4, u4_diff); - auto myBlockProblem = new MyBlockProblemType(parset, myConvexProblem); - // {{{ Linear Solver; TruncatedBlockGSStep<OperatorType, VectorType> *linearBaseSolverStep = new TruncatedBlockGSStep<OperatorType, VectorType>; @@ -346,6 +342,9 @@ int main(int argc, char *argv[]) { typedef TruncatedNonsmoothNewtonMultigrid< MyBlockProblemType, NonlinearSmootherType> TNNMGStepType; + MyConvexProblemType myConvexProblem(stiffnessMatrix, + *myGlobalNonlinearity, b4, u4_diff); + auto myBlockProblem = new MyBlockProblemType(parset, myConvexProblem); auto nonlinearSmoother = new NonlinearSmootherType; auto multigridStep = -- GitLab