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

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

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

revision 149 by jgs, Thu Sep 1 03:31:39 2005 UTC revision 153 by jgs, Tue Oct 25 01:51:20 2005 UTC
# Line 1  Line 1 
1  # $Id$  # $Id$
2    
3    import sys
4  import unittest  import unittest
5    
6  from esys.escript.test_linearPDEs import Test_Poisson,Test_LinearPDE  from esys.escript.test_linearPDEs import Test_Poisson,Test_LinearPDE
7  from esys.finley import Rectangle  from esys.finley import Rectangle,Brick
8  import sys  
9    class Test_LinearPDEOnFinley2DOrder1(Test_LinearPDE):
10        def setUp(self):
11            self.domain = Rectangle(20,20,1)
12    
13    class Test_LinearPDEOnFinley2DOrder2(Test_LinearPDE):
14        def setUp(self):
15            self.domain = Rectangle(20,20,2)
16    
17    class Test_LinearPDEOnFinley3DOrder1(Test_LinearPDE):
18        def setUp(self):
19            self.domain = Brick(20,10,10,1)
20    
21  class Test_LinearPDEOnFinley(Test_LinearPDE):  class Test_LinearPDEOnFinley3DOrder2(Test_LinearPDE):
22      def setUp(self):      def setUp(self):
23          self.domain = Rectangle(10,10,2)          self.domain = Brick(10,10,20,2)
24    
25  class Test_PoissonOnFinley(Test_Poisson):  class Test_PoissonOnFinley(Test_Poisson):
26      def setUp(self):      def setUp(self):
27          self.domain = Rectangle(10,10,2)          self.domain = Rectangle(20,10,2)
28    
29  if __name__ == '__main__':  if __name__ == '__main__':
30     suite = unittest.TestSuite()     suite = unittest.TestSuite()
31     suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley))     suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley2DOrder1))
32    #   suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley2DOrder2))
33       suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley3DOrder1))
34       suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley3DOrder2))
35     suite.addTest(unittest.makeSuite(Test_PoissonOnFinley))     suite.addTest(unittest.makeSuite(Test_PoissonOnFinley))
36     s=unittest.TextTestRunner(verbosity=2).run(suite)     s=unittest.TextTestRunner(verbosity=2).run(suite)
37     if s.wasSuccessful():     if s.wasSuccessful():
38       sys.exit(0)       sys.exit(0)
39     else:     else:
40       sys.exit(1)       sys.exit(1)
     

Legend:
Removed from v.149  
changed lines
  Added in v.153

  ViewVC Help
Powered by ViewVC 1.1.26