diff --git a/src/solvers/fc2d_thunderegg/operators/fc2d_thunderegg_varpoisson.cpp b/src/solvers/fc2d_thunderegg/operators/fc2d_thunderegg_varpoisson.cpp index 254ed768a..d64fb9ee7 100644 --- a/src/solvers/fc2d_thunderegg/operators/fc2d_thunderegg_varpoisson.cpp +++ b/src/solvers/fc2d_thunderegg/operators/fc2d_thunderegg_varpoisson.cpp @@ -397,10 +397,10 @@ void fc2d_thunderegg_varpoisson_solve(fclaw_global_t *glob) // set the patch solver Iterative::CG<2> patch_cg; patch_cg.setTolerance(mg_opt->patch_iter_tol); - patch_cg.setTolerance(mg_opt->patch_iter_max_it); + patch_cg.setMaxIterations(mg_opt->patch_iter_max_it); Iterative::BiCGStab<2> patch_bicg; patch_bicg.setTolerance(mg_opt->patch_iter_tol); - patch_bicg.setTolerance(mg_opt->patch_iter_max_it); + patch_bicg.setMaxIterations(mg_opt->patch_iter_max_it); Iterative::Solver<2>* patch_iterative_solver = nullptr; switch(mg_opt->patch_solver){