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

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

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

revision 900 by gross, Mon Nov 13 08:02:24 2006 UTC revision 901 by gross, Mon Nov 13 08:14:55 2006 UTC
# Line 89  class Design(object): Line 89  class Design(object):
89      def writeFinleyMesh(self,filename):      def writeFinleyMesh(self,filename):
90          mshname=tempfile.mkstemp(suffix=".msh")[1]          mshname=tempfile.mkstemp(suffix=".msh")[1]
91          exe=self.writeGmshMesh(mshname)          exe=self.writeGmshMesh(mshname)
92          f=open(mshname,"r")          convertGmshToFinley(open(mshname,"r"),open(filename,"w"),dim=self.getDim())
         line=f.readline().split()  
         while len(line)>0:  
            print line  
            line=f.readline().split()  
93          if not self.keepTmpFiles(): os.unlink(mshname)          if not self.keepTmpFiles(): os.unlink(mshname)
94          return exe          return exe
95    
96    def convertGmshToFinley(gmsh_file,finley_file,dim=3):
97            line=gmsh_file.readline().split()
98            while len(line)>0:
99               print line
100               line=gmsh_file.readline().split()

Legend:
Removed from v.900  
changed lines
  Added in v.901

  ViewVC Help
Powered by ViewVC 1.1.26