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

Annotation of /branches/domexper/dudley/test/python/run_linearPDEsOnDudley1.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3216 - (hide annotations)
Tue Sep 28 05:13:17 2010 UTC (8 years, 5 months ago) by jfenwick
File MIME type: text/x-python
File size: 2945 byte(s)
ElementFile does not use ReferenceElements anymore

1 phornby 1894
2     ########################################################
3     #
4 jfenwick 2881 # Copyright (c) 2003-2010 by University of Queensland
5 phornby 1894 # 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 jfenwick 2881 __copyright__="""Copyright (c) 2003-2010 by University of Queensland
15 phornby 1894 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 jfenwick 2344 __url__="https://launchpad.net/escript-finley"
21 phornby 1894
22     """
23 jfenwick 3087 Test suite for the linearPDE and pdetools test on dudley
24 phornby 1894
25 jfenwick 2625 :remark:
26 phornby 1894
27 jfenwick 2625 :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 phornby 1894 """
33    
34     __author__="Lutz Gross, l.gross@uq.edu.au"
35    
36     import os
37    
38     import unittest
39     from test_linearPDEs import Test_Poisson,Test_LinearPDE, Test_LinearPDE_noLumping, Test_TransportPDE
40     from test_assemblage import Test_assemblage_2Do1, Test_assemblage_2Do2, Test_assemblage_3Do1, Test_assemblage_3Do2, \
41     Test_assemblage_2Do1_Contact,Test_assemblage_2Do2_Contact, Test_assemblage_3Do1_Contact, Test_assemblage_3Do2_Contact
42     from test_pdetools import Test_pdetools, Test_pdetools_noLumping
43     from esys.escript import *
44 jfenwick 3216 from esys.dudley import Rectangle,Brick, ReadMesh
45 phornby 1894 import sys
46    
47    
48     try:
49 jfenwick 3085 DUDLEY_TEST_DATA=os.environ['DUDLEY_TEST_DATA']
50 phornby 1894 except KeyError:
51 jfenwick 3085 DUDLEY_TEST_DATA='.'
52 phornby 1894
53 jfenwick 3085 DUDLEY_TEST_MESH_PATH=os.path.join(DUDLEY_TEST_DATA,"data_meshes")
54 phornby 1894
55 artak 2999 NE=10 # number of element in each spatial direction (must be even)
56 phornby 1894
57 jfenwick 3114 class Test_LinearPDEOnDudleyRectOrder1(Test_LinearPDE,Test_pdetools,Test_assemblage_2Do1, Test_TransportPDE):
58 phornby 1894 RES_TOL=1.e-7
59     ABS_TOL=1.e-8
60     def setUp(self):
61     self.domain = Rectangle(NE,NE,1)
62 artak 2725 self.order = 1
63 phornby 1894 def tearDown(self):
64     del self.domain
65    
66 jfenwick 3114 class Test_LinearPDEOnDudleyBrickOrder1(Test_LinearPDE,Test_pdetools,Test_assemblage_3Do1, Test_TransportPDE):
67 phornby 1894 RES_TOL=1.e-7
68     ABS_TOL=1.e-8
69     def setUp(self):
70 jfenwick 3115 self.domain = Brick(NE,NE,NE,1)
71 artak 2725 self.order = 1
72     def tearDown(self):
73     del self.domain
74 phornby 1894
75    
76     if __name__ == '__main__':
77     suite = unittest.TestSuite()
78 jfenwick 3118 if True:
79 jfenwick 3114 suite.addTest(unittest.makeSuite(Test_LinearPDEOnDudleyRectOrder1))
80     suite.addTest(unittest.makeSuite(Test_LinearPDEOnDudleyBrickOrder1))
81 phornby 1894 else:
82 jfenwick 3118 suite.addTest(Test_LinearPDEOnDudleyBrickOrder1("test_assemblage_3D_solO1_coeffOFull_NEqu1_A_Const_typeStrong_comp20"))
83 phornby 1894 pass
84    
85     s=unittest.TextTestRunner(verbosity=2).run(suite)
86     if not s.wasSuccessful(): sys.exit(1)
87    

Properties

Name Value
svn:mergeinfo /branches/lapack2681/finley/test/python/run_linearPDEsOnFinley1.py:2682-2741 /branches/restext/finley/test/python/run_linearPDEsOnFinley1.py:2610-2624 /branches/stage3.0/finley/test/python/run_linearPDEsOnFinley1.py:2569-2590 /release/3.0/finley/test/python/run_linearPDEsOnFinley1.py:2591-2601

  ViewVC Help
Powered by ViewVC 1.1.26