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

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

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

revision 1122 by gross, Tue Mar 20 01:30:58 2007 UTC revision 1123 by gross, Thu May 3 04:13:52 2007 UTC
# Line 177  class Design(design.Design): Line 177  class Design(design.Design):
177                   out+="Volume(%s) = {%s};\n"%(p.getID(),p.getSurfaceLoop().getDirectedID())                   out+="Volume(%s) = {%s};\n"%(p.getID(),p.getSurfaceLoop().getDirectedID())
178    
179             elif isinstance(p, PropertySet):             elif isinstance(p, PropertySet):
180             dim=p.getDim()                 if p.getNumItems()>0:
181                 line="Physical "                dim=p.getDim()
182                 if dim==0:                    line="Physical "
183                     line+="Point"                    if dim==0:
184                 elif dim==1:                        line+="Point"
185                     line+="Line"                    elif dim==1:
186                 elif dim==2:                        line+="Line"
187                     line+="Surface"                    elif dim==2:
188                 else:                        line+="Surface"
189                     line+="Volume"                    else:
190                 out+=line+"(" + str(p.getID()) + ") = {"+self.__mkArgs(p.getItems())+"};\n"                        line+="Volume"
191                      out+=line+"(" + str(p.getID()) + ") = {"+self.__mkArgs(p.getItems())+"};\n"
192    
193             else:             else:
194                 raise TypeError("unable to pass %s object to gmsh."%str(type(p)))                 raise TypeError("unable to pass %s object to gmsh."%str(type(p)))

Legend:
Removed from v.1122  
changed lines
  Added in v.1123

  ViewVC Help
Powered by ViewVC 1.1.26