/[escript]/trunk/finley/py_src/factorywrappers.py
ViewVC logotype

Contents of /trunk/finley/py_src/factorywrappers.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3892 - (show annotations)
Tue Apr 10 08:57:23 2012 UTC (7 years ago) by jfenwick
File MIME type: text/x-python
File size: 1959 byte(s)
Merged changes across from the attempt2 branch.
This version builds and passes python2 tests.
It also passes most python3 tests.



1
2 ########################################################
3 #
4 # Copyright (c) 2011 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) 2011 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
23 from .finleycpp import __Brick_driver, __Rectangle_driver
24
25
26 def Rectangle(n0=1, n1=1, order=1, l0=1.0, l1=1.0, periodic0=False, periodic1=False, integrationOrder=-1,
27 reducedIntegrationOrder=-1, useElementsOnFace=0, useFullElementOrder=0, optimize=0, **kwargs):
28 points=[]
29 tags=[]
30 if 'diracPoints' in kwargs:
31 points=kwargs['diracPoints']
32 if 'diracTags' in kwargs:
33 tags=kwargs['diracTags']
34 return __Rectangle_driver([n0, n1, order, l0, l1, periodic0, periodic1, integrationOrder,
35 reducedIntegrationOrder, useElementsOnFace, useFullElementOrder, optimize, points, tags])
36
37 def Brick(n0=1, n1=1, n2=1, order=1, l0=1.0, l1=1.0, l2=1.0, periodic0=0, periodic1=0, periodic2=0,
38 integrationOrder=-1, reducedIntegrationOrder=-1, useElementsOnFace=0, useFullElementOrder=0,
39 optimize=0, **kwargs):
40 points=[]
41 tags=[]
42 if 'diracPoints' in kwargs:
43 points=kwargs['diracPoints']
44 if 'diracTags' in kwargs:
45 tags=kwargs['diracTags']
46 return __Brick_driver([n0, n1, n2, order, l0, l1, l2, periodic0, periodic1, periodic2,
47 integrationOrder, reducedIntegrationOrder, useElementsOnFace, useFullElementOrder,
48 optimize, points, tags])

  ViewVC Help
Powered by ViewVC 1.1.26