/[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 2314 by gross, Tue Mar 17 04:16:24 2009 UTC revision 2344 by jfenwick, Mon Mar 30 02:13:58 2009 UTC
# Line 17  http://www.uq.edu.au/esscc Line 17  http://www.uq.edu.au/esscc
17  Primary Business: Queensland, Australia"""  Primary Business: Queensland, Australia"""
18  __license__="""Licensed under the Open Software License version 3.0  __license__="""Licensed under the Open Software License version 3.0
19  http://www.opensource.org/licenses/osl-3.0.php"""  http://www.opensource.org/licenses/osl-3.0.php"""
20  __url__="http://www.uq.edu.au/esscc/escript-finley"  __url__="https://launchpad.net/escript-finley"
21    
22  """  """
23  mesh generation using gmsh  mesh generation using gmsh
# Line 138  class Design(design.Design): Line 138  class Design(design.Design):
138          implementation a mesh file name in gmsh format is returned.          implementation a mesh file name in gmsh format is returned.
139          """          """
140          cmd = self.getCommandString()          cmd = self.getCommandString()
141          if getMPIRankWorld():          if getMPIRankWorld() == 0:
142              open(self.getScriptFileName(),"w").write(self.getScriptString())              open(self.getScriptFileName(),"w").write(self.getScriptString())
143              ret = os.system(cmd) / 256              ret = os.system(cmd) / 256
144          else:          else:

Legend:
Removed from v.2314  
changed lines
  Added in v.2344

  ViewVC Help
Powered by ViewVC 1.1.26