/[escript]/trunk/finley/test/python/run_linearPDEsOnFinley1_3D2_part3-3.py
ViewVC logotype

Annotation of /trunk/finley/test/python/run_linearPDEsOnFinley1_3D2_part3-3.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4984 - (hide annotations)
Mon Jun 2 02:50:34 2014 UTC (5 years, 1 month ago) by sshaw
File MIME type: text/x-python
File size: 2097 byte(s)
revamping testrunners, now uses automated discovery and allows running specific tests without modifying files (see escriptcore/py_src/testing.py for more info/examples)

1 jfenwick 4003
2     ########################################################
3     #
4 jfenwick 4657 # Copyright (c) 2003-2014 by University of Queensland
5 jfenwick 4003 # 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 jfenwick 4657 __copyright__="""Copyright (c) 2003-2014 by University of Queensland
15 jfenwick 4003 Earth Systems Science Computational Center (ESSCC)
16     http://www.uq.edu.au
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     Test suite for the linearPDE and pdetools test on finley
24    
25     :remark:
26    
27     :var __author__: name of author
28     :var __licence__: licence agreement
29     :var __url__: url entry point on documentation
30     :var __version__: version
31     :var __date__: date of the version
32     """
33    
34     __author__="Lutz Gross, l.gross@uq.edu.au"
35    
36     import os
37    
38 jfenwick 4938 import esys.escriptcore.utestselect as unittest
39 sshaw 4984 from esys.escriptcore.testing import *
40 jfenwick 4003 #from test_linearPDEs import Test_Poisson,Test_LinearPDE, Test_LinearPDE_noLumping, Test_TransportPDE
41     from test_assemblage_3Do2 import Test_assemblage_3Do2_cont2
42     #from test_pdetools import Test_pdetools, Test_pdetools_noLumping
43     #from esys.escript import *
44     from esys.finley import Rectangle,Brick,JoinFaces, ReadMesh
45     import sys
46    
47    
48     try:
49     FINLEY_TEST_DATA=os.environ['FINLEY_TEST_DATA']
50     except KeyError:
51     FINLEY_TEST_DATA='.'
52    
53     FINLEY_TEST_MESH_PATH=os.path.join(FINLEY_TEST_DATA,"data_meshes")
54    
55     NE=10 # number of element in each spatial direction (must be even)
56    
57    
58     class Test_LinearPDEOnFinleyHex3DOrder2_part3_3(Test_assemblage_3Do2_cont2):
59     RES_TOL=1.e-7
60     ABS_TOL=1.e-8
61     def setUp(self):
62     self.domain = Brick(NE,NE,NE,2)
63     self.order = 2
64     def tearDown(self):
65     del self.domain
66    
67     if __name__ == '__main__':
68 sshaw 4984 run_tests(__name__, exit_on_failure=True)
69 jfenwick 4003

  ViewVC Help
Powered by ViewVC 1.1.26