From 170ac6945dcb554a91ead9ea22030d11f1008d45 Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Thu, 3 Nov 2011 16:16:33 +0100 Subject: [PATCH] Move declarations, etc. --- src/one-body-sample.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc index 924be599..5f2b1d2d 100644 --- a/src/one-body-sample.cc +++ b/src/one-body-sample.cc @@ -169,6 +169,12 @@ int main() { setup_boundary<GridType::LeafGridView>(leafView, end_points, ignoreNodes, neumannNodes, frictionalNodes); + typedef MyConvexProblem<OperatorType, VectorType, Dune::LinearFunction> + MyConvexProblemType; + typedef MyBlockProblem<MyConvexProblemType> MyBlockProblemType; + GenericNonlinearGS<MyBlockProblemType> nonlinearGSStep; + nonlinearGSStep.ignoreNodes_ = &ignoreNodes; + VectorType u1(grid.size(grid.maxLevel(), dim)); u1 = 0; VectorType u2 = u1; @@ -200,15 +206,9 @@ int main() { // }}} { - typedef MyConvexProblem<OperatorType, VectorType, Dune::LinearFunction> - MyConvexProblemType; MyConvexProblemType myConvexProblem(stiffnessMatrix, myGlobalNonlinearity, f, u1); - typedef MyBlockProblem<MyConvexProblemType> MyBlockProblemType; MyBlockProblemType myBlockProblem(myConvexProblem); - - GenericNonlinearGS<MyBlockProblemType> nonlinearGSStep; - nonlinearGSStep.ignoreNodes_ = &ignoreNodes; nonlinearGSStep.setProblem(u1, myBlockProblem); LoopSolver<VectorType> solver(&nonlinearGSStep, solver_maxIterations, -- GitLab