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

Diff of /trunk/doc/examples/cookbook/twodheatdiff.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 29  from esys.escript.linearPDEs import Line Line 29  from esys.escript.linearPDEs import Line
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    
32    from cblib import needdirs
33    
34    
35  ##ESTABLISHING VARIABLES  ##ESTABLISHING VARIABLES
# Line 68  print "Step size is: ", h/(24.*60*60), " Line 69  print "Step size is: ", h/(24.*60*60), "
69    
70  i=0 #loop counter  i=0 #loop counter
71  save_path = "data/twodheatdiff" #the folder to put our outputs in, leave blank "" for script path - note this folder path must exist to work  save_path = "data/twodheatdiff" #the folder to put our outputs in, leave blank "" for script path - note this folder path must exist to work
72    needdirs([save_path])
73    
74  #... generate domain ...  #... generate domain ...
75  model = Rectangle(l0=mx,l1=my,n0=ndx, n1=ndy)  model = Rectangle(l0=mx,l1=my,n0=ndx, n1=ndy)

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

  ViewVC Help
Powered by ViewVC 1.1.26