Skip to content
Snippets Groups Projects

Version 1.2

Merged Adrien Crovato requested to merge adri into master
7 files
+ 46
31
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 3
2
@@ -17,7 +17,7 @@
## Initialize SDPM
# Adrien Crovato
def initSdpm(cfg, use_ad=False):
def init_sdpm(cfg, use_ad=False):
"""Initialize SDPM components
Parameters
@@ -82,7 +82,8 @@ def initSdpm(cfg, use_ad=False):
_pbl.addBody(_bdy)
# Solver
_sol = sdpm.Solver(_pbl)
vrb = cfg['Verb_lvl'] if 'Verb_lvl' in cfg else 1
_sol = sdpm.Solver(_pbl, vrb)
_adj = sdpm.Adjoint(_sol) if use_ad else None
# Return
Loading