Skip to content

Commit

Permalink
added full snes parameters to test
Browse files Browse the repository at this point in the history
  • Loading branch information
dc-luo committed Jul 11, 2023
1 parent f8a53af commit 1f138b1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion soupy/test/test_nonlinearPDESolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,15 @@ def _solve_by_nonlinear_solver(self):
return u_fun, num_iter, converged

def _solve_by_nonlinear_snes_solver(self):
params = {'nonlinear_solver' : 'snes'}
params = {'nonlinear_solver': 'snes',
'snes_solver':
{
'linear_solver' : 'mumps',
'absolute_tolerance' : 1e-10,
'relative_tolerance' : 1e-10,
'maximum_iterations' : 20,
}
}
u_fun = dl.Function(self.Vh_STATE)
v = dl.TestFunction(self.Vh_STATE)
res_form = residual(u_fun, v)
Expand Down

0 comments on commit 1f138b1

Please sign in to comment.