Skip to content
Snippets Groups Projects
Commit 6aaa804a authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Do not hand the number of levels to the MonotoneMGStep

This number is nowadays infered from the number of transfer operators.

[[Imported from SVN: r9432]]
parent 5ecd6c14
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ setup(const GridType& grid,
TrustRegionGSStep<MatrixType, CorrectionType>* presmoother = new TrustRegionGSStep<MatrixType, CorrectionType>;
TrustRegionGSStep<MatrixType, CorrectionType>* postsmoother = new TrustRegionGSStep<MatrixType, CorrectionType>;
MonotoneMGStep<MatrixType, CorrectionType>* mmgStep = new MonotoneMGStep<MatrixType, CorrectionType>(numLevels);
MonotoneMGStep<MatrixType, CorrectionType>* mmgStep = new MonotoneMGStep<MatrixType, CorrectionType>;
mmgStep->setMGType(mu, nu1, nu2);
mmgStep->ignoreNodes_ = &dirichletNodes;
......@@ -288,7 +288,7 @@ void RiemannianTrustRegionSolver<GridType,TargetSpace>::solve()
}
mgStep->setProblem(*hessianMatrix_, corr, rhs, grid_->maxLevel()+1);
mgStep->setProblem(*hessianMatrix_, corr, rhs);
trustRegionObstacles.back() = trustRegion.obstacles();
mgStep->obstacles_ = &trustRegionObstacles;
......
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