~vcs-imports/escript-finley/trunk

« back to all changes in this revision

Viewing changes to escript/test/python/test_pdetools.py

  • Committer: jfenwick
  • Date: 2010-10-11 01:48:14 UTC
  • Revision ID: svn-v4:77569008-7704-0410-b7a0-a92fef0b09fd:trunk:3259
Merging dudley and scons updates from branches

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
The tests must be linked with a Domain class object in the setUp method:
26
26
 
27
 
   from esys.finley import Rectangle
28
 
   class Test_LinearPDEOnFinley(Test_LinearPDE):
 
27
   from esys.dudley import Rectangle
 
28
   class Test_LinearPDEOnDudley(Test_LinearPDE):
29
29
       RES_TOL=1.e-8
30
30
       def setUp(self):
31
31
           self.domain = Rectangle(10,10,2)
32
32
       def tearDown(self):
33
33
           del self.domain
34
34
   suite = unittest.TestSuite()
35
 
   suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley))
 
35
   suite.addTest(unittest.makeSuite(Test_LinearPDEOnDudley))
36
36
   unittest.TextTestRunner(verbosity=2).run(suite)
37
37
 
38
38
:var __author__: name of author
1138
1138
      h=Lsup(self.domain.getSize())
1139
1139
      p=Projector(self.domain,reduce=True,fast=True)
1140
1140
      td_ref=x
1141
 
      td=p(td_ref.interpolate(Function(self.domain)))
 
1141
      res=td_ref.interpolate(Function(self.domain))
 
1142
      td=p(res)
1142
1143
      self.failUnless(Lsup(td-td_ref)<Lsup(td_ref)*h,"value wrong")
1143
1144
 
1144
1145
    def testProjector_rank2_fast_reduced(self):