/[escript]/branches/symbolic_from_3470/escript/py_src/symbolic/__init__.py
ViewVC logotype

Contents of /branches/symbolic_from_3470/escript/py_src/symbolic/__init__.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3631 - (show annotations)
Thu Oct 20 03:12:46 2011 UTC (7 years, 6 months ago) by caltinay
File MIME type: text/x-python
File size: 1353 byte(s)
Fix compatibility with latest sympy version.

1
2 ########################################################
3 #
4 # Copyright (c) 2003-2010 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-2010 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 from symbols import *
23 from evaluator import *
24 from pretty import pretty_print, pprint
25 import functions as symfn
26
27 # prefer escript's implementation of functions such as 'sign' etc.
28 from sympy.utilities.lambdify import MODULES
29 ESCRIPT_NAMESPACE = {}
30 ESCRIPT_DEFAULT = {}
31 ESCRIPT_TRANSLATIONS = {
32 #"ln":"log",
33 }
34
35 if len(MODULES['math'])==3:
36 MODULES['escript']=(ESCRIPT_NAMESPACE, ESCRIPT_TRANSLATIONS,('from esys.escript import *',))
37 else:
38 MODULES['escript']=(ESCRIPT_NAMESPACE, ESCRIPT_DEFAULT, ESCRIPT_TRANSLATIONS,('from esys.escript import *',))
39
40 #
41 # vim: expandtab shiftwidth=4:

  ViewVC Help
Powered by ViewVC 1.1.26