Skip to content

Commit

Permalink
set the max iterations instead of setting tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
scottaiton committed Jul 10, 2024
1 parent d06e030 commit b46850e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit b46850e

Please sign in to comment.