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

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

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

revision 2563 by gross, Tue Jul 28 03:50:45 2009 UTC revision 2564 by gross, Tue Jul 28 04:46:38 2009 UTC
# Line 700  class Test_Mountains3D(unittest.TestCase Line 700  class Test_Mountains3D(unittest.TestCase
700         mts.setVelocity(v)         mts.setVelocity(v)
701         Z=mts.update()         Z=mts.update()
702                
703         error_int=integrate(Z)         error_int=abs(integrate(Z*whereZero(FunctionOnBoundary(self.domain).getX()[2]-1.)))
704         self.failUnless(error_int<self.TOL, "Boundary intergral is too large.")         self.failUnless(error_int<self.TOL, "Boundary intergral is too large.")
705    
706  class Test_Mountains2D(unittest.TestCase):  class Test_Mountains2D(unittest.TestCase):
# Line 727  class Test_Mountains2D(unittest.TestCase Line 727  class Test_Mountains2D(unittest.TestCase
727         mts.setVelocity(v)         mts.setVelocity(v)
728         Z=mts.update()         Z=mts.update()
729                
730         error_int=integrate(Z)         error_int=abs(integrate(Z*whereZero(FunctionOnBoundary(self.domain).getX()[1]-1.)))
731         self.failUnless(error_int<self.TOL, "Boundary intergral is too large.")         self.failUnless(error_int<self.TOL, "Boundary intergral is too large.")
732                
733    

Legend:
Removed from v.2563  
changed lines
  Added in v.2564

  ViewVC Help
Powered by ViewVC 1.1.26