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() |