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

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

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

revision 2903 by jfenwick, Thu Jan 28 02:03:15 2010 UTC revision 2904 by gross, Tue Feb 2 04:21:52 2010 UTC
# Line 47  import pylab as pl #Plotting package. Line 47  import pylab as pl #Plotting package.
47  import numpy as np #Array package.  import numpy as np #Array package.
48  import os #This package is necessary to handle saving our data.  import os #This package is necessary to handle saving our data.
49  from cblib2 import toXYTuple  from cblib2 import toXYTuple
 from cblib1 import needdirs  
50    
51  ########################################################MPI WORLD CHECK  ########################################################MPI WORLD CHECK
52  if getMPISizeWorld() > 1:  if getMPISizeWorld() > 1:
# Line 91  print "Step size is: ", h/(24.*60*60), " Line 90  print "Step size is: ", h/(24.*60*60), "
90  i=0 #loop counter  i=0 #loop counter
91  #the folder to put our outputs in, leave blank "" for script path  #the folder to put our outputs in, leave blank "" for script path
92  save_path= os.path.join("data","twodheatdiff")  save_path= os.path.join("data","twodheatdiff")
93  needdirs([save_path])  mkDir(save_path)
94  ########## note this folder path must exist to work ###################  ########## note this folder path must exist to work ###################
95    
96  ################################################ESTABLISHING PARAMETERS  ################################################ESTABLISHING PARAMETERS

Legend:
Removed from v.2903  
changed lines
  Added in v.2904

  ViewVC Help
Powered by ViewVC 1.1.26