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

Diff of /trunk/doc/examples/cookbook/onedheatdiff_var001.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 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 58  print "Step size is: ", h/(24.*60*60), " Line 59  print "Step size is: ", h/(24.*60*60), "
59    
60  i=0 #loop counter  i=0 #loop counter
61  save_path = "data/onedheatdiff_var001" #the folder to put our outputs in, leave blank "" for script path - note this folder path must exist to work  save_path = "data/onedheatdiff_var001" #the folder to put our outputs in, leave blank "" for script path - note this folder path must exist to work
62    needdirs([save_path])
63  #... generate domain ...  #... generate domain ...
64  model = Rectangle(l0=mx,l1=my,n0=ndx, n1=ndy)  model = Rectangle(l0=mx,l1=my,n0=ndx, n1=ndy)
65  # extract finite points  # extract finite points

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

  ViewVC Help
Powered by ViewVC 1.1.26