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$" |
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) |
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: |