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

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

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

revision 4575 by jfenwick, Tue Jan 22 09:30:23 2013 UTC revision 4576 by sshaw, Mon Dec 9 23:35:30 2013 UTC
# Line 48  import numpy as np Line 48  import numpy as np
48    
49  ########################################################MPI WORLD CHECK  ########################################################MPI WORLD CHECK
50  if getMPISizeWorld() > 1:  if getMPISizeWorld() > 1:
51      import sys          import sys
52      print("This example will not run in an MPI world.")          print("This example will not run in an MPI world.")
53      sys.exit(0)          sys.exit(0)
54    
55  #################################################ESTABLISHING VARIABLES  #################################################ESTABLISHING VARIABLES
56  #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
57  #configuration    #configuration
58  modal=-1  modal=-1
59    
60  # 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 91  mysp = Spline(*tuple(x)) Line 91  mysp = Spline(*tuple(x))
91  # Start and end of material boundary.  # Start and end of material boundary.
92  x1=mysp.getStartPoint()  x1=mysp.getStartPoint()
93  x2=mysp.getEndPoint()  x2=mysp.getEndPoint()
94        
95  #  Create TOP BLOCK  #  Create TOP BLOCK
96  # lines  # lines
97  tbl1=Line(p0,x1)  tbl1=Line(p0,x1)

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

  ViewVC Help
Powered by ViewVC 1.1.26