/[escript]/trunk/pycad/py_src/extras.py
ViewVC logotype

Diff of /trunk/pycad/py_src/extras.py

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

revision 3773 by ahallam, Wed Dec 8 01:09:06 2010 UTC revision 3774 by jfenwick, Wed Jan 18 06:29:34 2012 UTC
# Line 141  def layer_cake(domain,xwidth,ywidth,dept Line 141  def layer_cake(domain,xwidth,ywidth,dept
141      if not hasattr(depths,"__len__"): depths = [ depths, ]      if not hasattr(depths,"__len__"): depths = [ depths, ]
142      ndepths=len(depths)      ndepths=len(depths)
143    
144      if domain.getDim() <> 3:      if domain.getDim() != 3:
145          raise TypeError("domain must be of dimension order 3.")                  raise TypeError("domain must be of dimension order 3.")        
146    
147      # Build the First Surface and add it to the domain      # Build the First Surface and add it to the domain

Legend:
Removed from v.3773  
changed lines
  Added in v.3774

  ViewVC Help
Powered by ViewVC 1.1.26