/[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 4007 - (show annotations)
Tue Oct 2 02:12:01 2012 UTC (6 years, 11 months ago) by caltinay
File MIME type: text/x-python
File size: 1604 byte(s)
Doco updates.
Data source paddings now take x,y not xy,z as Z padding can be done by setting
vertical extents.

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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26