/[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 1003 by gross, Thu Mar 1 01:53:37 2007 UTC revision 1005 by ksteube, Fri Mar 2 06:50:48 2007 UTC
# Line 127  class Design(design.Design): Line 127  class Design(design.Design):
127          a mesh file name in gmsh format is returned.          a mesh file name in gmsh format is returned.
128          """          """
129          open(self.getScriptFileName(),"w").write(self.getScriptString())          open(self.getScriptFileName(),"w").write(self.getScriptString())
130          os.system(self.getCommandString())          cmd = self.getCommandString()
131          return self.getMeshFileName()          ret = os.system(cmd) / 256
132        if ret > 0:
133          raise RuntimeError, "Could not build mesh: %s"%cmd
134        else:
135              return self.getMeshFileName()

Legend:
Removed from v.1003  
changed lines
  Added in v.1005

  ViewVC Help
Powered by ViewVC 1.1.26