Skip to content
Snippets Groups Projects
Commit e252609d authored by Boman Romain's avatar Boman Romain
Browse files

add use_gmshOld option

parent d86bd24e
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,9 @@ def parms(d={}):
p['tolNR'] = 1e-6 # [-] equilibrium tolerance
p['dt0'] = 1.0 # [s] time step size
# gmsh toolbox
p['use_gmshOld'] = True # use old gmsh interface
p.update(d)
return p
......@@ -283,8 +286,10 @@ def import_mesh(domain, filename):
raise Exception(f'Unknown extension: {ext}, please use .ply, .stl, .msh or .geo')
print(f'importing {mandible_gmsh}')
# from toolbox.gmsh import GmshImport # FIXME: does not work!
from toolbox.gmshOld import GmshImport
if p['use_gmshOld']:
from toolbox.gmshOld import GmshImport
else:
from toolbox.gmsh import GmshImport # FIXME: does not work!
f = os.path.join(os.path.dirname(__file__), mandible_gmsh)
mesher = GmshImport(f, domain)
mesher.execute()
......
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