/[escript]/trunk/escript/py_src/__init__.py
ViewVC logotype

Contents of /trunk/escript/py_src/__init__.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3975 - (show annotations)
Thu Sep 20 01:54:06 2012 UTC (7 years, 1 month ago) by caltinay
File MIME type: text/x-python
File size: 1451 byte(s)
Merged symbolic branch into trunk. Curious what daniel and spartacus have to
say...

1
2 ########################################################
3 #
4 # Copyright (c) 2003-2012 by University of Queensland
5 # Earth Systems Science Computational Center (ESSCC)
6 # http://www.uq.edu.au/esscc
7 #
8 # Primary Business: Queensland, Australia
9 # Licensed under the Open Software License version 3.0
10 # http://www.opensource.org/licenses/osl-3.0.php
11 #
12 ########################################################
13
14 __copyright__="""Copyright (c) 2003-2012 by University of Queensland
15 Earth Systems Science Computational Center (ESSCC)
16 http://www.uq.edu.au/esscc
17 Primary Business: Queensland, Australia"""
18 __license__="""Licensed under the Open Software License version 3.0
19 http://www.opensource.org/licenses/osl-3.0.php"""
20 __url__="https://launchpad.net/escript-finley"
21
22 try:
23 # this is required so newer intel MKL libraries find necessary symbols
24 import ctypes, sys
25 sys.setdlopenflags(sys.getdlopenflags()|ctypes.RTLD_GLOBAL)
26 except:
27 pass
28
29 from .escript import *
30 from .util import *
31 from .nonlinearPDE import NonlinearPDE
32 from .datamanager import DataManager
33
34 # To have this function called automatically
35 def escriptLogMemoryStatusNow(prefix='memescript'):
36 import os
37 if os.name=='posix':
38 pid=os.getpid()
39 os.system("cat /proc/%d/status > %s.%d"%(pid,prefix,pid))
40
41 try:
42 import os
43 if 'escriptExitProfiling' in os.environ:
44 import atexit
45 atexit.register(escriptLogMemoryStatusNow)
46 except:
47 pass
48

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26