/[escript]/trunk/doc/examples/cookbook/example05b.py
ViewVC logotype

Diff of /trunk/doc/examples/cookbook/example05b.py

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

revision 5774 by jfenwick, Fri Apr 24 01:36:26 2015 UTC revision 5775 by sshaw, Thu Jul 30 08:01:06 2015 UTC
# Line 41  from esys.escript import * Line 41  from esys.escript import *
41  from esys.escript.unitsSI import *  from esys.escript.unitsSI import *
42  from esys.escript.linearPDEs import LinearPDE  from esys.escript.linearPDEs import LinearPDE
43  from esys.escript.pdetools import Projector  from esys.escript.pdetools import Projector
44  from cblib import toRegGrid  from cblib import toRegGrid, HAVE_NATGRID
45  import pylab as pl #Plotting package  import pylab as pl #Plotting package
46    
47  try:  try:
# Line 56  if getMPISizeWorld() > 1: Line 56  if getMPISizeWorld() > 1:
56          import sys          import sys
57          print("This example will not run in an MPI world.")          print("This example will not run in an MPI world.")
58          sys.exit(0)          sys.exit(0)
59  if HAVE_FINLEY:  
60    if not HAVE_NATGRID:
61        print("This example requires natgrid to be available to matplotlib")
62    
63    
64    if HAVE_FINLEY and HAVE_NATGRID:
65      #################################################ESTABLISHING VARIABLES      #################################################ESTABLISHING VARIABLES
66      #set modal to 1 for a syncline or -1 for an anticline structural      #set modal to 1 for a syncline or -1 for an anticline structural
67      #configuration      #configuration

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

  ViewVC Help
Powered by ViewVC 1.1.26