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

Annotation of /trunk/finley/test/python/run_linearPDEsOnFinley.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 526 - (hide annotations)
Tue Feb 14 06:56:33 2006 UTC (14 years, 1 month ago) by gross
Original Path: trunk/finley/test/python/test_linearPDEsOnFinley.py
File MIME type: text/x-python
File size: 1779 byte(s)
pdetools test added
1 jgs 149 # $Id$
2    
3 jgs 154 """
4 gross 526 Test suite for the linearPDE iand pdetools test on finley
5 jgs 154
6     @remark:
7    
8     @var __author__: name of author
9     @var __licence__: licence agreement
10     @var __url__: url entry point on documentation
11     @var __version__: version
12     @var __date__: date of the version
13     """
14    
15     __author__="Lutz Gross, l.gross@uq.edu.au"
16     __licence__="contact: esys@access.uq.edu.au"
17     __url__="http://www.iservo.edu.au/esys/escript"
18     __version__="$Revision$"
19     __date__="$Date$"
20    
21    
22 jgs 149 import unittest
23     from esys.escript.test_linearPDEs import Test_Poisson,Test_LinearPDE
24 gross 526 from esys.escript.test_pdetools import Test_pdetools
25 jgs 153 from esys.finley import Rectangle,Brick
26 jgs 154 import sys
27 jgs 149
28 gross 526 class Test_LinearPDEOnFinley2DOrder1(Test_LinearPDE,Test_pdetools):
29 jgs 149 def setUp(self):
30 jgs 154 self.domain = Rectangle(50,50,1)
31 jgs 149
32 gross 526 class Test_LinearPDEOnFinley2DOrder2(Test_LinearPDE,Test_pdetools):
33 jgs 153 def setUp(self):
34 jgs 154 self.domain = Rectangle(50,50,2)
35 jgs 153
36 gross 526 class Test_LinearPDEOnFinley3DOrder1(Test_LinearPDE,Test_pdetools):
37 jgs 153 def setUp(self):
38     self.domain = Brick(20,10,10,1)
39    
40 gross 526 class Test_LinearPDEOnFinley3DOrder2(Test_LinearPDE,Test_pdetools):
41 jgs 153 def setUp(self):
42     self.domain = Brick(10,10,20,2)
43    
44 jgs 149 class Test_PoissonOnFinley(Test_Poisson):
45     def setUp(self):
46 jgs 153 self.domain = Rectangle(20,10,2)
47 jgs 149
48     if __name__ == '__main__':
49     suite = unittest.TestSuite()
50 jgs 153 suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley2DOrder1))
51 jgs 154 suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley2DOrder2))
52 jgs 153 suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley3DOrder1))
53     suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley3DOrder2))
54 jgs 149 suite.addTest(unittest.makeSuite(Test_PoissonOnFinley))
55     s=unittest.TextTestRunner(verbosity=2).run(suite)
56     if s.wasSuccessful():
57     sys.exit(0)
58     else:
59     sys.exit(1)
60 jgs 154

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26