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

Control linear iterations through parset

parent ac472387
No related branches found
No related tags found
No related merge requests found
...@@ -271,7 +271,8 @@ int main(int argc, char *argv[]) { ...@@ -271,7 +271,8 @@ int main(int argc, char *argv[]) {
TruncatedBlockGSStep<OperatorType, VectorType> linearBaseSolverStep; TruncatedBlockGSStep<OperatorType, VectorType> linearBaseSolverStep;
EnergyNorm<OperatorType, VectorType> baseEnergyNorm(linearBaseSolverStep); EnergyNorm<OperatorType, VectorType> baseEnergyNorm(linearBaseSolverStep);
LoopSolver<VectorType> linearBaseSolver( LoopSolver<VectorType> linearBaseSolver(
&linearBaseSolverStep, solver_maxIterations, solver_tolerance, &linearBaseSolverStep,
parset.get<int>("solver.tnnmg.linear.maxiterations"), solver_tolerance,
&baseEnergyNorm, Solver::QUIET); &baseEnergyNorm, Solver::QUIET);
TruncatedBlockGSStep<OperatorType, VectorType> linearPresmoother; TruncatedBlockGSStep<OperatorType, VectorType> linearPresmoother;
TruncatedBlockGSStep<OperatorType, VectorType> linearPostsmoother; TruncatedBlockGSStep<OperatorType, VectorType> linearPostsmoother;
......
...@@ -26,6 +26,7 @@ maxiterations = 1000000 ...@@ -26,6 +26,7 @@ maxiterations = 1000000
tolerance = 1e-12 tolerance = 1e-12
[solver.tnnmg.linear] [solver.tnnmg.linear]
maxiterations = 1000000
nu1 = 1 nu1 = 1
mu = 1 mu = 1
nu2 = 0 # FIXME: using linear postsmoothing appears to be a really bad idea nu2 = 0 # FIXME: using linear postsmoothing appears to be a really bad idea
......
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