From c7acec114f48e44fa6ce7475994f91476cd996bb Mon Sep 17 00:00:00 2001 From: Jack Betteridge Date: Fri, 13 Sep 2024 21:30:38 +0100 Subject: [PATCH] More smothing to improve solutions --- tests/multigrid/test_poisson_gmg.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/multigrid/test_poisson_gmg.py b/tests/multigrid/test_poisson_gmg.py index 81f56acbfc..fa5178a135 100644 --- a/tests/multigrid/test_poisson_gmg.py +++ b/tests/multigrid/test_poisson_gmg.py @@ -5,6 +5,7 @@ def solver_parameters(solver_type): + max_its = 4 if solver_type == "mg": parameters = {"snes_type": "ksponly", "ksp_type": "preonly", @@ -12,7 +13,7 @@ def solver_parameters(solver_type): "pc_type": "mg", "pc_mg_type": "full", "mg_levels_ksp_type": "chebyshev", - "mg_levels_ksp_max_it": 3, + "mg_levels_ksp_max_it": max_its, "mg_levels_pc_type": "jacobi"} elif solver_type == "mgmatfree": parameters = {"snes_type": "ksponly", @@ -25,7 +26,7 @@ def solver_parameters(solver_type): "mg_coarse_pc_python_type": "firedrake.AssembledPC", "mg_coarse_assembled_pc_type": "lu", "mg_levels_ksp_type": "chebyshev", - "mg_levels_ksp_max_it": 3, + "mg_levels_ksp_max_it": max_its, "mg_levels_pc_type": "jacobi"} elif solver_type == "fas": parameters = {"snes_type": "fas", @@ -36,7 +37,7 @@ def solver_parameters(solver_type): "fas_coarse_redundant_pc_type": "lu", "fas_levels_snes_type": "ksponly", "fas_levels_ksp_type": "chebyshev", - "fas_levels_ksp_max_it": 3, + "fas_levels_ksp_max_it": max_its, "fas_levels_pc_type": "jacobi", "fas_levels_ksp_convergence_test": "skip", "snes_max_it": 1, @@ -57,7 +58,7 @@ def solver_parameters(solver_type): "npc_fas_coarse_snes_linesearch_type": "basic", "npc_fas_levels_snes_type": "ksponly", "npc_fas_levels_ksp_type": "chebyshev", - "npc_fas_levels_ksp_max_it": 3, + "npc_fas_levels_ksp_max_it": max_its, "npc_fas_levels_pc_type": "jacobi", "npc_fas_levels_ksp_convergence_test": "skip", "npc_snes_max_it": 1,