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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/finley/test/python/run_linearPDEsOnFinley1.py revision 2315 by gross, Wed Mar 18 00:38:48 2009 UTC branches/domexper/dudley/test/python/run_linearPDEsOnDudley1.py revision 3087 by jfenwick, Fri Aug 6 05:25:59 2010 UTC
# Line 1  Line 1 
1    
2  ########################################################  ########################################################
3  #  #
4  # Copyright (c) 2003-2008 by University of Queensland  # Copyright (c) 2003-2010 by University of Queensland
5  # Earth Systems Science Computational Center (ESSCC)  # Earth Systems Science Computational Center (ESSCC)
6  # http://www.uq.edu.au/esscc  # http://www.uq.edu.au/esscc
7  #  #
# Line 11  Line 11 
11  #  #
12  ########################################################  ########################################################
13    
14  __copyright__="""Copyright (c) 2003-2008 by University of Queensland  __copyright__="""Copyright (c) 2003-2010 by University of Queensland
15  Earth Systems Science Computational Center (ESSCC)  Earth Systems Science Computational Center (ESSCC)
16  http://www.uq.edu.au/esscc  http://www.uq.edu.au/esscc
17  Primary Business: Queensland, Australia"""  Primary Business: Queensland, Australia"""
18  __license__="""Licensed under the Open Software License version 3.0  __license__="""Licensed under the Open Software License version 3.0
19  http://www.opensource.org/licenses/osl-3.0.php"""  http://www.opensource.org/licenses/osl-3.0.php"""
20  __url__="http://www.uq.edu.au/esscc/escript-finley"  __url__="https://launchpad.net/escript-finley"
21    
22  """  """
23  Test suite for the linearPDE  and pdetools test on finley  Test suite for the linearPDE  and pdetools test on dudley
24    
25  @remark:  :remark:
26    
27  @var __author__: name of author  :var __author__: name of author
28  @var __licence__: licence agreement  :var __licence__: licence agreement
29  @var __url__: url entry point on documentation  :var __url__: url entry point on documentation
30  @var __version__: version  :var __version__: version
31  @var __date__: date of the version  :var __date__: date of the version
32  """  """
33    
34  __author__="Lutz Gross, l.gross@uq.edu.au"  __author__="Lutz Gross, l.gross@uq.edu.au"
# Line 41  from test_assemblage import Test_assembl Line 41  from test_assemblage import Test_assembl
41                              Test_assemblage_2Do1_Contact,Test_assemblage_2Do2_Contact, Test_assemblage_3Do1_Contact, Test_assemblage_3Do2_Contact                              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  from test_pdetools import Test_pdetools, Test_pdetools_noLumping
43  from esys.escript import *  from esys.escript import *
44  from esys.finley import Rectangle,Brick,JoinFaces, ReadMesh  from esys.dudley import Rectangle,Brick,JoinFaces, ReadMesh
45  import sys  import sys
46    
47    
48  try:  try:
49       FINLEY_TEST_DATA=os.environ['FINLEY_TEST_DATA']       DUDLEY_TEST_DATA=os.environ['DUDLEY_TEST_DATA']
50  except KeyError:  except KeyError:
51       FINLEY_TEST_DATA='.'       DUDLEY_TEST_DATA='.'
52    
53  FINLEY_TEST_MESH_PATH=FINLEY_TEST_DATA+"/data_meshes/"  DUDLEY_TEST_MESH_PATH=os.path.join(DUDLEY_TEST_DATA,"data_meshes")
54    
55  NE=6 # number of element in each spatial direction (must be even)  NE=10 # number of element in each spatial direction (must be even)
56    
57  class Test_LinearPDEOnFinleyHex2DOrder1(Test_LinearPDE,Test_pdetools,Test_assemblage_2Do1, Test_TransportPDE):  class Test_LinearPDEOnDudleyHex2DOrder1(Test_LinearPDE,Test_pdetools,Test_assemblage_2Do1, Test_TransportPDE):
58     RES_TOL=1.e-7     RES_TOL=1.e-7
59     ABS_TOL=1.e-8     ABS_TOL=1.e-8
60     def setUp(self):     def setUp(self):
61          self.domain = Rectangle(NE,NE,1)          self.domain = Rectangle(NE,NE,1)
62            self.order = 1
63     def tearDown(self):     def tearDown(self):
64          del self.domain          del self.domain
65    
66  class Test_LinearPDEOnFinleyHex2DOrder2(Test_LinearPDE,Test_pdetools,Test_assemblage_2Do2, Test_TransportPDE):  class Test_LinearPDEOnDudleyHex2DOrder2(Test_LinearPDE,Test_pdetools,Test_assemblage_2Do2, Test_TransportPDE):
67     RES_TOL=1.e-7     RES_TOL=1.e-7
68     ABS_TOL=1.e-8     ABS_TOL=1.e-8
69     def setUp(self):     def setUp(self):
70          self.domain = Rectangle(NE,NE,2)          self.domain = Rectangle(NE,NE,2)
71            self.order = 2
72     def tearDown(self):     def tearDown(self):
73          del self.domain          del self.domain
74    
75  class Test_LinearPDEOnFinleyHex3DOrder1(Test_LinearPDE,Test_pdetools,Test_assemblage_3Do1, Test_TransportPDE):  class Test_LinearPDEOnDudleyHex3DOrder1(Test_LinearPDE,Test_pdetools,Test_assemblage_3Do1, Test_TransportPDE):
76     RES_TOL=1.e-7     RES_TOL=1.e-7
77     ABS_TOL=1.e-8     ABS_TOL=1.e-8
78     def setUp(self):     def setUp(self):
79          self.domain = Brick(NE,NE,NE,1)          self.domain = Brick(NE,NE,NE,1)
80            self.order = 1
81       def tearDown(self):
82            del self.domain
83    
84  class Test_LinearPDEOnFinleyHex3DOrder2(Test_LinearPDE,Test_pdetools,Test_assemblage_3Do2, Test_TransportPDE):  class Test_LinearPDEOnDudleyHex3DOrder2(Test_LinearPDE,Test_pdetools,Test_assemblage_3Do2, Test_TransportPDE):
85     RES_TOL=1.e-7     RES_TOL=1.e-7
86     ABS_TOL=1.e-8     ABS_TOL=1.e-8
87     def setUp(self):     def setUp(self):
88          self.domain = Brick(NE,NE,NE,2)          self.domain = Brick(NE,NE,NE,2)
89            self.order = 2
90     def tearDown(self):     def tearDown(self):
91          del self.domain          del self.domain
92    
93  if __name__ == '__main__':  if __name__ == '__main__':
94     suite = unittest.TestSuite()     suite = unittest.TestSuite()
95     if True :     if True :
96        suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinleyHex2DOrder1))        suite.addTest(unittest.makeSuite(Test_LinearPDEOnDudleyHex2DOrder1))
97        suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinleyHex2DOrder2))        suite.addTest(unittest.makeSuite(Test_LinearPDEOnDudleyHex2DOrder2))
98        suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinleyHex3DOrder1))        suite.addTest(unittest.makeSuite(Test_LinearPDEOnDudleyHex3DOrder1))
99        suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinleyHex3DOrder2))        suite.addTest(unittest.makeSuite(Test_LinearPDEOnDudleyHex3DOrder2))
100     else:     else:
101        suite.addTest(Test_LinearPDEOnFinleyHex2DOrder1("test_DIRECT"))        suite.addTest(Test_LinearPDEOnDudleyHex2DOrder1("test_DIRECT"))
102        pass        pass
103    
104     s=unittest.TextTestRunner(verbosity=2).run(suite)     s=unittest.TextTestRunner(verbosity=2).run(suite)

Legend:
Removed from v.2315  
changed lines
  Added in v.3087

  ViewVC Help
Powered by ViewVC 1.1.26