369 |
# Read the mesh file and define the 'finley' domain: |
# Read the mesh file and define the 'finley' domain: |
370 |
#mesh_file = "data/commemi1_te.fly" |
#mesh_file = "data/commemi1_te.fly" |
371 |
#domain = finley.ReadMesh(mesh_file, numDim=2) |
#domain = finley.ReadMesh(mesh_file, numDim=2) |
372 |
if escript.getEscriptParamInt('HAVE_GMSH'): |
if escript.getEscriptParamInt('GMSH_SUPPORT'): |
373 |
domain = generateCommemi1Mesh() |
domain = generateCommemi1Mesh() |
374 |
|
|
375 |
# Sounding frequencies (in Hz): |
# Sounding frequencies (in Hz): |
429 |
print("Direct solvers and multiple MPI processes are not currently supported") |
print("Direct solvers and multiple MPI processes are not currently supported") |
430 |
elif mt2d.MT_2D._solver == "DIRECT" and not escript.getEscriptParamInt('PASO_DIRECT'): |
elif mt2d.MT_2D._solver == "DIRECT" and not escript.getEscriptParamInt('PASO_DIRECT'): |
431 |
print("escript was not built with support for direct solvers, aborting") |
print("escript was not built with support for direct solvers, aborting") |
432 |
elif not escript.getEscriptParamInt('HAVE_GMSH'): |
elif not escript.getEscriptParamInt('GMSH_SUPPORT'): |
433 |
print("This example requires gmsh") |
print("This example requires gmsh") |
434 |
else: |
else: |
435 |
# Instantiate an MT_2D object with required & optional parameters: |
# Instantiate an MT_2D object with required & optional parameters: |