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

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

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

revision 443 by gross, Fri Jan 20 06:22:38 2006 UTC revision 589 by gross, Fri Mar 10 06:28:35 2006 UTC
# Line 1  Line 1 
1  # $Id$  # $Id$
2    
3  import unittest  import unittest
4  from esys.escript.test_util import Test_util_no_tagged_data as Test_util  # from esys.escript.test_util import Test_util_no_tagged_data as Test_util
5    from esys.escript.test_util import Test_util_with_tagged_data as Test_util
6    #from esys.escript.test_util import Test_util as Test_util
7  from esys.escript.test_util import Test_Util_SpatialFunctions  from esys.escript.test_util import Test_Util_SpatialFunctions
8    from esys.escript.test_symbols import Test_symbols
9    
10  from esys.escript import FunctionOnBoundary  from esys.escript import FunctionOnBoundary
11  from esys.finley import Rectangle,Brick,JoinFaces  from esys.finley import Rectangle,Brick,JoinFaces
12  import sys  import sys
13    
14  class Test_UtilOnFinley(Test_util):  class Test_UtilOnFinley(Test_util,Test_symbols):
15     def setUp(self):     def setUp(self):
16         self.domain =Rectangle(10,10,2)         self.domain =Rectangle(10,10,2)
17         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
# Line 44  class Test_Util_SpatialFunctionsOnFinley Line 48  class Test_Util_SpatialFunctionsOnFinley
48          d2.setX(d2.getX()+[0.5,0.,0.])          d2.setX(d2.getX()+[0.5,0.,0.])
49          self.domain = JoinFaces([d1,d2])          self.domain = JoinFaces([d1,d2])
50    
   
51  if __name__ == '__main__':  if __name__ == '__main__':
52     suite = unittest.TestSuite()     suite = unittest.TestSuite()
53     suite.addTest(unittest.makeSuite(Test_UtilOnFinley))     suite.addTest(unittest.makeSuite(Test_UtilOnFinley))
54     suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnFinley2DOrder1))     # suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnFinley2DOrder1))
55     suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnFinley2DOrder2))     # suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnFinley2DOrder2))
56     suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnFinley3DOrder1))     # suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnFinley3DOrder1))
57     suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnFinley3DOrder2))     # suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnFinley3DOrder2))
58     s=unittest.TextTestRunner(verbosity=2).run(suite)     s=unittest.TextTestRunner(verbosity=2).run(suite)
59     if s.wasSuccessful():     if s.wasSuccessful():
60       sys.exit(0)       sys.exit(0)

Legend:
Removed from v.443  
changed lines
  Added in v.589

  ViewVC Help
Powered by ViewVC 1.1.26