/[escript]/trunk/dudley/test/python/run_linearPDEsOnDudley1.py
ViewVC logotype

Contents of /trunk/dudley/test/python/run_linearPDEsOnDudley1.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5706 - (show annotations)
Mon Jun 29 03:41:36 2015 UTC (4 years, 2 months ago) by sshaw
File MIME type: text/x-python
File size: 2667 byte(s)
all python files now force use of python3 prints and division syntax to stop sneaky errors appearing in py3 environs
1
2 ########################################################
3 #
4 # Copyright (c) 2003-2015 by The University of Queensland
5 # Earth Systems Science Computational Center (ESSCC)
6 # http://www.uq.edu.au
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 from __future__ import print_function, division
15
16 __copyright__="""Copyright (c) 2003-2015 by The University of Queensland
17 Earth Systems Science Computational Center (ESSCC)
18 http://www.uq.edu.au
19 Primary Business: Queensland, Australia"""
20 __license__="""Licensed under the Open Software License version 3.0
21 http://www.opensource.org/licenses/osl-3.0.php"""
22 __url__="https://launchpad.net/escript-finley"
23
24 """
25 Test suite for the linearPDE and pdetools test on dudley
26
27 :remark:
28
29 :var __author__: name of author
30 :var __licence__: licence agreement
31 :var __url__: url entry point on documentation
32 :var __version__: version
33 :var __date__: date of the version
34 """
35
36 __author__="Lutz Gross, l.gross@uq.edu.au"
37
38 import os
39
40 import esys.escriptcore.utestselect as unittest
41 from esys.escriptcore.testing import *
42 from test_linearPDEs import Test_Poisson,Test_LinearPDE, Test_LinearPDE_noLumping, Test_TransportPDE
43 from test_assemblage import Test_assemblage_2Do1, Test_assemblage_2Do2, Test_assemblage_3Do1, Test_assemblage_3Do2, \
44 Test_assemblage_2Do1_Contact,Test_assemblage_2Do2_Contact, Test_assemblage_3Do1_Contact, Test_assemblage_3Do2_Contact
45 from test_pdetools import Test_pdetools, Test_pdetools_noLumping
46 from esys.escript import *
47 from esys.dudley import Rectangle,Brick, ReadMesh
48 import sys
49
50
51 try:
52 DUDLEY_TEST_DATA=os.environ['DUDLEY_TEST_DATA']
53 except KeyError:
54 DUDLEY_TEST_DATA='.'
55
56 DUDLEY_TEST_MESH_PATH=os.path.join(DUDLEY_TEST_DATA,"data_meshes")
57
58 NE=10 # number of element in each spatial direction (must be even)
59
60 class Test_LinearPDEOnDudleyRectOrder1(Test_LinearPDE,Test_pdetools,Test_assemblage_2Do1, Test_TransportPDE):
61 RES_TOL=1.e-7
62 ABS_TOL=1.e-8
63 def setUp(self):
64 self.domain = Rectangle(NE,NE,1)
65 self.order = 1
66 def tearDown(self):
67 del self.domain
68
69 class Test_LinearPDEOnDudleyBrickOrder1(Test_LinearPDE,Test_pdetools,Test_assemblage_3Do1, Test_TransportPDE):
70 RES_TOL=1.e-7
71 ABS_TOL=1.e-8
72 def setUp(self):
73 self.domain = Brick(NE,NE,NE,1)
74 self.order = 1
75 def tearDown(self):
76 del self.domain
77
78
79 if __name__ == '__main__':
80 run_tests(__name__, exit_on_failure=True)
81

Properties

Name Value
svn:mergeinfo /branches/4.0fordebian/dudley/test/python/run_linearPDEsOnDudley1.py:5567-5588 /branches/diaplayground/dudley/test/python/run_linearPDEsOnDudley1.py:4940-5147 /branches/lapack2681/finley/test/python/run_linearPDEsOnFinley1.py:2682-2741 /branches/pasowrap/dudley/test/python/run_linearPDEsOnDudley1.py:3661-3674 /branches/py3_attempt2/dudley/test/python/run_linearPDEsOnDudley1.py:3871-3891 /branches/restext/finley/test/python/run_linearPDEsOnFinley1.py:2610-2624 /branches/ripleygmg_from_3668/dudley/test/python/run_linearPDEsOnDudley1.py:3669-3791 /branches/stage3.0/finley/test/python/run_linearPDEsOnFinley1.py:2569-2590 /branches/symbolic_from_3470/dudley/test/python/run_linearPDEsOnDudley1.py:3471-3974 /branches/symbolic_from_3470/ripley/test/python/dudley/test/python/run_linearPDEsOnDudley1.py:3517-3974 /release/3.0/finley/test/python/run_linearPDEsOnFinley1.py:2591-2601 /release/4.0/dudley/test/python/run_linearPDEsOnDudley1.py:5380-5406 /trunk/ripley/test/python/dudley/test/python/run_linearPDEsOnDudley1.py:3480-3515

  ViewVC Help
Powered by ViewVC 1.1.26