Skip to content
Snippets Groups Projects
Commit 02767cab authored by Paul Dechamps's avatar Paul Dechamps :speech_balloon:
Browse files

(feat) Add the ability to use tbox SparseLU solver from the core api

parent 04ecc2c9
No related branches found
No related tags found
No related merge requests found
Pipeline #48029 passed
...@@ -249,6 +249,8 @@ def init_dart(cfg, scenario='aerodynamic', task='analysis', viscous=False): ...@@ -249,6 +249,8 @@ def init_dart(cfg, scenario='aerodynamic', task='analysis', viscous=False):
grst = cfg['G_restart'] if 'G_restart' in cfg else 50 grst = cfg['G_restart'] if 'G_restart' in cfg else 50
gtol = cfg['G_tol'] if 'G_tol' in cfg else 1e-5 gtol = cfg['G_tol'] if 'G_tol' in cfg else 1e-5
linsol = tbox.Gmres(gfil, 1e-6, grst, gtol, 200) linsol = tbox.Gmres(gfil, 1e-6, grst, gtol, 200)
elif cfg['LSolver'] == 'SparseLu':
linsol = tbox.SparseLu()
else: else:
raise RuntimeError('Available linear solvers: PARDISO, MUMPS or GMRES, but ' + cfg['LSolver'] + ' was given!\n') raise RuntimeError('Available linear solvers: PARDISO, MUMPS or GMRES, but ' + cfg['LSolver'] + ' was given!\n')
# initialize the nonlinear (outer) solver # initialize the nonlinear (outer) solver
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment