/[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

branches/domexper/dudley/test/python/run_linearPDEsOnFinley1.py revision 3080 by jfenwick, Tue Aug 3 04:28:03 2010 UTC branches/domexper/dudley/test/python/run_linearPDEsOnDudley1.py revision 3085 by jfenwick, Thu Aug 5 00:44:32 2010 UTC
# 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=os.path.join(FINLEY_TEST_DATA,"data_meshes")  DUDLEY_TEST_MESH_PATH=os.path.join(DUDLEY_TEST_DATA,"data_meshes")
54    
55  NE=10 # 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):
# Line 63  class Test_LinearPDEOnFinleyHex2DOrder1( Line 63  class Test_LinearPDEOnFinleyHex2DOrder1(
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):
# Line 72  class Test_LinearPDEOnFinleyHex2DOrder2( Line 72  class Test_LinearPDEOnFinleyHex2DOrder2(
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):
# Line 81  class Test_LinearPDEOnFinleyHex3DOrder1( Line 81  class Test_LinearPDEOnFinleyHex3DOrder1(
81     def tearDown(self):     def tearDown(self):
82          del self.domain          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):
# Line 93  class Test_LinearPDEOnFinleyHex3DOrder2( Line 93  class Test_LinearPDEOnFinleyHex3DOrder2(
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.3080  
changed lines
  Added in v.3085

  ViewVC Help
Powered by ViewVC 1.1.26