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

Diff of /trunk/dudley/test/python/run_utilOnDudley.py

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

revision 3090 by jfenwick, Wed Aug 11 00:51:28 2010 UTC revision 3119 by jfenwick, Mon Aug 30 05:09:28 2010 UTC
# Line 41  NE=4 # number elements, must be even Line 41  NE=4 # number elements, must be even
41    
42  class Test_UtilOnDudley(Test_util,Test_symbols):  class Test_UtilOnDudley(Test_util,Test_symbols):
43     def setUp(self):     def setUp(self):
44         self.domain =Rectangle(NE,NE+1,2)         self.domain =Rectangle(NE,NE+1,1)
45         self.functionspace = FunctionOnBoundary(self.domain) # due to a bug in escript python needs to hold a reference to the domain         self.functionspace = FunctionOnBoundary(self.domain) # due to a bug in escript python needs to hold a reference to the domain
46     def tearDown(self):     def tearDown(self):
47         del self.functionspace         del self.functionspace
# Line 55  class Test_Util_SpatialFunctionsOnDudley Line 55  class Test_Util_SpatialFunctionsOnDudley
55          del self.order          del self.order
56          del self.domain          del self.domain
57    
 class Test_Util_SpatialFunctionsOnDudleyTet2DOrder2(Test_Util_SpatialFunctions_noGradOnBoundary_noContact):  
     def setUp(self):  
         self.order=2  
         self.domain = ReadMesh(os.path.join(DUDLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)  
     def tearDown(self):  
         del self.order  
         del self.domain  
   
 class Test_Util_SpatialFunctionsOnDudleyTet2DMacro(Test_Util_SpatialFunctions_noGradOnBoundary_noContact):  
     def setUp(self):  
         self.order=1  
         self.domain = ReadMesh(os.path.join(DUDLEY_TEST_MESH_PATH,"tet_2D_macro.fly"),optimize=False)  
     def tearDown(self):  
         del self.order  
         del self.domain  
58    
59  class Test_Util_SpatialFunctionsOnDudleyTet3DOrder1(Test_Util_SpatialFunctions_noGradOnBoundary_noContact):  class Test_Util_SpatialFunctionsOnDudleyTet3DOrder1(Test_Util_SpatialFunctions_noGradOnBoundary_noContact):
60      def setUp(self):      def setUp(self):
# Line 79  class Test_Util_SpatialFunctionsOnDudley Line 64  class Test_Util_SpatialFunctionsOnDudley
64          del self.order          del self.order
65          del self.domain          del self.domain
66    
67  class Test_Util_SpatialFunctionsOnDudleyTet3DOrder2(Test_Util_SpatialFunctions_noGradOnBoundary_noContact):  class Test_Util_SpatialFunctionsOnDudleyRectOrder1(Test_Util_SpatialFunctions_noGradOnBoundary_noContact):
     def setUp(self):  
         self.order=2  
         self.domain = ReadMesh(os.path.join(DUDLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)  
     def tearDown(self):  
         del self.order  
         del self.domain  
   
 class Test_Util_SpatialFunctionsOnDudleyTet3DMacro(Test_Util_SpatialFunctions_noGradOnBoundary_noContact):  
     def setUp(self):  
         self.order=1  
         self.domain = ReadMesh(os.path.join(DUDLEY_TEST_MESH_PATH,"tet_3D_macro.fly"),optimize=False)  
     def tearDown(self):  
         del self.order  
         del self.domain  
   
 class Test_Util_SpatialFunctionsOnDudleyHex2DOrder1(Test_Util_SpatialFunctions_noGradOnBoundary_noContact):  
68      def setUp(self):      def setUp(self):
69          self.order=1          self.order=1
70          self.domain = Rectangle(n0=NE,n1=NE,order=1)          self.domain = Rectangle(n0=NE,n1=NE,order=1)
# Line 103  class Test_Util_SpatialFunctionsOnDudley Line 72  class Test_Util_SpatialFunctionsOnDudley
72          del self.order          del self.order
73          del self.domain          del self.domain
74    
 class Test_Util_SpatialFunctionsOnDudleyHex2DOrder2(Test_Util_SpatialFunctions_noGradOnBoundary_noContact):  
     def setUp(self):  
         self.order=2  
         self.domain = Rectangle(n0=NE,n1=NE,order=2)  
     def tearDown(self):  
         del self.order  
         del self.domain  
75    
76  class Test_Util_SpatialFunctionsOnDudleyHex2DMacro(Test_Util_SpatialFunctions_noGradOnBoundary_noContact):  class Test_Util_SpatialFunctionsOnDudleyBrickOrder1(Test_Util_SpatialFunctions_noGradOnBoundary_noContact):
     def setUp(self):  
         self.order=1  
         self.domain = Rectangle(n0=NE,n1=NE,order=-1)  
     def tearDown(self):  
         del self.order  
         del self.domain  
   
 class Test_Util_SpatialFunctionsOnDudleyHex3DOrder1(Test_Util_SpatialFunctions_noGradOnBoundary_noContact):  
77      def setUp(self):      def setUp(self):
78          self.order=1          self.order=1
79          self.domain = Brick(n0=NE,n1=NE,n2=NE,order=1)          self.domain = Brick(n0=NE,n1=NE,n2=NE,order=1)
# Line 127  class Test_Util_SpatialFunctionsOnDudley Line 81  class Test_Util_SpatialFunctionsOnDudley
81          del self.order          del self.order
82          del self.domain          del self.domain
83    
 class Test_Util_SpatialFunctionsOnDudleyHex3DOrder2(Test_Util_SpatialFunctions_noGradOnBoundary_noContact):  
     def setUp(self):  
         self.order=2  
         self.domain = Brick(n0=NE,n1=NE,n2=NE,order=2)  
     def tearDown(self):  
         del self.order  
         del self.domain  
   
 class Test_Util_SpatialFunctionsOnDudleyHex3DMacro(Test_Util_SpatialFunctions_noGradOnBoundary_noContact):  
     def setUp(self):  
         self.order=1  
         self.domain = Brick(n0=NE,n1=NE,n2=NE,order=-1)  
     def tearDown(self):  
         del self.order  
         del self.domain  
   
84    
85    
86  if __name__ == '__main__':  if __name__ == '__main__':
# Line 150  if __name__ == '__main__': Line 88  if __name__ == '__main__':
88     if True:     if True:
89        suite.addTest(unittest.makeSuite(Test_UtilOnDudley))        suite.addTest(unittest.makeSuite(Test_UtilOnDudley))
90        suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnDudleyTet2DOrder1))        suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnDudleyTet2DOrder1))
       suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnDudleyTet2DOrder2))  
       suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnDudleyTet2DMacro))  
91        suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnDudleyTet3DOrder1))        suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnDudleyTet3DOrder1))
92        suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnDudleyTet3DOrder2))        suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnDudleyRectOrder1))
93        suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnDudleyTet3DMacro))        suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnDudleyBrickOrder1))
       suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnDudleyHex2DOrder1))  
       suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnDudleyHex2DOrder2))  
       suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnDudleyHex2DMacro))  
       suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnDudleyHex3DOrder1))  
       suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnDudleyHex3DOrder2))  
       suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnDudleyHex3DMacro))  
94     else:     else:
95        pass        pass
96     s=unittest.TextTestRunner(verbosity=2).run(suite)     s=unittest.TextTestRunner(verbosity=2).run(suite)

Legend:
Removed from v.3090  
changed lines
  Added in v.3119

  ViewVC Help
Powered by ViewVC 1.1.26