Skip to content
Snippets Groups Projects
Commit 14b20ebd authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

Merge branch 'multigridstep-exception-when-no-smoother-is-provided' into 'master'

MultigridStep: throw exception when no smoother is provided

See merge request !27
parents ca17537d 0fb9fb1b
Branches
No related tags found
1 merge request!27MultigridStep: throw exception when no smoother is provided
Pipeline #12869 passed
...@@ -98,7 +98,18 @@ void MultigridStep<MatrixType, VectorType, BitVectorType>::preprocess() ...@@ -98,7 +98,18 @@ void MultigridStep<MatrixType, VectorType, BitVectorType>::preprocess()
presmoother_[i] = postsmoother_[i] = levelSmoother->second; presmoother_[i] = postsmoother_[i] = levelSmoother->second;
else else
{ {
if (not presmootherDefault_) {
DUNE_THROW(
SolverError,
"Falling back to default presmoother on level " << i << ", but no default was set");
}
presmoother_[i] = presmootherDefault_; presmoother_[i] = presmootherDefault_;
if (not postsmootherDefault_) {
DUNE_THROW(
SolverError,
"Falling back to default postsmoother on level " << i << ", but no default was set");
}
postsmoother_[i] = postsmootherDefault_; postsmoother_[i] = postsmootherDefault_;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment