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

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

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

revision 3430 by gross, Thu Jan 6 09:09:19 2011 UTC revision 3892 by jfenwick, Tue Apr 10 08:57:23 2012 UTC
# Line 49  import numpy as np Line 49  import numpy as np
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
# Line 101  pl.contourf(xi,yi,zi,10) Line 101  pl.contourf(xi,yi,zi,10)
101  pl.xlabel("Horizontal Displacement (m)")  pl.xlabel("Horizontal Displacement (m)")
102  pl.ylabel("Depth (m)")  pl.ylabel("Depth (m)")
103  pl.savefig(os.path.join(save_path,"Ucontour.png"))  pl.savefig(os.path.join(save_path,"Ucontour.png"))
104  print "Solution has been plotted  ..."  print("Solution has been plotted  ...")
105    
106  cut=int(len(xi)/2)  cut=int(len(xi)/2)
107    

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

  ViewVC Help
Powered by ViewVC 1.1.26