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

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

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

revision 4154 by jfenwick, Tue Jan 22 09:30:23 2013 UTC revision 4576 by sshaw, Mon Dec 9 23:35:30 2013 UTC
# Line 45  import pylab as pl #Plotting package Line 45  import pylab as pl #Plotting package
45    
46  ########################################################MPI WORLD CHECK  ########################################################MPI WORLD CHECK
47  if getMPISizeWorld() > 1:  if getMPISizeWorld() > 1:
48      import sys          import sys
49      print("This example will not run in an MPI world.")          print("This example will not run in an MPI world.")
50      sys.exit(0)          sys.exit(0)
51    
52  #################################################ESTABLISHING VARIABLES  #################################################ESTABLISHING VARIABLES
53  #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
54  #configuration    #configuration
55  modal=-1  modal=-1
56    
57  # the folder to put our outputs in, leave blank "" for script path -  # the folder to put our outputs in, leave blank "" for script path -
# Line 88  mysp = Spline(*tuple(x)) Line 88  mysp = Spline(*tuple(x))
88  # Start and end of material boundary.  # Start and end of material boundary.
89  x1=mysp.getStartPoint()  x1=mysp.getStartPoint()
90  x2=mysp.getEndPoint()  x2=mysp.getEndPoint()
91        
92  #  Create TOP BLOCK  #  Create TOP BLOCK
93  # lines  # lines
94  tbl1=Line(p0,x1)  tbl1=Line(p0,x1)

Legend:
Removed from v.4154  
changed lines
  Added in v.4576

  ViewVC Help
Powered by ViewVC 1.1.26