/[escript]/trunk/escript/test/python/test_linearPDEs.py
ViewVC logotype

Diff of /trunk/escript/test/python/test_linearPDEs.py

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

trunk/escript/py_src/test_linearPDEs.py revision 531 by gross, Wed Feb 15 08:11:10 2006 UTC trunk/escript/test/python/test_linearPDEs.py revision 855 by gross, Fri Sep 22 09:30:06 2006 UTC
# Line 9  The tests must be linked with a Domain c Line 9  The tests must be linked with a Domain c
9     class Test_LinearPDEOnFinley(Test_LinearPDE):     class Test_LinearPDEOnFinley(Test_LinearPDE):
10         def setUp(self):         def setUp(self):
11             self.domain = Rectangle(10,10,2)             self.domain = Rectangle(10,10,2)
12           def tearDown(self):
13               del self.domain
14     suite = unittest.TestSuite()     suite = unittest.TestSuite()
15     suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley))     suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley))
16     unittest.TextTestRunner(verbosity=2).run(suite)     unittest.TextTestRunner(verbosity=2).run(suite)
17    
18    @var __author__: name of author
19    @var __copyright__: copyrights
20    @var __license__: licence agreement
21    @var __url__: url entry point on documentation
22    @var __version__: version
23    @var __date__: date of the version
24  """  """
25    
26  __author__="Lutz Gross, l.gross@uq.edu.au"  __author__="Lutz Gross, l.gross@uq.edu.au"
27  __licence__="contact: esys@access.uq.edu.au"  __copyright__="""  Copyright (c) 2006 by ACcESS MNRF
28                        http://www.access.edu.au
29                    Primary Business: Queensland, Australia"""
30    __license__="""Licensed under the Open Software License version 3.0
31                 http://www.opensource.org/licenses/osl-3.0.php"""
32  __url__="http://www.iservo.edu.au/esys/escript"  __url__="http://www.iservo.edu.au/esys/escript"
33  __version__="$Revision$"  __version__="$Revision$"
34  __date__="$Date$"  __date__="$Date$"
# Line 109  class Test_Poisson(Test_linearPDEs): Line 121  class Test_Poisson(Test_linearPDEs):
121         u=mypde.getSolution()         u=mypde.getSolution()
122         self.failUnless(self.check(u,u_ex,10*self.TOL),"incorrect solution")         self.failUnless(self.check(u,u_ex,10*self.TOL),"incorrect solution")
123    
124  class Test_LinearPDE(Test_linearPDEs):  class Test_LinearPDE_noLumping(Test_linearPDEs):
125      N=4      N=4
126      def test_setCoefficient_WithIllegalFunctionSpace(self):      def test_setCoefficient_WithIllegalFunctionSpace(self):
127          mypde=LinearPDE(self.domain,debug=self.DEBUG)          mypde=LinearPDE(self.domain,debug=self.DEBUG)
# Line 524  class Test_LinearPDE(Test_linearPDEs): Line 536  class Test_LinearPDE(Test_linearPDEs):
536      mypde.setSolverMethod(mypde.GMRES,mypde.ILU0)      mypde.setSolverMethod(mypde.GMRES,mypde.ILU0)
537          u=mypde.getSolution(verbose=self.VERBOSE,truncation=10,restart=20)          u=mypde.getSolution(verbose=self.VERBOSE,truncation=10,restart=20)
538          self.failUnless(self.check(u,1.),'solution is wrong.')          self.failUnless(self.check(u,1.),'solution is wrong.')
539    
540    class Test_LinearPDE(Test_LinearPDE_noLumping):
541      def test_Lumping_attemptToSetA(self):      def test_Lumping_attemptToSetA(self):
542          mypde=LinearPDE(self.domain,debug=self.DEBUG)          mypde=LinearPDE(self.domain,debug=self.DEBUG)
543          try:          try:

Legend:
Removed from v.531  
changed lines
  Added in v.855

  ViewVC Help
Powered by ViewVC 1.1.26