/[escript]/trunk/pycad/py_src/gmshrunner_ser.py_
ViewVC logotype

Contents of /trunk/pycad/py_src/gmshrunner_ser.py_

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3911 - (show annotations)
Thu Jun 14 01:01:03 2012 UTC (8 years, 8 months ago) by jfenwick
File size: 1363 byte(s)
Copyright changes
1 # -*- coding: utf-8 -*-
2
3 ########################################################
4 #
5 # Copyright (c) 2003-2012 by University of Queensland
6 # Earth Systems Science Computational Center (ESSCC)
7 # http://www.uq.edu.au/esscc
8 #
9 # Primary Business: Queensland, Australia
10 # Licensed under the Open Software License version 3.0
11 # http://www.opensource.org/licenses/osl-3.0.php
12 #
13 ########################################################
14
15 __copyright__="""Copyright (c) 2003-2012 by University of Queensland
16 Earth Systems Science Computational Center (ESSCC)
17 http://www.uq.edu.au/esscc
18 Primary Business: Queensland, Australia"""
19 __license__="""Licensed under the Open Software License version 3.0
20 http://www.opensource.org/licenses/osl-3.0.php"""
21 __url__="https://launchpad.net/escript-finley"
22
23 """
24 serial gmsh runner
25
26 :var __author__: name of author
27 :var __copyright__: copyrights
28 :var __license__: licence agreement
29 :var __url__: url entry point on documentation
30 :var __version__: version
31 :var __date__: date of the version
32 """
33
34 __author__="Lutz Gross, l.gross@uq.edu.au"
35
36 from esys.escript import getMPIWorldMax, getMPIRankWorld
37
38 def runGmsh(args):
39 if getMPIRankWorld() == 0:
40 import subprocess
41 try:
42 ret = subprocess.call(args) / 256
43 except:
44 ret = 1
45 else:
46 ret = 0
47 ret=getMPIWorldMax(ret)
48 return ret
49

  ViewVC Help
Powered by ViewVC 1.1.26