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

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

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

revision 2632 by ahallam, Wed Aug 26 22:18:19 2009 UTC revision 2648 by jfenwick, Mon Sep 7 00:06:15 2009 UTC
# Line 28  from esys.escript import * # This import Line 28  from esys.escript import * # This import
28  from esys.escript.linearPDEs import LinearPDE # This defines LinearPDE as LinearPDE  from esys.escript.linearPDEs import LinearPDE # This defines LinearPDE as LinearPDE
29  from esys.finley import Rectangle # This imports the rectangle domain function from finley  from esys.finley import Rectangle # This imports the rectangle domain function from finley
30  import os #This package is necessary to handle saving our data.  import os #This package is necessary to handle saving our data.
31    from cblib import needdirs
32    
33    
34  ##ESTABLISHING VARIABLES  ##ESTABLISHING VARIABLES
# Line 47  print "Expected Number of Output Files i Line 47  print "Expected Number of Output Files i
47    
48  i=0 #loop counter  i=0 #loop counter
49  save_path = "data/onedheatdiff" #the folder to put our outputs in, leave blank "" for script path - note this folder path must exist to work  save_path = "data/onedheatdiff" #the folder to put our outputs in, leave blank "" for script path - note this folder path must exist to work
50    needdirs([save_path])
51    
52  #... generate domain ...  #... generate domain ...
53  rod = Rectangle(l0=0.05,l1=.01,n0=500, n1=1)  rod = Rectangle(l0=0.05,l1=.01,n0=500, n1=1)

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

  ViewVC Help
Powered by ViewVC 1.1.26