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

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

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

revision 2903 by jfenwick, Thu Jan 28 02:03:15 2010 UTC revision 2904 by gross, Tue Feb 2 04:21:52 2010 UTC
# Line 34  from esys.escript.pdetools import Locato Line 34  from esys.escript.pdetools import Locato
34  from esys.escript import *  from esys.escript import *
35  from esys.escript.linearPDEs import LinearPDE  from esys.escript.linearPDEs import LinearPDE
36    
37    
38  # routine to find consecutive coordinates of a loop in pycad  # routine to find consecutive coordinates of a loop in pycad
39  def getLoopCoords(loop):  def getLoopCoords(loop):
40      # return all construction points of input      # return all construction points of input
# Line 289  def wavesolver2df(domain,h,tend,lam,mu,r Line 290  def wavesolver2df(domain,h,tend,lam,mu,r
290    
291     u_pc_data.close()     u_pc_data.close()
292    
 # joel wrote this to create directories for you  
 # It only needs to be this complicated to accomodate our  
 # automated tests  
 import os  
 def needdirs(dirlist):  
     for name in dirlist:  
         if name == '':  
             continue  
         if not os.path.exists(name):  
             try:  
                 os.makedirs(name)  
             except OSError:  
                 if not os.path.exists(save_path):  
                     raise  

Legend:
Removed from v.2903  
changed lines
  Added in v.2904

  ViewVC Help
Powered by ViewVC 1.1.26