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

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

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

revision 2647 by ahallam, Wed Aug 26 22:18:19 2009 UTC revision 2648 by jfenwick, Mon Sep 7 00:06:15 2009 UTC
# Line 41  from esys.escript.unitsSI import * Line 41  from esys.escript.unitsSI import *
41  import pylab as pl #Plotting package.  import pylab as pl #Plotting package.
42  import numpy as np #Array package.  import numpy as np #Array package.
43  import os #This package is necessary to handle saving our data.  import os #This package is necessary to handle saving our data.
44    import cblib
45    
46    
47  #################################################ESTABLISHING VARIABLES  #################################################ESTABLISHING VARIABLES
48  #Domain related.  #Domain related.
# Line 67  print "Expected Number of time outputs i Line 69  print "Expected Number of time outputs i
69  i=0 #loop counter  i=0 #loop counter
70  #the folder to put our outputs in, leave blank "" for script path  #the folder to put our outputs in, leave blank "" for script path
71  save_path="data/onedheatdiff001"  save_path="data/onedheatdiff001"
72  ########## note this folder path must exist to work ###################  
73    #ensure the dir exists
74    cblib.needdirs([save_path, os.path.join(save_path,"tempT"), os.path.join(save_path, "totT")])
75    
76  ################################################ESTABLISHING PARAMETERS  ################################################ESTABLISHING PARAMETERS
77  #generate domain using rectangle  #generate domain using rectangle

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

  ViewVC Help
Powered by ViewVC 1.1.26