Skip to content
Snippets Groups Projects
Commit b5025003 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Move declaration and initialisation around

parent a0cec316
Branches
No related tags found
No related merge requests found
......@@ -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 =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment