/[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 2248 by gross, Thu Feb 5 23:24:04 2009 UTC revision 2308 by gross, Mon Mar 16 01:20:56 2009 UTC
# Line 36  import design Line 36  import design
36  import tempfile  import tempfile
37  import os  import os
38  from primitives import Point, Spline, BezierCurve, BSpline, Line, Arc, CurveLoop, RuledSurface, PlaneSurface, SurfaceLoop, Volume, PropertySet, Ellipse  from primitives import Point, Spline, BezierCurve, BSpline, Line, Arc, CurveLoop, RuledSurface, PlaneSurface, SurfaceLoop, Volume, PropertySet, Ellipse
39    from esys.escript import getMPIWorldMax, getMPIRankWorld
40    
41  class Design(design.Design):  class Design(design.Design):
42      """      """
# Line 140  class Design(design.Design): Line 141  class Design(design.Design):
141          f.write(self.getScriptString())          f.write(self.getScriptString())
142          f.close()          f.close()
143          cmd = self.getCommandString()          cmd = self.getCommandString()
144          ret = os.system(cmd) / 256          if getMPIRankWorld():
145                ret = os.system(cmd) / 256
146            else:
147                ret=0
148            ret=getMPIWorldMax(ret)
149          if ret > 0:          if ret > 0:
150            raise RuntimeError, "Could not build mesh: %s"%cmd            raise RuntimeError, "Could not build mesh: %s"%cmd
151          else:          else:

Legend:
Removed from v.2248  
changed lines
  Added in v.2308

  ViewVC Help
Powered by ViewVC 1.1.26