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[]) {
new TruncatedBlockGSStep<OperatorType, VectorType>;
// }}}
MultigridStep<OperatorType, VectorType> *linearIterationStep =
new MultigridStep<OperatorType, VectorType>;
auto linearIterationStep = new MultigridStep<OperatorType, VectorType>;
linearIterationStep->setNumberOfLevels(levels);
linearIterationStep->setMGType(
parset.get<int>("solver.tnnmg.linear.mu"),
......@@ -350,7 +349,7 @@ int main(int argc, char *argv[]) {
TNNMGProblemType, NonlinearSmootherType> TNNMGStepType;
TNNMGProblemType *tnnmgProblem = myBlockProblem;
NonlinearSmootherType *nonlinearSmoother = new NonlinearSmootherType;
auto nonlinearSmoother = new NonlinearSmootherType;
auto multigridStep =
new TNNMGStepType(*linearIterationStep, *nonlinearSmoother);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment