@@ -83,13 +83,13 @@ def test_permeation_problem(mesh_size=1001):
8383 ]
8484
8585 my_model .settings = F .Settings (
86- atol = 1e10 ,
86+ atol = 1e2 ,
8787 rtol = 1e-10 ,
8888 max_iterations = 30 ,
8989 final_time = 50 ,
9090 )
9191
92- my_model .settings .stepsize = F .Stepsize (initial_value = 1 / 20 )
92+ my_model .settings .stepsize = F .Stepsize (initial_value = 0.3 )
9393
9494 my_model .initialise ()
9595
@@ -101,17 +101,6 @@ def test_permeation_problem(mesh_size=1001):
101101 opts [f"{ option_prefix } ksp_type" ] = "cg"
102102 opts [f"{ option_prefix } pc_type" ] = "gamg"
103103 ksp .setFromOptions ()
104- elif Version (dolfinx .__version__ ) > Version ("0.9.0" ):
105- snes = my_model .solver .solver
106- opts = PETSc .Options ()
107- option_prefix = snes .getOptionsPrefix ()
108- opts [f"{ option_prefix } snes_atol" ] = 0
109- opts [f"{ option_prefix } snes_rtol" ] = 0
110- opts [f"{ option_prefix } snes_stol" ] = 1e-8
111- opts [f"{ option_prefix } snes_max_it" ] = 30
112- opts [f"{ option_prefix } ksp_type" ] = "cg"
113- opts [f"{ option_prefix } pc_type" ] = "gamg"
114- snes .setFromOptions ()
115104
116105 my_model .run ()
117106
@@ -196,13 +185,13 @@ def test_permeation_problem_multi_volume(tmp_path):
196185 ]
197186
198187 my_model .settings = F .Settings (
199- atol = 1e10 ,
188+ atol = 1e2 ,
200189 rtol = 1e-10 ,
201190 max_iterations = 30 ,
202191 final_time = 50 ,
203192 )
204193
205- my_model .settings .stepsize = F .Stepsize (initial_value = 1 / 20 )
194+ my_model .settings .stepsize = F .Stepsize (initial_value = 0.4 )
206195
207196 my_model .initialise ()
208197
@@ -215,17 +204,6 @@ def test_permeation_problem_multi_volume(tmp_path):
215204 opts [f"{ option_prefix } pc_type" ] = "gamg"
216205 opts [f"{ option_prefix } pc_factor_mat_solver_type" ] = "mumps"
217206 ksp .setFromOptions ()
218- elif Version (dolfinx .__version__ ) > Version ("0.9.0" ):
219- snes = my_model .solver .solver
220- opts = PETSc .Options ()
221- option_prefix = snes .getOptionsPrefix ()
222- opts [f"{ option_prefix } snes_atol" ] = 0
223- opts [f"{ option_prefix } snes_rtol" ] = 0
224- opts [f"{ option_prefix } snes_stol" ] = 1e-8
225- opts [f"{ option_prefix } ksp_type" ] = "cg"
226- opts [f"{ option_prefix } pc_type" ] = "gamg"
227- opts [f"{ option_prefix } pc_factor_mat_solver_type" ] = "mumps"
228- snes .setFromOptions ()
229207
230208 my_model .run ()
231209
0 commit comments