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

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

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

revision 3891 by ahallam, Wed Dec 8 01:09:06 2010 UTC revision 3892 by jfenwick, Tue Apr 10 08:57:23 2012 UTC
# Line 40  import numpy as np Line 40  import numpy as np
40  ########################################################MPI WORLD CHECK  ########################################################MPI WORLD CHECK
41  if getMPISizeWorld() > 1:  if getMPISizeWorld() > 1:
42      import sys      import sys
43      print "This example will not run in an MPI world."      print("This example will not run in an MPI world.")
44      sys.exit(0)      sys.exit(0)
45    
46  # make sure path exists  # make sure path exists
# Line 51  mkDir(save_path) Line 51  mkDir(save_path)
51  # Time related variables.  # Time related variables.
52  testing=True  testing=True
53  if testing:  if testing:
54      print 'This script is currently optioned for testing..'      print('This script is currently optioned for testing..')
55      print "Try changing the testing variable to False for more iterations."      print("Try changing the testing variable to False for more iterations.")
56      xwidth=40.      xwidth=40.
57      ywidth=40.      ywidth=40.
58      depth=20.      depth=20.

Legend:
Removed from v.3891  
changed lines
  Added in v.3892

  ViewVC Help
Powered by ViewVC 1.1.26