/[escript]/trunk/escriptcore/test/python/test_util_spatial_functions2.py
ViewVC logotype

Diff of /trunk/escriptcore/test/python/test_util_spatial_functions2.py

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

revision 2881 by jfenwick, Thu Jan 28 02:03:15 2010 UTC revision 3551 by jfenwick, Fri Aug 19 03:53:41 2011 UTC
# Line 62  class Test_Util_SpatialFunctions_noGradO Line 62  class Test_Util_SpatialFunctions_noGradO
62           ref+=whereZero(x[0]-0.5,tol=self.RES_TOL)*[1,0]           ref+=whereZero(x[0]-0.5,tol=self.RES_TOL)*[1,0]
63    
64       res=f.getNormal()       res=f.getNormal()
65       self.failUnlessEqual(res.getShape(),(dim,),"wrong shape of result.")       self.assertEqual(res.getShape(),(dim,),"wrong shape of result.")
66       self.failUnlessEqual(res.getFunctionSpace(),f,"wrong functionspace of result.")       self.assertEqual(res.getFunctionSpace(),f,"wrong functionspace of result.")
67       self.failUnless(Lsup(length(res)-1)<=self.RES_TOL,"wrong length")       self.assertTrue(Lsup(length(res)-1)<=self.RES_TOL,"wrong length")
68       self.failUnless(Lsup(abs(inner(ref,res))-1)<=self.RES_TOL,"wrong direction")       self.assertTrue(Lsup(abs(inner(ref,res))-1)<=self.RES_TOL,"wrong direction")
69     def test_normal_onReducedFunctionOnContactZero(self):     def test_normal_onReducedFunctionOnContactZero(self):
70       """       """
71       test getNormal() on contact side 0       test getNormal() on contact side 0
# Line 82  class Test_Util_SpatialFunctions_noGradO Line 82  class Test_Util_SpatialFunctions_noGradO
82           ref+=whereZero(x[0]-0.5,tol=self.RES_TOL)*[1,0]           ref+=whereZero(x[0]-0.5,tol=self.RES_TOL)*[1,0]
83    
84       res=f.getNormal()       res=f.getNormal()
85       self.failUnlessEqual(res.getShape(),(dim,),"wrong shape of result.")       self.assertEqual(res.getShape(),(dim,),"wrong shape of result.")
86       self.failUnlessEqual(res.getFunctionSpace(),f,"wrong functionspace of result.")       self.assertEqual(res.getFunctionSpace(),f,"wrong functionspace of result.")
87       self.failUnless(Lsup(length(res)-1)<=self.RES_TOL,"wrong length")       self.assertTrue(Lsup(length(res)-1)<=self.RES_TOL,"wrong length")
88       self.failUnless(Lsup(abs(inner(ref,res))-1)<=self.RES_TOL,"wrong direction")       self.assertTrue(Lsup(abs(inner(ref,res))-1)<=self.RES_TOL,"wrong direction")
89     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
90     def test_normal_onFunctionOnContactOne(self):     def test_normal_onFunctionOnContactOne(self):
91       """       """
# Line 103  class Test_Util_SpatialFunctions_noGradO Line 103  class Test_Util_SpatialFunctions_noGradO
103           ref+=whereZero(x[0]-0.5,tol=self.RES_TOL)*[-1,0]           ref+=whereZero(x[0]-0.5,tol=self.RES_TOL)*[-1,0]
104    
105       res=f.getNormal()       res=f.getNormal()
106       self.failUnlessEqual(res.getShape(),(dim,),"wrong shape of result.")       self.assertEqual(res.getShape(),(dim,),"wrong shape of result.")
107       self.failUnlessEqual(res.getFunctionSpace(),f,"wrong functionspace of result.")       self.assertEqual(res.getFunctionSpace(),f,"wrong functionspace of result.")
108       self.failUnless(Lsup(length(res)-1)<=self.RES_TOL,"wrong length")       self.assertTrue(Lsup(length(res)-1)<=self.RES_TOL,"wrong length")
109       self.failUnless(Lsup(abs(inner(ref,res))-1)<=self.RES_TOL,"wrong direction")       self.assertTrue(Lsup(abs(inner(ref,res))-1)<=self.RES_TOL,"wrong direction")
110     def test_normal_onReducedFunctionOnContactOne(self):     def test_normal_onReducedFunctionOnContactOne(self):
111       """       """
112       test getNormal() on contact side 1       test getNormal() on contact side 1
# Line 123  class Test_Util_SpatialFunctions_noGradO Line 123  class Test_Util_SpatialFunctions_noGradO
123           ref+=whereZero(x[0]-0.5,tol=self.RES_TOL)*[-1,0]           ref+=whereZero(x[0]-0.5,tol=self.RES_TOL)*[-1,0]
124    
125       res=f.getNormal()       res=f.getNormal()
126       self.failUnlessEqual(res.getShape(),(dim,),"wrong shape of result.")       self.assertEqual(res.getShape(),(dim,),"wrong shape of result.")
127       self.failUnlessEqual(res.getFunctionSpace(),f,"wrong functionspace of result.")       self.assertEqual(res.getFunctionSpace(),f,"wrong functionspace of result.")
128       self.failUnless(Lsup(length(res)-1)<=self.RES_TOL,"wrong length")       self.assertTrue(Lsup(length(res)-1)<=self.RES_TOL,"wrong length")
129       self.failUnless(Lsup(abs(inner(ref,res))-1)<=self.RES_TOL,"wrong direction")       self.assertTrue(Lsup(abs(inner(ref,res))-1)<=self.RES_TOL,"wrong direction")
130     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
131     def test_integrate_onFunctionOnContactZero_fromData_ContinuousFunction_rank0(self):     def test_integrate_onFunctionOnContactZero_fromData_ContinuousFunction_rank0(self):
132        """        """
# Line 148  class Test_Util_SpatialFunctions_noGradO Line 148  class Test_Util_SpatialFunctions_noGradO
148          arg=(0.233765319091)*x[0]**o+(-0.453551209762)*x[0]+(0.920140231713)*x[1]**o+(0.741695479084)*x[1]+(-0.255834461065)*x[2]**o+(-0.102580899053)*x[2]          arg=(0.233765319091)*x[0]**o+(-0.453551209762)*x[0]+(0.920140231713)*x[1]**o+(0.741695479084)*x[1]+(-0.255834461065)*x[2]**o+(-0.102580899053)*x[2]
149          ref=(0.664305770648)/(o+1.)+(0.0927816851348)+(0.233765319091)*0.5**o          ref=(0.664305770648)/(o+1.)+(0.0927816851348)+(0.233765319091)*0.5**o
150        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
151        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
152        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
153     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
154     def test_integrate_onFunctionOnContactZero_fromData_ContinuousFunction_rank1(self):     def test_integrate_onFunctionOnContactZero_fromData_ContinuousFunction_rank1(self):
155        """        """
# Line 176  class Test_Util_SpatialFunctions_noGradO Line 176  class Test_Util_SpatialFunctions_noGradO
176          ref[0]=(-0.181385039275)/(o+1.)+(-1.09763736054)+(0.844909347644)*0.5**o          ref[0]=(-0.181385039275)/(o+1.)+(-1.09763736054)+(0.844909347644)*0.5**o
177          ref[1]=(-0.367280475604)/(o+1.)+(-0.135042864326)+(0.900073726701)*0.5**o          ref[1]=(-0.367280475604)/(o+1.)+(-0.135042864326)+(0.900073726701)*0.5**o
178        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
179        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
180        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
181        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
182     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
183     def test_integrate_onFunctionOnContactZero_fromData_ContinuousFunction_rank2(self):     def test_integrate_onFunctionOnContactZero_fromData_ContinuousFunction_rank2(self):
184        """        """
# Line 277  class Test_Util_SpatialFunctions_noGradO Line 277  class Test_Util_SpatialFunctions_noGradO
277          ref[3,3]=(1.29850446055)/(o+1.)+(0.0961361561734)+(0.732863411435)*0.5**o          ref[3,3]=(1.29850446055)/(o+1.)+(0.0961361561734)+(0.732863411435)*0.5**o
278          ref[3,4]=(0.154492993358)/(o+1.)+(0.055490800047)+(-0.980748139471)*0.5**o          ref[3,4]=(0.154492993358)/(o+1.)+(0.055490800047)+(-0.980748139471)*0.5**o
279        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
280        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
281        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
282        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
283     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
284     def test_integrate_onFunctionOnContactZero_fromData_ContinuousFunction_rank3(self):     def test_integrate_onFunctionOnContactZero_fromData_ContinuousFunction_rank3(self):
285        """        """
# Line 394  class Test_Util_SpatialFunctions_noGradO Line 394  class Test_Util_SpatialFunctions_noGradO
394          ref[5,1,0]=(-1.25920234058)/(o+1.)+(-0.50496250596)+(-0.228069986734)*0.5**o          ref[5,1,0]=(-1.25920234058)/(o+1.)+(-0.50496250596)+(-0.228069986734)*0.5**o
395          ref[5,1,1]=(0.489196856583)/(o+1.)+(0.599097104586)+(0.177872029425)*0.5**o          ref[5,1,1]=(0.489196856583)/(o+1.)+(0.599097104586)+(0.177872029425)*0.5**o
396        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
397        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
398        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
399        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
400     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
401     def test_integrate_onFunctionOnContactZero_fromData_ContinuousFunction_rank4(self):     def test_integrate_onFunctionOnContactZero_fromData_ContinuousFunction_rank4(self):
402        """        """
# Line 895  class Test_Util_SpatialFunctions_noGradO Line 895  class Test_Util_SpatialFunctions_noGradO
895          ref[3,4,2,0]=(-1.40693165856)/(o+1.)+(0.796839755046)+(-0.195181632154)*0.5**o          ref[3,4,2,0]=(-1.40693165856)/(o+1.)+(0.796839755046)+(-0.195181632154)*0.5**o
896          ref[3,4,2,1]=(-0.109962351944)/(o+1.)+(-0.36347859654)+(0.270278273932)*0.5**o          ref[3,4,2,1]=(-0.109962351944)/(o+1.)+(-0.36347859654)+(0.270278273932)*0.5**o
897        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
898        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
899        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
900        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
901     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
902     def test_integrate_onFunctionOnContactZero_fromData_Solution_rank0(self):     def test_integrate_onFunctionOnContactZero_fromData_Solution_rank0(self):
903        """        """
# Line 919  class Test_Util_SpatialFunctions_noGradO Line 919  class Test_Util_SpatialFunctions_noGradO
919          arg=(-0.765858486678)*x[0]**o+(-0.829061249978)*x[0]+(-0.0255273602735)*x[1]**o+(-0.93097352763)*x[1]+(-0.775974817954)*x[2]**o+(0.0414580763278)*x[2]          arg=(-0.765858486678)*x[0]**o+(-0.829061249978)*x[0]+(-0.0255273602735)*x[1]**o+(-0.93097352763)*x[1]+(-0.775974817954)*x[2]**o+(0.0414580763278)*x[2]
920          ref=(-0.801502178228)/(o+1.)+(-0.85928835064)+(-0.765858486678)*0.5**o          ref=(-0.801502178228)/(o+1.)+(-0.85928835064)+(-0.765858486678)*0.5**o
921        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
922        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
923        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
924     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
925     def test_integrate_onFunctionOnContactZero_fromData_Solution_rank1(self):     def test_integrate_onFunctionOnContactZero_fromData_Solution_rank1(self):
926        """        """
# Line 947  class Test_Util_SpatialFunctions_noGradO Line 947  class Test_Util_SpatialFunctions_noGradO
947          ref[0]=(0.877459057383)/(o+1.)+(0.245517460559)+(-0.516066856372)*0.5**o          ref[0]=(0.877459057383)/(o+1.)+(0.245517460559)+(-0.516066856372)*0.5**o
948          ref[1]=(-0.651840670298)/(o+1.)+(0.0392808582465)+(0.948762785699)*0.5**o          ref[1]=(-0.651840670298)/(o+1.)+(0.0392808582465)+(0.948762785699)*0.5**o
949        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
950        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
951        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
952        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
953     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
954     def test_integrate_onFunctionOnContactZero_fromData_Solution_rank2(self):     def test_integrate_onFunctionOnContactZero_fromData_Solution_rank2(self):
955        """        """
# Line 1048  class Test_Util_SpatialFunctions_noGradO Line 1048  class Test_Util_SpatialFunctions_noGradO
1048          ref[3,3]=(-1.20213571092)/(o+1.)+(0.336359779668)+(-0.322275644664)*0.5**o          ref[3,3]=(-1.20213571092)/(o+1.)+(0.336359779668)+(-0.322275644664)*0.5**o
1049          ref[3,4]=(0.13939615038)/(o+1.)+(-0.692725879875)+(0.595459342613)*0.5**o          ref[3,4]=(0.13939615038)/(o+1.)+(-0.692725879875)+(0.595459342613)*0.5**o
1050        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
1051        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
1052        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
1053        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1054     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1055     def test_integrate_onFunctionOnContactZero_fromData_Solution_rank3(self):     def test_integrate_onFunctionOnContactZero_fromData_Solution_rank3(self):
1056        """        """
# Line 1165  class Test_Util_SpatialFunctions_noGradO Line 1165  class Test_Util_SpatialFunctions_noGradO
1165          ref[5,1,0]=(-0.196693995816)/(o+1.)+(-0.341449581363)+(0.11418535486)*0.5**o          ref[5,1,0]=(-0.196693995816)/(o+1.)+(-0.341449581363)+(0.11418535486)*0.5**o
1166          ref[5,1,1]=(-0.482729942895)/(o+1.)+(0.716447935227)+(0.455947680647)*0.5**o          ref[5,1,1]=(-0.482729942895)/(o+1.)+(0.716447935227)+(0.455947680647)*0.5**o
1167        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
1168        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
1169        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
1170        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1171     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1172     def test_integrate_onFunctionOnContactZero_fromData_Solution_rank4(self):     def test_integrate_onFunctionOnContactZero_fromData_Solution_rank4(self):
1173        """        """
# Line 1666  class Test_Util_SpatialFunctions_noGradO Line 1666  class Test_Util_SpatialFunctions_noGradO
1666          ref[3,4,2,0]=(0.891111463851)/(o+1.)+(0.221627765254)+(0.800058524963)*0.5**o          ref[3,4,2,0]=(0.891111463851)/(o+1.)+(0.221627765254)+(0.800058524963)*0.5**o
1667          ref[3,4,2,1]=(-0.0533896507631)/(o+1.)+(0.551652029667)+(-0.533834741079)*0.5**o          ref[3,4,2,1]=(-0.0533896507631)/(o+1.)+(0.551652029667)+(-0.533834741079)*0.5**o
1668        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
1669        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
1670        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
1671        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1672     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1673     def test_integrate_onFunctionOnContactZero_fromData_ReducedSolution_rank0(self):     def test_integrate_onFunctionOnContactZero_fromData_ReducedSolution_rank0(self):
1674        """        """
# Line 1690  class Test_Util_SpatialFunctions_noGradO Line 1690  class Test_Util_SpatialFunctions_noGradO
1690          arg=(1.28222892931)*x[0]+(-0.798170675576)*x[1]+(1.5701208405)*x[2]          arg=(1.28222892931)*x[0]+(-0.798170675576)*x[1]+(1.5701208405)*x[2]
1691          ref=(0.721975372868)/(o+1.)+(0.344720905832)+(0.642761909705)*0.5**o          ref=(0.721975372868)/(o+1.)+(0.344720905832)+(0.642761909705)*0.5**o
1692        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
1693        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
1694        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1695     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1696     def test_integrate_onFunctionOnContactZero_fromData_ReducedSolution_rank1(self):     def test_integrate_onFunctionOnContactZero_fromData_ReducedSolution_rank1(self):
1697        """        """
# Line 1718  class Test_Util_SpatialFunctions_noGradO Line 1718  class Test_Util_SpatialFunctions_noGradO
1718          ref[0]=(-0.494870303061)/(o+1.)+(0.0697636237654)+(-0.0296734121631)*0.5**o          ref[0]=(-0.494870303061)/(o+1.)+(0.0697636237654)+(-0.0296734121631)*0.5**o
1719          ref[1]=(-0.394300983704)/(o+1.)+(0.722261312754)+(0.434675826665)*0.5**o          ref[1]=(-0.394300983704)/(o+1.)+(0.722261312754)+(0.434675826665)*0.5**o
1720        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
1721        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
1722        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
1723        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1724     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1725     def test_integrate_onFunctionOnContactZero_fromData_ReducedSolution_rank2(self):     def test_integrate_onFunctionOnContactZero_fromData_ReducedSolution_rank2(self):
1726        """        """
# Line 1819  class Test_Util_SpatialFunctions_noGradO Line 1819  class Test_Util_SpatialFunctions_noGradO
1819          ref[3,3]=(-0.688723266524)/(o+1.)+(0.43486027018)+(-0.124310108473)*0.5**o          ref[3,3]=(-0.688723266524)/(o+1.)+(0.43486027018)+(-0.124310108473)*0.5**o
1820          ref[3,4]=(0.128399262674)/(o+1.)+(-0.372445844122)+(0.229780239192)*0.5**o          ref[3,4]=(0.128399262674)/(o+1.)+(-0.372445844122)+(0.229780239192)*0.5**o
1821        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
1822        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
1823        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
1824        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1825     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1826     def test_integrate_onFunctionOnContactZero_fromData_ReducedSolution_rank3(self):     def test_integrate_onFunctionOnContactZero_fromData_ReducedSolution_rank3(self):
1827        """        """
# Line 1936  class Test_Util_SpatialFunctions_noGradO Line 1936  class Test_Util_SpatialFunctions_noGradO
1936          ref[5,1,0]=(-0.573275891777)/(o+1.)+(-0.478328163121)+(0.445652706545)*0.5**o          ref[5,1,0]=(-0.573275891777)/(o+1.)+(-0.478328163121)+(0.445652706545)*0.5**o
1937          ref[5,1,1]=(0.0545515234726)/(o+1.)+(-0.153919681346)+(0.195590500493)*0.5**o          ref[5,1,1]=(0.0545515234726)/(o+1.)+(-0.153919681346)+(0.195590500493)*0.5**o
1938        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
1939        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
1940        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
1941        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1942     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1943     def test_integrate_onFunctionOnContactZero_fromData_ReducedSolution_rank4(self):     def test_integrate_onFunctionOnContactZero_fromData_ReducedSolution_rank4(self):
1944        """        """
# Line 2437  class Test_Util_SpatialFunctions_noGradO Line 2437  class Test_Util_SpatialFunctions_noGradO
2437          ref[3,4,2,0]=(0.0803465444931)/(o+1.)+(-0.518257569997)+(-0.681164419371)*0.5**o          ref[3,4,2,0]=(0.0803465444931)/(o+1.)+(-0.518257569997)+(-0.681164419371)*0.5**o
2438          ref[3,4,2,1]=(-0.0443609570522)/(o+1.)+(0.572813368096)+(0.552725372202)*0.5**o          ref[3,4,2,1]=(-0.0443609570522)/(o+1.)+(0.572813368096)+(0.552725372202)*0.5**o
2439        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
2440        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
2441        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
2442        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2443     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2444     def test_integrate_onFunctionOnContactZero_fromData_ReducedContinuousFunction_rank0(self):     def test_integrate_onFunctionOnContactZero_fromData_ReducedContinuousFunction_rank0(self):
2445        """        """
# Line 2461  class Test_Util_SpatialFunctions_noGradO Line 2461  class Test_Util_SpatialFunctions_noGradO
2461          arg=(1.28222892931)*x[0]+(-0.798170675576)*x[1]+(1.5701208405)*x[2]          arg=(1.28222892931)*x[0]+(-0.798170675576)*x[1]+(1.5701208405)*x[2]
2462          ref=(0.721975372868)/(o+1.)+(0.344720905832)+(0.642761909705)*0.5**o          ref=(0.721975372868)/(o+1.)+(0.344720905832)+(0.642761909705)*0.5**o
2463        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
2464        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
2465        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2466     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2467     def test_integrate_onFunctionOnContactZero_fromData_ReducedContinuousFunction_rank1(self):     def test_integrate_onFunctionOnContactZero_fromData_ReducedContinuousFunction_rank1(self):
2468        """        """
# Line 2489  class Test_Util_SpatialFunctions_noGradO Line 2489  class Test_Util_SpatialFunctions_noGradO
2489          ref[0]=(-0.494870303061)/(o+1.)+(0.0697636237654)+(-0.0296734121631)*0.5**o          ref[0]=(-0.494870303061)/(o+1.)+(0.0697636237654)+(-0.0296734121631)*0.5**o
2490          ref[1]=(-0.394300983704)/(o+1.)+(0.722261312754)+(0.434675826665)*0.5**o          ref[1]=(-0.394300983704)/(o+1.)+(0.722261312754)+(0.434675826665)*0.5**o
2491        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
2492        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
2493        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
2494        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2495     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2496     def test_integrate_onFunctionOnContactZero_fromData_ReducedContinuousFunction_rank2(self):     def test_integrate_onFunctionOnContactZero_fromData_ReducedContinuousFunction_rank2(self):
2497        """        """
# Line 2590  class Test_Util_SpatialFunctions_noGradO Line 2590  class Test_Util_SpatialFunctions_noGradO
2590          ref[3,3]=(-0.688723266524)/(o+1.)+(0.43486027018)+(-0.124310108473)*0.5**o          ref[3,3]=(-0.688723266524)/(o+1.)+(0.43486027018)+(-0.124310108473)*0.5**o
2591          ref[3,4]=(0.128399262674)/(o+1.)+(-0.372445844122)+(0.229780239192)*0.5**o          ref[3,4]=(0.128399262674)/(o+1.)+(-0.372445844122)+(0.229780239192)*0.5**o
2592        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
2593        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
2594        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
2595        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2596     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2597     def test_integrate_onFunctionOnContactZero_fromData_ReducedContinuousFunction_rank3(self):     def test_integrate_onFunctionOnContactZero_fromData_ReducedContinuousFunction_rank3(self):
2598        """        """
# Line 2707  class Test_Util_SpatialFunctions_noGradO Line 2707  class Test_Util_SpatialFunctions_noGradO
2707          ref[5,1,0]=(-0.573275891777)/(o+1.)+(-0.478328163121)+(0.445652706545)*0.5**o          ref[5,1,0]=(-0.573275891777)/(o+1.)+(-0.478328163121)+(0.445652706545)*0.5**o
2708          ref[5,1,1]=(0.0545515234726)/(o+1.)+(-0.153919681346)+(0.195590500493)*0.5**o          ref[5,1,1]=(0.0545515234726)/(o+1.)+(-0.153919681346)+(0.195590500493)*0.5**o
2709        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
2710        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
2711        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
2712        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2713     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2714     def test_integrate_onFunctionOnContactZero_fromData_ReducedContinuousFunction_rank4(self):     def test_integrate_onFunctionOnContactZero_fromData_ReducedContinuousFunction_rank4(self):
2715        """        """
# Line 3208  class Test_Util_SpatialFunctions_noGradO Line 3208  class Test_Util_SpatialFunctions_noGradO
3208          ref[3,4,2,0]=(0.0803465444931)/(o+1.)+(-0.518257569997)+(-0.681164419371)*0.5**o          ref[3,4,2,0]=(0.0803465444931)/(o+1.)+(-0.518257569997)+(-0.681164419371)*0.5**o
3209          ref[3,4,2,1]=(-0.0443609570522)/(o+1.)+(0.572813368096)+(0.552725372202)*0.5**o          ref[3,4,2,1]=(-0.0443609570522)/(o+1.)+(0.572813368096)+(0.552725372202)*0.5**o
3210        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
3211        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
3212        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
3213        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3214     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3215     def test_integrate_onFunctionOnContactZero_fromData_FunctionOnContactZero_rank0(self):     def test_integrate_onFunctionOnContactZero_fromData_FunctionOnContactZero_rank0(self):
3216        """        """
# Line 3232  class Test_Util_SpatialFunctions_noGradO Line 3232  class Test_Util_SpatialFunctions_noGradO
3232          arg=(-0.134961573162)*x[0]**o+(0.585433861814)*x[0]+(0.209596676649)*x[1]**o+(0.870867416311)*x[1]+(-0.902854033973)*x[2]**o+(-0.812135783993)*x[2]          arg=(-0.134961573162)*x[0]**o+(0.585433861814)*x[0]+(0.209596676649)*x[1]**o+(0.870867416311)*x[1]+(-0.902854033973)*x[2]**o+(-0.812135783993)*x[2]
3233          ref=(-0.693257357324)/(o+1.)+(0.322082747066)+(-0.134961573162)*0.5**o          ref=(-0.693257357324)/(o+1.)+(0.322082747066)+(-0.134961573162)*0.5**o
3234        res=integrate(arg)        res=integrate(arg)
3235        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
3236        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3237     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3238     def test_integrate_onFunctionOnContactZero_fromData_FunctionOnContactZero_rank1(self):     def test_integrate_onFunctionOnContactZero_fromData_FunctionOnContactZero_rank1(self):
3239        """        """
# Line 3260  class Test_Util_SpatialFunctions_noGradO Line 3260  class Test_Util_SpatialFunctions_noGradO
3260          ref[0]=(-0.946216898767)/(o+1.)+(0.402363067928)+(0.207042421638)*0.5**o          ref[0]=(-0.946216898767)/(o+1.)+(0.402363067928)+(0.207042421638)*0.5**o
3261          ref[1]=(0.740995417737)/(o+1.)+(-0.110035316955)+(-0.482897746923)*0.5**o          ref[1]=(0.740995417737)/(o+1.)+(-0.110035316955)+(-0.482897746923)*0.5**o
3262        res=integrate(arg)        res=integrate(arg)
3263        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
3264        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
3265        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3266     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3267     def test_integrate_onFunctionOnContactZero_fromData_FunctionOnContactZero_rank2(self):     def test_integrate_onFunctionOnContactZero_fromData_FunctionOnContactZero_rank2(self):
3268        """        """
# Line 3361  class Test_Util_SpatialFunctions_noGradO Line 3361  class Test_Util_SpatialFunctions_noGradO
3361          ref[3,3]=(-0.19969098259)/(o+1.)+(0.583996529426)+(0.444073180258)*0.5**o          ref[3,3]=(-0.19969098259)/(o+1.)+(0.583996529426)+(0.444073180258)*0.5**o
3362          ref[3,4]=(-0.631400251421)/(o+1.)+(0.158011823704)+(0.686438920325)*0.5**o          ref[3,4]=(-0.631400251421)/(o+1.)+(0.158011823704)+(0.686438920325)*0.5**o
3363        res=integrate(arg)        res=integrate(arg)
3364        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
3365        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
3366        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3367     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3368     def test_integrate_onFunctionOnContactZero_fromData_FunctionOnContactZero_rank3(self):     def test_integrate_onFunctionOnContactZero_fromData_FunctionOnContactZero_rank3(self):
3369        """        """
# Line 3478  class Test_Util_SpatialFunctions_noGradO Line 3478  class Test_Util_SpatialFunctions_noGradO
3478          ref[5,1,0]=(-1.62720267409)/(o+1.)+(0.450366814021)+(-0.298838035128)*0.5**o          ref[5,1,0]=(-1.62720267409)/(o+1.)+(0.450366814021)+(-0.298838035128)*0.5**o
3479          ref[5,1,1]=(0.576206606439)/(o+1.)+(0.133166064473)+(-0.949626960081)*0.5**o          ref[5,1,1]=(0.576206606439)/(o+1.)+(0.133166064473)+(-0.949626960081)*0.5**o
3480        res=integrate(arg)        res=integrate(arg)
3481        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
3482        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
3483        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3484     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3485     def test_integrate_onFunctionOnContactZero_fromData_FunctionOnContactZero_rank4(self):     def test_integrate_onFunctionOnContactZero_fromData_FunctionOnContactZero_rank4(self):
3486        """        """
# Line 3979  class Test_Util_SpatialFunctions_noGradO Line 3979  class Test_Util_SpatialFunctions_noGradO
3979          ref[3,4,2,0]=(-0.448948566381)/(o+1.)+(0.160689988193)+(-0.76912732001)*0.5**o          ref[3,4,2,0]=(-0.448948566381)/(o+1.)+(0.160689988193)+(-0.76912732001)*0.5**o
3980          ref[3,4,2,1]=(-0.571124298719)/(o+1.)+(-0.232553078069)+(-0.515945940217)*0.5**o          ref[3,4,2,1]=(-0.571124298719)/(o+1.)+(-0.232553078069)+(-0.515945940217)*0.5**o
3981        res=integrate(arg)        res=integrate(arg)
3982        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
3983        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
3984        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3985     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3986     def test_integrate_onFunctionOnContactZero_fromSymbol_ContinuousFunction_rank0(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_ContinuousFunction_rank0(self):
3987        """        """
# Line 4005  class Test_Util_SpatialFunctions_noGradO Line 4005  class Test_Util_SpatialFunctions_noGradO
4005          ref=(-0.210137172871)/(o+1.)+(0.068113514033)+(0.129836073672)*0.5**o          ref=(-0.210137172871)/(o+1.)+(0.068113514033)+(0.129836073672)*0.5**o
4006        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
4007        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
4008        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
4009        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
4010        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4011     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4012     def test_integrate_onFunctionOnContactZero_fromSymbol_ContinuousFunction_rank1(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_ContinuousFunction_rank1(self):
4013        """        """
# Line 4036  class Test_Util_SpatialFunctions_noGradO Line 4036  class Test_Util_SpatialFunctions_noGradO
4036          ref[1]=(-0.128622763161)/(o+1.)+(-0.243098920542)+(-0.226900637285)*0.5**o          ref[1]=(-0.128622763161)/(o+1.)+(-0.243098920542)+(-0.226900637285)*0.5**o
4037        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
4038        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
4039        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
4040        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
4041        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4042     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4043     def test_integrate_onFunctionOnContactZero_fromSymbol_ContinuousFunction_rank2(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_ContinuousFunction_rank2(self):
4044        """        """
# Line 4139  class Test_Util_SpatialFunctions_noGradO Line 4139  class Test_Util_SpatialFunctions_noGradO
4139          ref[3,4]=(0.65552260388)/(o+1.)+(0.504167262435)+(0.0580656964124)*0.5**o          ref[3,4]=(0.65552260388)/(o+1.)+(0.504167262435)+(0.0580656964124)*0.5**o
4140        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
4141        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
4142        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
4143        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
4144        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4145     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4146     def test_integrate_onFunctionOnContactZero_fromSymbol_ContinuousFunction_rank3(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_ContinuousFunction_rank3(self):
4147        """        """
# Line 4258  class Test_Util_SpatialFunctions_noGradO Line 4258  class Test_Util_SpatialFunctions_noGradO
4258          ref[5,1,1]=(0.520049443126)/(o+1.)+(-0.654040069724)+(-0.417452810992)*0.5**o          ref[5,1,1]=(0.520049443126)/(o+1.)+(-0.654040069724)+(-0.417452810992)*0.5**o
4259        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
4260        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
4261        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
4262        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
4263        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4264     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4265     def test_integrate_onFunctionOnContactZero_fromSymbol_ContinuousFunction_rank4(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_ContinuousFunction_rank4(self):
4266        """        """
# Line 4761  class Test_Util_SpatialFunctions_noGradO Line 4761  class Test_Util_SpatialFunctions_noGradO
4761          ref[3,4,2,1]=(0.969719660142)/(o+1.)+(0.113155244129)+(0.154883537954)*0.5**o          ref[3,4,2,1]=(0.969719660142)/(o+1.)+(0.113155244129)+(0.154883537954)*0.5**o
4762        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
4763        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
4764        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
4765        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
4766        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4767     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4768     def test_integrate_onFunctionOnContactZero_fromSymbol_Solution_rank0(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_Solution_rank0(self):
4769        """        """
# Line 4787  class Test_Util_SpatialFunctions_noGradO Line 4787  class Test_Util_SpatialFunctions_noGradO
4787          ref=(0.160958949751)/(o+1.)+(0.872597397246)+(-0.534750207803)*0.5**o          ref=(0.160958949751)/(o+1.)+(0.872597397246)+(-0.534750207803)*0.5**o
4788        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
4789        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
4790        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
4791        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
4792        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4793     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4794     def test_integrate_onFunctionOnContactZero_fromSymbol_Solution_rank1(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_Solution_rank1(self):
4795        """        """
# Line 4818  class Test_Util_SpatialFunctions_noGradO Line 4818  class Test_Util_SpatialFunctions_noGradO
4818          ref[1]=(1.42522370097)/(o+1.)+(-0.603490152759)+(0.734011170766)*0.5**o          ref[1]=(1.42522370097)/(o+1.)+(-0.603490152759)+(0.734011170766)*0.5**o
4819        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
4820        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
4821        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
4822        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
4823        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4824     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4825     def test_integrate_onFunctionOnContactZero_fromSymbol_Solution_rank2(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_Solution_rank2(self):
4826        """        """
# Line 4921  class Test_Util_SpatialFunctions_noGradO Line 4921  class Test_Util_SpatialFunctions_noGradO
4921          ref[3,4]=(-0.67405509874)/(o+1.)+(-0.152895135225)+(0.634255080399)*0.5**o          ref[3,4]=(-0.67405509874)/(o+1.)+(-0.152895135225)+(0.634255080399)*0.5**o
4922        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
4923        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
4924        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
4925        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
4926        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4927     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4928     def test_integrate_onFunctionOnContactZero_fromSymbol_Solution_rank3(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_Solution_rank3(self):
4929        """        """
# Line 5040  class Test_Util_SpatialFunctions_noGradO Line 5040  class Test_Util_SpatialFunctions_noGradO
5040          ref[5,1,1]=(-0.159337184705)/(o+1.)+(0.747516474218)+(0.644695792666)*0.5**o          ref[5,1,1]=(-0.159337184705)/(o+1.)+(0.747516474218)+(0.644695792666)*0.5**o
5041        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
5042        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
5043        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
5044        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5045        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5046     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5047     def test_integrate_onFunctionOnContactZero_fromSymbol_Solution_rank4(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_Solution_rank4(self):
5048        """        """
# Line 5543  class Test_Util_SpatialFunctions_noGradO Line 5543  class Test_Util_SpatialFunctions_noGradO
5543          ref[3,4,2,1]=(0.574356637193)/(o+1.)+(-0.0328240856895)+(0.610198649476)*0.5**o          ref[3,4,2,1]=(0.574356637193)/(o+1.)+(-0.0328240856895)+(0.610198649476)*0.5**o
5544        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
5545        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
5546        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
5547        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
5548        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5549     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5550     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedSolution_rank0(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedSolution_rank0(self):
5551        """        """
# Line 5569  class Test_Util_SpatialFunctions_noGradO Line 5569  class Test_Util_SpatialFunctions_noGradO
5569          ref=(-1.3902352024)/(o+1.)+(-1.03788235052)+(-0.720496602901)*0.5**o          ref=(-1.3902352024)/(o+1.)+(-1.03788235052)+(-0.720496602901)*0.5**o
5570        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
5571        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
5572        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
5573        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
5574        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5575     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5576     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedSolution_rank1(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedSolution_rank1(self):
5577        """        """
# Line 5600  class Test_Util_SpatialFunctions_noGradO Line 5600  class Test_Util_SpatialFunctions_noGradO
5600          ref[1]=(-1.40806718776)/(o+1.)+(0.267420623854)+(0.125934816108)*0.5**o          ref[1]=(-1.40806718776)/(o+1.)+(0.267420623854)+(0.125934816108)*0.5**o
5601        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
5602        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
5603        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
5604        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
5605        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5606     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5607     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedSolution_rank2(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedSolution_rank2(self):
5608        """        """
# Line 5703  class Test_Util_SpatialFunctions_noGradO Line 5703  class Test_Util_SpatialFunctions_noGradO
5703          ref[3,4]=(0.846470301583)/(o+1.)+(-0.134756583683)+(0.441058932543)*0.5**o          ref[3,4]=(0.846470301583)/(o+1.)+(-0.134756583683)+(0.441058932543)*0.5**o
5704        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
5705        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
5706        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
5707        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
5708        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5709     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5710     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedSolution_rank3(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedSolution_rank3(self):
5711        """        """
# Line 5822  class Test_Util_SpatialFunctions_noGradO Line 5822  class Test_Util_SpatialFunctions_noGradO
5822          ref[5,1,1]=(-0.112001801469)/(o+1.)+(-0.0274812221923)+(-0.425191570457)*0.5**o          ref[5,1,1]=(-0.112001801469)/(o+1.)+(-0.0274812221923)+(-0.425191570457)*0.5**o
5823        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
5824        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
5825        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
5826        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5827        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5828     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5829     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedSolution_rank4(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedSolution_rank4(self):
5830        """        """
# Line 6325  class Test_Util_SpatialFunctions_noGradO Line 6325  class Test_Util_SpatialFunctions_noGradO
6325          ref[3,4,2,1]=(-0.0303035732231)/(o+1.)+(0.0375314231208)+(-0.715829853629)*0.5**o          ref[3,4,2,1]=(-0.0303035732231)/(o+1.)+(0.0375314231208)+(-0.715829853629)*0.5**o
6326        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
6327        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
6328        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
6329        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
6330        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6331     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6332     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank0(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank0(self):
6333        """        """
# Line 6351  class Test_Util_SpatialFunctions_noGradO Line 6351  class Test_Util_SpatialFunctions_noGradO
6351          ref=(-1.3902352024)/(o+1.)+(-1.03788235052)+(-0.720496602901)*0.5**o          ref=(-1.3902352024)/(o+1.)+(-1.03788235052)+(-0.720496602901)*0.5**o
6352        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
6353        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
6354        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
6355        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
6356        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6357     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6358     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank1(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank1(self):
6359        """        """
# Line 6382  class Test_Util_SpatialFunctions_noGradO Line 6382  class Test_Util_SpatialFunctions_noGradO
6382          ref[1]=(-1.40806718776)/(o+1.)+(0.267420623854)+(0.125934816108)*0.5**o          ref[1]=(-1.40806718776)/(o+1.)+(0.267420623854)+(0.125934816108)*0.5**o
6383        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
6384        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
6385        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
6386        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
6387        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6388     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6389     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank2(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank2(self):
6390        """        """
# Line 6485  class Test_Util_SpatialFunctions_noGradO Line 6485  class Test_Util_SpatialFunctions_noGradO
6485          ref[3,4]=(0.846470301583)/(o+1.)+(-0.134756583683)+(0.441058932543)*0.5**o          ref[3,4]=(0.846470301583)/(o+1.)+(-0.134756583683)+(0.441058932543)*0.5**o
6486        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
6487        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
6488        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
6489        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
6490        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6491     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6492     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank3(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank3(self):
6493        """        """
# Line 6604  class Test_Util_SpatialFunctions_noGradO Line 6604  class Test_Util_SpatialFunctions_noGradO
6604          ref[5,1,1]=(-0.112001801469)/(o+1.)+(-0.0274812221923)+(-0.425191570457)*0.5**o          ref[5,1,1]=(-0.112001801469)/(o+1.)+(-0.0274812221923)+(-0.425191570457)*0.5**o
6605        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
6606        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
6607        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
6608        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6609        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6610     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6611     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank4(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank4(self):
6612        """        """
# Line 7107  class Test_Util_SpatialFunctions_noGradO Line 7107  class Test_Util_SpatialFunctions_noGradO
7107          ref[3,4,2,1]=(-0.0303035732231)/(o+1.)+(0.0375314231208)+(-0.715829853629)*0.5**o          ref[3,4,2,1]=(-0.0303035732231)/(o+1.)+(0.0375314231208)+(-0.715829853629)*0.5**o
7108        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
7109        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
7110        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
7111        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
7112        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
7113     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
7114     def test_integrate_onFunctionOnContactZero_fromSymbol_FunctionOnContactZero_rank0(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_FunctionOnContactZero_rank0(self):
7115        """        """
# Line 7133  class Test_Util_SpatialFunctions_noGradO Line 7133  class Test_Util_SpatialFunctions_noGradO
7133          ref=(0.702483835359)/(o+1.)+(0.290701816942)+(-0.338096271642)*0.5**o          ref=(0.702483835359)/(o+1.)+(0.290701816942)+(-0.338096271642)*0.5**o
7134        res=integrate(arg)        res=integrate(arg)
7135        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
7136        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
7137        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
7138        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
7139     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
7140     def test_integrate_onFunctionOnContactZero_fromSymbol_FunctionOnContactZero_rank1(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_FunctionOnContactZero_rank1(self):
7141        """        """
# Line 7164  class Test_Util_SpatialFunctions_noGradO Line 7164  class Test_Util_SpatialFunctions_noGradO
7164          ref[1]=(0.359960271605)/(o+1.)+(0.0187237681618)+(-0.623757173924)*0.5**o          ref[1]=(0.359960271605)/(o+1.)+(0.0187237681618)+(-0.623757173924)*0.5**o
7165        res=integrate(arg)        res=integrate(arg)
7166        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
7167        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
7168        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
7169        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
7170     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
7171     def test_integrate_onFunctionOnContactZero_fromSymbol_FunctionOnContactZero_rank2(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_FunctionOnContactZero_rank2(self):
7172        """        """
# Line 7267  class Test_Util_SpatialFunctions_noGradO Line 7267  class Test_Util_SpatialFunctions_noGradO
7267          ref[3,4]=(0.749079386941)/(o+1.)+(-0.70683791492)+(0.412388911019)*0.5**o          ref[3,4]=(0.749079386941)/(o+1.)+(-0.70683791492)+(0.412388911019)*0.5**o
7268        res=integrate(arg)        res=integrate(arg)
7269        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
7270        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
7271        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
7272        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
7273     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
7274     def test_integrate_onFunctionOnContactZero_fromSymbol_FunctionOnContactZero_rank3(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_FunctionOnContactZero_rank3(self):
7275        """        """
# Line 7386  class Test_Util_SpatialFunctions_noGradO Line 7386  class Test_Util_SpatialFunctions_noGradO
7386          ref[5,1,1]=(0.921891283761)/(o+1.)+(-0.354075335912)+(0.993758177333)*0.5**o          ref[5,1,1]=(0.921891283761)/(o+1.)+(-0.354075335912)+(0.993758177333)*0.5**o
7387        res=integrate(arg)        res=integrate(arg)
7388        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
7389        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
7390        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
7391        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
7392     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
7393     def test_integrate_onFunctionOnContactZero_fromSymbol_FunctionOnContactZero_rank4(self):     def test_integrate_onFunctionOnContactZero_fromSymbol_FunctionOnContactZero_rank4(self):
7394        """        """
# Line 7889  class Test_Util_SpatialFunctions_noGradO Line 7889  class Test_Util_SpatialFunctions_noGradO
7889          ref[3,4,2,1]=(-0.540068657076)/(o+1.)+(0.375311078022)+(-0.0213427465429)*0.5**o          ref[3,4,2,1]=(-0.540068657076)/(o+1.)+(0.375311078022)+(-0.0213427465429)*0.5**o
7890        res=integrate(arg)        res=integrate(arg)
7891        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
7892        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
7893        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
7894        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
7895    
7896     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
7897     def test_integrate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank0(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank0(self):
# Line 7914  class Test_Util_SpatialFunctions_noGradO Line 7914  class Test_Util_SpatialFunctions_noGradO
7914          arg=(0.233765319091)*x[0]**o+(-0.453551209762)*x[0]+(0.920140231713)*x[1]**o+(0.741695479084)*x[1]+(-0.255834461065)*x[2]**o+(-0.102580899053)*x[2]          arg=(0.233765319091)*x[0]**o+(-0.453551209762)*x[0]+(0.920140231713)*x[1]**o+(0.741695479084)*x[1]+(-0.255834461065)*x[2]**o+(-0.102580899053)*x[2]
7915          ref=(0.664305770648)/(o+1.)+(0.0927816851348)+(0.233765319091)*0.5**o          ref=(0.664305770648)/(o+1.)+(0.0927816851348)+(0.233765319091)*0.5**o
7916        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
7917        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
7918        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
7919     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
7920     def test_integrate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank1(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank1(self):
7921        """        """
# Line 7942  class Test_Util_SpatialFunctions_noGradO Line 7942  class Test_Util_SpatialFunctions_noGradO
7942          ref[0]=(-0.181385039275)/(o+1.)+(-1.09763736054)+(0.844909347644)*0.5**o          ref[0]=(-0.181385039275)/(o+1.)+(-1.09763736054)+(0.844909347644)*0.5**o
7943          ref[1]=(-0.367280475604)/(o+1.)+(-0.135042864326)+(0.900073726701)*0.5**o          ref[1]=(-0.367280475604)/(o+1.)+(-0.135042864326)+(0.900073726701)*0.5**o
7944        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
7945        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
7946        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
7947        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
7948     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
7949     def test_integrate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank2(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank2(self):
7950        """        """
# Line 8043  class Test_Util_SpatialFunctions_noGradO Line 8043  class Test_Util_SpatialFunctions_noGradO
8043          ref[3,3]=(1.29850446055)/(o+1.)+(0.0961361561734)+(0.732863411435)*0.5**o          ref[3,3]=(1.29850446055)/(o+1.)+(0.0961361561734)+(0.732863411435)*0.5**o
8044          ref[3,4]=(0.154492993358)/(o+1.)+(0.055490800047)+(-0.980748139471)*0.5**o          ref[3,4]=(0.154492993358)/(o+1.)+(0.055490800047)+(-0.980748139471)*0.5**o
8045        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
8046        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
8047        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
8048        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
8049     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8050     def test_integrate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank3(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank3(self):
8051        """        """
# Line 8160  class Test_Util_SpatialFunctions_noGradO Line 8160  class Test_Util_SpatialFunctions_noGradO
8160          ref[5,1,0]=(-1.25920234058)/(o+1.)+(-0.50496250596)+(-0.228069986734)*0.5**o          ref[5,1,0]=(-1.25920234058)/(o+1.)+(-0.50496250596)+(-0.228069986734)*0.5**o
8161          ref[5,1,1]=(0.489196856583)/(o+1.)+(0.599097104586)+(0.177872029425)*0.5**o          ref[5,1,1]=(0.489196856583)/(o+1.)+(0.599097104586)+(0.177872029425)*0.5**o
8162        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
8163        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
8164        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
8165        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
8166     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8167     def test_integrate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank4(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank4(self):
8168        """        """
# Line 8661  class Test_Util_SpatialFunctions_noGradO Line 8661  class Test_Util_SpatialFunctions_noGradO
8661          ref[3,4,2,0]=(-1.40693165856)/(o+1.)+(0.796839755046)+(-0.195181632154)*0.5**o          ref[3,4,2,0]=(-1.40693165856)/(o+1.)+(0.796839755046)+(-0.195181632154)*0.5**o
8662          ref[3,4,2,1]=(-0.109962351944)/(o+1.)+(-0.36347859654)+(0.270278273932)*0.5**o          ref[3,4,2,1]=(-0.109962351944)/(o+1.)+(-0.36347859654)+(0.270278273932)*0.5**o
8663        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
8664        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
8665        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
8666        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
8667     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8668     def test_integrate_onReducedFunctionOnContactZero_fromData_Solution_rank0(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_Solution_rank0(self):
8669        """        """
# Line 8685  class Test_Util_SpatialFunctions_noGradO Line 8685  class Test_Util_SpatialFunctions_noGradO
8685          arg=(-0.765858486678)*x[0]**o+(-0.829061249978)*x[0]+(-0.0255273602735)*x[1]**o+(-0.93097352763)*x[1]+(-0.775974817954)*x[2]**o+(0.0414580763278)*x[2]          arg=(-0.765858486678)*x[0]**o+(-0.829061249978)*x[0]+(-0.0255273602735)*x[1]**o+(-0.93097352763)*x[1]+(-0.775974817954)*x[2]**o+(0.0414580763278)*x[2]
8686          ref=(-0.801502178228)/(o+1.)+(-0.85928835064)+(-0.765858486678)*0.5**o          ref=(-0.801502178228)/(o+1.)+(-0.85928835064)+(-0.765858486678)*0.5**o
8687        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
8688        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
8689        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
8690     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8691     def test_integrate_onReducedFunctionOnContactZero_fromData_Solution_rank1(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_Solution_rank1(self):
8692        """        """
# Line 8713  class Test_Util_SpatialFunctions_noGradO Line 8713  class Test_Util_SpatialFunctions_noGradO
8713          ref[0]=(0.877459057383)/(o+1.)+(0.245517460559)+(-0.516066856372)*0.5**o          ref[0]=(0.877459057383)/(o+1.)+(0.245517460559)+(-0.516066856372)*0.5**o
8714          ref[1]=(-0.651840670298)/(o+1.)+(0.0392808582465)+(0.948762785699)*0.5**o          ref[1]=(-0.651840670298)/(o+1.)+(0.0392808582465)+(0.948762785699)*0.5**o
8715        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
8716        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
8717        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
8718        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
8719     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8720     def test_integrate_onReducedFunctionOnContactZero_fromData_Solution_rank2(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_Solution_rank2(self):
8721        """        """
# Line 8814  class Test_Util_SpatialFunctions_noGradO Line 8814  class Test_Util_SpatialFunctions_noGradO
8814          ref[3,3]=(-1.20213571092)/(o+1.)+(0.336359779668)+(-0.322275644664)*0.5**o          ref[3,3]=(-1.20213571092)/(o+1.)+(0.336359779668)+(-0.322275644664)*0.5**o
8815          ref[3,4]=(0.13939615038)/(o+1.)+(-0.692725879875)+(0.595459342613)*0.5**o          ref[3,4]=(0.13939615038)/(o+1.)+(-0.692725879875)+(0.595459342613)*0.5**o
8816        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
8817        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
8818        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
8819        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
8820     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8821     def test_integrate_onReducedFunctionOnContactZero_fromData_Solution_rank3(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_Solution_rank3(self):
8822        """        """
# Line 8931  class Test_Util_SpatialFunctions_noGradO Line 8931  class Test_Util_SpatialFunctions_noGradO
8931          ref[5,1,0]=(-0.196693995816)/(o+1.)+(-0.341449581363)+(0.11418535486)*0.5**o          ref[5,1,0]=(-0.196693995816)/(o+1.)+(-0.341449581363)+(0.11418535486)*0.5**o
8932          ref[5,1,1]=(-0.482729942895)/(o+1.)+(0.716447935227)+(0.455947680647)*0.5**o          ref[5,1,1]=(-0.482729942895)/(o+1.)+(0.716447935227)+(0.455947680647)*0.5**o
8933        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
8934        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
8935        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
8936        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
8937     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8938     def test_integrate_onReducedFunctionOnContactZero_fromData_Solution_rank4(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_Solution_rank4(self):
8939        """        """
# Line 9432  class Test_Util_SpatialFunctions_noGradO Line 9432  class Test_Util_SpatialFunctions_noGradO
9432          ref[3,4,2,0]=(0.891111463851)/(o+1.)+(0.221627765254)+(0.800058524963)*0.5**o          ref[3,4,2,0]=(0.891111463851)/(o+1.)+(0.221627765254)+(0.800058524963)*0.5**o
9433          ref[3,4,2,1]=(-0.0533896507631)/(o+1.)+(0.551652029667)+(-0.533834741079)*0.5**o          ref[3,4,2,1]=(-0.0533896507631)/(o+1.)+(0.551652029667)+(-0.533834741079)*0.5**o
9434        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
9435        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
9436        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
9437        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
9438     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
9439     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank0(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank0(self):
9440        """        """
# Line 9456  class Test_Util_SpatialFunctions_noGradO Line 9456  class Test_Util_SpatialFunctions_noGradO
9456          arg=(1.28222892931)*x[0]+(-0.798170675576)*x[1]+(1.5701208405)*x[2]          arg=(1.28222892931)*x[0]+(-0.798170675576)*x[1]+(1.5701208405)*x[2]
9457          ref=(0.721975372868)/(o+1.)+(0.344720905832)+(0.642761909705)*0.5**o          ref=(0.721975372868)/(o+1.)+(0.344720905832)+(0.642761909705)*0.5**o
9458        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
9459        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
9460        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
9461     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
9462     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank1(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank1(self):
9463        """        """
# Line 9484  class Test_Util_SpatialFunctions_noGradO Line 9484  class Test_Util_SpatialFunctions_noGradO
9484          ref[0]=(-0.494870303061)/(o+1.)+(0.0697636237654)+(-0.0296734121631)*0.5**o          ref[0]=(-0.494870303061)/(o+1.)+(0.0697636237654)+(-0.0296734121631)*0.5**o
9485          ref[1]=(-0.394300983704)/(o+1.)+(0.722261312754)+(0.434675826665)*0.5**o          ref[1]=(-0.394300983704)/(o+1.)+(0.722261312754)+(0.434675826665)*0.5**o
9486        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
9487        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
9488        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
9489        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
9490     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
9491     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank2(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank2(self):
9492        """        """
# Line 9585  class Test_Util_SpatialFunctions_noGradO Line 9585  class Test_Util_SpatialFunctions_noGradO
9585          ref[3,3]=(-0.688723266524)/(o+1.)+(0.43486027018)+(-0.124310108473)*0.5**o          ref[3,3]=(-0.688723266524)/(o+1.)+(0.43486027018)+(-0.124310108473)*0.5**o
9586          ref[3,4]=(0.128399262674)/(o+1.)+(-0.372445844122)+(0.229780239192)*0.5**o          ref[3,4]=(0.128399262674)/(o+1.)+(-0.372445844122)+(0.229780239192)*0.5**o
9587        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
9588        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
9589        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
9590        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
9591     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
9592     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank3(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank3(self):
9593        """        """
# Line 9702  class Test_Util_SpatialFunctions_noGradO Line 9702  class Test_Util_SpatialFunctions_noGradO
9702          ref[5,1,0]=(-0.573275891777)/(o+1.)+(-0.478328163121)+(0.445652706545)*0.5**o          ref[5,1,0]=(-0.573275891777)/(o+1.)+(-0.478328163121)+(0.445652706545)*0.5**o
9703          ref[5,1,1]=(0.0545515234726)/(o+1.)+(-0.153919681346)+(0.195590500493)*0.5**o          ref[5,1,1]=(0.0545515234726)/(o+1.)+(-0.153919681346)+(0.195590500493)*0.5**o
9704        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
9705        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
9706        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
9707        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
9708     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
9709     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank4(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank4(self):
9710        """        """
# Line 10203  class Test_Util_SpatialFunctions_noGradO Line 10203  class Test_Util_SpatialFunctions_noGradO
10203          ref[3,4,2,0]=(0.0803465444931)/(o+1.)+(-0.518257569997)+(-0.681164419371)*0.5**o          ref[3,4,2,0]=(0.0803465444931)/(o+1.)+(-0.518257569997)+(-0.681164419371)*0.5**o
10204          ref[3,4,2,1]=(-0.0443609570522)/(o+1.)+(0.572813368096)+(0.552725372202)*0.5**o          ref[3,4,2,1]=(-0.0443609570522)/(o+1.)+(0.572813368096)+(0.552725372202)*0.5**o
10205        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
10206        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
10207        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
10208        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
10209     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10210     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank0(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank0(self):
10211        """        """
# Line 10227  class Test_Util_SpatialFunctions_noGradO Line 10227  class Test_Util_SpatialFunctions_noGradO
10227          arg=(1.28222892931)*x[0]+(-0.798170675576)*x[1]+(1.5701208405)*x[2]          arg=(1.28222892931)*x[0]+(-0.798170675576)*x[1]+(1.5701208405)*x[2]
10228          ref=(0.721975372868)/(o+1.)+(0.344720905832)+(0.642761909705)*0.5**o          ref=(0.721975372868)/(o+1.)+(0.344720905832)+(0.642761909705)*0.5**o
10229        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
10230        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
10231        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
10232     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10233     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank1(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank1(self):
10234        """        """
# Line 10255  class Test_Util_SpatialFunctions_noGradO Line 10255  class Test_Util_SpatialFunctions_noGradO
10255          ref[0]=(-0.494870303061)/(o+1.)+(0.0697636237654)+(-0.0296734121631)*0.5**o          ref[0]=(-0.494870303061)/(o+1.)+(0.0697636237654)+(-0.0296734121631)*0.5**o
10256          ref[1]=(-0.394300983704)/(o+1.)+(0.722261312754)+(0.434675826665)*0.5**o          ref[1]=(-0.394300983704)/(o+1.)+(0.722261312754)+(0.434675826665)*0.5**o
10257        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
10258        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
10259        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
10260        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
10261     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10262     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank2(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank2(self):
10263        """        """
# Line 10356  class Test_Util_SpatialFunctions_noGradO Line 10356  class Test_Util_SpatialFunctions_noGradO
10356          ref[3,3]=(-0.688723266524)/(o+1.)+(0.43486027018)+(-0.124310108473)*0.5**o          ref[3,3]=(-0.688723266524)/(o+1.)+(0.43486027018)+(-0.124310108473)*0.5**o
10357          ref[3,4]=(0.128399262674)/(o+1.)+(-0.372445844122)+(0.229780239192)*0.5**o          ref[3,4]=(0.128399262674)/(o+1.)+(-0.372445844122)+(0.229780239192)*0.5**o
10358        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
10359        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
10360        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
10361        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
10362     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10363     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank3(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank3(self):
10364        """        """
# Line 10473  class Test_Util_SpatialFunctions_noGradO Line 10473  class Test_Util_SpatialFunctions_noGradO
10473          ref[5,1,0]=(-0.573275891777)/(o+1.)+(-0.478328163121)+(0.445652706545)*0.5**o          ref[5,1,0]=(-0.573275891777)/(o+1.)+(-0.478328163121)+(0.445652706545)*0.5**o
10474          ref[5,1,1]=(0.0545515234726)/(o+1.)+(-0.153919681346)+(0.195590500493)*0.5**o          ref[5,1,1]=(0.0545515234726)/(o+1.)+(-0.153919681346)+(0.195590500493)*0.5**o
10475        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
10476        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
10477        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
10478        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
10479     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10480     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank4(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank4(self):
10481        """        """
# Line 10974  class Test_Util_SpatialFunctions_noGradO Line 10974  class Test_Util_SpatialFunctions_noGradO
10974          ref[3,4,2,0]=(0.0803465444931)/(o+1.)+(-0.518257569997)+(-0.681164419371)*0.5**o          ref[3,4,2,0]=(0.0803465444931)/(o+1.)+(-0.518257569997)+(-0.681164419371)*0.5**o
10975          ref[3,4,2,1]=(-0.0443609570522)/(o+1.)+(0.572813368096)+(0.552725372202)*0.5**o          ref[3,4,2,1]=(-0.0443609570522)/(o+1.)+(0.572813368096)+(0.552725372202)*0.5**o
10976        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
10977        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
10978        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
10979        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
10980     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10981     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank0(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank0(self):
10982        """        """
# Line 10998  class Test_Util_SpatialFunctions_noGradO Line 10998  class Test_Util_SpatialFunctions_noGradO
10998          arg=(-0.134961573162)*x[0]**o+(0.585433861814)*x[0]+(0.209596676649)*x[1]**o+(0.870867416311)*x[1]+(-0.902854033973)*x[2]**o+(-0.812135783993)*x[2]          arg=(-0.134961573162)*x[0]**o+(0.585433861814)*x[0]+(0.209596676649)*x[1]**o+(0.870867416311)*x[1]+(-0.902854033973)*x[2]**o+(-0.812135783993)*x[2]
10999          ref=(-0.693257357324)/(o+1.)+(0.322082747066)+(-0.134961573162)*0.5**o          ref=(-0.693257357324)/(o+1.)+(0.322082747066)+(-0.134961573162)*0.5**o
11000        res=integrate(arg)        res=integrate(arg)
11001        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
11002        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
11003     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
11004     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank1(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank1(self):
11005        """        """
# Line 11026  class Test_Util_SpatialFunctions_noGradO Line 11026  class Test_Util_SpatialFunctions_noGradO
11026          ref[0]=(-0.946216898767)/(o+1.)+(0.402363067928)+(0.207042421638)*0.5**o          ref[0]=(-0.946216898767)/(o+1.)+(0.402363067928)+(0.207042421638)*0.5**o
11027          ref[1]=(0.740995417737)/(o+1.)+(-0.110035316955)+(-0.482897746923)*0.5**o          ref[1]=(0.740995417737)/(o+1.)+(-0.110035316955)+(-0.482897746923)*0.5**o
11028        res=integrate(arg)        res=integrate(arg)
11029        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
11030        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
11031        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
11032     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
11033     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank2(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank2(self):
11034        """        """
# Line 11127  class Test_Util_SpatialFunctions_noGradO Line 11127  class Test_Util_SpatialFunctions_noGradO
11127          ref[3,3]=(-0.19969098259)/(o+1.)+(0.583996529426)+(0.444073180258)*0.5**o          ref[3,3]=(-0.19969098259)/(o+1.)+(0.583996529426)+(0.444073180258)*0.5**o
11128          ref[3,4]=(-0.631400251421)/(o+1.)+(0.158011823704)+(0.686438920325)*0.5**o          ref[3,4]=(-0.631400251421)/(o+1.)+(0.158011823704)+(0.686438920325)*0.5**o
11129        res=integrate(arg)        res=integrate(arg)
11130        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
11131        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
11132        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
11133     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
11134     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank3(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank3(self):
11135        """        """
# Line 11244  class Test_Util_SpatialFunctions_noGradO Line 11244  class Test_Util_SpatialFunctions_noGradO
11244          ref[5,1,0]=(-1.62720267409)/(o+1.)+(0.450366814021)+(-0.298838035128)*0.5**o          ref[5,1,0]=(-1.62720267409)/(o+1.)+(0.450366814021)+(-0.298838035128)*0.5**o
11245          ref[5,1,1]=(0.576206606439)/(o+1.)+(0.133166064473)+(-0.949626960081)*0.5**o          ref[5,1,1]=(0.576206606439)/(o+1.)+(0.133166064473)+(-0.949626960081)*0.5**o
11246        res=integrate(arg)        res=integrate(arg)
11247        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
11248        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
11249        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
11250     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
11251     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank4(self):     def test_integrate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank4(self):
11252        """        """
# Line 11745  class Test_Util_SpatialFunctions_noGradO Line 11745  class Test_Util_SpatialFunctions_noGradO
11745          ref[3,4,2,0]=(-0.448948566381)/(o+1.)+(0.160689988193)+(-0.76912732001)*0.5**o          ref[3,4,2,0]=(-0.448948566381)/(o+1.)+(0.160689988193)+(-0.76912732001)*0.5**o
11746          ref[3,4,2,1]=(-0.571124298719)/(o+1.)+(-0.232553078069)+(-0.515945940217)*0.5**o          ref[3,4,2,1]=(-0.571124298719)/(o+1.)+(-0.232553078069)+(-0.515945940217)*0.5**o
11747        res=integrate(arg)        res=integrate(arg)
11748        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
11749        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
11750        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
11751     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
11752     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ContinuousFunction_rank0(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ContinuousFunction_rank0(self):
11753        """        """
# Line 11771  class Test_Util_SpatialFunctions_noGradO Line 11771  class Test_Util_SpatialFunctions_noGradO
11771          ref=(-0.210137172871)/(o+1.)+(0.068113514033)+(0.129836073672)*0.5**o          ref=(-0.210137172871)/(o+1.)+(0.068113514033)+(0.129836073672)*0.5**o
11772        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
11773        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
11774        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
11775        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
11776        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
11777     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
11778     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ContinuousFunction_rank1(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ContinuousFunction_rank1(self):
11779        """        """
# Line 11802  class Test_Util_SpatialFunctions_noGradO Line 11802  class Test_Util_SpatialFunctions_noGradO
11802          ref[1]=(-0.128622763161)/(o+1.)+(-0.243098920542)+(-0.226900637285)*0.5**o          ref[1]=(-0.128622763161)/(o+1.)+(-0.243098920542)+(-0.226900637285)*0.5**o
11803        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
11804        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
11805        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
11806        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
11807        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
11808     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
11809     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ContinuousFunction_rank2(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ContinuousFunction_rank2(self):
11810        """        """
# Line 11905  class Test_Util_SpatialFunctions_noGradO Line 11905  class Test_Util_SpatialFunctions_noGradO
11905          ref[3,4]=(0.65552260388)/(o+1.)+(0.504167262435)+(0.0580656964124)*0.5**o          ref[3,4]=(0.65552260388)/(o+1.)+(0.504167262435)+(0.0580656964124)*0.5**o
11906        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
11907        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
11908        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
11909        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
11910        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
11911     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
11912     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ContinuousFunction_rank3(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ContinuousFunction_rank3(self):
11913        """        """
# Line 12024  class Test_Util_SpatialFunctions_noGradO Line 12024  class Test_Util_SpatialFunctions_noGradO
12024          ref[5,1,1]=(0.520049443126)/(o+1.)+(-0.654040069724)+(-0.417452810992)*0.5**o          ref[5,1,1]=(0.520049443126)/(o+1.)+(-0.654040069724)+(-0.417452810992)*0.5**o
12025        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
12026        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
12027        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
12028        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
12029        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
12030     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12031     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ContinuousFunction_rank4(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ContinuousFunction_rank4(self):
12032        """        """
# Line 12527  class Test_Util_SpatialFunctions_noGradO Line 12527  class Test_Util_SpatialFunctions_noGradO
12527          ref[3,4,2,1]=(0.969719660142)/(o+1.)+(0.113155244129)+(0.154883537954)*0.5**o          ref[3,4,2,1]=(0.969719660142)/(o+1.)+(0.113155244129)+(0.154883537954)*0.5**o
12528        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
12529        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
12530        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
12531        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
12532        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
12533     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12534     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_Solution_rank0(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_Solution_rank0(self):
12535        """        """
# Line 12553  class Test_Util_SpatialFunctions_noGradO Line 12553  class Test_Util_SpatialFunctions_noGradO
12553          ref=(0.160958949751)/(o+1.)+(0.872597397246)+(-0.534750207803)*0.5**o          ref=(0.160958949751)/(o+1.)+(0.872597397246)+(-0.534750207803)*0.5**o
12554        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
12555        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
12556        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
12557        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
12558        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
12559     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12560     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_Solution_rank1(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_Solution_rank1(self):
12561        """        """
# Line 12584  class Test_Util_SpatialFunctions_noGradO Line 12584  class Test_Util_SpatialFunctions_noGradO
12584          ref[1]=(1.42522370097)/(o+1.)+(-0.603490152759)+(0.734011170766)*0.5**o          ref[1]=(1.42522370097)/(o+1.)+(-0.603490152759)+(0.734011170766)*0.5**o
12585        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
12586        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
12587        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
12588        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
12589        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
12590     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12591     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_Solution_rank2(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_Solution_rank2(self):
12592        """        """
# Line 12687  class Test_Util_SpatialFunctions_noGradO Line 12687  class Test_Util_SpatialFunctions_noGradO
12687          ref[3,4]=(-0.67405509874)/(o+1.)+(-0.152895135225)+(0.634255080399)*0.5**o          ref[3,4]=(-0.67405509874)/(o+1.)+(-0.152895135225)+(0.634255080399)*0.5**o
12688        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
12689        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
12690        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
12691        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
12692        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
12693     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12694     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_Solution_rank3(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_Solution_rank3(self):
12695        """        """
# Line 12806  class Test_Util_SpatialFunctions_noGradO Line 12806  class Test_Util_SpatialFunctions_noGradO
12806          ref[5,1,1]=(-0.159337184705)/(o+1.)+(0.747516474218)+(0.644695792666)*0.5**o          ref[5,1,1]=(-0.159337184705)/(o+1.)+(0.747516474218)+(0.644695792666)*0.5**o
12807        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
12808        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
12809        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
12810        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
12811        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
12812     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12813     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_Solution_rank4(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_Solution_rank4(self):
12814        """        """
# Line 13309  class Test_Util_SpatialFunctions_noGradO Line 13309  class Test_Util_SpatialFunctions_noGradO
13309          ref[3,4,2,1]=(0.574356637193)/(o+1.)+(-0.0328240856895)+(0.610198649476)*0.5**o          ref[3,4,2,1]=(0.574356637193)/(o+1.)+(-0.0328240856895)+(0.610198649476)*0.5**o
13310        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
13311        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
13312        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
13313        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
13314        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13315     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13316     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedSolution_rank0(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedSolution_rank0(self):
13317        """        """
# Line 13335  class Test_Util_SpatialFunctions_noGradO Line 13335  class Test_Util_SpatialFunctions_noGradO
13335          ref=(-1.3902352024)/(o+1.)+(-1.03788235052)+(-0.720496602901)*0.5**o          ref=(-1.3902352024)/(o+1.)+(-1.03788235052)+(-0.720496602901)*0.5**o
13336        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
13337        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
13338        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
13339        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
13340        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13341     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13342     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedSolution_rank1(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedSolution_rank1(self):
13343        """        """
# Line 13366  class Test_Util_SpatialFunctions_noGradO Line 13366  class Test_Util_SpatialFunctions_noGradO
13366          ref[1]=(-1.40806718776)/(o+1.)+(0.267420623854)+(0.125934816108)*0.5**o          ref[1]=(-1.40806718776)/(o+1.)+(0.267420623854)+(0.125934816108)*0.5**o
13367        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
13368        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
13369        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
13370        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
13371        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13372     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13373     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedSolution_rank2(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedSolution_rank2(self):
13374        """        """
# Line 13469  class Test_Util_SpatialFunctions_noGradO Line 13469  class Test_Util_SpatialFunctions_noGradO
13469          ref[3,4]=(0.846470301583)/(o+1.)+(-0.134756583683)+(0.441058932543)*0.5**o          ref[3,4]=(0.846470301583)/(o+1.)+(-0.134756583683)+(0.441058932543)*0.5**o
13470        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
13471        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
13472        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
13473        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
13474        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13475     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13476     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedSolution_rank3(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedSolution_rank3(self):
13477        """        """
# Line 13588  class Test_Util_SpatialFunctions_noGradO Line 13588  class Test_Util_SpatialFunctions_noGradO
13588          ref[5,1,1]=(-0.112001801469)/(o+1.)+(-0.0274812221923)+(-0.425191570457)*0.5**o          ref[5,1,1]=(-0.112001801469)/(o+1.)+(-0.0274812221923)+(-0.425191570457)*0.5**o
13589        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
13590        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
13591        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
13592        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
13593        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13594     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13595     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedSolution_rank4(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedSolution_rank4(self):
13596        """        """
# Line 14091  class Test_Util_SpatialFunctions_noGradO Line 14091  class Test_Util_SpatialFunctions_noGradO
14091          ref[3,4,2,1]=(-0.0303035732231)/(o+1.)+(0.0375314231208)+(-0.715829853629)*0.5**o          ref[3,4,2,1]=(-0.0303035732231)/(o+1.)+(0.0375314231208)+(-0.715829853629)*0.5**o
14092        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
14093        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
14094        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
14095        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
14096        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14097     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14098     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank0(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank0(self):
14099        """        """
# Line 14117  class Test_Util_SpatialFunctions_noGradO Line 14117  class Test_Util_SpatialFunctions_noGradO
14117          ref=(-1.3902352024)/(o+1.)+(-1.03788235052)+(-0.720496602901)*0.5**o          ref=(-1.3902352024)/(o+1.)+(-1.03788235052)+(-0.720496602901)*0.5**o
14118        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
14119        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
14120        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
14121        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
14122        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14123     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14124     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank1(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank1(self):
14125        """        """
# Line 14148  class Test_Util_SpatialFunctions_noGradO Line 14148  class Test_Util_SpatialFunctions_noGradO
14148          ref[1]=(-1.40806718776)/(o+1.)+(0.267420623854)+(0.125934816108)*0.5**o          ref[1]=(-1.40806718776)/(o+1.)+(0.267420623854)+(0.125934816108)*0.5**o
14149        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
14150        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
14151        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
14152        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
14153        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14154     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14155     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank2(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank2(self):
14156        """        """
# Line 14251  class Test_Util_SpatialFunctions_noGradO Line 14251  class Test_Util_SpatialFunctions_noGradO
14251          ref[3,4]=(0.846470301583)/(o+1.)+(-0.134756583683)+(0.441058932543)*0.5**o          ref[3,4]=(0.846470301583)/(o+1.)+(-0.134756583683)+(0.441058932543)*0.5**o
14252        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
14253        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
14254        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
14255        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
14256        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14257     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14258     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank3(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank3(self):
14259        """        """
# Line 14370  class Test_Util_SpatialFunctions_noGradO Line 14370  class Test_Util_SpatialFunctions_noGradO
14370          ref[5,1,1]=(-0.112001801469)/(o+1.)+(-0.0274812221923)+(-0.425191570457)*0.5**o          ref[5,1,1]=(-0.112001801469)/(o+1.)+(-0.0274812221923)+(-0.425191570457)*0.5**o
14371        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
14372        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
14373        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
14374        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14375        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14376     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14377     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank4(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedContinuousFunction_rank4(self):
14378        """        """
# Line 14873  class Test_Util_SpatialFunctions_noGradO Line 14873  class Test_Util_SpatialFunctions_noGradO
14873          ref[3,4,2,1]=(-0.0303035732231)/(o+1.)+(0.0375314231208)+(-0.715829853629)*0.5**o          ref[3,4,2,1]=(-0.0303035732231)/(o+1.)+(0.0375314231208)+(-0.715829853629)*0.5**o
14874        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
14875        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
14876        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
14877        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
14878        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14879     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14880     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedFunctionOnContactZero_rank0(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedFunctionOnContactZero_rank0(self):
14881        """        """
# Line 14899  class Test_Util_SpatialFunctions_noGradO Line 14899  class Test_Util_SpatialFunctions_noGradO
14899          ref=(0.702483835359)/(o+1.)+(0.290701816942)+(-0.338096271642)*0.5**o          ref=(0.702483835359)/(o+1.)+(0.290701816942)+(-0.338096271642)*0.5**o
14900        res=integrate(arg)        res=integrate(arg)
14901        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
14902        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
14903        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
14904        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14905     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14906     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedFunctionOnContactZero_rank1(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedFunctionOnContactZero_rank1(self):
14907        """        """
# Line 14930  class Test_Util_SpatialFunctions_noGradO Line 14930  class Test_Util_SpatialFunctions_noGradO
14930          ref[1]=(0.359960271605)/(o+1.)+(0.0187237681618)+(-0.623757173924)*0.5**o          ref[1]=(0.359960271605)/(o+1.)+(0.0187237681618)+(-0.623757173924)*0.5**o
14931        res=integrate(arg)        res=integrate(arg)
14932        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
14933        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
14934        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
14935        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14936     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14937     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedFunctionOnContactZero_rank2(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedFunctionOnContactZero_rank2(self):
14938        """        """
# Line 15033  class Test_Util_SpatialFunctions_noGradO Line 15033  class Test_Util_SpatialFunctions_noGradO
15033          ref[3,4]=(0.749079386941)/(o+1.)+(-0.70683791492)+(0.412388911019)*0.5**o          ref[3,4]=(0.749079386941)/(o+1.)+(-0.70683791492)+(0.412388911019)*0.5**o
15034        res=integrate(arg)        res=integrate(arg)
15035        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
15036        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
15037        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
15038        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15039     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15040     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedFunctionOnContactZero_rank3(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedFunctionOnContactZero_rank3(self):
15041        """        """
# Line 15152  class Test_Util_SpatialFunctions_noGradO Line 15152  class Test_Util_SpatialFunctions_noGradO
15152          ref[5,1,1]=(0.921891283761)/(o+1.)+(-0.354075335912)+(0.993758177333)*0.5**o          ref[5,1,1]=(0.921891283761)/(o+1.)+(-0.354075335912)+(0.993758177333)*0.5**o
15153        res=integrate(arg)        res=integrate(arg)
15154        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
15155        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
15156        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
15157        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15158     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15159     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedFunctionOnContactZero_rank4(self):     def test_integrate_onReducedFunctionOnContactZero_fromSymbol_ReducedFunctionOnContactZero_rank4(self):
15160        """        """
# Line 15655  class Test_Util_SpatialFunctions_noGradO Line 15655  class Test_Util_SpatialFunctions_noGradO
15655          ref[3,4,2,1]=(-0.540068657076)/(o+1.)+(0.375311078022)+(-0.0213427465429)*0.5**o          ref[3,4,2,1]=(-0.540068657076)/(o+1.)+(0.375311078022)+(-0.0213427465429)*0.5**o
15656        res=integrate(arg)        res=integrate(arg)
15657        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
15658        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
15659        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
15660        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15661     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15662     def test_integrate_onFunctionOnContactOne_fromData_ContinuousFunction_rank0(self):     def test_integrate_onFunctionOnContactOne_fromData_ContinuousFunction_rank0(self):
15663        """        """
# Line 15679  class Test_Util_SpatialFunctions_noGradO Line 15679  class Test_Util_SpatialFunctions_noGradO
15679          arg=(-0.365813216932)*x[0]**o+(0.969816151161)*x[0]+(0.349995764077)*x[1]**o+(0.867492181692)*x[1]+(-0.866177355796)*x[2]**o+(-0.203219031102)*x[2]          arg=(-0.365813216932)*x[0]**o+(0.969816151161)*x[0]+(0.349995764077)*x[1]**o+(0.867492181692)*x[1]+(-0.866177355796)*x[2]**o+(-0.203219031102)*x[2]
15680          ref=(-0.516181591719)/(o+1.)+(0.817044650875)+(-0.365813216932)*0.5**o          ref=(-0.516181591719)/(o+1.)+(0.817044650875)+(-0.365813216932)*0.5**o
15681        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
15682        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
15683        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15684     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15685     def test_integrate_onFunctionOnContactOne_fromData_ContinuousFunction_rank1(self):     def test_integrate_onFunctionOnContactOne_fromData_ContinuousFunction_rank1(self):
15686        """        """
# Line 15707  class Test_Util_SpatialFunctions_noGradO Line 15707  class Test_Util_SpatialFunctions_noGradO
15707          ref[0]=(0.211945683696)/(o+1.)+(0.0613923521485)+(-0.472858663642)*0.5**o          ref[0]=(0.211945683696)/(o+1.)+(0.0613923521485)+(-0.472858663642)*0.5**o
15708          ref[1]=(1.12689776694)/(o+1.)+(-0.462024602231)+(-0.0191775972693)*0.5**o          ref[1]=(1.12689776694)/(o+1.)+(-0.462024602231)+(-0.0191775972693)*0.5**o
15709        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
15710        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
15711        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
15712        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15713     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15714     def test_integrate_onFunctionOnContactOne_fromData_ContinuousFunction_rank2(self):     def test_integrate_onFunctionOnContactOne_fromData_ContinuousFunction_rank2(self):
15715        """        """
# Line 15808  class Test_Util_SpatialFunctions_noGradO Line 15808  class Test_Util_SpatialFunctions_noGradO
15808          ref[3,3]=(1.17567141532)/(o+1.)+(-0.00918091278228)+(0.536414145801)*0.5**o          ref[3,3]=(1.17567141532)/(o+1.)+(-0.00918091278228)+(0.536414145801)*0.5**o
15809          ref[3,4]=(-0.0561425018138)/(o+1.)+(0.545976003363)+(0.305683606235)*0.5**o          ref[3,4]=(-0.0561425018138)/(o+1.)+(0.545976003363)+(0.305683606235)*0.5**o
15810        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
15811        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
15812        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
15813        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15814     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15815     def test_integrate_onFunctionOnContactOne_fromData_ContinuousFunction_rank3(self):     def test_integrate_onFunctionOnContactOne_fromData_ContinuousFunction_rank3(self):
15816        """        """
# Line 15925  class Test_Util_SpatialFunctions_noGradO Line 15925  class Test_Util_SpatialFunctions_noGradO
15925          ref[5,1,0]=(0.17805524354)/(o+1.)+(0.0896522169463)+(0.877279477171)*0.5**o          ref[5,1,0]=(0.17805524354)/(o+1.)+(0.0896522169463)+(0.877279477171)*0.5**o
15926          ref[5,1,1]=(-0.319661423044)/(o+1.)+(0.384944604113)+(0.294375780312)*0.5**o          ref[5,1,1]=(-0.319661423044)/(o+1.)+(0.384944604113)+(0.294375780312)*0.5**o
15927        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
15928        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
15929        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
15930        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15931     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15932     def test_integrate_onFunctionOnContactOne_fromData_ContinuousFunction_rank4(self):     def test_integrate_onFunctionOnContactOne_fromData_ContinuousFunction_rank4(self):
15933        """        """
# Line 16426  class Test_Util_SpatialFunctions_noGradO Line 16426  class Test_Util_SpatialFunctions_noGradO
16426          ref[3,4,2,0]=(0.253933476088)/(o+1.)+(0.44314310146)+(-0.994529375243)*0.5**o          ref[3,4,2,0]=(0.253933476088)/(o+1.)+(0.44314310146)+(-0.994529375243)*0.5**o
16427          ref[3,4,2,1]=(1.21425006298)/(o+1.)+(-1.32481253074)+(-0.538074654323)*0.5**o          ref[3,4,2,1]=(1.21425006298)/(o+1.)+(-1.32481253074)+(-0.538074654323)*0.5**o
16428        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
16429        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
16430        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
16431        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
16432     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
16433     def test_integrate_onFunctionOnContactOne_fromData_Solution_rank0(self):     def test_integrate_onFunctionOnContactOne_fromData_Solution_rank0(self):
16434        """        """
# Line 16450  class Test_Util_SpatialFunctions_noGradO Line 16450  class Test_Util_SpatialFunctions_noGradO
16450          arg=(0.384995424392)*x[0]**o+(0.999298118235)*x[0]+(0.144745460948)*x[1]**o+(0.0545198589076)*x[1]+(-0.773375797864)*x[2]**o+(0.145524911495)*x[2]          arg=(0.384995424392)*x[0]**o+(0.999298118235)*x[0]+(0.144745460948)*x[1]**o+(0.0545198589076)*x[1]+(-0.773375797864)*x[2]**o+(0.145524911495)*x[2]
16451          ref=(-0.628630336917)/(o+1.)+(0.599671444318)+(0.384995424392)*0.5**o          ref=(-0.628630336917)/(o+1.)+(0.599671444318)+(0.384995424392)*0.5**o
16452        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
16453        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
16454        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
16455     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
16456     def test_integrate_onFunctionOnContactOne_fromData_Solution_rank1(self):     def test_integrate_onFunctionOnContactOne_fromData_Solution_rank1(self):
16457        """        """
# Line 16478  class Test_Util_SpatialFunctions_noGradO Line 16478  class Test_Util_SpatialFunctions_noGradO
16478          ref[0]=(0.725191452103)/(o+1.)+(0.169252765901)+(-0.292048194246)*0.5**o          ref[0]=(0.725191452103)/(o+1.)+(0.169252765901)+(-0.292048194246)*0.5**o
16479          ref[1]=(-0.623766508512)/(o+1.)+(0.99634620017)+(0.153118126553)*0.5**o          ref[1]=(-0.623766508512)/(o+1.)+(0.99634620017)+(0.153118126553)*0.5**o
16480        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
16481        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
16482        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
16483        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
16484     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
16485     def test_integrate_onFunctionOnContactOne_fromData_Solution_rank2(self):     def test_integrate_onFunctionOnContactOne_fromData_Solution_rank2(self):
16486        """        """
# Line 16579  class Test_Util_SpatialFunctions_noGradO Line 16579  class Test_Util_SpatialFunctions_noGradO
16579          ref[3,3]=(-0.87630155335)/(o+1.)+(0.426403350019)+(0.870508483705)*0.5**o          ref[3,3]=(-0.87630155335)/(o+1.)+(0.426403350019)+(0.870508483705)*0.5**o
16580          ref[3,4]=(0.384809615783)/(o+1.)+(-0.448855127091)+(-0.638437449353)*0.5**o          ref[3,4]=(0.384809615783)/(o+1.)+(-0.448855127091)+(-0.638437449353)*0.5**o
16581        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
16582        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
16583        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
16584        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
16585     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
16586     def test_integrate_onFunctionOnContactOne_fromData_Solution_rank3(self):     def test_integrate_onFunctionOnContactOne_fromData_Solution_rank3(self):
16587        """        """
# Line 16696  class Test_Util_SpatialFunctions_noGradO Line 16696  class Test_Util_SpatialFunctions_noGradO
16696          ref[5,1,0]=(1.36503502533)/(o+1.)+(-0.526576872427)+(0.444799933589)*0.5**o          ref[5,1,0]=(1.36503502533)/(o+1.)+(-0.526576872427)+(0.444799933589)*0.5**o
16697          ref[5,1,1]=(1.53331825424)/(o+1.)+(-1.15278372696)+(0.0304781332872)*0.5**o          ref[5,1,1]=(1.53331825424)/(o+1.)+(-1.15278372696)+(0.0304781332872)*0.5**o
16698        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
16699        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
16700        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
16701        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
16702     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
16703     def test_integrate_onFunctionOnContactOne_fromData_Solution_rank4(self):     def test_integrate_onFunctionOnContactOne_fromData_Solution_rank4(self):
16704        """        """
# Line 17197  class Test_Util_SpatialFunctions_noGradO Line 17197  class Test_Util_SpatialFunctions_noGradO
17197          ref[3,4,2,0]=(0.944328366501)/(o+1.)+(0.852563490353)+(-0.893419673448)*0.5**o          ref[3,4,2,0]=(0.944328366501)/(o+1.)+(0.852563490353)+(-0.893419673448)*0.5**o
17198          ref[3,4,2,1]=(-0.813392164634)/(o+1.)+(-0.841253216593)+(0.480643160777)*0.5**o          ref[3,4,2,1]=(-0.813392164634)/(o+1.)+(-0.841253216593)+(0.480643160777)*0.5**o
17199        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
17200        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
17201        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
17202        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
17203     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
17204     def test_integrate_onFunctionOnContactOne_fromData_ReducedSolution_rank0(self):     def test_integrate_onFunctionOnContactOne_fromData_ReducedSolution_rank0(self):
17205        """        """
# Line 17221  class Test_Util_SpatialFunctions_noGradO Line 17221  class Test_Util_SpatialFunctions_noGradO
17221          arg=(0.53919797656)*x[0]+(0.379010664884)*x[1]+(0.274416064529)*x[2]          arg=(0.53919797656)*x[0]+(0.379010664884)*x[1]+(0.274416064529)*x[2]
17222          ref=(0.307947301472)/(o+1.)+(0.120674157748)+(0.643329089005)*0.5**o          ref=(0.307947301472)/(o+1.)+(0.120674157748)+(0.643329089005)*0.5**o
17223        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
17224        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
17225        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
17226     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
17227     def test_integrate_onFunctionOnContactOne_fromData_ReducedSolution_rank1(self):     def test_integrate_onFunctionOnContactOne_fromData_ReducedSolution_rank1(self):
17228        """        """
# Line 17249  class Test_Util_SpatialFunctions_noGradO Line 17249  class Test_Util_SpatialFunctions_noGradO
17249          ref[0]=(-0.274486314451)/(o+1.)+(0.379737553853)+(0.0884149293071)*0.5**o          ref[0]=(-0.274486314451)/(o+1.)+(0.379737553853)+(0.0884149293071)*0.5**o
17250          ref[1]=(-0.78452814021)/(o+1.)+(-0.122017410137)+(0.605144310151)*0.5**o          ref[1]=(-0.78452814021)/(o+1.)+(-0.122017410137)+(0.605144310151)*0.5**o
17251        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
17252        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
17253        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
17254        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
17255     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
17256     def test_integrate_onFunctionOnContactOne_fromData_ReducedSolution_rank2(self):     def test_integrate_onFunctionOnContactOne_fromData_ReducedSolution_rank2(self):
17257        """        """
# Line 17350  class Test_Util_SpatialFunctions_noGradO Line 17350  class Test_Util_SpatialFunctions_noGradO
17350          ref[3,3]=(-0.148394092795)/(o+1.)+(-0.237190239072)+(-0.807112037336)*0.5**o          ref[3,3]=(-0.148394092795)/(o+1.)+(-0.237190239072)+(-0.807112037336)*0.5**o
17351          ref[3,4]=(0.529983886211)/(o+1.)+(-0.371055083588)+(0.254078854382)*0.5**o          ref[3,4]=(0.529983886211)/(o+1.)+(-0.371055083588)+(0.254078854382)*0.5**o
17352        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
17353        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
17354        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
17355        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
17356     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
17357     def test_integrate_onFunctionOnContactOne_fromData_ReducedSolution_rank3(self):     def test_integrate_onFunctionOnContactOne_fromData_ReducedSolution_rank3(self):
17358        """        """
# Line 17467  class Test_Util_SpatialFunctions_noGradO Line 17467  class Test_Util_SpatialFunctions_noGradO
17467          ref[5,1,0]=(-0.069063169298)/(o+1.)+(0.883536796964)+(0.883025165644)*0.5**o          ref[5,1,0]=(-0.069063169298)/(o+1.)+(0.883536796964)+(0.883025165644)*0.5**o
17468          ref[5,1,1]=(1.05999338993)/(o+1.)+(-0.392519102893)+(0.918128198439)*0.5**o          ref[5,1,1]=(1.05999338993)/(o+1.)+(-0.392519102893)+(0.918128198439)*0.5**o
17469        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
17470        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
17471        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
17472        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
17473     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
17474     def test_integrate_onFunctionOnContactOne_fromData_ReducedSolution_rank4(self):     def test_integrate_onFunctionOnContactOne_fromData_ReducedSolution_rank4(self):
17475        """        """
# Line 17968  class Test_Util_SpatialFunctions_noGradO Line 17968  class Test_Util_SpatialFunctions_noGradO
17968          ref[3,4,2,0]=(-0.367201097566)/(o+1.)+(-0.337780780531)+(0.688589316866)*0.5**o          ref[3,4,2,0]=(-0.367201097566)/(o+1.)+(-0.337780780531)+(0.688589316866)*0.5**o
17969          ref[3,4,2,1]=(-0.0547905846061)/(o+1.)+(-0.293870420685)+(0.31527404661)*0.5**o          ref[3,4,2,1]=(-0.0547905846061)/(o+1.)+(-0.293870420685)+(0.31527404661)*0.5**o
17970        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
17971        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
17972        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
17973        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
17974     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
17975     def test_integrate_onFunctionOnContactOne_fromData_ReducedContinuousFunction_rank0(self):     def test_integrate_onFunctionOnContactOne_fromData_ReducedContinuousFunction_rank0(self):
17976        """        """
# Line 17992  class Test_Util_SpatialFunctions_noGradO Line 17992  class Test_Util_SpatialFunctions_noGradO
17992          arg=(0.53919797656)*x[0]+(0.379010664884)*x[1]+(0.274416064529)*x[2]          arg=(0.53919797656)*x[0]+(0.379010664884)*x[1]+(0.274416064529)*x[2]
17993          ref=(0.307947301472)/(o+1.)+(0.120674157748)+(0.643329089005)*0.5**o          ref=(0.307947301472)/(o+1.)+(0.120674157748)+(0.643329089005)*0.5**o
17994        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
17995        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
17996        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
17997     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
17998     def test_integrate_onFunctionOnContactOne_fromData_ReducedContinuousFunction_rank1(self):     def test_integrate_onFunctionOnContactOne_fromData_ReducedContinuousFunction_rank1(self):
17999        """        """
# Line 18020  class Test_Util_SpatialFunctions_noGradO Line 18020  class Test_Util_SpatialFunctions_noGradO
18020          ref[0]=(-0.274486314451)/(o+1.)+(0.379737553853)+(0.0884149293071)*0.5**o          ref[0]=(-0.274486314451)/(o+1.)+(0.379737553853)+(0.0884149293071)*0.5**o
18021          ref[1]=(-0.78452814021)/(o+1.)+(-0.122017410137)+(0.605144310151)*0.5**o          ref[1]=(-0.78452814021)/(o+1.)+(-0.122017410137)+(0.605144310151)*0.5**o
18022        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
18023        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
18024        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
18025        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
18026     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
18027     def test_integrate_onFunctionOnContactOne_fromData_ReducedContinuousFunction_rank2(self):     def test_integrate_onFunctionOnContactOne_fromData_ReducedContinuousFunction_rank2(self):
18028        """        """
# Line 18121  class Test_Util_SpatialFunctions_noGradO Line 18121  class Test_Util_SpatialFunctions_noGradO
18121          ref[3,3]=(-0.148394092795)/(o+1.)+(-0.237190239072)+(-0.807112037336)*0.5**o          ref[3,3]=(-0.148394092795)/(o+1.)+(-0.237190239072)+(-0.807112037336)*0.5**o
18122          ref[3,4]=(0.529983886211)/(o+1.)+(-0.371055083588)+(0.254078854382)*0.5**o          ref[3,4]=(0.529983886211)/(o+1.)+(-0.371055083588)+(0.254078854382)*0.5**o
18123        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
18124        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
18125        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
18126        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
18127     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
18128     def test_integrate_onFunctionOnContactOne_fromData_ReducedContinuousFunction_rank3(self):     def test_integrate_onFunctionOnContactOne_fromData_ReducedContinuousFunction_rank3(self):
18129        """        """
# Line 18238  class Test_Util_SpatialFunctions_noGradO Line 18238  class Test_Util_SpatialFunctions_noGradO
18238          ref[5,1,0]=(-0.069063169298)/(o+1.)+(0.883536796964)+(0.883025165644)*0.5**o          ref[5,1,0]=(-0.069063169298)/(o+1.)+(0.883536796964)+(0.883025165644)*0.5**o
18239          ref[5,1,1]=(1.05999338993)/(o+1.)+(-0.392519102893)+(0.918128198439)*0.5**o          ref[5,1,1]=(1.05999338993)/(o+1.)+(-0.392519102893)+(0.918128198439)*0.5**o
18240        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
18241        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
18242        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
18243        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
18244     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
18245     def test_integrate_onFunctionOnContactOne_fromData_ReducedContinuousFunction_rank4(self):     def test_integrate_onFunctionOnContactOne_fromData_ReducedContinuousFunction_rank4(self):
18246        """        """
# Line 18739  class Test_Util_SpatialFunctions_noGradO Line 18739  class Test_Util_SpatialFunctions_noGradO
18739          ref[3,4,2,0]=(-0.367201097566)/(o+1.)+(-0.337780780531)+(0.688589316866)*0.5**o          ref[3,4,2,0]=(-0.367201097566)/(o+1.)+(-0.337780780531)+(0.688589316866)*0.5**o
18740          ref[3,4,2,1]=(-0.0547905846061)/(o+1.)+(-0.293870420685)+(0.31527404661)*0.5**o          ref[3,4,2,1]=(-0.0547905846061)/(o+1.)+(-0.293870420685)+(0.31527404661)*0.5**o
18741        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
18742        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
18743        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
18744        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
18745     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
18746     def test_integrate_onFunctionOnContactOne_fromData_FunctionOnContactOne_rank0(self):     def test_integrate_onFunctionOnContactOne_fromData_FunctionOnContactOne_rank0(self):
18747        """        """
# Line 18763  class Test_Util_SpatialFunctions_noGradO Line 18763  class Test_Util_SpatialFunctions_noGradO
18763          arg=(0.0675036998003)*x[0]**o+(-0.247751392136)*x[0]+(0.791676220029)*x[1]**o+(-0.269015236163)*x[1]+(0.265735156875)*x[2]**o+(0.820319192519)*x[2]          arg=(0.0675036998003)*x[0]**o+(-0.247751392136)*x[0]+(0.791676220029)*x[1]**o+(-0.269015236163)*x[1]+(0.265735156875)*x[2]**o+(0.820319192519)*x[2]
18764          ref=(1.0574113769)/(o+1.)+(0.15177628211)+(0.0675036998003)*0.5**o          ref=(1.0574113769)/(o+1.)+(0.15177628211)+(0.0675036998003)*0.5**o
18765        res=integrate(arg)        res=integrate(arg)
18766        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
18767        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
18768     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
18769     def test_integrate_onFunctionOnContactOne_fromData_FunctionOnContactOne_rank1(self):     def test_integrate_onFunctionOnContactOne_fromData_FunctionOnContactOne_rank1(self):
18770        """        """
# Line 18791  class Test_Util_SpatialFunctions_noGradO Line 18791  class Test_Util_SpatialFunctions_noGradO
18791          ref[0]=(-0.913418839574)/(o+1.)+(-0.256607115927)+(-0.158686556523)*0.5**o          ref[0]=(-0.913418839574)/(o+1.)+(-0.256607115927)+(-0.158686556523)*0.5**o
18792          ref[1]=(0.551743740614)/(o+1.)+(-0.140542035161)+(0.392997873484)*0.5**o          ref[1]=(0.551743740614)/(o+1.)+(-0.140542035161)+(0.392997873484)*0.5**o
18793        res=integrate(arg)        res=integrate(arg)
18794        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
18795        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
18796        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
18797     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
18798     def test_integrate_onFunctionOnContactOne_fromData_FunctionOnContactOne_rank2(self):     def test_integrate_onFunctionOnContactOne_fromData_FunctionOnContactOne_rank2(self):
18799        """        """
# Line 18892  class Test_Util_SpatialFunctions_noGradO Line 18892  class Test_Util_SpatialFunctions_noGradO
18892          ref[3,3]=(0.118056686106)/(o+1.)+(-0.518465563043)+(-0.304262529036)*0.5**o          ref[3,3]=(0.118056686106)/(o+1.)+(-0.518465563043)+(-0.304262529036)*0.5**o
18893          ref[3,4]=(0.248645444416)/(o+1.)+(-0.768296605922)+(-0.720555420423)*0.5**o          ref[3,4]=(0.248645444416)/(o+1.)+(-0.768296605922)+(-0.720555420423)*0.5**o
18894        res=integrate(arg)        res=integrate(arg)
18895        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
18896        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
18897        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
18898     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
18899     def test_integrate_onFunctionOnContactOne_fromData_FunctionOnContactOne_rank3(self):     def test_integrate_onFunctionOnContactOne_fromData_FunctionOnContactOne_rank3(self):
18900        """        """
# Line 19009  class Test_Util_SpatialFunctions_noGradO Line 19009  class Test_Util_SpatialFunctions_noGradO
19009          ref[5,1,0]=(-0.760401774232)/(o+1.)+(-0.10710358084)+(0.974781669859)*0.5**o          ref[5,1,0]=(-0.760401774232)/(o+1.)+(-0.10710358084)+(0.974781669859)*0.5**o
19010          ref[5,1,1]=(-1.35187858674)/(o+1.)+(0.590658290191)+(0.485215976154)*0.5**o          ref[5,1,1]=(-1.35187858674)/(o+1.)+(0.590658290191)+(0.485215976154)*0.5**o
19011        res=integrate(arg)        res=integrate(arg)
19012        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
19013        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
19014        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
19015     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
19016     def test_integrate_onFunctionOnContactOne_fromData_FunctionOnContactOne_rank4(self):     def test_integrate_onFunctionOnContactOne_fromData_FunctionOnContactOne_rank4(self):
19017        """        """
# Line 19510  class Test_Util_SpatialFunctions_noGradO Line 19510  class Test_Util_SpatialFunctions_noGradO
19510          ref[3,4,2,0]=(-0.194325734076)/(o+1.)+(0.581224356966)+(-0.0813611687514)*0.5**o          ref[3,4,2,0]=(-0.194325734076)/(o+1.)+(0.581224356966)+(-0.0813611687514)*0.5**o
19511          ref[3,4,2,1]=(1.37635341581)/(o+1.)+(1.02866696565)+(-0.0991425040958)*0.5**o          ref[3,4,2,1]=(1.37635341581)/(o+1.)+(1.02866696565)+(-0.0991425040958)*0.5**o
19512        res=integrate(arg)        res=integrate(arg)
19513        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
19514        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
19515        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
19516     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
19517     def test_integrate_onFunctionOnContactOne_fromSymbol_ContinuousFunction_rank0(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_ContinuousFunction_rank0(self):
19518        """        """
# Line 19536  class Test_Util_SpatialFunctions_noGradO Line 19536  class Test_Util_SpatialFunctions_noGradO
19536          ref=(-0.701565216974)/(o+1.)+(0.0705643797689)+(0.436925914346)*0.5**o          ref=(-0.701565216974)/(o+1.)+(0.0705643797689)+(0.436925914346)*0.5**o
19537        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
19538        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
19539        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
19540        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
19541        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
19542     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
19543     def test_integrate_onFunctionOnContactOne_fromSymbol_ContinuousFunction_rank1(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_ContinuousFunction_rank1(self):
19544        """        """
# Line 19567  class Test_Util_SpatialFunctions_noGradO Line 19567  class Test_Util_SpatialFunctions_noGradO
19567          ref[1]=(-1.54458630045)/(o+1.)+(0.036431454094)+(-0.190159227288)*0.5**o          ref[1]=(-1.54458630045)/(o+1.)+(0.036431454094)+(-0.190159227288)*0.5**o
19568        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
19569        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
19570        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
19571        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
19572        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
19573     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
19574     def test_integrate_onFunctionOnContactOne_fromSymbol_ContinuousFunction_rank2(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_ContinuousFunction_rank2(self):
19575        """        """
# Line 19670  class Test_Util_SpatialFunctions_noGradO Line 19670  class Test_Util_SpatialFunctions_noGradO
19670          ref[3,4]=(0.858967547335)/(o+1.)+(0.406115547322)+(-0.0280956096914)*0.5**o          ref[3,4]=(0.858967547335)/(o+1.)+(0.406115547322)+(-0.0280956096914)*0.5**o
19671        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
19672        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
19673        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
19674        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
19675        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
19676     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
19677     def test_integrate_onFunctionOnContactOne_fromSymbol_ContinuousFunction_rank3(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_ContinuousFunction_rank3(self):
19678        """        """
# Line 19789  class Test_Util_SpatialFunctions_noGradO Line 19789  class Test_Util_SpatialFunctions_noGradO
19789          ref[5,1,1]=(-0.527896473807)/(o+1.)+(-0.220429932137)+(-0.54994010911)*0.5**o          ref[5,1,1]=(-0.527896473807)/(o+1.)+(-0.220429932137)+(-0.54994010911)*0.5**o
19790        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
19791        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
19792        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
19793        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
19794        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
19795     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
19796     def test_integrate_onFunctionOnContactOne_fromSymbol_ContinuousFunction_rank4(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_ContinuousFunction_rank4(self):
19797        """        """
# Line 20292  class Test_Util_SpatialFunctions_noGradO Line 20292  class Test_Util_SpatialFunctions_noGradO
20292          ref[3,4,2,1]=(0.387168659686)/(o+1.)+(0.406371865736)+(-0.524152888193)*0.5**o          ref[3,4,2,1]=(0.387168659686)/(o+1.)+(0.406371865736)+(-0.524152888193)*0.5**o
20293        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
20294        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
20295        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
20296        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
20297        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
20298     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
20299     def test_integrate_onFunctionOnContactOne_fromSymbol_Solution_rank0(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_Solution_rank0(self):
20300        """        """
# Line 20318  class Test_Util_SpatialFunctions_noGradO Line 20318  class Test_Util_SpatialFunctions_noGradO
20318          ref=(0.247006885878)/(o+1.)+(0.586176656298)+(-0.488825085875)*0.5**o          ref=(0.247006885878)/(o+1.)+(0.586176656298)+(-0.488825085875)*0.5**o
20319        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
20320        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
20321        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
20322        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
20323        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
20324     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
20325     def test_integrate_onFunctionOnContactOne_fromSymbol_Solution_rank1(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_Solution_rank1(self):
20326        """        """
# Line 20349  class Test_Util_SpatialFunctions_noGradO Line 20349  class Test_Util_SpatialFunctions_noGradO
20349          ref[1]=(0.926918844249)/(o+1.)+(-0.101974478575)+(-0.393659677321)*0.5**o          ref[1]=(0.926918844249)/(o+1.)+(-0.101974478575)+(-0.393659677321)*0.5**o
20350        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
20351        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
20352        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
20353        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
20354        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
20355     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
20356     def test_integrate_onFunctionOnContactOne_fromSymbol_Solution_rank2(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_Solution_rank2(self):
20357        """        """
# Line 20452  class Test_Util_SpatialFunctions_noGradO Line 20452  class Test_Util_SpatialFunctions_noGradO
20452          ref[3,4]=(1.59279253467)/(o+1.)+(1.07274701017)+(-0.790516141209)*0.5**o          ref[3,4]=(1.59279253467)/(o+1.)+(1.07274701017)+(-0.790516141209)*0.5**o
20453        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
20454        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
20455        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
20456        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
20457        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
20458     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
20459     def test_integrate_onFunctionOnContactOne_fromSymbol_Solution_rank3(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_Solution_rank3(self):
20460        """        """
# Line 20571  class Test_Util_SpatialFunctions_noGradO Line 20571  class Test_Util_SpatialFunctions_noGradO
20571          ref[5,1,1]=(0.633496059035)/(o+1.)+(0.142726683513)+(0.101661872917)*0.5**o          ref[5,1,1]=(0.633496059035)/(o+1.)+(0.142726683513)+(0.101661872917)*0.5**o
20572        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
20573        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
20574        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
20575        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
20576        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
20577     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
20578     def test_integrate_onFunctionOnContactOne_fromSymbol_Solution_rank4(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_Solution_rank4(self):
20579        """        """
# Line 21074  class Test_Util_SpatialFunctions_noGradO Line 21074  class Test_Util_SpatialFunctions_noGradO
21074          ref[3,4,2,1]=(-0.394755553787)/(o+1.)+(0.434493415112)+(0.342579062975)*0.5**o          ref[3,4,2,1]=(-0.394755553787)/(o+1.)+(0.434493415112)+(0.342579062975)*0.5**o
21075        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
21076        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
21077        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
21078        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
21079        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
21080     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21081     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedSolution_rank0(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedSolution_rank0(self):
21082        """        """
# Line 21100  class Test_Util_SpatialFunctions_noGradO Line 21100  class Test_Util_SpatialFunctions_noGradO
21100          ref=(-0.964783366814)/(o+1.)+(0.787210317182)+(-0.332644900019)*0.5**o          ref=(-0.964783366814)/(o+1.)+(0.787210317182)+(-0.332644900019)*0.5**o
21101        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
21102        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
21103        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
21104        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
21105        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
21106     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21107     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedSolution_rank1(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedSolution_rank1(self):
21108        """        """
# Line 21131  class Test_Util_SpatialFunctions_noGradO Line 21131  class Test_Util_SpatialFunctions_noGradO
21131          ref[1]=(-1.0263552046)/(o+1.)+(0.265270569058)+(0.220096757743)*0.5**o          ref[1]=(-1.0263552046)/(o+1.)+(0.265270569058)+(0.220096757743)*0.5**o
21132        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
21133        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
21134        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
21135        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
21136        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
21137     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21138     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedSolution_rank2(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedSolution_rank2(self):
21139        """        """
# Line 21234  class Test_Util_SpatialFunctions_noGradO Line 21234  class Test_Util_SpatialFunctions_noGradO
21234          ref[3,4]=(0.223164895319)/(o+1.)+(-0.31244215916)+(0.638469012551)*0.5**o          ref[3,4]=(0.223164895319)/(o+1.)+(-0.31244215916)+(0.638469012551)*0.5**o
21235        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
21236        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
21237        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
21238        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
21239        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
21240     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21241     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedSolution_rank3(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedSolution_rank3(self):
21242        """        """
# Line 21353  class Test_Util_SpatialFunctions_noGradO Line 21353  class Test_Util_SpatialFunctions_noGradO
21353          ref[5,1,1]=(0.566120139584)/(o+1.)+(-0.312318326061)+(0.812302833644)*0.5**o          ref[5,1,1]=(0.566120139584)/(o+1.)+(-0.312318326061)+(0.812302833644)*0.5**o
21354        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
21355        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
21356        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
21357        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
21358        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
21359     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21360     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedSolution_rank4(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedSolution_rank4(self):
21361        """        """
# Line 21856  class Test_Util_SpatialFunctions_noGradO Line 21856  class Test_Util_SpatialFunctions_noGradO
21856          ref[3,4,2,1]=(-1.12139150964)/(o+1.)+(-0.135856270303)+(-0.427480154859)*0.5**o          ref[3,4,2,1]=(-1.12139150964)/(o+1.)+(-0.135856270303)+(-0.427480154859)*0.5**o
21857        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
21858        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
21859        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
21860        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
21861        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
21862     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21863     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank0(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank0(self):
21864        """        """
# Line 21882  class Test_Util_SpatialFunctions_noGradO Line 21882  class Test_Util_SpatialFunctions_noGradO
21882          ref=(-0.964783366814)/(o+1.)+(0.787210317182)+(-0.332644900019)*0.5**o          ref=(-0.964783366814)/(o+1.)+(0.787210317182)+(-0.332644900019)*0.5**o
21883        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
21884        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
21885        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
21886        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
21887        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
21888     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21889     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank1(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank1(self):
21890        """        """
# Line 21913  class Test_Util_SpatialFunctions_noGradO Line 21913  class Test_Util_SpatialFunctions_noGradO
21913          ref[1]=(-1.0263552046)/(o+1.)+(0.265270569058)+(0.220096757743)*0.5**o          ref[1]=(-1.0263552046)/(o+1.)+(0.265270569058)+(0.220096757743)*0.5**o
21914        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
21915        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
21916        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
21917        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
21918        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
21919     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21920     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank2(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank2(self):
21921        """        """
# Line 22016  class Test_Util_SpatialFunctions_noGradO Line 22016  class Test_Util_SpatialFunctions_noGradO
22016          ref[3,4]=(0.223164895319)/(o+1.)+(-0.31244215916)+(0.638469012551)*0.5**o          ref[3,4]=(0.223164895319)/(o+1.)+(-0.31244215916)+(0.638469012551)*0.5**o
22017        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
22018        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
22019        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
22020        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
22021        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
22022     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22023     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank3(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank3(self):
22024        """        """
# Line 22135  class Test_Util_SpatialFunctions_noGradO Line 22135  class Test_Util_SpatialFunctions_noGradO
22135          ref[5,1,1]=(0.566120139584)/(o+1.)+(-0.312318326061)+(0.812302833644)*0.5**o          ref[5,1,1]=(0.566120139584)/(o+1.)+(-0.312318326061)+(0.812302833644)*0.5**o
22136        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
22137        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
22138        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
22139        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
22140        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
22141     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22142     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank4(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank4(self):
22143        """        """
# Line 22638  class Test_Util_SpatialFunctions_noGradO Line 22638  class Test_Util_SpatialFunctions_noGradO
22638          ref[3,4,2,1]=(-1.12139150964)/(o+1.)+(-0.135856270303)+(-0.427480154859)*0.5**o          ref[3,4,2,1]=(-1.12139150964)/(o+1.)+(-0.135856270303)+(-0.427480154859)*0.5**o
22639        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
22640        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
22641        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
22642        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
22643        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
22644     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22645     def test_integrate_onFunctionOnContactOne_fromSymbol_FunctionOnContactOne_rank0(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_FunctionOnContactOne_rank0(self):
22646        """        """
# Line 22664  class Test_Util_SpatialFunctions_noGradO Line 22664  class Test_Util_SpatialFunctions_noGradO
22664          ref=(0.12173338631)/(o+1.)+(0.396281986825)+(-0.217546543734)*0.5**o          ref=(0.12173338631)/(o+1.)+(0.396281986825)+(-0.217546543734)*0.5**o
22665        res=integrate(arg)        res=integrate(arg)
22666        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
22667        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
22668        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
22669        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
22670     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22671     def test_integrate_onFunctionOnContactOne_fromSymbol_FunctionOnContactOne_rank1(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_FunctionOnContactOne_rank1(self):
22672        """        """
# Line 22695  class Test_Util_SpatialFunctions_noGradO Line 22695  class Test_Util_SpatialFunctions_noGradO
22695          ref[1]=(-0.703489566047)/(o+1.)+(-0.0886060128866)+(0.274829833844)*0.5**o          ref[1]=(-0.703489566047)/(o+1.)+(-0.0886060128866)+(0.274829833844)*0.5**o
22696        res=integrate(arg)        res=integrate(arg)
22697        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
22698        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
22699        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
22700        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
22701     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22702     def test_integrate_onFunctionOnContactOne_fromSymbol_FunctionOnContactOne_rank2(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_FunctionOnContactOne_rank2(self):
22703        """        """
# Line 22798  class Test_Util_SpatialFunctions_noGradO Line 22798  class Test_Util_SpatialFunctions_noGradO
22798          ref[3,4]=(0.19807177866)/(o+1.)+(0.101577356827)+(-0.440074964176)*0.5**o          ref[3,4]=(0.19807177866)/(o+1.)+(0.101577356827)+(-0.440074964176)*0.5**o
22799        res=integrate(arg)        res=integrate(arg)
22800        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
22801        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
22802        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
22803        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
22804     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22805     def test_integrate_onFunctionOnContactOne_fromSymbol_FunctionOnContactOne_rank3(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_FunctionOnContactOne_rank3(self):
22806        """        """
# Line 22917  class Test_Util_SpatialFunctions_noGradO Line 22917  class Test_Util_SpatialFunctions_noGradO
22917          ref[5,1,1]=(-1.29420860855)/(o+1.)+(-0.113129723997)+(-0.321911973511)*0.5**o          ref[5,1,1]=(-1.29420860855)/(o+1.)+(-0.113129723997)+(-0.321911973511)*0.5**o
22918        res=integrate(arg)        res=integrate(arg)
22919        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
22920        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
22921        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
22922        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
22923     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22924     def test_integrate_onFunctionOnContactOne_fromSymbol_FunctionOnContactOne_rank4(self):     def test_integrate_onFunctionOnContactOne_fromSymbol_FunctionOnContactOne_rank4(self):
22925        """        """
# Line 23420  class Test_Util_SpatialFunctions_noGradO Line 23420  class Test_Util_SpatialFunctions_noGradO
23420          ref[3,4,2,1]=(-1.84102882835)/(o+1.)+(0.261798322918)+(0.670125652473)*0.5**o          ref[3,4,2,1]=(-1.84102882835)/(o+1.)+(0.261798322918)+(0.670125652473)*0.5**o
23421        res=integrate(arg)        res=integrate(arg)
23422        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
23423        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
23424        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
23425        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
23426     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23427     def test_integrate_onReducedFunctionOnContactOne_fromData_ContinuousFunction_rank0(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ContinuousFunction_rank0(self):
23428        """        """
# Line 23444  class Test_Util_SpatialFunctions_noGradO Line 23444  class Test_Util_SpatialFunctions_noGradO
23444          arg=(-0.365813216932)*x[0]**o+(0.969816151161)*x[0]+(0.349995764077)*x[1]**o+(0.867492181692)*x[1]+(-0.866177355796)*x[2]**o+(-0.203219031102)*x[2]          arg=(-0.365813216932)*x[0]**o+(0.969816151161)*x[0]+(0.349995764077)*x[1]**o+(0.867492181692)*x[1]+(-0.866177355796)*x[2]**o+(-0.203219031102)*x[2]
23445          ref=(-0.516181591719)/(o+1.)+(0.817044650875)+(-0.365813216932)*0.5**o          ref=(-0.516181591719)/(o+1.)+(0.817044650875)+(-0.365813216932)*0.5**o
23446        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
23447        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
23448        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
23449     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23450     def test_integrate_onReducedFunctionOnContactOne_fromData_ContinuousFunction_rank1(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ContinuousFunction_rank1(self):
23451        """        """
# Line 23472  class Test_Util_SpatialFunctions_noGradO Line 23472  class Test_Util_SpatialFunctions_noGradO
23472          ref[0]=(0.211945683696)/(o+1.)+(0.0613923521485)+(-0.472858663642)*0.5**o          ref[0]=(0.211945683696)/(o+1.)+(0.0613923521485)+(-0.472858663642)*0.5**o
23473          ref[1]=(1.12689776694)/(o+1.)+(-0.462024602231)+(-0.0191775972693)*0.5**o          ref[1]=(1.12689776694)/(o+1.)+(-0.462024602231)+(-0.0191775972693)*0.5**o
23474        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
23475        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
23476        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
23477        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
23478     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23479     def test_integrate_onReducedFunctionOnContactOne_fromData_ContinuousFunction_rank2(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ContinuousFunction_rank2(self):
23480        """        """
# Line 23573  class Test_Util_SpatialFunctions_noGradO Line 23573  class Test_Util_SpatialFunctions_noGradO
23573          ref[3,3]=(1.17567141532)/(o+1.)+(-0.00918091278228)+(0.536414145801)*0.5**o          ref[3,3]=(1.17567141532)/(o+1.)+(-0.00918091278228)+(0.536414145801)*0.5**o
23574          ref[3,4]=(-0.0561425018138)/(o+1.)+(0.545976003363)+(0.305683606235)*0.5**o          ref[3,4]=(-0.0561425018138)/(o+1.)+(0.545976003363)+(0.305683606235)*0.5**o
23575        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
23576        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
23577        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
23578        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
23579     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23580     def test_integrate_onReducedFunctionOnContactOne_fromData_ContinuousFunction_rank3(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ContinuousFunction_rank3(self):
23581        """        """
# Line 23690  class Test_Util_SpatialFunctions_noGradO Line 23690  class Test_Util_SpatialFunctions_noGradO
23690          ref[5,1,0]=(0.17805524354)/(o+1.)+(0.0896522169463)+(0.877279477171)*0.5**o          ref[5,1,0]=(0.17805524354)/(o+1.)+(0.0896522169463)+(0.877279477171)*0.5**o
23691          ref[5,1,1]=(-0.319661423044)/(o+1.)+(0.384944604113)+(0.294375780312)*0.5**o          ref[5,1,1]=(-0.319661423044)/(o+1.)+(0.384944604113)+(0.294375780312)*0.5**o
23692        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
23693        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
23694        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
23695        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
23696     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23697     def test_integrate_onReducedFunctionOnContactOne_fromData_ContinuousFunction_rank4(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ContinuousFunction_rank4(self):
23698        """        """
# Line 24191  class Test_Util_SpatialFunctions_noGradO Line 24191  class Test_Util_SpatialFunctions_noGradO
24191          ref[3,4,2,0]=(0.253933476088)/(o+1.)+(0.44314310146)+(-0.994529375243)*0.5**o          ref[3,4,2,0]=(0.253933476088)/(o+1.)+(0.44314310146)+(-0.994529375243)*0.5**o
24192          ref[3,4,2,1]=(1.21425006298)/(o+1.)+(-1.32481253074)+(-0.538074654323)*0.5**o          ref[3,4,2,1]=(1.21425006298)/(o+1.)+(-1.32481253074)+(-0.538074654323)*0.5**o
24193        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
24194        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
24195        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
24196        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
24197     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
24198     def test_integrate_onReducedFunctionOnContactOne_fromData_Solution_rank0(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_Solution_rank0(self):
24199        """        """
# Line 24215  class Test_Util_SpatialFunctions_noGradO Line 24215  class Test_Util_SpatialFunctions_noGradO
24215          arg=(0.384995424392)*x[0]**o+(0.999298118235)*x[0]+(0.144745460948)*x[1]**o+(0.0545198589076)*x[1]+(-0.773375797864)*x[2]**o+(0.145524911495)*x[2]          arg=(0.384995424392)*x[0]**o+(0.999298118235)*x[0]+(0.144745460948)*x[1]**o+(0.0545198589076)*x[1]+(-0.773375797864)*x[2]**o+(0.145524911495)*x[2]
24216          ref=(-0.628630336917)/(o+1.)+(0.599671444318)+(0.384995424392)*0.5**o          ref=(-0.628630336917)/(o+1.)+(0.599671444318)+(0.384995424392)*0.5**o
24217        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
24218        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
24219        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
24220     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
24221     def test_integrate_onReducedFunctionOnContactOne_fromData_Solution_rank1(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_Solution_rank1(self):
24222        """        """
# Line 24243  class Test_Util_SpatialFunctions_noGradO Line 24243  class Test_Util_SpatialFunctions_noGradO
24243          ref[0]=(0.725191452103)/(o+1.)+(0.169252765901)+(-0.292048194246)*0.5**o          ref[0]=(0.725191452103)/(o+1.)+(0.169252765901)+(-0.292048194246)*0.5**o
24244          ref[1]=(-0.623766508512)/(o+1.)+(0.99634620017)+(0.153118126553)*0.5**o          ref[1]=(-0.623766508512)/(o+1.)+(0.99634620017)+(0.153118126553)*0.5**o
24245        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
24246        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
24247        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
24248        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
24249     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
24250     def test_integrate_onReducedFunctionOnContactOne_fromData_Solution_rank2(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_Solution_rank2(self):
24251        """        """
# Line 24344  class Test_Util_SpatialFunctions_noGradO Line 24344  class Test_Util_SpatialFunctions_noGradO
24344          ref[3,3]=(-0.87630155335)/(o+1.)+(0.426403350019)+(0.870508483705)*0.5**o          ref[3,3]=(-0.87630155335)/(o+1.)+(0.426403350019)+(0.870508483705)*0.5**o
24345          ref[3,4]=(0.384809615783)/(o+1.)+(-0.448855127091)+(-0.638437449353)*0.5**o          ref[3,4]=(0.384809615783)/(o+1.)+(-0.448855127091)+(-0.638437449353)*0.5**o
24346        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
24347        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
24348        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
24349        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
24350     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
24351     def test_integrate_onReducedFunctionOnContactOne_fromData_Solution_rank3(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_Solution_rank3(self):
24352        """        """
# Line 24461  class Test_Util_SpatialFunctions_noGradO Line 24461  class Test_Util_SpatialFunctions_noGradO
24461          ref[5,1,0]=(1.36503502533)/(o+1.)+(-0.526576872427)+(0.444799933589)*0.5**o          ref[5,1,0]=(1.36503502533)/(o+1.)+(-0.526576872427)+(0.444799933589)*0.5**o
24462          ref[5,1,1]=(1.53331825424)/(o+1.)+(-1.15278372696)+(0.0304781332872)*0.5**o          ref[5,1,1]=(1.53331825424)/(o+1.)+(-1.15278372696)+(0.0304781332872)*0.5**o
24463        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
24464        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
24465        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
24466        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
24467     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
24468     def test_integrate_onReducedFunctionOnContactOne_fromData_Solution_rank4(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_Solution_rank4(self):
24469        """        """
# Line 24962  class Test_Util_SpatialFunctions_noGradO Line 24962  class Test_Util_SpatialFunctions_noGradO
24962          ref[3,4,2,0]=(0.944328366501)/(o+1.)+(0.852563490353)+(-0.893419673448)*0.5**o          ref[3,4,2,0]=(0.944328366501)/(o+1.)+(0.852563490353)+(-0.893419673448)*0.5**o
24963          ref[3,4,2,1]=(-0.813392164634)/(o+1.)+(-0.841253216593)+(0.480643160777)*0.5**o          ref[3,4,2,1]=(-0.813392164634)/(o+1.)+(-0.841253216593)+(0.480643160777)*0.5**o
24964        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
24965        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
24966        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
24967        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
24968     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
24969     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedSolution_rank0(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedSolution_rank0(self):
24970        """        """
# Line 24986  class Test_Util_SpatialFunctions_noGradO Line 24986  class Test_Util_SpatialFunctions_noGradO
24986          arg=(0.53919797656)*x[0]+(0.379010664884)*x[1]+(0.274416064529)*x[2]          arg=(0.53919797656)*x[0]+(0.379010664884)*x[1]+(0.274416064529)*x[2]
24987          ref=(0.307947301472)/(o+1.)+(0.120674157748)+(0.643329089005)*0.5**o          ref=(0.307947301472)/(o+1.)+(0.120674157748)+(0.643329089005)*0.5**o
24988        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
24989        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
24990        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
24991     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
24992     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedSolution_rank1(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedSolution_rank1(self):
24993        """        """
# Line 25014  class Test_Util_SpatialFunctions_noGradO Line 25014  class Test_Util_SpatialFunctions_noGradO
25014          ref[0]=(-0.274486314451)/(o+1.)+(0.379737553853)+(0.0884149293071)*0.5**o          ref[0]=(-0.274486314451)/(o+1.)+(0.379737553853)+(0.0884149293071)*0.5**o
25015          ref[1]=(-0.78452814021)/(o+1.)+(-0.122017410137)+(0.605144310151)*0.5**o          ref[1]=(-0.78452814021)/(o+1.)+(-0.122017410137)+(0.605144310151)*0.5**o
25016        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
25017        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
25018        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
25019        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
25020     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
25021     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedSolution_rank2(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedSolution_rank2(self):
25022        """        """
# Line 25115  class Test_Util_SpatialFunctions_noGradO Line 25115  class Test_Util_SpatialFunctions_noGradO
25115          ref[3,3]=(-0.148394092795)/(o+1.)+(-0.237190239072)+(-0.807112037336)*0.5**o          ref[3,3]=(-0.148394092795)/(o+1.)+(-0.237190239072)+(-0.807112037336)*0.5**o
25116          ref[3,4]=(0.529983886211)/(o+1.)+(-0.371055083588)+(0.254078854382)*0.5**o          ref[3,4]=(0.529983886211)/(o+1.)+(-0.371055083588)+(0.254078854382)*0.5**o
25117        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
25118        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
25119        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
25120        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
25121     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
25122     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedSolution_rank3(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedSolution_rank3(self):
25123        """        """
# Line 25232  class Test_Util_SpatialFunctions_noGradO Line 25232  class Test_Util_SpatialFunctions_noGradO
25232          ref[5,1,0]=(-0.069063169298)/(o+1.)+(0.883536796964)+(0.883025165644)*0.5**o          ref[5,1,0]=(-0.069063169298)/(o+1.)+(0.883536796964)+(0.883025165644)*0.5**o
25233          ref[5,1,1]=(1.05999338993)/(o+1.)+(-0.392519102893)+(0.918128198439)*0.5**o          ref[5,1,1]=(1.05999338993)/(o+1.)+(-0.392519102893)+(0.918128198439)*0.5**o
25234        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
25235        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
25236        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
25237        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
25238     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
25239     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedSolution_rank4(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedSolution_rank4(self):
25240        """        """
# Line 25733  class Test_Util_SpatialFunctions_noGradO Line 25733  class Test_Util_SpatialFunctions_noGradO
25733          ref[3,4,2,0]=(-0.367201097566)/(o+1.)+(-0.337780780531)+(0.688589316866)*0.5**o          ref[3,4,2,0]=(-0.367201097566)/(o+1.)+(-0.337780780531)+(0.688589316866)*0.5**o
25734          ref[3,4,2,1]=(-0.0547905846061)/(o+1.)+(-0.293870420685)+(0.31527404661)*0.5**o          ref[3,4,2,1]=(-0.0547905846061)/(o+1.)+(-0.293870420685)+(0.31527404661)*0.5**o
25735        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
25736        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
25737        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
25738        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
25739     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
25740     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedContinuousFunction_rank0(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedContinuousFunction_rank0(self):
25741        """        """
# Line 25757  class Test_Util_SpatialFunctions_noGradO Line 25757  class Test_Util_SpatialFunctions_noGradO
25757          arg=(0.53919797656)*x[0]+(0.379010664884)*x[1]+(0.274416064529)*x[2]          arg=(0.53919797656)*x[0]+(0.379010664884)*x[1]+(0.274416064529)*x[2]
25758          ref=(0.307947301472)/(o+1.)+(0.120674157748)+(0.643329089005)*0.5**o          ref=(0.307947301472)/(o+1.)+(0.120674157748)+(0.643329089005)*0.5**o
25759        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
25760        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
25761        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
25762     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
25763     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedContinuousFunction_rank1(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedContinuousFunction_rank1(self):
25764        """        """
# Line 25785  class Test_Util_SpatialFunctions_noGradO Line 25785  class Test_Util_SpatialFunctions_noGradO
25785          ref[0]=(-0.274486314451)/(o+1.)+(0.379737553853)+(0.0884149293071)*0.5**o          ref[0]=(-0.274486314451)/(o+1.)+(0.379737553853)+(0.0884149293071)*0.5**o
25786          ref[1]=(-0.78452814021)/(o+1.)+(-0.122017410137)+(0.605144310151)*0.5**o          ref[1]=(-0.78452814021)/(o+1.)+(-0.122017410137)+(0.605144310151)*0.5**o
25787        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
25788        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
25789        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
25790        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
25791     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
25792     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedContinuousFunction_rank2(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedContinuousFunction_rank2(self):
25793        """        """
# Line 25886  class Test_Util_SpatialFunctions_noGradO Line 25886  class Test_Util_SpatialFunctions_noGradO
25886          ref[3,3]=(-0.148394092795)/(o+1.)+(-0.237190239072)+(-0.807112037336)*0.5**o          ref[3,3]=(-0.148394092795)/(o+1.)+(-0.237190239072)+(-0.807112037336)*0.5**o
25887          ref[3,4]=(0.529983886211)/(o+1.)+(-0.371055083588)+(0.254078854382)*0.5**o          ref[3,4]=(0.529983886211)/(o+1.)+(-0.371055083588)+(0.254078854382)*0.5**o
25888        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
25889        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
25890        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
25891        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
25892     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
25893     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedContinuousFunction_rank3(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedContinuousFunction_rank3(self):
25894        """        """
# Line 26003  class Test_Util_SpatialFunctions_noGradO Line 26003  class Test_Util_SpatialFunctions_noGradO
26003          ref[5,1,0]=(-0.069063169298)/(o+1.)+(0.883536796964)+(0.883025165644)*0.5**o          ref[5,1,0]=(-0.069063169298)/(o+1.)+(0.883536796964)+(0.883025165644)*0.5**o
26004          ref[5,1,1]=(1.05999338993)/(o+1.)+(-0.392519102893)+(0.918128198439)*0.5**o          ref[5,1,1]=(1.05999338993)/(o+1.)+(-0.392519102893)+(0.918128198439)*0.5**o
26005        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
26006        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
26007        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
26008        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
26009     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
26010     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedContinuousFunction_rank4(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedContinuousFunction_rank4(self):
26011        """        """
# Line 26504  class Test_Util_SpatialFunctions_noGradO Line 26504  class Test_Util_SpatialFunctions_noGradO
26504          ref[3,4,2,0]=(-0.367201097566)/(o+1.)+(-0.337780780531)+(0.688589316866)*0.5**o          ref[3,4,2,0]=(-0.367201097566)/(o+1.)+(-0.337780780531)+(0.688589316866)*0.5**o
26505          ref[3,4,2,1]=(-0.0547905846061)/(o+1.)+(-0.293870420685)+(0.31527404661)*0.5**o          ref[3,4,2,1]=(-0.0547905846061)/(o+1.)+(-0.293870420685)+(0.31527404661)*0.5**o
26506        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
26507        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
26508        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
26509        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
26510     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
26511     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedFunctionOnContactOne_rank0(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedFunctionOnContactOne_rank0(self):
26512        """        """
# Line 26528  class Test_Util_SpatialFunctions_noGradO Line 26528  class Test_Util_SpatialFunctions_noGradO
26528          arg=(0.0675036998003)*x[0]**o+(-0.247751392136)*x[0]+(0.791676220029)*x[1]**o+(-0.269015236163)*x[1]+(0.265735156875)*x[2]**o+(0.820319192519)*x[2]          arg=(0.0675036998003)*x[0]**o+(-0.247751392136)*x[0]+(0.791676220029)*x[1]**o+(-0.269015236163)*x[1]+(0.265735156875)*x[2]**o+(0.820319192519)*x[2]
26529          ref=(1.0574113769)/(o+1.)+(0.15177628211)+(0.0675036998003)*0.5**o          ref=(1.0574113769)/(o+1.)+(0.15177628211)+(0.0675036998003)*0.5**o
26530        res=integrate(arg)        res=integrate(arg)
26531        self.failUnless(isinstance(res,float),"wrong type of result.")        self.assertTrue(isinstance(res,float),"wrong type of result.")
26532        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
26533     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
26534     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedFunctionOnContactOne_rank1(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedFunctionOnContactOne_rank1(self):
26535        """        """
# Line 26556  class Test_Util_SpatialFunctions_noGradO Line 26556  class Test_Util_SpatialFunctions_noGradO
26556          ref[0]=(-0.913418839574)/(o+1.)+(-0.256607115927)+(-0.158686556523)*0.5**o          ref[0]=(-0.913418839574)/(o+1.)+(-0.256607115927)+(-0.158686556523)*0.5**o
26557          ref[1]=(0.551743740614)/(o+1.)+(-0.140542035161)+(0.392997873484)*0.5**o          ref[1]=(0.551743740614)/(o+1.)+(-0.140542035161)+(0.392997873484)*0.5**o
26558        res=integrate(arg)        res=integrate(arg)
26559        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
26560        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.assertEqual(res.shape,(2,),"wrong shape of result.")
26561        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
26562     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
26563     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedFunctionOnContactOne_rank2(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedFunctionOnContactOne_rank2(self):
26564        """        """
# Line 26657  class Test_Util_SpatialFunctions_noGradO Line 26657  class Test_Util_SpatialFunctions_noGradO
26657          ref[3,3]=(0.118056686106)/(o+1.)+(-0.518465563043)+(-0.304262529036)*0.5**o          ref[3,3]=(0.118056686106)/(o+1.)+(-0.518465563043)+(-0.304262529036)*0.5**o
26658          ref[3,4]=(0.248645444416)/(o+1.)+(-0.768296605922)+(-0.720555420423)*0.5**o          ref[3,4]=(0.248645444416)/(o+1.)+(-0.768296605922)+(-0.720555420423)*0.5**o
26659        res=integrate(arg)        res=integrate(arg)
26660        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
26661        self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5),"wrong shape of result.")
26662        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
26663     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
26664     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedFunctionOnContactOne_rank3(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedFunctionOnContactOne_rank3(self):
26665        """        """
# Line 26774  class Test_Util_SpatialFunctions_noGradO Line 26774  class Test_Util_SpatialFunctions_noGradO
26774          ref[5,1,0]=(-0.760401774232)/(o+1.)+(-0.10710358084)+(0.974781669859)*0.5**o          ref[5,1,0]=(-0.760401774232)/(o+1.)+(-0.10710358084)+(0.974781669859)*0.5**o
26775          ref[5,1,1]=(-1.35187858674)/(o+1.)+(0.590658290191)+(0.485215976154)*0.5**o          ref[5,1,1]=(-1.35187858674)/(o+1.)+(0.590658290191)+(0.485215976154)*0.5**o
26776        res=integrate(arg)        res=integrate(arg)
26777        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
26778        self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.shape,(6, 2, 2),"wrong shape of result.")
26779        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
26780     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
26781     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedFunctionOnContactOne_rank4(self):     def test_integrate_onReducedFunctionOnContactOne_fromData_ReducedFunctionOnContactOne_rank4(self):
26782        """        """
# Line 27275  class Test_Util_SpatialFunctions_noGradO Line 27275  class Test_Util_SpatialFunctions_noGradO
27275          ref[3,4,2,0]=(-0.194325734076)/(o+1.)+(0.581224356966)+(-0.0813611687514)*0.5**o          ref[3,4,2,0]=(-0.194325734076)/(o+1.)+(0.581224356966)+(-0.0813611687514)*0.5**o
27276          ref[3,4,2,1]=(1.37635341581)/(o+1.)+(1.02866696565)+(-0.0991425040958)*0.5**o          ref[3,4,2,1]=(1.37635341581)/(o+1.)+(1.02866696565)+(-0.0991425040958)*0.5**o
27277        res=integrate(arg)        res=integrate(arg)
27278        self.failUnless(isinstance(res,numpy.ndarray),"wrong type of result.")        self.assertTrue(isinstance(res,numpy.ndarray),"wrong type of result.")
27279        self.failUnlessEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.shape,(4, 5, 3, 2),"wrong shape of result.")
27280        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
27281     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
27282     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ContinuousFunction_rank0(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ContinuousFunction_rank0(self):
27283        """        """
# Line 27301  class Test_Util_SpatialFunctions_noGradO Line 27301  class Test_Util_SpatialFunctions_noGradO
27301          ref=(-0.701565216974)/(o+1.)+(0.0705643797689)+(0.436925914346)*0.5**o          ref=(-0.701565216974)/(o+1.)+(0.0705643797689)+(0.436925914346)*0.5**o
27302        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
27303        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
27304        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
27305        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
27306        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
27307     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
27308     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ContinuousFunction_rank1(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ContinuousFunction_rank1(self):
27309        """        """
# Line 27332  class Test_Util_SpatialFunctions_noGradO Line 27332  class Test_Util_SpatialFunctions_noGradO
27332          ref[1]=(-1.54458630045)/(o+1.)+(0.036431454094)+(-0.190159227288)*0.5**o          ref[1]=(-1.54458630045)/(o+1.)+(0.036431454094)+(-0.190159227288)*0.5**o
27333        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
27334        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
27335        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
27336        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
27337        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
27338     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
27339     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ContinuousFunction_rank2(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ContinuousFunction_rank2(self):
27340        """        """
# Line 27435  class Test_Util_SpatialFunctions_noGradO Line 27435  class Test_Util_SpatialFunctions_noGradO
27435          ref[3,4]=(0.858967547335)/(o+1.)+(0.406115547322)+(-0.0280956096914)*0.5**o          ref[3,4]=(0.858967547335)/(o+1.)+(0.406115547322)+(-0.0280956096914)*0.5**o
27436        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
27437        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
27438        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
27439        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
27440        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
27441     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
27442     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ContinuousFunction_rank3(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ContinuousFunction_rank3(self):
27443        """        """
# Line 27554  class Test_Util_SpatialFunctions_noGradO Line 27554  class Test_Util_SpatialFunctions_noGradO
27554          ref[5,1,1]=(-0.527896473807)/(o+1.)+(-0.220429932137)+(-0.54994010911)*0.5**o          ref[5,1,1]=(-0.527896473807)/(o+1.)+(-0.220429932137)+(-0.54994010911)*0.5**o
27555        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
27556        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
27557        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
27558        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
27559        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
27560     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
27561     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ContinuousFunction_rank4(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ContinuousFunction_rank4(self):
27562        """        """
# Line 28057  class Test_Util_SpatialFunctions_noGradO Line 28057  class Test_Util_SpatialFunctions_noGradO
28057          ref[3,4,2,1]=(0.387168659686)/(o+1.)+(0.406371865736)+(-0.524152888193)*0.5**o          ref[3,4,2,1]=(0.387168659686)/(o+1.)+(0.406371865736)+(-0.524152888193)*0.5**o
28058        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
28059        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
28060        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
28061        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
28062        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
28063     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
28064     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_Solution_rank0(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_Solution_rank0(self):
28065        """        """
# Line 28083  class Test_Util_SpatialFunctions_noGradO Line 28083  class Test_Util_SpatialFunctions_noGradO
28083          ref=(0.247006885878)/(o+1.)+(0.586176656298)+(-0.488825085875)*0.5**o          ref=(0.247006885878)/(o+1.)+(0.586176656298)+(-0.488825085875)*0.5**o
28084        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
28085        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
28086        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
28087        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
28088        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
28089     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
28090     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_Solution_rank1(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_Solution_rank1(self):
28091        """        """
# Line 28114  class Test_Util_SpatialFunctions_noGradO Line 28114  class Test_Util_SpatialFunctions_noGradO
28114          ref[1]=(0.926918844249)/(o+1.)+(-0.101974478575)+(-0.393659677321)*0.5**o          ref[1]=(0.926918844249)/(o+1.)+(-0.101974478575)+(-0.393659677321)*0.5**o
28115        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
28116        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
28117        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
28118        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
28119        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
28120     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
28121     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_Solution_rank2(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_Solution_rank2(self):
28122        """        """
# Line 28217  class Test_Util_SpatialFunctions_noGradO Line 28217  class Test_Util_SpatialFunctions_noGradO
28217          ref[3,4]=(1.59279253467)/(o+1.)+(1.07274701017)+(-0.790516141209)*0.5**o          ref[3,4]=(1.59279253467)/(o+1.)+(1.07274701017)+(-0.790516141209)*0.5**o
28218        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
28219        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
28220        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
28221        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
28222        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
28223     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
28224     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_Solution_rank3(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_Solution_rank3(self):
28225        """        """
# Line 28336  class Test_Util_SpatialFunctions_noGradO Line 28336  class Test_Util_SpatialFunctions_noGradO
28336          ref[5,1,1]=(0.633496059035)/(o+1.)+(0.142726683513)+(0.101661872917)*0.5**o          ref[5,1,1]=(0.633496059035)/(o+1.)+(0.142726683513)+(0.101661872917)*0.5**o
28337        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
28338        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
28339        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
28340        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
28341        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
28342     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
28343     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_Solution_rank4(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_Solution_rank4(self):
28344        """        """
# Line 28839  class Test_Util_SpatialFunctions_noGradO Line 28839  class Test_Util_SpatialFunctions_noGradO
28839          ref[3,4,2,1]=(-0.394755553787)/(o+1.)+(0.434493415112)+(0.342579062975)*0.5**o          ref[3,4,2,1]=(-0.394755553787)/(o+1.)+(0.434493415112)+(0.342579062975)*0.5**o
28840        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
28841        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
28842        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
28843        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
28844        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
28845     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
28846     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedSolution_rank0(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedSolution_rank0(self):
28847        """        """
# Line 28865  class Test_Util_SpatialFunctions_noGradO Line 28865  class Test_Util_SpatialFunctions_noGradO
28865          ref=(-0.964783366814)/(o+1.)+(0.787210317182)+(-0.332644900019)*0.5**o          ref=(-0.964783366814)/(o+1.)+(0.787210317182)+(-0.332644900019)*0.5**o
28866        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
28867        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
28868        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
28869        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
28870        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
28871     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
28872     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedSolution_rank1(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedSolution_rank1(self):
28873        """        """
# Line 28896  class Test_Util_SpatialFunctions_noGradO Line 28896  class Test_Util_SpatialFunctions_noGradO
28896          ref[1]=(-1.0263552046)/(o+1.)+(0.265270569058)+(0.220096757743)*0.5**o          ref[1]=(-1.0263552046)/(o+1.)+(0.265270569058)+(0.220096757743)*0.5**o
28897        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
28898        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
28899        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
28900        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
28901        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
28902     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
28903     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedSolution_rank2(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedSolution_rank2(self):
28904        """        """
# Line 28999  class Test_Util_SpatialFunctions_noGradO Line 28999  class Test_Util_SpatialFunctions_noGradO
28999          ref[3,4]=(0.223164895319)/(o+1.)+(-0.31244215916)+(0.638469012551)*0.5**o          ref[3,4]=(0.223164895319)/(o+1.)+(-0.31244215916)+(0.638469012551)*0.5**o
29000        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
29001        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
29002        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
29003        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
29004        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
29005     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
29006     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedSolution_rank3(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedSolution_rank3(self):
29007        """        """
# Line 29118  class Test_Util_SpatialFunctions_noGradO Line 29118  class Test_Util_SpatialFunctions_noGradO
29118          ref[5,1,1]=(0.566120139584)/(o+1.)+(-0.312318326061)+(0.812302833644)*0.5**o          ref[5,1,1]=(0.566120139584)/(o+1.)+(-0.312318326061)+(0.812302833644)*0.5**o
29119        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
29120        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
29121        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
29122        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
29123        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
29124     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
29125     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedSolution_rank4(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedSolution_rank4(self):
29126        """        """
# Line 29621  class Test_Util_SpatialFunctions_noGradO Line 29621  class Test_Util_SpatialFunctions_noGradO
29621          ref[3,4,2,1]=(-1.12139150964)/(o+1.)+(-0.135856270303)+(-0.427480154859)*0.5**o          ref[3,4,2,1]=(-1.12139150964)/(o+1.)+(-0.135856270303)+(-0.427480154859)*0.5**o
29622        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
29623        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
29624        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
29625        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
29626        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
29627     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
29628     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank0(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank0(self):
29629        """        """
# Line 29647  class Test_Util_SpatialFunctions_noGradO Line 29647  class Test_Util_SpatialFunctions_noGradO
29647          ref=(-0.964783366814)/(o+1.)+(0.787210317182)+(-0.332644900019)*0.5**o          ref=(-0.964783366814)/(o+1.)+(0.787210317182)+(-0.332644900019)*0.5**o
29648        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
29649        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
29650        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
29651        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
29652        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
29653     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
29654     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank1(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank1(self):
29655        """        """
# Line 29678  class Test_Util_SpatialFunctions_noGradO Line 29678  class Test_Util_SpatialFunctions_noGradO
29678          ref[1]=(-1.0263552046)/(o+1.)+(0.265270569058)+(0.220096757743)*0.5**o          ref[1]=(-1.0263552046)/(o+1.)+(0.265270569058)+(0.220096757743)*0.5**o
29679        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
29680        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
29681        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
29682        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
29683        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
29684     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
29685     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank2(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank2(self):
29686        """        """
# Line 29781  class Test_Util_SpatialFunctions_noGradO Line 29781  class Test_Util_SpatialFunctions_noGradO
29781          ref[3,4]=(0.223164895319)/(o+1.)+(-0.31244215916)+(0.638469012551)*0.5**o          ref[3,4]=(0.223164895319)/(o+1.)+(-0.31244215916)+(0.638469012551)*0.5**o
29782        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
29783        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
29784        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
29785        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
29786        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
29787     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
29788     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank3(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank3(self):
29789        """        """
# Line 29900  class Test_Util_SpatialFunctions_noGradO Line 29900  class Test_Util_SpatialFunctions_noGradO
29900          ref[5,1,1]=(0.566120139584)/(o+1.)+(-0.312318326061)+(0.812302833644)*0.5**o          ref[5,1,1]=(0.566120139584)/(o+1.)+(-0.312318326061)+(0.812302833644)*0.5**o
29901        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
29902        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
29903        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
29904        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
29905        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
29906     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
29907     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank4(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedContinuousFunction_rank4(self):
29908        """        """
# Line 30403  class Test_Util_SpatialFunctions_noGradO Line 30403  class Test_Util_SpatialFunctions_noGradO
30403          ref[3,4,2,1]=(-1.12139150964)/(o+1.)+(-0.135856270303)+(-0.427480154859)*0.5**o          ref[3,4,2,1]=(-1.12139150964)/(o+1.)+(-0.135856270303)+(-0.427480154859)*0.5**o
30404        res=integrate(arg,where=w_ref)        res=integrate(arg,where=w_ref)
30405        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
30406        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
30407        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
30408        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
30409     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
30410     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedFunctionOnContactOne_rank0(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedFunctionOnContactOne_rank0(self):
30411        """        """
# Line 30429  class Test_Util_SpatialFunctions_noGradO Line 30429  class Test_Util_SpatialFunctions_noGradO
30429          ref=(0.12173338631)/(o+1.)+(0.396281986825)+(-0.217546543734)*0.5**o          ref=(0.12173338631)/(o+1.)+(0.396281986825)+(-0.217546543734)*0.5**o
30430        res=integrate(arg)        res=integrate(arg)
30431        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
30432        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
30433        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
30434        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
30435     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
30436     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedFunctionOnContactOne_rank1(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedFunctionOnContactOne_rank1(self):
30437        """        """
# Line 30460  class Test_Util_SpatialFunctions_noGradO Line 30460  class Test_Util_SpatialFunctions_noGradO
30460          ref[1]=(-0.703489566047)/(o+1.)+(-0.0886060128866)+(0.274829833844)*0.5**o          ref[1]=(-0.703489566047)/(o+1.)+(-0.0886060128866)+(0.274829833844)*0.5**o
30461        res=integrate(arg)        res=integrate(arg)
30462        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
30463        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
30464        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
30465        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
30466     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
30467     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedFunctionOnContactOne_rank2(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedFunctionOnContactOne_rank2(self):
30468        """        """
# Line 30563  class Test_Util_SpatialFunctions_noGradO Line 30563  class Test_Util_SpatialFunctions_noGradO
30563          ref[3,4]=(0.19807177866)/(o+1.)+(0.101577356827)+(-0.440074964176)*0.5**o          ref[3,4]=(0.19807177866)/(o+1.)+(0.101577356827)+(-0.440074964176)*0.5**o
30564        res=integrate(arg)        res=integrate(arg)
30565        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
30566        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
30567        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
30568        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
30569     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
30570     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedFunctionOnContactOne_rank3(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedFunctionOnContactOne_rank3(self):
30571        """        """
# Line 30682  class Test_Util_SpatialFunctions_noGradO Line 30682  class Test_Util_SpatialFunctions_noGradO
30682          ref[5,1,1]=(-1.29420860855)/(o+1.)+(-0.113129723997)+(-0.321911973511)*0.5**o          ref[5,1,1]=(-1.29420860855)/(o+1.)+(-0.113129723997)+(-0.321911973511)*0.5**o
30683        res=integrate(arg)        res=integrate(arg)
30684        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
30685        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
30686        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
30687        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
30688     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
30689     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedFunctionOnContactOne_rank4(self):     def test_integrate_onReducedFunctionOnContactOne_fromSymbol_ReducedFunctionOnContactOne_rank4(self):
30690        """        """
# Line 31185  class Test_Util_SpatialFunctions_noGradO Line 31185  class Test_Util_SpatialFunctions_noGradO
31185          ref[3,4,2,1]=(-1.84102882835)/(o+1.)+(0.261798322918)+(0.670125652473)*0.5**o          ref[3,4,2,1]=(-1.84102882835)/(o+1.)+(0.261798322918)+(0.670125652473)*0.5**o
31186        res=integrate(arg)        res=integrate(arg)
31187        sub=res.substitute({arg:s})        sub=res.substitute({arg:s})
31188        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.assertTrue(isinstance(res,Symbol),"wrong type of result.")
31189        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
31190        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
31191     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
31192     def test_interpolate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank0(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank0(self):
31193        """        """
# Line 31210  class Test_Util_SpatialFunctions_noGradO Line 31210  class Test_Util_SpatialFunctions_noGradO
31210          arg=(0.954737963273)*x[0]**o+(0.452578946878)*x[0]+(0.0471085060698)*x[1]**o+(-0.640169119832)*x[1]+(0.710401490627)*x[2]**o+(-0.382589884739)*x[2]          arg=(0.954737963273)*x[0]**o+(0.452578946878)*x[0]+(0.0471085060698)*x[1]**o+(-0.640169119832)*x[1]+(0.710401490627)*x[2]**o+(-0.382589884739)*x[2]
31211          ref=(0.954737963273)*x_ref[0]**o+(0.452578946878)*x_ref[0]+(0.0471085060698)*x_ref[1]**o+(-0.640169119832)*x_ref[1]+(0.710401490627)*x_ref[2]**o+(-0.382589884739)*x_ref[2]          ref=(0.954737963273)*x_ref[0]**o+(0.452578946878)*x_ref[0]+(0.0471085060698)*x_ref[1]**o+(-0.640169119832)*x_ref[1]+(0.710401490627)*x_ref[2]**o+(-0.382589884739)*x_ref[2]
31212        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
31213        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
31214        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
31215        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
31216        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
31217     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
31218     def test_interpolate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank1(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank1(self):
31219        """        """
# Line 31240  class Test_Util_SpatialFunctions_noGradO Line 31240  class Test_Util_SpatialFunctions_noGradO
31240          ref[0]=(0.777228173978)*x_ref[0]**o+(-0.812215827155)*x_ref[0]+(-0.618922680968)*x_ref[1]**o+(0.0660312103206)*x_ref[1]+(-0.917545504466)*x_ref[2]**o+(0.988524619414)*x_ref[2]          ref[0]=(0.777228173978)*x_ref[0]**o+(-0.812215827155)*x_ref[0]+(-0.618922680968)*x_ref[1]**o+(0.0660312103206)*x_ref[1]+(-0.917545504466)*x_ref[2]**o+(0.988524619414)*x_ref[2]
31241          ref[1]=(0.110219469565)*x_ref[0]**o+(-0.441866866062)*x_ref[0]+(-0.654447764335)*x_ref[1]**o+(0.230716133289)*x_ref[1]+(0.347487317165)*x_ref[2]**o+(-0.948877903043)*x_ref[2]          ref[1]=(0.110219469565)*x_ref[0]**o+(-0.441866866062)*x_ref[0]+(-0.654447764335)*x_ref[1]**o+(0.230716133289)*x_ref[1]+(0.347487317165)*x_ref[2]**o+(-0.948877903043)*x_ref[2]
31242        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
31243        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
31244        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
31245        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
31246        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
31247     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
31248     def test_interpolate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank2(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank2(self):
31249        """        """
# Line 31342  class Test_Util_SpatialFunctions_noGradO Line 31342  class Test_Util_SpatialFunctions_noGradO
31342          ref[3,3]=(0.40937236699)*x_ref[0]**o+(0.639252679403)*x_ref[0]+(0.540206943219)*x_ref[1]**o+(0.287006139758)*x_ref[1]+(0.123311433598)*x_ref[2]**o+(-0.0300672780213)*x_ref[2]          ref[3,3]=(0.40937236699)*x_ref[0]**o+(0.639252679403)*x_ref[0]+(0.540206943219)*x_ref[1]**o+(0.287006139758)*x_ref[1]+(0.123311433598)*x_ref[2]**o+(-0.0300672780213)*x_ref[2]
31343          ref[3,4]=(-0.190299257713)*x_ref[0]**o+(-0.022055675261)*x_ref[0]+(-0.640751994447)*x_ref[1]**o+(-0.411801947317)*x_ref[1]+(0.0675008125057)*x_ref[2]**o+(-0.659424255203)*x_ref[2]          ref[3,4]=(-0.190299257713)*x_ref[0]**o+(-0.022055675261)*x_ref[0]+(-0.640751994447)*x_ref[1]**o+(-0.411801947317)*x_ref[1]+(0.0675008125057)*x_ref[2]**o+(-0.659424255203)*x_ref[2]
31344        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
31345        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
31346        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
31347        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
31348        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
31349     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
31350     def test_interpolate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank3(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank3(self):
31351        """        """
# Line 31460  class Test_Util_SpatialFunctions_noGradO Line 31460  class Test_Util_SpatialFunctions_noGradO
31460          ref[5,1,0]=(-0.65536853024)*x_ref[0]**o+(-0.00573854242476)*x_ref[0]+(-0.261460514314)*x_ref[1]**o+(-0.289771405693)*x_ref[1]+(0.750775397523)*x_ref[2]**o+(-0.333215608562)*x_ref[2]          ref[5,1,0]=(-0.65536853024)*x_ref[0]**o+(-0.00573854242476)*x_ref[0]+(-0.261460514314)*x_ref[1]**o+(-0.289771405693)*x_ref[1]+(0.750775397523)*x_ref[2]**o+(-0.333215608562)*x_ref[2]
31461          ref[5,1,1]=(-0.579532884024)*x_ref[0]**o+(-0.208677373724)*x_ref[0]+(-0.379612024024)*x_ref[1]**o+(-0.0565813995114)*x_ref[1]+(-0.867913562592)*x_ref[2]**o+(-0.254654298293)*x_ref[2]          ref[5,1,1]=(-0.579532884024)*x_ref[0]**o+(-0.208677373724)*x_ref[0]+(-0.379612024024)*x_ref[1]**o+(-0.0565813995114)*x_ref[1]+(-0.867913562592)*x_ref[2]**o+(-0.254654298293)*x_ref[2]
31462        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
31463        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
31464        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
31465        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
31466        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
31467     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
31468     def test_interpolate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank4(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ContinuousFunction_rank4(self):
31469        """        """
# Line 31962  class Test_Util_SpatialFunctions_noGradO Line 31962  class Test_Util_SpatialFunctions_noGradO
31962          ref[3,4,2,0]=(0.488090753426)*x_ref[0]**o+(-0.352417078372)*x_ref[0]+(0.971988099319)*x_ref[1]**o+(-0.288929516009)*x_ref[1]+(0.612576734094)*x_ref[2]**o+(-0.43799514603)*x_ref[2]          ref[3,4,2,0]=(0.488090753426)*x_ref[0]**o+(-0.352417078372)*x_ref[0]+(0.971988099319)*x_ref[1]**o+(-0.288929516009)*x_ref[1]+(0.612576734094)*x_ref[2]**o+(-0.43799514603)*x_ref[2]
31963          ref[3,4,2,1]=(-0.098768101356)*x_ref[0]**o+(0.123300661895)*x_ref[0]+(-0.0489724280789)*x_ref[1]**o+(-0.422508669137)*x_ref[1]+(-0.861483104139)*x_ref[2]**o+(0.950198316001)*x_ref[2]          ref[3,4,2,1]=(-0.098768101356)*x_ref[0]**o+(0.123300661895)*x_ref[0]+(-0.0489724280789)*x_ref[1]**o+(-0.422508669137)*x_ref[1]+(-0.861483104139)*x_ref[2]**o+(0.950198316001)*x_ref[2]
31964        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
31965        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
31966        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
31967        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
31968        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
31969     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
31970     def test_interpolate_onReducedFunctionOnContactZero_fromData_Solution_rank0(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_Solution_rank0(self):
31971        """        """
# Line 31988  class Test_Util_SpatialFunctions_noGradO Line 31988  class Test_Util_SpatialFunctions_noGradO
31988          arg=(0.390296010052)*x[0]**o+(-0.279464234123)*x[0]+(-0.791334947488)*x[1]**o+(-0.0210629346704)*x[1]+(0.0816556526012)*x[2]**o+(0.77326269137)*x[2]          arg=(0.390296010052)*x[0]**o+(-0.279464234123)*x[0]+(-0.791334947488)*x[1]**o+(-0.0210629346704)*x[1]+(0.0816556526012)*x[2]**o+(0.77326269137)*x[2]
31989          ref=(0.390296010052)*x_ref[0]**o+(-0.279464234123)*x_ref[0]+(-0.791334947488)*x_ref[1]**o+(-0.0210629346704)*x_ref[1]+(0.0816556526012)*x_ref[2]**o+(0.77326269137)*x_ref[2]          ref=(0.390296010052)*x_ref[0]**o+(-0.279464234123)*x_ref[0]+(-0.791334947488)*x_ref[1]**o+(-0.0210629346704)*x_ref[1]+(0.0816556526012)*x_ref[2]**o+(0.77326269137)*x_ref[2]
31990        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
31991        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
31992        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
31993        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
31994        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
31995     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
31996     def test_interpolate_onReducedFunctionOnContactZero_fromData_Solution_rank1(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_Solution_rank1(self):
31997        """        """
# Line 32018  class Test_Util_SpatialFunctions_noGradO Line 32018  class Test_Util_SpatialFunctions_noGradO
32018          ref[0]=(0.159998049951)*x_ref[0]**o+(-0.863367327023)*x_ref[0]+(-0.0628498246638)*x_ref[1]**o+(0.685139358273)*x_ref[1]+(0.783213360641)*x_ref[2]**o+(0.397526421338)*x_ref[2]          ref[0]=(0.159998049951)*x_ref[0]**o+(-0.863367327023)*x_ref[0]+(-0.0628498246638)*x_ref[1]**o+(0.685139358273)*x_ref[1]+(0.783213360641)*x_ref[2]**o+(0.397526421338)*x_ref[2]
32019          ref[1]=(0.165519279053)*x_ref[0]**o+(-0.0936018967661)*x_ref[0]+(0.863047696619)*x_ref[1]**o+(0.653118186434)*x_ref[1]+(-0.408224131944)*x_ref[2]**o+(0.82400132854)*x_ref[2]          ref[1]=(0.165519279053)*x_ref[0]**o+(-0.0936018967661)*x_ref[0]+(0.863047696619)*x_ref[1]**o+(0.653118186434)*x_ref[1]+(-0.408224131944)*x_ref[2]**o+(0.82400132854)*x_ref[2]
32020        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
32021        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
32022        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
32023        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
32024        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
32025     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
32026     def test_interpolate_onReducedFunctionOnContactZero_fromData_Solution_rank2(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_Solution_rank2(self):
32027        """        """
# Line 32120  class Test_Util_SpatialFunctions_noGradO Line 32120  class Test_Util_SpatialFunctions_noGradO
32120          ref[3,3]=(0.0188993892075)*x_ref[0]**o+(0.611088737828)*x_ref[0]+(0.0313795167921)*x_ref[1]**o+(0.0842651755016)*x_ref[1]+(0.288414199415)*x_ref[2]**o+(0.695910780235)*x_ref[2]          ref[3,3]=(0.0188993892075)*x_ref[0]**o+(0.611088737828)*x_ref[0]+(0.0313795167921)*x_ref[1]**o+(0.0842651755016)*x_ref[1]+(0.288414199415)*x_ref[2]**o+(0.695910780235)*x_ref[2]
32121          ref[3,4]=(-0.500338800879)*x_ref[0]**o+(0.0984192369328)*x_ref[0]+(0.71163172992)*x_ref[1]**o+(-0.102123116139)*x_ref[1]+(0.954613955678)*x_ref[2]**o+(0.384872409422)*x_ref[2]          ref[3,4]=(-0.500338800879)*x_ref[0]**o+(0.0984192369328)*x_ref[0]+(0.71163172992)*x_ref[1]**o+(-0.102123116139)*x_ref[1]+(0.954613955678)*x_ref[2]**o+(0.384872409422)*x_ref[2]
32122        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
32123        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
32124        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
32125        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
32126        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
32127     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
32128     def test_interpolate_onReducedFunctionOnContactZero_fromData_Solution_rank3(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_Solution_rank3(self):
32129        """        """
# Line 32238  class Test_Util_SpatialFunctions_noGradO Line 32238  class Test_Util_SpatialFunctions_noGradO
32238          ref[5,1,0]=(0.718149875204)*x_ref[0]**o+(-0.183000739787)*x_ref[0]+(-0.655724252373)*x_ref[1]**o+(-0.634941710776)*x_ref[1]+(-0.26300163323)*x_ref[2]**o+(-0.25105424715)*x_ref[2]          ref[5,1,0]=(0.718149875204)*x_ref[0]**o+(-0.183000739787)*x_ref[0]+(-0.655724252373)*x_ref[1]**o+(-0.634941710776)*x_ref[1]+(-0.26300163323)*x_ref[2]**o+(-0.25105424715)*x_ref[2]
32239          ref[5,1,1]=(0.109601904441)*x_ref[0]**o+(-0.00640764631554)*x_ref[0]+(-0.488035610009)*x_ref[1]**o+(0.909668323769)*x_ref[1]+(0.229692168501)*x_ref[2]**o+(-0.739241309497)*x_ref[2]          ref[5,1,1]=(0.109601904441)*x_ref[0]**o+(-0.00640764631554)*x_ref[0]+(-0.488035610009)*x_ref[1]**o+(0.909668323769)*x_ref[1]+(0.229692168501)*x_ref[2]**o+(-0.739241309497)*x_ref[2]
32240        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
32241        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
32242        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
32243        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
32244        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
32245     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
32246     def test_interpolate_onReducedFunctionOnContactZero_fromData_Solution_rank4(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_Solution_rank4(self):
32247        """        """
# Line 32740  class Test_Util_SpatialFunctions_noGradO Line 32740  class Test_Util_SpatialFunctions_noGradO
32740          ref[3,4,2,0]=(0.331114892194)*x_ref[0]**o+(-0.168829643424)*x_ref[0]+(-0.855962311982)*x_ref[1]**o+(-0.144202406673)*x_ref[1]+(0.0769985713088)*x_ref[2]**o+(0.856003746423)*x_ref[2]          ref[3,4,2,0]=(0.331114892194)*x_ref[0]**o+(-0.168829643424)*x_ref[0]+(-0.855962311982)*x_ref[1]**o+(-0.144202406673)*x_ref[1]+(0.0769985713088)*x_ref[2]**o+(0.856003746423)*x_ref[2]
32741          ref[3,4,2,1]=(-0.439397439364)*x_ref[0]**o+(0.686116343481)*x_ref[0]+(0.519883854523)*x_ref[1]**o+(0.716231469289)*x_ref[1]+(0.270098231149)*x_ref[2]**o+(-0.448525436427)*x_ref[2]          ref[3,4,2,1]=(-0.439397439364)*x_ref[0]**o+(0.686116343481)*x_ref[0]+(0.519883854523)*x_ref[1]**o+(0.716231469289)*x_ref[1]+(0.270098231149)*x_ref[2]**o+(-0.448525436427)*x_ref[2]
32742        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
32743        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
32744        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
32745        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
32746        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
32747     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
32748     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank0(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank0(self):
32749        """        """
# Line 32766  class Test_Util_SpatialFunctions_noGradO Line 32766  class Test_Util_SpatialFunctions_noGradO
32766          arg=(0.934044939024)*x[0]+(0.628477728603)*x[1]+(-0.786339405837)*x[2]          arg=(0.934044939024)*x[0]+(0.628477728603)*x[1]+(-0.786339405837)*x[2]
32767          ref=(0.934044939024)*x_ref[0]+(0.628477728603)*x_ref[1]+(-0.786339405837)*x_ref[2]          ref=(0.934044939024)*x_ref[0]+(0.628477728603)*x_ref[1]+(-0.786339405837)*x_ref[2]
32768        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
32769        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
32770        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
32771        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
32772        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
32773     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
32774     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank1(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank1(self):
32775        """        """
# Line 32796  class Test_Util_SpatialFunctions_noGradO Line 32796  class Test_Util_SpatialFunctions_noGradO
32796          ref[0]=(0.160702771321)*x[0]+(-0.0784425374814)*x[1]+(1.65226639722)*x[2]          ref[0]=(0.160702771321)*x[0]+(-0.0784425374814)*x[1]+(1.65226639722)*x[2]
32797          ref[1]=(0.745050820919)*x[0]+(-0.183859360073)*x[1]+(0.399813139488)*x[2]          ref[1]=(0.745050820919)*x[0]+(-0.183859360073)*x[1]+(0.399813139488)*x[2]
32798        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
32799        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
32800        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
32801        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
32802        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
32803     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
32804     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank2(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank2(self):
32805        """        """
# Line 32898  class Test_Util_SpatialFunctions_noGradO Line 32898  class Test_Util_SpatialFunctions_noGradO
32898          ref[3,3]=(0.0984555057845)*x_ref[0]+(1.03085967788)*x_ref[1]+(-0.357009094371)*x_ref[2]          ref[3,3]=(0.0984555057845)*x_ref[0]+(1.03085967788)*x_ref[1]+(-0.357009094371)*x_ref[2]
32899          ref[3,4]=(0.430593980121)*x_ref[0]+(0.689565614489)*x_ref[1]+(-0.0916541808491)*x_ref[2]          ref[3,4]=(0.430593980121)*x_ref[0]+(0.689565614489)*x_ref[1]+(-0.0916541808491)*x_ref[2]
32900        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
32901        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
32902        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
32903        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
32904        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
32905     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
32906     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank3(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank3(self):
32907        """        """
# Line 33016  class Test_Util_SpatialFunctions_noGradO Line 33016  class Test_Util_SpatialFunctions_noGradO
33016          ref[5,1,0]=(1.17650613067)*x_ref[0]+(0.993832919965)*x_ref[1]+(1.16546768569)*x_ref[2]          ref[5,1,0]=(1.17650613067)*x_ref[0]+(0.993832919965)*x_ref[1]+(1.16546768569)*x_ref[2]
33017          ref[5,1,1]=(-0.61549132897)*x_ref[0]+(-0.499619662734)*x_ref[1]+(-0.643422281669)*x_ref[2]          ref[5,1,1]=(-0.61549132897)*x_ref[0]+(-0.499619662734)*x_ref[1]+(-0.643422281669)*x_ref[2]
33018        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
33019        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
33020        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
33021        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
33022        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
33023     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
33024     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank4(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedSolution_rank4(self):
33025        """        """
# Line 33518  class Test_Util_SpatialFunctions_noGradO Line 33518  class Test_Util_SpatialFunctions_noGradO
33518          ref[3,4,2,0]=(-1.15131298872)*x_ref[0]+(-0.627449043157)*x_ref[1]+(-0.402268345861)*x_ref[2]          ref[3,4,2,0]=(-1.15131298872)*x_ref[0]+(-0.627449043157)*x_ref[1]+(-0.402268345861)*x_ref[2]
33519          ref[3,4,2,1]=(0.455934238179)*x_ref[0]+(-0.951120759108)*x_ref[1]+(-0.280459367131)*x_ref[2]          ref[3,4,2,1]=(0.455934238179)*x_ref[0]+(-0.951120759108)*x_ref[1]+(-0.280459367131)*x_ref[2]
33520        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
33521        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
33522        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
33523        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
33524        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
33525     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
33526     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank0(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank0(self):
33527        """        """
# Line 33544  class Test_Util_SpatialFunctions_noGradO Line 33544  class Test_Util_SpatialFunctions_noGradO
33544          arg=(0.934044939024)*x[0]+(0.628477728603)*x[1]+(-0.786339405837)*x[2]          arg=(0.934044939024)*x[0]+(0.628477728603)*x[1]+(-0.786339405837)*x[2]
33545          ref=(0.934044939024)*x_ref[0]+(0.628477728603)*x_ref[1]+(-0.786339405837)*x_ref[2]          ref=(0.934044939024)*x_ref[0]+(0.628477728603)*x_ref[1]+(-0.786339405837)*x_ref[2]
33546        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
33547        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
33548        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
33549        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
33550        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
33551     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
33552     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank1(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank1(self):
33553        """        """
# Line 33574  class Test_Util_SpatialFunctions_noGradO Line 33574  class Test_Util_SpatialFunctions_noGradO
33574          ref[0]=(0.160702771321)*x[0]+(-0.0784425374814)*x[1]+(1.65226639722)*x[2]          ref[0]=(0.160702771321)*x[0]+(-0.0784425374814)*x[1]+(1.65226639722)*x[2]
33575          ref[1]=(0.745050820919)*x[0]+(-0.183859360073)*x[1]+(0.399813139488)*x[2]          ref[1]=(0.745050820919)*x[0]+(-0.183859360073)*x[1]+(0.399813139488)*x[2]
33576        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
33577        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
33578        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
33579        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
33580        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
33581     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
33582     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank2(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank2(self):
33583        """        """
# Line 33676  class Test_Util_SpatialFunctions_noGradO Line 33676  class Test_Util_SpatialFunctions_noGradO
33676          ref[3,3]=(0.0984555057845)*x_ref[0]+(1.03085967788)*x_ref[1]+(-0.357009094371)*x_ref[2]          ref[3,3]=(0.0984555057845)*x_ref[0]+(1.03085967788)*x_ref[1]+(-0.357009094371)*x_ref[2]
33677          ref[3,4]=(0.430593980121)*x_ref[0]+(0.689565614489)*x_ref[1]+(-0.0916541808491)*x_ref[2]          ref[3,4]=(0.430593980121)*x_ref[0]+(0.689565614489)*x_ref[1]+(-0.0916541808491)*x_ref[2]
33678        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
33679        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
33680        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
33681        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
33682        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
33683     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
33684     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank3(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank3(self):
33685        """        """
# Line 33794  class Test_Util_SpatialFunctions_noGradO Line 33794  class Test_Util_SpatialFunctions_noGradO
33794          ref[5,1,0]=(1.17650613067)*x_ref[0]+(0.993832919965)*x_ref[1]+(1.16546768569)*x_ref[2]          ref[5,1,0]=(1.17650613067)*x_ref[0]+(0.993832919965)*x_ref[1]+(1.16546768569)*x_ref[2]
33795          ref[5,1,1]=(-0.61549132897)*x_ref[0]+(-0.499619662734)*x_ref[1]+(-0.643422281669)*x_ref[2]          ref[5,1,1]=(-0.61549132897)*x_ref[0]+(-0.499619662734)*x_ref[1]+(-0.643422281669)*x_ref[2]
33796        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
33797        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
33798        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
33799        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
33800        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
33801     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
33802     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank4(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedContinuousFunction_rank4(self):
33803        """        """
# Line 34296  class Test_Util_SpatialFunctions_noGradO Line 34296  class Test_Util_SpatialFunctions_noGradO
34296          ref[3,4,2,0]=(-1.15131298872)*x_ref[0]+(-0.627449043157)*x_ref[1]+(-0.402268345861)*x_ref[2]          ref[3,4,2,0]=(-1.15131298872)*x_ref[0]+(-0.627449043157)*x_ref[1]+(-0.402268345861)*x_ref[2]
34297          ref[3,4,2,1]=(0.455934238179)*x_ref[0]+(-0.951120759108)*x_ref[1]+(-0.280459367131)*x_ref[2]          ref[3,4,2,1]=(0.455934238179)*x_ref[0]+(-0.951120759108)*x_ref[1]+(-0.280459367131)*x_ref[2]
34298        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
34299        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
34300        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
34301        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
34302        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
34303     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
34304     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank0(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank0(self):
34305        """        """
# Line 34322  class Test_Util_SpatialFunctions_noGradO Line 34322  class Test_Util_SpatialFunctions_noGradO
34322          arg=(-0.387501489724)*x[0]**o+(0.752554332333)*x[0]+(-0.0831588271355)*x[1]**o+(0.615191870812)*x[1]+(-0.264702923622)*x[2]**o+(0.404594629993)*x[2]          arg=(-0.387501489724)*x[0]**o+(0.752554332333)*x[0]+(-0.0831588271355)*x[1]**o+(0.615191870812)*x[1]+(-0.264702923622)*x[2]**o+(0.404594629993)*x[2]
34323          ref=(-0.387501489724)*x_ref[0]**o+(0.752554332333)*x_ref[0]+(-0.0831588271355)*x_ref[1]**o+(0.615191870812)*x_ref[1]+(-0.264702923622)*x_ref[2]**o+(0.404594629993)*x_ref[2]          ref=(-0.387501489724)*x_ref[0]**o+(0.752554332333)*x_ref[0]+(-0.0831588271355)*x_ref[1]**o+(0.615191870812)*x_ref[1]+(-0.264702923622)*x_ref[2]**o+(0.404594629993)*x_ref[2]
34324        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
34325        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
34326        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
34327        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.assertEqual(res.getShape(),(),"wrong shape of result.")
34328        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
34329     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
34330     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank1(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank1(self):
34331        """        """
# Line 34352  class Test_Util_SpatialFunctions_noGradO Line 34352  class Test_Util_SpatialFunctions_noGradO
34352          ref[0]=(0.566110580666)*x_ref[0]**o+(-0.89723913213)*x_ref[0]+(-0.54781629706)*x_ref[1]**o+(-0.0405507445628)*x_ref[1]+(0.435477036501)*x_ref[2]**o+(-0.296404435183)*x_ref[2]          ref[0]=(0.566110580666)*x_ref[0]**o+(-0.89723913213)*x_ref[0]+(-0.54781629706)*x_ref[1]**o+(-0.0405507445628)*x_ref[1]+(0.435477036501)*x_ref[2]**o+(-0.296404435183)*x_ref[2]
34353          ref[1]=(-0.436126359475)*x_ref[0]**o+(0.863706244241)*x_ref[0]+(-0.149818409243)*x_ref[1]**o+(-0.654801920098)*x_ref[1]+(-0.281005092809)*x_ref[2]**o+(-0.0257179420057)*x_ref[2]          ref[1]=(-0.436126359475)*x_ref[0]**o+(0.863706244241)*x_ref[0]+(-0.149818409243)*x_ref[1]**o+(-0.654801920098)*x_ref[1]+(-0.281005092809)*x_ref[2]**o+(-0.0257179420057)*x_ref[2]
34354        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
34355        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
34356        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
34357        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
34358        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
34359     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
34360     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank2(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank2(self):
34361        """        """
# Line 34454  class Test_Util_SpatialFunctions_noGradO Line 34454  class Test_Util_SpatialFunctions_noGradO
34454          ref[3,3]=(-0.37590210465)*x_ref[0]**o+(0.034147350068)*x_ref[0]+(0.245173418336)*x_ref[1]**o+(0.0564051241759)*x_ref[1]+(-0.157928106127)*x_ref[2]**o+(-0.611677441847)*x_ref[2]          ref[3,3]=(-0.37590210465)*x_ref[0]**o+(0.034147350068)*x_ref[0]+(0.245173418336)*x_ref[1]**o+(0.0564051241759)*x_ref[1]+(-0.157928106127)*x_ref[2]**o+(-0.611677441847)*x_ref[2]
34455          ref[3,4]=(-0.279066532276)*x_ref[0]**o+(0.316033119063)*x_ref[0]+(0.655948999472)*x_ref[1]**o+(-0.520504180943)*x_ref[1]+(0.531738158819)*x_ref[2]**o+(0.899490827443)*x_ref[2]          ref[3,4]=(-0.279066532276)*x_ref[0]**o+(0.316033119063)*x_ref[0]+(0.655948999472)*x_ref[1]**o+(-0.520504180943)*x_ref[1]+(0.531738158819)*x_ref[2]**o+(0.899490827443)*x_ref[2]
34456        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
34457        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
34458        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
34459        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
34460        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
34461     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
34462     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank3(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank3(self):
34463        """        """
# Line 34572  class Test_Util_SpatialFunctions_noGradO Line 34572  class Test_Util_SpatialFunctions_noGradO
34572          ref[5,1,0]=(0.828297599555)*x_ref[0]**o+(0.237678875371)*x_ref[0]+(0.924551126274)*x_ref[1]**o+(-0.663695049485)*x_ref[1]+(-0.547123493132)*x_ref[2]**o+(-0.788635745118)*x_ref[2]          ref[5,1,0]=(0.828297599555)*x_ref[0]**o+(0.237678875371)*x_ref[0]+(0.924551126274)*x_ref[1]**o+(-0.663695049485)*x_ref[1]+(-0.547123493132)*x_ref[2]**o+(-0.788635745118)*x_ref[2]
34573          ref[5,1,1]=(0.0726334370982)*x_ref[0]**o+(-0.875688492957)*x_ref[0]+(0.473726235108)*x_ref[1]**o+(0.023025596151)*x_ref[1]+(0.827449396402)*x_ref[2]**o+(-0.154698941604)*x_ref[2]          ref[5,1,1]=(0.0726334370982)*x_ref[0]**o+(-0.875688492957)*x_ref[0]+(0.473726235108)*x_ref[1]**o+(0.023025596151)*x_ref[1]+(0.827449396402)*x_ref[2]**o+(-0.154698941604)*x_ref[2]
34574        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
34575        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
34576        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
34577        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
34578        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
34579     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
34580     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank4(self):     def test_interpolate_onReducedFunctionOnContactZero_fromData_ReducedFunctionOnContactZero_rank4(self):
34581        """        """
# Line 35074  class Test_Util_SpatialFunctions_noGradO Line 35074  class Test_Util_SpatialFunctions_noGradO
35074          ref[3,4,2,0]=(-0.596345912175)*x_ref[0]**o+(0.872771121837)*x_ref[0]+(0.100107395575)*x_ref[1]**o+(0.950482249217)*x_ref[1]+(0.0487634582783)*x_ref[2]**o+(-0.0285218097887)*x_ref[2]          ref[3,4,2,0]=(-0.596345912175)*x_ref[0]**o+(0.872771121837)*x_ref[0]+(0.100107395575)*x_ref[1]**o+(0.950482249217)*x_ref[1]+(0.0487634582783)*x_ref[2]**o+(-0.0285218097887)*x_ref[2]
35075          ref[3,4,2,1]=(-0.827443553933)*x_ref[0]**o+(-0.922564800149)*x_ref[0]+(-0.810354385287)*x_ref[1]**o+(0.630079217293)*x_ref[1]+(-0.316280559723)*x_ref[2]**o+(0.977830435871)*x_ref[2]          ref[3,4,2,1]=(-0.827443553933)*x_ref[0]**o+(-0.922564800149)*x_ref[0]+(-0.810354385287)*x_ref[1]**o+(0.630079217293)*x_ref[1]+(-0.316280559723)*x_ref[2]**o+(0.977830435871)*x_ref[2]
35076        res=interpolate(arg,where=w_ref)        res=interpolate(arg,where=w_ref)
35077        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
35078        self.failUnlessEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")        self.assertEqual(res.getFunctionSpace(),w_ref,"wrong functionspace of result.")
35079        self.failUnlessEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5, 3, 2),"wrong shape of result.")
35080        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")