/[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 692 by gross, Thu Mar 30 08:05:02 2006 UTC revision 698 by gross, Fri Mar 31 04:52:55 2006 UTC
# Line 6  __copyright__="""  Copyright (c) 2006 by Line 6  __copyright__="""  Copyright (c) 2006 by
6  __license__="""Licensed under the Open Software License version 3.0  __license__="""Licensed under the Open Software License version 3.0
7               http://www.opensource.org/licenses/osl-3.0.php"""               http://www.opensource.org/licenses/osl-3.0.php"""
8  import unittest  import unittest
9  from esys.escript.test_util import Test_util_no_tagged_data as Test_util  from esys.escript.test_util import Test_util as Test_util
 #from esys.escript.test_util import Test_util_with_tagged_data as Test_util  
 # from esys.escript.test_util import Test_util as Test_util  
10  from esys.escript.test_util import Test_Util_SpatialFunctions  from esys.escript.test_util import Test_Util_SpatialFunctions
11  from esys.escript.test_symbols import Test_symbols  from esys.escript.test_symbols import Test_symbols
12    
# Line 18  import sys Line 16  import sys
16    
17  class Test_UtilOnFinley(Test_util,Test_symbols):  class Test_UtilOnFinley(Test_util,Test_symbols):
18     def setUp(self):     def setUp(self):
19         self.domain =Rectangle(10,10,2)         self.domain =Rectangle(5,5,2)
20         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
21    
22  class Test_Util_SpatialFunctionsOnFinley2DOrder1(Test_Util_SpatialFunctions):  class Test_Util_SpatialFunctionsOnFinley2DOrder1(Test_Util_SpatialFunctions):
23      def setUp(self):      def setUp(self):
24          self.order=1          self.order=1
25          d1 = Rectangle(n0=6,n1=12,l0=0.5,order=1,useElementsOnFace=True)          d1 = Rectangle(n0=3,n1=12,l0=0.5,order=1,useElementsOnFace=True)
26          d2 = Rectangle(n0=6,n1=12,l0=0.5,order=1,useElementsOnFace=True)          d2 = Rectangle(n0=3,n1=12,l0=0.5,order=1,useElementsOnFace=True)
27          d2.setX(d2.getX()+[0.5,0.])          d2.setX(d2.getX()+[0.5,0.])
28          self.domain = JoinFaces([d1,d2])          self.domain = JoinFaces([d1,d2])
29    
# Line 56  class Test_Util_SpatialFunctionsOnFinley Line 54  class Test_Util_SpatialFunctionsOnFinley
54  if __name__ == '__main__':  if __name__ == '__main__':
55     suite = unittest.TestSuite()     suite = unittest.TestSuite()
56     suite.addTest(unittest.makeSuite(Test_UtilOnFinley))     suite.addTest(unittest.makeSuite(Test_UtilOnFinley))
57     # suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnFinley2DOrder1))     suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnFinley2DOrder1))
58     # suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnFinley2DOrder2))     suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnFinley2DOrder2))
59     # suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnFinley3DOrder1))     suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnFinley3DOrder1))
60     # suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnFinley3DOrder2))     suite.addTest(unittest.makeSuite(Test_Util_SpatialFunctionsOnFinley3DOrder2))
61     s=unittest.TextTestRunner(verbosity=2).run(suite)     s=unittest.TextTestRunner(verbosity=2).run(suite)
62     if s.wasSuccessful():     if s.wasSuccessful():
63       sys.exit(0)       sys.exit(0)

Legend:
Removed from v.692  
changed lines
  Added in v.698

  ViewVC Help
Powered by ViewVC 1.1.26