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

Annotation of /trunk/dudley/test/python/run_linearPDEsOnDudley2.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4829 - (hide annotations)
Thu Apr 3 04:02:53 2014 UTC (5 years, 6 months ago) by caltinay
File MIME type: text/x-python
File size: 3044 byte(s)
checkpointing some SparseMatrix cleanup.

1 phornby 1894
2     ########################################################
3     #
4 jfenwick 4657 # Copyright (c) 2003-2014 by University of Queensland
5 phornby 1894 # Earth Systems Science Computational Center (ESSCC)
6 jfenwick 3981 # http://www.uq.edu.au
7 phornby 1894 #
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 phornby 1894 Earth Systems Science Computational Center (ESSCC)
16 jfenwick 3981 http://www.uq.edu.au
17 phornby 1894 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     NE=6 # number of element in each spatial direction (must be even)
56    
57 jfenwick 3085 class Test_LinearPDEOnDudleyTet2DOrder1(Test_LinearPDE,Test_pdetools,Test_assemblage_2Do1, Test_TransportPDE):
58 phornby 1894 RES_TOL=1.e-7
59     ABS_TOL=1.e-8
60 caltinay 4829 VERBOSE=True
61 phornby 1894 def setUp(self):
62 jfenwick 3085 self.domain = ReadMesh(os.path.join(DUDLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
63 artak 2730 self.order = 1
64 phornby 1894 def tearDown(self):
65     del self.domain
66    
67    
68 jfenwick 3085 class Test_LinearPDEOnDudleyTet3DOrder1(Test_LinearPDE,Test_pdetools,Test_assemblage_3Do1, Test_TransportPDE):
69 phornby 1894 RES_TOL=1.e-7
70     ABS_TOL=1.e-8
71     def setUp(self):
72 jfenwick 3085 self.domain = ReadMesh(os.path.join(DUDLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
73 artak 2730 self.order = 1
74 phornby 1894 def tearDown(self):
75     del self.domain
76    
77    
78     if __name__ == '__main__':
79     suite = unittest.TestSuite()
80     if True :
81 jfenwick 3085 suite.addTest(unittest.makeSuite(Test_LinearPDEOnDudleyTet2DOrder1))
82     suite.addTest(unittest.makeSuite(Test_LinearPDEOnDudleyTet3DOrder1))
83 jfenwick 3126 #suite.addTest(Test_LinearPDEOnDudleyTet3DOrder1('test_symmetryOnIterative_System'))
84 phornby 1894 else:
85     pass
86    
87     s=unittest.TextTestRunner(verbosity=2).run(suite)
88     if not s.wasSuccessful(): sys.exit(1)
89    

Properties

Name Value
svn:mergeinfo /branches/lapack2681/finley/test/python/run_linearPDEsOnFinley2.py:2682-2741 /branches/pasowrap/dudley/test/python/run_linearPDEsOnDudley2.py:3661-3674 /branches/py3_attempt2/dudley/test/python/run_linearPDEsOnDudley2.py:3871-3891 /branches/restext/finley/test/python/run_linearPDEsOnFinley2.py:2610-2624 /branches/ripleygmg_from_3668/dudley/test/python/run_linearPDEsOnDudley2.py:3669-3791 /branches/stage3.0/finley/test/python/run_linearPDEsOnFinley2.py:2569-2590 /branches/symbolic_from_3470/dudley/test/python/run_linearPDEsOnDudley2.py:3471-3974 /branches/symbolic_from_3470/ripley/test/python/dudley/test/python/run_linearPDEsOnDudley2.py:3517-3974 /release/3.0/finley/test/python/run_linearPDEsOnFinley2.py:2591-2601 /trunk/ripley/test/python/dudley/test/python/run_linearPDEsOnDudley2.py:3480-3515

  ViewVC Help
Powered by ViewVC 1.1.26