/[escript]/trunk/doc/examples/inversion/test_commemi4.py
ViewVC logotype

Diff of /trunk/doc/examples/inversion/test_commemi4.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5774 by sshaw, Fri Jul 17 01:06:22 2015 UTC revision 5775 by sshaw, Thu Jul 30 08:01:06 2015 UTC
# Line 446  mode = 'TE' Line 446  mode = 'TE'
446  # Read the mesh file and define the 'finley' domain:  # Read the mesh file and define the 'finley' domain:
447  #mesh_file = "commemi4_tm.fly"  #mesh_file = "commemi4_tm.fly"
448  #domain = finley.ReadMesh(mesh_file, numDim=2)  #domain = finley.ReadMesh(mesh_file, numDim=2)
449  domain=generateCommemi4Mesh()  if escript.getEscriptParamInt('GMSH_SUPPORT'):
450        domain=generateCommemi4Mesh()
451    
452  # Sounding frequencies (in Hz):  # Sounding frequencies (in Hz):
453  freq_def = {"high":1.0e+0,"low":1.0e-0,"step":1}  freq_def = {"high":1.0e+0,"low":1.0e-0,"step":1}
# Line 530  if mt2d.MT_2D._solver == "DIRECT" and es Line 531  if mt2d.MT_2D._solver == "DIRECT" and es
531      print("Direct solvers and multiple MPI processes are not currently supported")      print("Direct solvers and multiple MPI processes are not currently supported")
532  elif mt2d.MT_2D._solver == "DIRECT" and not escript.getEscriptParamInt('PASO_DIRECT'):  elif mt2d.MT_2D._solver == "DIRECT" and not escript.getEscriptParamInt('PASO_DIRECT'):
533      print("escript was not built with support for direct solvers, aborting")      print("escript was not built with support for direct solvers, aborting")
534    elif not escript.getEscriptParamInt('GMSH_SUPPORT'):
535        print("This example requires gmsh")
536  else:  else:
537    
538      # Instantiate an MT_2D object with required & optional parameters:      # Instantiate an MT_2D object with required & optional parameters:

Legend:
Removed from v.5774  
changed lines
  Added in v.5775

  ViewVC Help
Powered by ViewVC 1.1.26