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

Diff of /trunk/doc/examples/cookbook/example06.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 44  import os, sys Line 44  import os, sys
44    
45  ########################################################MPI WORLD CHECK  ########################################################MPI WORLD CHECK
46  if getMPISizeWorld() > 1:  if getMPISizeWorld() > 1:
47      import sys          import sys
48      print("This example will not run in an MPI world.")          print("This example will not run in an MPI world.")
49      sys.exit(0)          sys.exit(0)
50  #################################################ESTABLISHING VARIABLES  #################################################ESTABLISHING VARIABLES
51  # where to put output files  # where to put output files
52  save_path= os.path.join("data","example06")  save_path= os.path.join("data","example06")
# Line 73  p4=Point(0.0,    -2400.0, 0.0) Line 73  p4=Point(0.0,    -2400.0, 0.0)
73  p5=Point(2000.0, -2400.0, 0.0)  p5=Point(2000.0, -2400.0, 0.0)
74  p6=Point(3000.0, -6000.0, 0.0)  p6=Point(3000.0, -6000.0, 0.0)
75  p7=Point(5000.0, -2400.0, 0.0)  p7=Point(5000.0, -2400.0, 0.0)
76        
77  # Create TOP BLOCK  # Create TOP BLOCK
78  tbl1=Line(p0,p4)  tbl1=Line(p0,p4)
79  tbl2=Line(p4,p5)  tbl2=Line(p4,p5)

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

  ViewVC Help
Powered by ViewVC 1.1.26