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

Rename parameters that control the multigrid

parent 77a16ce1
No related branches found
No related tags found
No related merge requests found
...@@ -22,9 +22,9 @@ MySolver<dim, MatrixType, VectorType, GridType, BlockProblemType>::MySolver( ...@@ -22,9 +22,9 @@ MySolver<dim, MatrixType, VectorType, GridType, BlockProblemType>::MySolver(
transferOperators(refinements), transferOperators(refinements),
multigridStep(new SolverType(linearIterationStep, nonlinearSmoother)) { multigridStep(new SolverType(linearIterationStep, nonlinearSmoother)) {
// linear iteration step // linear iteration step
linearIterationStep.setMGType(parset.get<int>("linear.mu"), linearIterationStep.setMGType(parset.get<int>("linear.cycle"),
parset.get<int>("linear.nu1"), parset.get<int>("linear.pre"),
parset.get<int>("linear.nu2")); parset.get<int>("linear.post"));
linearIterationStep.basesolver_ = &linearBaseSolver; linearIterationStep.basesolver_ = &linearBaseSolver;
linearIterationStep.setSmoother(&linearPresmoother, &linearPostsmoother); linearIterationStep.setSmoother(&linearPresmoother, &linearPostsmoother);
...@@ -36,9 +36,9 @@ MySolver<dim, MatrixType, VectorType, GridType, BlockProblemType>::MySolver( ...@@ -36,9 +36,9 @@ MySolver<dim, MatrixType, VectorType, GridType, BlockProblemType>::MySolver(
linearIterationStep.setTransferOperators(transferOperators); linearIterationStep.setTransferOperators(transferOperators);
// tnnmg iteration step // tnnmg iteration step
multigridStep->setSmoothingSteps(parset.get<int>("main.nu1"), multigridStep->setSmoothingSteps(parset.get<int>("main.pre"),
parset.get<int>("main.mu"), parset.get<int>("main.multi"),
parset.get<int>("main.nu2")); parset.get<int>("main.post"));
multigridStep->ignoreNodes_ = &ignoreNodes; multigridStep->ignoreNodes_ = &ignoreNodes;
} }
......
...@@ -31,14 +31,14 @@ fixed_point_tolerance = 1e-10 ...@@ -31,14 +31,14 @@ fixed_point_tolerance = 1e-10
[solver.tnnmg.linear] [solver.tnnmg.linear]
maxiterations = 1000000 maxiterations = 1000000
nu1 = 1 pre = 1
mu = 1 cycle = 1 # 1 = V, 2 = W, etc.
nu2 = 1 post = 1
[solver.tnnmg.main] [solver.tnnmg.main]
nu1 = 1 pre = 1
mu = 4 multi = 4 # number of multigrid steps
nu2 = 0 # Krause modification; old: 1 post = 0
[localsolver] [localsolver]
steps = 1 steps = 1
......
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