/[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 2647 by ahallam, Thu Sep 3 02:20:33 2009 UTC revision 2648 by jfenwick, Mon Sep 7 00:06:15 2009 UTC
# Line 43  from esys.escript.unitsSI import * Line 43  from esys.escript.unitsSI import *
43  import pylab as pl #Plotting package.  import pylab as pl #Plotting package.
44  import numpy as np #Array package.  import numpy as np #Array package.
45  import os #This package is necessary to handle saving our data.  import os #This package is necessary to handle saving our data.
46  from cblib import toXYTuple  from cblib import toXYTuple, needdirs
47    
48  #################################################ESTABLISHING VARIABLES  #################################################ESTABLISHING VARIABLES
49  #PDE related  #PDE related
# Line 81  print "Step size is: ", h/(24.*60*60), " Line 81  print "Step size is: ", h/(24.*60*60), "
81  i=0 #loop counter  i=0 #loop counter
82  #the folder to put our outputs in, leave blank "" for script path  #the folder to put our outputs in, leave blank "" for script path
83  save_path="data/twodheatdiff"  save_path="data/twodheatdiff"
84    needdirs([save_path])
85  ########## note this folder path must exist to work ###################  ########## note this folder path must exist to work ###################
86    
87  ################################################ESTABLISHING PARAMETERS  ################################################ESTABLISHING PARAMETERS

Legend:
Removed from v.2647  
changed lines
  Added in v.2648

  ViewVC Help
Powered by ViewVC 1.1.26