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

Use auto

parent d691e5ac
No related branches found
No related tags found
No related merge requests found
...@@ -323,8 +323,7 @@ int main(int argc, char *argv[]) { ...@@ -323,8 +323,7 @@ int main(int argc, char *argv[]) {
new TruncatedBlockGSStep<OperatorType, VectorType>; new TruncatedBlockGSStep<OperatorType, VectorType>;
// }}} // }}}
MultigridStep<OperatorType, VectorType> *linearIterationStep = auto linearIterationStep = new MultigridStep<OperatorType, VectorType>;
new MultigridStep<OperatorType, VectorType>;
linearIterationStep->setNumberOfLevels(levels); linearIterationStep->setNumberOfLevels(levels);
linearIterationStep->setMGType( linearIterationStep->setMGType(
parset.get<int>("solver.tnnmg.linear.mu"), parset.get<int>("solver.tnnmg.linear.mu"),
...@@ -350,7 +349,7 @@ int main(int argc, char *argv[]) { ...@@ -350,7 +349,7 @@ int main(int argc, char *argv[]) {
TNNMGProblemType, NonlinearSmootherType> TNNMGStepType; TNNMGProblemType, NonlinearSmootherType> TNNMGStepType;
TNNMGProblemType *tnnmgProblem = myBlockProblem; TNNMGProblemType *tnnmgProblem = myBlockProblem;
NonlinearSmootherType *nonlinearSmoother = new NonlinearSmootherType; auto nonlinearSmoother = new NonlinearSmootherType;
auto multigridStep = auto multigridStep =
new TNNMGStepType(*linearIterationStep, *nonlinearSmoother); new TNNMGStepType(*linearIterationStep, *nonlinearSmoother);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment