Commit 2187fbb8 authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Allow to configure the number of linear multigrid steps

As the nonlinear smoother is so expensive, doing more than the
canonical single multigrid iteration for the linear correction
problem does not appreciably increase the time per iteration.

In preliminary tests it does decrease the number of iterations
considerably, though.
parent 763a8458
Pipeline #8674 passed with stage
in 4 minutes and 40 seconds
......@@ -674,7 +674,9 @@ int main (int argc, char *argv[]) try
DefectProjection,
LineSearchSolver>;
auto step = Step(J, x, nonlinearSmoother, linearIterationStep, 1, DefectProjection(), bisectionSolver);
auto step = Step(J, x, nonlinearSmoother,
linearIterationStep, parameterSet.get<int>("numLinearIterationSteps"),
DefectProjection(), bisectionSolver);
step.setLinearization(sumLinearization);
auto norm = EnergyNorm<Matrix, Vector>(energyNormMatrix);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment