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

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

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

revision 764 by gross, Thu Apr 6 00:13:40 2006 UTC revision 765 by gross, Fri Jun 30 06:37:11 2006 UTC
# Line 74  class Test_Util_SpatialFunctions(unittes Line 74  class Test_Util_SpatialFunctions(unittes
74    
75     def test_normal_onFunctionOnContactZero(self):     def test_normal_onFunctionOnContactZero(self):
76       """       """
77       test getNormal() on cotact side 0       test getNormal() on contact side 0
78    
79       assumptions: FunctionOnContactZero(self.domain) exists       assumptions: FunctionOnContactZero(self.domain) exists
80       """       """
# Line 90  class Test_Util_SpatialFunctions(unittes Line 90  class Test_Util_SpatialFunctions(unittes
90       res=f.getNormal()       res=f.getNormal()
91       self.failUnlessEqual(res.getShape(),(dim,),"wrong shape of result.")       self.failUnlessEqual(res.getShape(),(dim,),"wrong shape of result.")
92       self.failUnlessEqual(res.getFunctionSpace(),f,"wrong functionspace of result.")       self.failUnlessEqual(res.getFunctionSpace(),f,"wrong functionspace of result.")
93       self.failUnless(Lsup(ref-res)<=self.RES_TOL,"wrong result")       self.failUnless(Lsup(length(res)-1)<=self.RES_TOL,"wrong length")
94         self.failUnless(Lsup(abs(inner(ref,res))-1)<=self.RES_TOL,"wrong direction")
95    
96     def test_normal_onFunctionOnContactOne(self):     def test_normal_onFunctionOnContactOne(self):
97       """       """
98       test getNormal() on cotact side 1       test getNormal() on contact side 1
99    
100       assumptions: FunctionOnContactOne(self.domain) exists       assumptions: FunctionOnContactOne(self.domain) exists
101       """       """
# Line 110  class Test_Util_SpatialFunctions(unittes Line 111  class Test_Util_SpatialFunctions(unittes
111       res=f.getNormal()       res=f.getNormal()
112       self.failUnlessEqual(res.getShape(),(dim,),"wrong shape of result.")       self.failUnlessEqual(res.getShape(),(dim,),"wrong shape of result.")
113       self.failUnlessEqual(res.getFunctionSpace(),f,"wrong functionspace of result.")       self.failUnlessEqual(res.getFunctionSpace(),f,"wrong functionspace of result.")
114       self.failUnless(Lsup(ref-res)<=self.RES_TOL,"wrong result")       self.failUnless(Lsup(length(res)-1)<=self.RES_TOL,"wrong length")
115         self.failUnless(Lsup(abs(inner(ref,res))-1)<=self.RES_TOL,"wrong direction")
116     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
117     def test_integrate_onFunction_fromData_ContinuousFunction_rank0(self):     def test_integrate_onFunction_fromData_ContinuousFunction_rank0(self):
118        """        """

Legend:
Removed from v.764  
changed lines
  Added in v.765

  ViewVC Help
Powered by ViewVC 1.1.26