From b46850e27ee2ce058f1ffed81d6fe9d1bcf0f9e1 Mon Sep 17 00:00:00 2001 From: Scott Aiton Date: Wed, 10 Jul 2024 14:16:08 -0600 Subject: [PATCH] set the max iterations instead of setting tolerance --- .../fc2d_thunderegg/operators/fc2d_thunderegg_varpoisson.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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){