/[escript]/trunk/finley/test/python/run_linearPDEsOnFinley.py
ViewVC logotype

Diff of /trunk/finley/test/python/run_linearPDEsOnFinley.py

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

revision 854 by gross, Fri Aug 4 01:05:36 2006 UTC revision 855 by gross, Fri Sep 22 09:30:06 2006 UTC
# Line 24  __date__="$Date$" Line 24  __date__="$Date$"
24    
25    
26  import unittest  import unittest
27  from test_linearPDEs import Test_Poisson,Test_LinearPDE  from test_linearPDEs import Test_Poisson,Test_LinearPDE, Test_LinearPDE_noLumping
28  from test_assemblage import Test_assemblage_2Do1, Test_assemblage_2Do2, Test_assemblage_3Do1, Test_assemblage_3Do2, \  from test_assemblage import Test_assemblage_2Do1, Test_assemblage_2Do2, Test_assemblage_3Do1, Test_assemblage_3Do2, \
29                              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
30  from test_pdetools import Test_pdetools  from test_pdetools import Test_pdetools, Test_pdetools_noLumping
31  from esys.escript import *  from esys.escript import *
32  from esys.finley import Rectangle,Brick,JoinFaces  from esys.finley import Rectangle,Brick,JoinFaces, ReadMesh
33  import sys  import sys
34    
35    
36    try:
37         FINLEY_TEST_DATA=os.environ['FINLEY_TEST_DATA']
38    except KeyError:
39         FINLEY_TEST_DATA='.'
40    
41    FINLEY_TEST_MESH_PATH=FINLEY_TEST_DATA+"/data_meshes/"
42    
43  NE=6 # number of element in each spatial direction (must be even)  NE=6 # number of element in each spatial direction (must be even)
44    
45  class Test_LinearPDEOnFinley2DOrder1(Test_LinearPDE,Test_pdetools,Test_assemblage_2Do1):  class Test_LinearPDEOnFinleyHex2DOrder1(Test_LinearPDE,Test_pdetools,Test_assemblage_2Do1):
46     RES_TOL=1.e-7     RES_TOL=1.e-7
47     ABS_TOL=1.e-8     ABS_TOL=1.e-8
48     def setUp(self):     def setUp(self):
# Line 43  class Test_LinearPDEOnFinley2DOrder1(Tes Line 50  class Test_LinearPDEOnFinley2DOrder1(Tes
50     def tearDown(self):     def tearDown(self):
51          del self.domain          del self.domain
52    
53  class Test_LinearPDEOnFinley2DOrder2(Test_LinearPDE,Test_pdetools,Test_assemblage_2Do2):  class Test_LinearPDEOnFinleyHex2DOrder2(Test_LinearPDE,Test_pdetools,Test_assemblage_2Do2):
54     RES_TOL=1.e-7     RES_TOL=1.e-7
55     ABS_TOL=1.e-8     ABS_TOL=1.e-8
56     def setUp(self):     def setUp(self):
# Line 51  class Test_LinearPDEOnFinley2DOrder2(Tes Line 58  class Test_LinearPDEOnFinley2DOrder2(Tes
58     def tearDown(self):     def tearDown(self):
59          del self.domain          del self.domain
60    
61  class Test_LinearPDEOnFinley3DOrder1(Test_LinearPDE,Test_pdetools,Test_assemblage_3Do1):  class Test_LinearPDEOnFinleyHex3DOrder1(Test_LinearPDE,Test_pdetools,Test_assemblage_3Do1):
62     RES_TOL=1.e-7     RES_TOL=1.e-7
63     ABS_TOL=1.e-8     ABS_TOL=1.e-8
64     def setUp(self):     def setUp(self):
65          self.domain = Brick(NE,NE,NE,1)          self.domain = Brick(NE,NE,NE,1)
66    
67  class Test_LinearPDEOnFinley3DOrder2(Test_LinearPDE,Test_pdetools,Test_assemblage_3Do2):  class Test_LinearPDEOnFinleyHex3DOrder2(Test_LinearPDE,Test_pdetools,Test_assemblage_3Do2):
68     RES_TOL=1.e-7     RES_TOL=1.e-7
69     ABS_TOL=1.e-8     ABS_TOL=1.e-8
70     def setUp(self):     def setUp(self):
# Line 65  class Test_LinearPDEOnFinley3DOrder2(Tes Line 72  class Test_LinearPDEOnFinley3DOrder2(Tes
72     def tearDown(self):     def tearDown(self):
73          del self.domain          del self.domain
74    
75    class Test_LinearPDEOnFinleyTet2DOrder1(Test_LinearPDE,Test_pdetools,Test_assemblage_2Do1):
76       RES_TOL=1.e-7
77       ABS_TOL=1.e-8
78       def setUp(self):
79            self.domain = ReadMesh(FINLEY_TEST_MESH_PATH+"tet_2D_order1.fly")
80       def tearDown(self):
81            del self.domain
82    
83    class Test_LinearPDEOnFinleyTet2DOrder2(Test_LinearPDE_noLumping,Test_pdetools_noLumping,Test_assemblage_2Do2):
84       RES_TOL=1.e-7
85       ABS_TOL=1.e-8
86       def setUp(self):
87            self.domain = ReadMesh(FINLEY_TEST_MESH_PATH+"tet_2D_order2.fly")
88       def tearDown(self):
89            del self.domain
90    
91    class Test_LinearPDEOnFinleyTet3DOrder1(Test_LinearPDE,Test_pdetools,Test_assemblage_3Do1):
92       RES_TOL=1.e-7
93       ABS_TOL=1.e-8
94       def setUp(self):
95            self.domain = ReadMesh(FINLEY_TEST_MESH_PATH+"tet_3D_order1.fly")
96    
97    class Test_LinearPDEOnFinleyTet3DOrder2(Test_LinearPDE,Test_pdetools,Test_assemblage_3Do2):
98       RES_TOL=1.e-7
99       ABS_TOL=1.e-8
100       def setUp(self):
101            self.domain = ReadMesh(FINLEY_TEST_MESH_PATH+"tet_3D_order2.fly")
102       def tearDown(self):
103            del self.domain
104    
105  class Test_PoissonOnFinley(Test_Poisson):  class Test_PoissonOnFinley(Test_Poisson):
106     RES_TOL=1.e-7     RES_TOL=1.e-7
107     ABS_TOL=1.e-8     ABS_TOL=1.e-8
# Line 189  class Test_AssemblePDEwithFinley_3Do2_Co Line 226  class Test_AssemblePDEwithFinley_3Do2_Co
226    
227  if __name__ == '__main__':  if __name__ == '__main__':
228     suite = unittest.TestSuite()     suite = unittest.TestSuite()
229     suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley2DOrder1))     suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinleyHex2DOrder1))
230     suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley2DOrder2))     suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinleyHex2DOrder2))
231     suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley3DOrder1))     suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinleyHex3DOrder1))
232     suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley3DOrder2))     suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinleyHex3DOrder2))
233    
234       suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinleyTet2DOrder1))
235       suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinleyTet2DOrder2))
236       # suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinleyTet3DOrder1))
237       # suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinleyTet3DOrder2))
238    
239     suite.addTest(unittest.makeSuite(Test_AssemblePDEwithFinley_2Do1_Contact))     suite.addTest(unittest.makeSuite(Test_AssemblePDEwithFinley_2Do1_Contact))
240     suite.addTest(unittest.makeSuite(Test_AssemblePDEwithFinley_2Do2_Contact))     suite.addTest(unittest.makeSuite(Test_AssemblePDEwithFinley_2Do2_Contact))

Legend:
Removed from v.854  
changed lines
  Added in v.855

  ViewVC Help
Powered by ViewVC 1.1.26