/[escript]/trunk/escript/py_src/test_util_overloaded_binary_with_tagged_data.py
ViewVC logotype

Diff of /trunk/escript/py_src/test_util_overloaded_binary_with_tagged_data.py

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

revision 395 by gross, Wed Dec 21 02:41:59 2005 UTC revision 429 by gross, Wed Jan 11 05:53:40 2006 UTC
# Line 3632  class Test_util_overloaded_binary_with_t Line 3632  class Test_util_overloaded_binary_with_t
3632        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
3633        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3634     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3635     def test_div_overloaded_float_rank0_taggedData_rank0(self):     def test_quotient_overloaded_float_rank0_taggedData_rank0(self):
3636        arg0=0.530720959001        arg0=0.530720959001
3637        arg1=Data(-2.72292512329,self.functionspace)        arg1=Data(-2.72292512329,self.functionspace)
3638        arg1.setTaggedValue(1,1.75160853271)        arg1.setTaggedValue(1,1.75160853271)
# Line 3643  class Test_util_overloaded_binary_with_t Line 3643  class Test_util_overloaded_binary_with_t
3643        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
3644        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3645     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3646     def test_div_overloaded_float_rank0_taggedData_rank1(self):     def test_quotient_overloaded_float_rank0_taggedData_rank1(self):
3647        arg0=-1.55181779951        arg0=-1.55181779951
3648        arg1=Data(numarray.array([-4.0753145551015475, 1.6095009643123257]),self.functionspace)        arg1=Data(numarray.array([-4.0753145551015475, 1.6095009643123257]),self.functionspace)
3649        arg1.setTaggedValue(1,numarray.array([-1.2973999945988721, 1.9949506918417423]))        arg1.setTaggedValue(1,numarray.array([-1.2973999945988721, 1.9949506918417423]))
# Line 3654  class Test_util_overloaded_binary_with_t Line 3654  class Test_util_overloaded_binary_with_t
3654        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
3655        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3656     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3657     def test_div_overloaded_float_rank0_taggedData_rank2(self):     def test_quotient_overloaded_float_rank0_taggedData_rank2(self):
3658        arg0=-3.98091301865        arg0=-3.98091301865
3659        arg1=Data(numarray.array([[0.44966731933462789, -0.81680618711702913, 4.0646487172360395, 2.8134699767808371, -0.39919154984348371], [-1.1585803868590006, -3.7920466820746999, -0.0040164555894577347, -2.1234840931313945, -4.9842779777036235], [2.3729035242579606, 2.4074341644549175, 0.30195529961868228, 2.7291749648090917, -1.5550476687079762], [3.3234587020672777, -3.7862918929952629, -1.4172997917377703, 4.2031497491210388, -2.0504656511172445]]),self.functionspace)        arg1=Data(numarray.array([[0.44966731933462789, -0.81680618711702913, 4.0646487172360395, 2.8134699767808371, -0.39919154984348371], [-1.1585803868590006, -3.7920466820746999, -0.0040164555894577347, -2.1234840931313945, -4.9842779777036235], [2.3729035242579606, 2.4074341644549175, 0.30195529961868228, 2.7291749648090917, -1.5550476687079762], [3.3234587020672777, -3.7862918929952629, -1.4172997917377703, 4.2031497491210388, -2.0504656511172445]]),self.functionspace)
3660        arg1.setTaggedValue(1,numarray.array([[-1.5745511585718477, -4.2717852405415, 4.913864011647874, -2.5014818454433363, -2.1507065783852153], [-0.28496355064187018, 4.5941786949255832, -3.1192237707103407, -3.5993239337610516, -3.8302938748712401], [2.5030751218880525, 3.5473076425187813, -4.8440762855556443, -2.1837352778033239, 4.195268327590739], [2.8739387053288388, -2.2881264230635701, -0.54140737035705744, 1.1767893424149865, 1.226580964756824]]))        arg1.setTaggedValue(1,numarray.array([[-1.5745511585718477, -4.2717852405415, 4.913864011647874, -2.5014818454433363, -2.1507065783852153], [-0.28496355064187018, 4.5941786949255832, -3.1192237707103407, -3.5993239337610516, -3.8302938748712401], [2.5030751218880525, 3.5473076425187813, -4.8440762855556443, -2.1837352778033239, 4.195268327590739], [2.8739387053288388, -2.2881264230635701, -0.54140737035705744, 1.1767893424149865, 1.226580964756824]]))
# Line 3665  class Test_util_overloaded_binary_with_t Line 3665  class Test_util_overloaded_binary_with_t
3665        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
3666        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3667     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3668     def test_div_overloaded_float_rank0_taggedData_rank3(self):     def test_quotient_overloaded_float_rank0_taggedData_rank3(self):
3669        arg0=3.83661766078        arg0=3.83661766078
3670        arg1=Data(numarray.array([[[0.99803638763779734, -3.1417627649199664], [-1.0524959532968037, -2.3983565939824656]], [[-4.0713931887572148, -2.490178211518864], [-0.24398143906304437, -0.54270325028569921]], [[4.9981751140140176, -3.6838989503046173], [-0.036672206855446809, 2.2695133465231727]], [[1.2407870628674713, 2.91397971267995], [0.18342130401242152, 2.2465388378215012]], [[1.4931945480717879, 2.4257146301282431], [-0.080461879769858413, -4.1674943020115283]], [[-3.8183096032317687, 4.4255998690403882], [4.6338139363791306, -2.6025911584729311]]]),self.functionspace)        arg1=Data(numarray.array([[[0.99803638763779734, -3.1417627649199664], [-1.0524959532968037, -2.3983565939824656]], [[-4.0713931887572148, -2.490178211518864], [-0.24398143906304437, -0.54270325028569921]], [[4.9981751140140176, -3.6838989503046173], [-0.036672206855446809, 2.2695133465231727]], [[1.2407870628674713, 2.91397971267995], [0.18342130401242152, 2.2465388378215012]], [[1.4931945480717879, 2.4257146301282431], [-0.080461879769858413, -4.1674943020115283]], [[-3.8183096032317687, 4.4255998690403882], [4.6338139363791306, -2.6025911584729311]]]),self.functionspace)
3671        arg1.setTaggedValue(1,numarray.array([[[4.5865666548884967, -2.630330766944402], [-4.8559664548198818, -3.656842762709418]], [[4.8253074812978713, 0.893423466559776], [2.8737737451964875, -1.3961757949838383]], [[4.6808521133877612, -2.9013361383556635], [2.4024701914638875, 3.5000753496252344]], [[-3.7429634962469658, 0.42882599343018235], [0.36749943896296422, 1.7516847075867981]], [[-0.34484116655048247, -4.3804283927641769], [3.4879699636605626, -2.319257842923351]], [[-4.5067227802990537, 3.7519172069177529], [2.9911497237315832, -4.5312902993671802]]]))        arg1.setTaggedValue(1,numarray.array([[[4.5865666548884967, -2.630330766944402], [-4.8559664548198818, -3.656842762709418]], [[4.8253074812978713, 0.893423466559776], [2.8737737451964875, -1.3961757949838383]], [[4.6808521133877612, -2.9013361383556635], [2.4024701914638875, 3.5000753496252344]], [[-3.7429634962469658, 0.42882599343018235], [0.36749943896296422, 1.7516847075867981]], [[-0.34484116655048247, -4.3804283927641769], [3.4879699636605626, -2.319257842923351]], [[-4.5067227802990537, 3.7519172069177529], [2.9911497237315832, -4.5312902993671802]]]))
# Line 3676  class Test_util_overloaded_binary_with_t Line 3676  class Test_util_overloaded_binary_with_t
3676        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
3677        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3678     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3679     def test_div_overloaded_float_rank0_taggedData_rank4(self):     def test_quotient_overloaded_float_rank0_taggedData_rank4(self):
3680        arg0=-1.20467024608        arg0=-1.20467024608
3681        arg1=Data(numarray.array([[[[-1.2181731751178226, 3.6492979695913839, -2.1710664723041506, -1.1649719746118494], [0.56103710184591549, 1.9062433266827892, 1.5973342421602945, -4.3364036964420176], [1.9912096725077069, 2.0287016115745162, 0.86239674465844818, 2.6236829160063202]], [[-2.4917496797756735, 1.8374186351918285, 0.77615467473568778, -4.5720898592529231], [1.5051976661221609, -3.5176206544634847, -0.39848562191284298, 2.10229027041599], [3.4285102555646922, -0.33870066986103264, -1.3675053513437483, -0.77018927694325168]]], [[[-4.6586434464869333, -2.4028035019862548, -2.0673634943331685, 0.44047401891906812], [2.1403252158407273, -2.4536016369740485, 1.4966484381309861, 3.1609877640937221], [0.55037318997358309, -3.2343668944249861, 3.0046276941113099, -3.4454349909795123]], [[-1.652781759778168, 1.7839114376269363, -3.9491973821240158, 4.8546759094468133], [-4.0126866980083928, -1.9009361670550384, 0.72519552439328283, -4.9667947391451372], [4.5138078681293727, 0.21422136096062339, -4.2208642613153398, -2.7529651562587754]]], [[[0.98202605996668701, -4.6404271194933298, 4.045509455184316, 0.88570777694947544], [-0.11073949336977496, 4.1401483777031132, 3.4634100875895832, -0.93493502677335272], [4.2308907811038861, 0.031500298818153638, 1.4868222260755024, -3.5674597542115647]], [[3.6453420951771971, -4.6861793612833633, 4.9963869188833048, 4.5784049008321066], [3.605763931528573, -4.9199331585407418, 3.2155995666002397, 4.9077635900480647], [-0.78082311759376832, 2.8898200228418585, 4.7053097356086884, -0.21445265420813175]]]]),self.functionspace)        arg1=Data(numarray.array([[[[-1.2181731751178226, 3.6492979695913839, -2.1710664723041506, -1.1649719746118494], [0.56103710184591549, 1.9062433266827892, 1.5973342421602945, -4.3364036964420176], [1.9912096725077069, 2.0287016115745162, 0.86239674465844818, 2.6236829160063202]], [[-2.4917496797756735, 1.8374186351918285, 0.77615467473568778, -4.5720898592529231], [1.5051976661221609, -3.5176206544634847, -0.39848562191284298, 2.10229027041599], [3.4285102555646922, -0.33870066986103264, -1.3675053513437483, -0.77018927694325168]]], [[[-4.6586434464869333, -2.4028035019862548, -2.0673634943331685, 0.44047401891906812], [2.1403252158407273, -2.4536016369740485, 1.4966484381309861, 3.1609877640937221], [0.55037318997358309, -3.2343668944249861, 3.0046276941113099, -3.4454349909795123]], [[-1.652781759778168, 1.7839114376269363, -3.9491973821240158, 4.8546759094468133], [-4.0126866980083928, -1.9009361670550384, 0.72519552439328283, -4.9667947391451372], [4.5138078681293727, 0.21422136096062339, -4.2208642613153398, -2.7529651562587754]]], [[[0.98202605996668701, -4.6404271194933298, 4.045509455184316, 0.88570777694947544], [-0.11073949336977496, 4.1401483777031132, 3.4634100875895832, -0.93493502677335272], [4.2308907811038861, 0.031500298818153638, 1.4868222260755024, -3.5674597542115647]], [[3.6453420951771971, -4.6861793612833633, 4.9963869188833048, 4.5784049008321066], [3.605763931528573, -4.9199331585407418, 3.2155995666002397, 4.9077635900480647], [-0.78082311759376832, 2.8898200228418585, 4.7053097356086884, -0.21445265420813175]]]]),self.functionspace)
3682        arg1.setTaggedValue(1,numarray.array([[[[-4.9385503022391086, 0.32713299150944586, 1.3262211351551221, -0.6662407209656509], [-4.148846361377033, 4.3188191045578321, 3.5948304937505853, -1.8057428662174568], [0.43293685492360812, -3.7434975310003935, 1.8244767358349376, -2.0297101572418197]], [[-2.6073404331261987, -4.4332096572466764, 0.44693896208392303, -3.9313597779800604], [-4.2793135890210445, 3.8313069862422591, 2.2588282098794457, -1.6224630822127226], [-0.60100390740555198, 2.8166102931952999, -4.0628073385628527, -1.9662851558398406]]], [[[3.8045806656868457, 0.71980655532686288, -2.0044054569814627, 3.4872921248630284], [4.2348112396683817, 4.5460019207439046, -0.74599653651381903, 2.1076379152503826], [-2.3497915596425525, 2.9300588946383543, -0.30107605232075052, 4.9639892058955954]], [[4.5304229865204722, 1.1595101589107806, 1.069910835267919, -3.5828187734558679], [-0.88512547434241995, -2.6502158738832682, -4.9009793014608407, -2.0901477125278434], [3.1009082781056971, 2.2426029807421699, 0.39684269187096088, -4.6821302744076077]]], [[[-2.4204741988578737, 4.9484608350697066, 3.9297077431320098, -4.6471734288695181], [-3.4314083260843686, -0.48402484123672274, -1.7049570470108733, -4.9531288268282339], [3.2187095348114365, -1.0977948903230828, -2.036383893171978, 1.3937446538051832]], [[-2.222073073734542, 0.093544412493242746, 2.5132000962898884, 2.8667027592838998], [3.5402001261687914, -4.5095813949818586, 1.1701032152564617, -3.8504426971959758], [1.0408755936050662, -4.0701816320647977, 1.0938885246665766, -3.2849950776654691]]]]))        arg1.setTaggedValue(1,numarray.array([[[[-4.9385503022391086, 0.32713299150944586, 1.3262211351551221, -0.6662407209656509], [-4.148846361377033, 4.3188191045578321, 3.5948304937505853, -1.8057428662174568], [0.43293685492360812, -3.7434975310003935, 1.8244767358349376, -2.0297101572418197]], [[-2.6073404331261987, -4.4332096572466764, 0.44693896208392303, -3.9313597779800604], [-4.2793135890210445, 3.8313069862422591, 2.2588282098794457, -1.6224630822127226], [-0.60100390740555198, 2.8166102931952999, -4.0628073385628527, -1.9662851558398406]]], [[[3.8045806656868457, 0.71980655532686288, -2.0044054569814627, 3.4872921248630284], [4.2348112396683817, 4.5460019207439046, -0.74599653651381903, 2.1076379152503826], [-2.3497915596425525, 2.9300588946383543, -0.30107605232075052, 4.9639892058955954]], [[4.5304229865204722, 1.1595101589107806, 1.069910835267919, -3.5828187734558679], [-0.88512547434241995, -2.6502158738832682, -4.9009793014608407, -2.0901477125278434], [3.1009082781056971, 2.2426029807421699, 0.39684269187096088, -4.6821302744076077]]], [[[-2.4204741988578737, 4.9484608350697066, 3.9297077431320098, -4.6471734288695181], [-3.4314083260843686, -0.48402484123672274, -1.7049570470108733, -4.9531288268282339], [3.2187095348114365, -1.0977948903230828, -2.036383893171978, 1.3937446538051832]], [[-2.222073073734542, 0.093544412493242746, 2.5132000962898884, 2.8667027592838998], [3.5402001261687914, -4.5095813949818586, 1.1701032152564617, -3.8504426971959758], [1.0408755936050662, -4.0701816320647977, 1.0938885246665766, -3.2849950776654691]]]]))
# Line 3687  class Test_util_overloaded_binary_with_t Line 3687  class Test_util_overloaded_binary_with_t
3687        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
3688        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3689     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3690     def test_div_overloaded_constData_rank0_taggedData_rank0(self):     def test_quotient_overloaded_constData_rank0_taggedData_rank0(self):
3691        arg0=Data(2.20674093822,self.functionspace)        arg0=Data(2.20674093822,self.functionspace)
3692        arg1=Data(-0.707495774895,self.functionspace)        arg1=Data(-0.707495774895,self.functionspace)
3693        arg1.setTaggedValue(1,-2.88870574019)        arg1.setTaggedValue(1,-2.88870574019)
# Line 3698  class Test_util_overloaded_binary_with_t Line 3698  class Test_util_overloaded_binary_with_t
3698        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
3699        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3700     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3701     def test_div_overloaded_constData_rank0_taggedData_rank1(self):     def test_quotient_overloaded_constData_rank0_taggedData_rank1(self):
3702        arg0=Data(-3.85742192674,self.functionspace)        arg0=Data(-3.85742192674,self.functionspace)
3703        arg1=Data(numarray.array([1.1476886192811531, 1.2600836428974427]),self.functionspace)        arg1=Data(numarray.array([1.1476886192811531, 1.2600836428974427]),self.functionspace)
3704        arg1.setTaggedValue(1,numarray.array([-3.8657758687700152, -0.70778037640435887]))        arg1.setTaggedValue(1,numarray.array([-3.8657758687700152, -0.70778037640435887]))
# Line 3709  class Test_util_overloaded_binary_with_t Line 3709  class Test_util_overloaded_binary_with_t
3709        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
3710        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3711     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3712     def test_div_overloaded_constData_rank0_taggedData_rank2(self):     def test_quotient_overloaded_constData_rank0_taggedData_rank2(self):
3713        arg0=Data(-3.32334925637,self.functionspace)        arg0=Data(-3.32334925637,self.functionspace)
3714        arg1=Data(numarray.array([[-2.1894767590113307, -4.9459887058223266, 0.21738557706519224, 0.25916702845134232, -3.2167462638555779], [0.87751372732748223, -0.58986023525252929, -3.7500060502682619, -3.9331935649214689, 0.13386935591894122], [-3.3696689989587716, -3.0236469753840756, -4.1345844831901619, -3.0866737505456676, -0.86639436477752074], [0.91195952992653417, 0.72955614534918833, 4.9893385457301243, -4.9951855729182846, -0.85147238709252893]]),self.functionspace)        arg1=Data(numarray.array([[-2.1894767590113307, -4.9459887058223266, 0.21738557706519224, 0.25916702845134232, -3.2167462638555779], [0.87751372732748223, -0.58986023525252929, -3.7500060502682619, -3.9331935649214689, 0.13386935591894122], [-3.3696689989587716, -3.0236469753840756, -4.1345844831901619, -3.0866737505456676, -0.86639436477752074], [0.91195952992653417, 0.72955614534918833, 4.9893385457301243, -4.9951855729182846, -0.85147238709252893]]),self.functionspace)
3715        arg1.setTaggedValue(1,numarray.array([[-0.076936971515947583, 0.96591761133066179, -4.6167646063351349, 2.0271833763580913, 2.5095884650854652], [4.8917158391157045, -0.25021690479511971, 2.132018625605653, 4.1601611747154017, 3.204379729440415], [-0.72312034831626448, 3.5918537997251025, 3.519934821057852, -2.1094561286976186, 2.8903365982059981], [-4.7972633333815509, -4.5191085930110164, 3.2550932356179985, -1.5137486048197646, -0.2316874649356766]]))        arg1.setTaggedValue(1,numarray.array([[-0.076936971515947583, 0.96591761133066179, -4.6167646063351349, 2.0271833763580913, 2.5095884650854652], [4.8917158391157045, -0.25021690479511971, 2.132018625605653, 4.1601611747154017, 3.204379729440415], [-0.72312034831626448, 3.5918537997251025, 3.519934821057852, -2.1094561286976186, 2.8903365982059981], [-4.7972633333815509, -4.5191085930110164, 3.2550932356179985, -1.5137486048197646, -0.2316874649356766]]))
# Line 3720  class Test_util_overloaded_binary_with_t Line 3720  class Test_util_overloaded_binary_with_t
3720        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
3721        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3722     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3723     def test_div_overloaded_constData_rank0_taggedData_rank3(self):     def test_quotient_overloaded_constData_rank0_taggedData_rank3(self):
3724        arg0=Data(-0.36054099192,self.functionspace)        arg0=Data(-0.36054099192,self.functionspace)
3725        arg1=Data(numarray.array([[[-3.4777829118500825, 2.5861179243702326], [-0.31307176586733831, 2.9290849166548947]], [[2.3748161016655267, -4.5603485313701793], [3.1274404956404496, -2.9256573446892284]], [[-4.8051276071531142, -1.362383820269768], [-3.7761610666308321, 3.9014351538845524]], [[3.4904078719832139, -0.37896776253300857], [0.87231031240545853, -0.20747709716432006]], [[3.2213434923912203, 3.052045925261325], [-2.1594867981437114, -4.9541438692063364]], [[-4.3723471506500724, 0.13506123740451326], [1.6256383365753173, 0.87551365598019615]]]),self.functionspace)        arg1=Data(numarray.array([[[-3.4777829118500825, 2.5861179243702326], [-0.31307176586733831, 2.9290849166548947]], [[2.3748161016655267, -4.5603485313701793], [3.1274404956404496, -2.9256573446892284]], [[-4.8051276071531142, -1.362383820269768], [-3.7761610666308321, 3.9014351538845524]], [[3.4904078719832139, -0.37896776253300857], [0.87231031240545853, -0.20747709716432006]], [[3.2213434923912203, 3.052045925261325], [-2.1594867981437114, -4.9541438692063364]], [[-4.3723471506500724, 0.13506123740451326], [1.6256383365753173, 0.87551365598019615]]]),self.functionspace)
3726        arg1.setTaggedValue(1,numarray.array([[[2.1300119212290483, -4.9481617183479001], [-0.66984879260119978, -3.9605702045285254]], [[-1.5893085322329004, 2.620104187747696], [4.6267318374860036, -3.1524897793121531]], [[0.8804621030700952, -1.3592447340588243], [1.8097485258645669, -1.5679733865711976]], [[-1.7798184574398936, 4.9462192372553542], [1.9662582740241668, -0.10421490819175183]], [[4.9092743420191063, 1.5159259140936934], [0.78477367127559017, 2.8264233550244757]], [[-4.8715818788534264, 0.98830914169182371], [3.0294781181419062, 1.6374283490796513]]]))        arg1.setTaggedValue(1,numarray.array([[[2.1300119212290483, -4.9481617183479001], [-0.66984879260119978, -3.9605702045285254]], [[-1.5893085322329004, 2.620104187747696], [4.6267318374860036, -3.1524897793121531]], [[0.8804621030700952, -1.3592447340588243], [1.8097485258645669, -1.5679733865711976]], [[-1.7798184574398936, 4.9462192372553542], [1.9662582740241668, -0.10421490819175183]], [[4.9092743420191063, 1.5159259140936934], [0.78477367127559017, 2.8264233550244757]], [[-4.8715818788534264, 0.98830914169182371], [3.0294781181419062, 1.6374283490796513]]]))
# Line 3731  class Test_util_overloaded_binary_with_t Line 3731  class Test_util_overloaded_binary_with_t
3731        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
3732        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3733     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3734     def test_div_overloaded_constData_rank0_taggedData_rank4(self):     def test_quotient_overloaded_constData_rank0_taggedData_rank4(self):
3735        arg0=Data(0.135869730246,self.functionspace)        arg0=Data(0.135869730246,self.functionspace)
3736        arg1=Data(numarray.array([[[[-2.0118141541466628, -1.4485699498312474, -4.356974536106236, -4.7847651197014365], [2.3506548838105692, 3.0216815570643298, 2.7951380752011135, -1.057300270840539], [-4.3410868494704991, 0.16768650552685216, 2.2480335593136829, -4.3792660210958489]], [[-4.9305540684590614, -2.9602955008781384, -4.0273626067438526, -1.4797548019016737], [4.3308582325662499, -3.4271795134720295, 0.32855580481089319, 0.37615668601418939], [3.6176108347500531, 4.1698238147380646, 0.96377054300975118, 4.9261629115498238]]], [[[-1.2781454968554637, 1.3968319656083903, -2.7477657102941566, 3.4642661657685707], [1.8680307006895234, -1.3674314148597801, -2.7640608668981437, 2.7193130543511259], [3.853725428116304, 3.8430630709740914, -4.2163460366112702, 3.5757860396038446]], [[-3.1834535912919684, 2.3549041314866077, -4.4559155722565613, 1.071754890339057], [-4.3932567550526338, -2.8465586048205891, -4.0923043129321526, 3.1526709972206337], [-3.1187854967479431, -3.0009675789119483, -0.1986567863252553, 1.8427407678950143]]], [[[-3.4859998323962182, -1.1653957041309901, -2.8192990087460092, -2.7864784822994415], [2.1558757316363453, 4.3765316546055324, 1.9820169980899855, 1.0030089252137095], [-0.040605968139832527, -0.010031182935654748, -3.4416497495608347, 1.6219192195928898]], [[-2.2121224422209176, -1.2307420109277456, 1.8692260645322616, 2.2677320707085045], [-2.0758042127710343, -0.68542432885667637, 2.6831785432997002, -1.1319899673565748], [1.2850495340014021, -0.49126725450923381, -2.9377294292623377, 4.4685947020146841]]]]),self.functionspace)        arg1=Data(numarray.array([[[[-2.0118141541466628, -1.4485699498312474, -4.356974536106236, -4.7847651197014365], [2.3506548838105692, 3.0216815570643298, 2.7951380752011135, -1.057300270840539], [-4.3410868494704991, 0.16768650552685216, 2.2480335593136829, -4.3792660210958489]], [[-4.9305540684590614, -2.9602955008781384, -4.0273626067438526, -1.4797548019016737], [4.3308582325662499, -3.4271795134720295, 0.32855580481089319, 0.37615668601418939], [3.6176108347500531, 4.1698238147380646, 0.96377054300975118, 4.9261629115498238]]], [[[-1.2781454968554637, 1.3968319656083903, -2.7477657102941566, 3.4642661657685707], [1.8680307006895234, -1.3674314148597801, -2.7640608668981437, 2.7193130543511259], [3.853725428116304, 3.8430630709740914, -4.2163460366112702, 3.5757860396038446]], [[-3.1834535912919684, 2.3549041314866077, -4.4559155722565613, 1.071754890339057], [-4.3932567550526338, -2.8465586048205891, -4.0923043129321526, 3.1526709972206337], [-3.1187854967479431, -3.0009675789119483, -0.1986567863252553, 1.8427407678950143]]], [[[-3.4859998323962182, -1.1653957041309901, -2.8192990087460092, -2.7864784822994415], [2.1558757316363453, 4.3765316546055324, 1.9820169980899855, 1.0030089252137095], [-0.040605968139832527, -0.010031182935654748, -3.4416497495608347, 1.6219192195928898]], [[-2.2121224422209176, -1.2307420109277456, 1.8692260645322616, 2.2677320707085045], [-2.0758042127710343, -0.68542432885667637, 2.6831785432997002, -1.1319899673565748], [1.2850495340014021, -0.49126725450923381, -2.9377294292623377, 4.4685947020146841]]]]),self.functionspace)
3737        arg1.setTaggedValue(1,numarray.array([[[[0.020539442728244595, 2.3361660977592056, 2.4631811124116876, 0.71783793677018082], [1.5301372766865304, 0.60482947813645715, -4.7186789711301067, -2.3308716345871403], [2.3518800389813652, 4.8033145433793223, 2.8325970377015679, -4.1907034864924784]], [[0.70037695614196238, 3.5700465742164269, -2.2869246847346902, 4.636999560364492], [3.9990570879474987, -4.5953281305785634, -0.32834480236619701, -1.8109628339339459], [4.2348586650716875, -4.5962447679296385, -0.03838232625863025, 0.77467396901565699]]], [[[3.3869494172138399, 0.24851162824529016, -3.8280922056564668, 0.29721104044761404], [2.0403740401664479, 3.8282110028211473, 2.3332955300893721, 1.9453471481140898], [-3.6327357067538357, 0.39074252141170618, -4.1481501134298693, -3.1623475064843332]], [[1.4724796392860355, -2.9662747191833203, -2.0797484607657637, 1.8275664710887005], [-2.8927734364098647, -3.0993623517107771, -1.3220568256144194, 1.4930862990443998], [-3.1372480192288075, -0.11237338532426389, 1.0530442951046837, -0.17463262338962249]]], [[[4.5890428381345743, -1.3392215693772691, 3.9704494710711167, -2.6544632033270155], [-4.9180738375268129, -1.3418556383851818, -3.8770454208169767, 1.4885355575169807], [-1.5485935986068577, 3.569321917567521, -1.7667207942154119, -4.5373079100481162]], [[-4.4949677820536866, -3.2680656021039969, 4.9586758956692449, -0.52504395141281002], [0.16264759970116671, -4.0921050841912052, -1.2774387526331266, 0.27980341051749669], [-2.972529251272781, 1.6080683030556884, -4.7553206687763847, -0.36967858035345547]]]]))        arg1.setTaggedValue(1,numarray.array([[[[0.020539442728244595, 2.3361660977592056, 2.4631811124116876, 0.71783793677018082], [1.5301372766865304, 0.60482947813645715, -4.7186789711301067, -2.3308716345871403], [2.3518800389813652, 4.8033145433793223, 2.8325970377015679, -4.1907034864924784]], [[0.70037695614196238, 3.5700465742164269, -2.2869246847346902, 4.636999560364492], [3.9990570879474987, -4.5953281305785634, -0.32834480236619701, -1.8109628339339459], [4.2348586650716875, -4.5962447679296385, -0.03838232625863025, 0.77467396901565699]]], [[[3.3869494172138399, 0.24851162824529016, -3.8280922056564668, 0.29721104044761404], [2.0403740401664479, 3.8282110028211473, 2.3332955300893721, 1.9453471481140898], [-3.6327357067538357, 0.39074252141170618, -4.1481501134298693, -3.1623475064843332]], [[1.4724796392860355, -2.9662747191833203, -2.0797484607657637, 1.8275664710887005], [-2.8927734364098647, -3.0993623517107771, -1.3220568256144194, 1.4930862990443998], [-3.1372480192288075, -0.11237338532426389, 1.0530442951046837, -0.17463262338962249]]], [[[4.5890428381345743, -1.3392215693772691, 3.9704494710711167, -2.6544632033270155], [-4.9180738375268129, -1.3418556383851818, -3.8770454208169767, 1.4885355575169807], [-1.5485935986068577, 3.569321917567521, -1.7667207942154119, -4.5373079100481162]], [[-4.4949677820536866, -3.2680656021039969, 4.9586758956692449, -0.52504395141281002], [0.16264759970116671, -4.0921050841912052, -1.2774387526331266, 0.27980341051749669], [-2.972529251272781, 1.6080683030556884, -4.7553206687763847, -0.36967858035345547]]]]))
# Line 3742  class Test_util_overloaded_binary_with_t Line 3742  class Test_util_overloaded_binary_with_t
3742        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
3743        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3744     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3745     def test_div_overloaded_constData_rank1_taggedData_rank0(self):     def test_quotient_overloaded_constData_rank1_taggedData_rank0(self):
3746        arg0=Data(numarray.array([3.2585370968848757, 1.1454175877624291]),self.functionspace)        arg0=Data(numarray.array([3.2585370968848757, 1.1454175877624291]),self.functionspace)
3747        arg1=Data(-2.93544378089,self.functionspace)        arg1=Data(-2.93544378089,self.functionspace)
3748        arg1.setTaggedValue(1,-1.7765826732)        arg1.setTaggedValue(1,-1.7765826732)
# Line 3753  class Test_util_overloaded_binary_with_t Line 3753  class Test_util_overloaded_binary_with_t
3753        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
3754        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3755     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3756     def test_div_overloaded_constData_rank1_taggedData_rank1(self):     def test_quotient_overloaded_constData_rank1_taggedData_rank1(self):
3757        arg0=Data(numarray.array([-3.2873749726724677, 2.537628784189514]),self.functionspace)        arg0=Data(numarray.array([-3.2873749726724677, 2.537628784189514]),self.functionspace)
3758        arg1=Data(numarray.array([-0.80369604430644515, 4.5440558592404088]),self.functionspace)        arg1=Data(numarray.array([-0.80369604430644515, 4.5440558592404088]),self.functionspace)
3759        arg1.setTaggedValue(1,numarray.array([0.35406786474087504, 3.4767588100197635]))        arg1.setTaggedValue(1,numarray.array([0.35406786474087504, 3.4767588100197635]))
# Line 3764  class Test_util_overloaded_binary_with_t Line 3764  class Test_util_overloaded_binary_with_t
3764        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
3765        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3766     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3767     def test_div_overloaded_constData_rank2_taggedData_rank0(self):     def test_quotient_overloaded_constData_rank2_taggedData_rank0(self):
3768        arg0=Data(numarray.array([[-1.4112039068670001, 2.3844727243919053, -0.75018126153440612, 0.29224859319870333, 4.0528743390776452], [1.9704199277864749, -2.1729409187986413, -2.4825493518310005, -2.1875975998764421, 4.9720042358891909], [3.3006411409063965, 0.66079211276274386, -1.3681574974938391, 4.9776486045598318, -3.9336042743125299], [-3.6909919190458771, -2.1480074682985437, 3.2063682437999201, -2.1716564783041159, -3.0121932209668212]]),self.functionspace)        arg0=Data(numarray.array([[-1.4112039068670001, 2.3844727243919053, -0.75018126153440612, 0.29224859319870333, 4.0528743390776452], [1.9704199277864749, -2.1729409187986413, -2.4825493518310005, -2.1875975998764421, 4.9720042358891909], [3.3006411409063965, 0.66079211276274386, -1.3681574974938391, 4.9776486045598318, -3.9336042743125299], [-3.6909919190458771, -2.1480074682985437, 3.2063682437999201, -2.1716564783041159, -3.0121932209668212]]),self.functionspace)
3769        arg1=Data(-1.57513181223,self.functionspace)        arg1=Data(-1.57513181223,self.functionspace)
3770        arg1.setTaggedValue(1,1.87210037907)        arg1.setTaggedValue(1,1.87210037907)
# Line 3775  class Test_util_overloaded_binary_with_t Line 3775  class Test_util_overloaded_binary_with_t
3775        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
3776        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3777     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3778     def test_div_overloaded_constData_rank2_taggedData_rank2(self):     def test_quotient_overloaded_constData_rank2_taggedData_rank2(self):
3779        arg0=Data(numarray.array([[2.1242999657742629, -3.4221008601311564, 4.2534489054981375, -4.8094965494123985, 4.2667327602227072], [-3.6816173720608258, 1.4409034883997451, -4.034615678096003, -1.8654408170921997, 0.87668821722978407], [-1.9951165434446114, 0.45212816257873989, -2.205575441391133, -1.7963673125665891, 4.1658244100775637], [2.265279299567001, -0.58964116078633833, -0.52906345752831019, -2.2048578238610403, -3.2055551728240972]]),self.functionspace)        arg0=Data(numarray.array([[2.1242999657742629, -3.4221008601311564, 4.2534489054981375, -4.8094965494123985, 4.2667327602227072], [-3.6816173720608258, 1.4409034883997451, -4.034615678096003, -1.8654408170921997, 0.87668821722978407], [-1.9951165434446114, 0.45212816257873989, -2.205575441391133, -1.7963673125665891, 4.1658244100775637], [2.265279299567001, -0.58964116078633833, -0.52906345752831019, -2.2048578238610403, -3.2055551728240972]]),self.functionspace)
3780        arg1=Data(numarray.array([[3.5943115462955646, -3.0844586504099247, -2.7379900762426268, 2.1889271004313908, -1.9778180484342145], [1.5687583805902436, 0.64969773638259731, -2.7566385783967382, -3.6243552192765769, 2.3794575949312815], [3.1534586273684582, -2.3236537673598701, -4.8303168433264752, 4.4349372319698883, 1.5406507964844085], [2.2497316341606242, 0.5718283152109036, -1.83523453963251, 0.93037440006281891, -3.6951477240543626]]),self.functionspace)        arg1=Data(numarray.array([[3.5943115462955646, -3.0844586504099247, -2.7379900762426268, 2.1889271004313908, -1.9778180484342145], [1.5687583805902436, 0.64969773638259731, -2.7566385783967382, -3.6243552192765769, 2.3794575949312815], [3.1534586273684582, -2.3236537673598701, -4.8303168433264752, 4.4349372319698883, 1.5406507964844085], [2.2497316341606242, 0.5718283152109036, -1.83523453963251, 0.93037440006281891, -3.6951477240543626]]),self.functionspace)
3781        arg1.setTaggedValue(1,numarray.array([[4.8794157182702627, 1.4041991126063849, 1.3961903501679584, -0.19042047134780127, -0.67996644605524459], [4.1306622917886742, -4.7891221822455314, 1.4035302073653213, -2.7472352870139414, -3.9112979346701215], [1.1424091371706826, -0.12991144661524245, -2.8477964939229228, 1.8369104041912729, -4.673017980849564], [4.0404887066736102, 0.60585388990847733, -2.2948948876050435, -2.6772976779015356, -4.6260664401208729]]))        arg1.setTaggedValue(1,numarray.array([[4.8794157182702627, 1.4041991126063849, 1.3961903501679584, -0.19042047134780127, -0.67996644605524459], [4.1306622917886742, -4.7891221822455314, 1.4035302073653213, -2.7472352870139414, -3.9112979346701215], [1.1424091371706826, -0.12991144661524245, -2.8477964939229228, 1.8369104041912729, -4.673017980849564], [4.0404887066736102, 0.60585388990847733, -2.2948948876050435, -2.6772976779015356, -4.6260664401208729]]))
# Line 3786  class Test_util_overloaded_binary_with_t Line 3786  class Test_util_overloaded_binary_with_t
3786        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
3787        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3788     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3789     def test_div_overloaded_constData_rank3_taggedData_rank0(self):     def test_quotient_overloaded_constData_rank3_taggedData_rank0(self):
3790        arg0=Data(numarray.array([[[2.6375759461098571, -0.43198402551411963], [1.6874696619176541, 1.831463809668338]], [[-3.8383287600871805, 3.0959933190860376], [-1.5389902059323646, 1.0811639522118535]], [[1.6142394852896498, 3.8739496592777307], [0.043286786771422392, 2.3845984586399274]], [[1.5164970238400599, -3.7468631863780386], [3.2752310454695071, -1.6820948111677749]], [[-4.7093914200301317, -1.8351240837587754], [0.23258098683259831, -3.3092167865797997]], [[-1.5246914567979806, -1.3122311385794418], [-4.5490618864752239, -2.2060097425654037]]]),self.functionspace)        arg0=Data(numarray.array([[[2.6375759461098571, -0.43198402551411963], [1.6874696619176541, 1.831463809668338]], [[-3.8383287600871805, 3.0959933190860376], [-1.5389902059323646, 1.0811639522118535]], [[1.6142394852896498, 3.8739496592777307], [0.043286786771422392, 2.3845984586399274]], [[1.5164970238400599, -3.7468631863780386], [3.2752310454695071, -1.6820948111677749]], [[-4.7093914200301317, -1.8351240837587754], [0.23258098683259831, -3.3092167865797997]], [[-1.5246914567979806, -1.3122311385794418], [-4.5490618864752239, -2.2060097425654037]]]),self.functionspace)
3791        arg1=Data(2.83227781938,self.functionspace)        arg1=Data(2.83227781938,self.functionspace)
3792        arg1.setTaggedValue(1,0.866518073529)        arg1.setTaggedValue(1,0.866518073529)
# Line 3797  class Test_util_overloaded_binary_with_t Line 3797  class Test_util_overloaded_binary_with_t
3797        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
3798        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3799     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3800     def test_div_overloaded_constData_rank3_taggedData_rank3(self):     def test_quotient_overloaded_constData_rank3_taggedData_rank3(self):
3801        arg0=Data(numarray.array([[[4.8303225645325281, -1.0125453237903259], [2.569604615749455, 1.2552508462123315]], [[-3.126977584206112, 3.1569136639623281], [3.7002735557649693, 2.5687804807560424]], [[-3.0538389311101088, -0.36985166324444041], [-0.69529422769575078, -4.8557413152636464]], [[-2.4905676261177154, 3.7498719272240759], [-1.9291435617097052, -2.6737150849446745]], [[-1.8559499267186572, 4.7293161660832688], [1.0977607101120492, 1.2895476314272951]], [[-1.7741830671411298, 4.9174177866142958], [-0.56915213868415027, 1.7847200642595595]]]),self.functionspace)        arg0=Data(numarray.array([[[4.8303225645325281, -1.0125453237903259], [2.569604615749455, 1.2552508462123315]], [[-3.126977584206112, 3.1569136639623281], [3.7002735557649693, 2.5687804807560424]], [[-3.0538389311101088, -0.36985166324444041], [-0.69529422769575078, -4.8557413152636464]], [[-2.4905676261177154, 3.7498719272240759], [-1.9291435617097052, -2.6737150849446745]], [[-1.8559499267186572, 4.7293161660832688], [1.0977607101120492, 1.2895476314272951]], [[-1.7741830671411298, 4.9174177866142958], [-0.56915213868415027, 1.7847200642595595]]]),self.functionspace)
3802        arg1=Data(numarray.array([[[2.7162713855158316, 0.48303593143262091], [-0.18054295857952596, 2.4043604973410515]], [[0.19783477216364709, -1.0306617538413732], [-0.7179577077467405, -1.1511629800898646]], [[-3.0798640564733648, 4.1804252248204214], [-4.9327278660714358, 3.2549958666072847]], [[-2.0909917665980826, -2.9585134915299847], [-3.7066650346990504, 4.2676629763540515]], [[4.1253146300741932, -4.5927979362442741], [4.3699763164694332, -0.81512767038709111]], [[-0.34278103039103591, -3.6926309440512481], [-2.819051354175758, 4.6322903358636172]]]),self.functionspace)        arg1=Data(numarray.array([[[2.7162713855158316, 0.48303593143262091], [-0.18054295857952596, 2.4043604973410515]], [[0.19783477216364709, -1.0306617538413732], [-0.7179577077467405, -1.1511629800898646]], [[-3.0798640564733648, 4.1804252248204214], [-4.9327278660714358, 3.2549958666072847]], [[-2.0909917665980826, -2.9585134915299847], [-3.7066650346990504, 4.2676629763540515]], [[4.1253146300741932, -4.5927979362442741], [4.3699763164694332, -0.81512767038709111]], [[-0.34278103039103591, -3.6926309440512481], [-2.819051354175758, 4.6322903358636172]]]),self.functionspace)
3803        arg1.setTaggedValue(1,numarray.array([[[4.0791814075741115, -2.7571044312349056], [-2.2565683255916067, 2.1599933357453178]], [[1.9490405642078104, -2.1937628909281379], [-2.0780393295047404, 3.3735947926417786]], [[-3.277246602870342, 0.12914894658870946], [-2.8392206047615187, -2.2118315970562996]], [[-1.113162735231592, -4.0540600088616854], [2.8236181373569611, -1.4112029583924612]], [[2.6684523673283422, 4.8710676069119501], [3.495269856384505, -2.1577555328919082]], [[-2.2665352681117277, 0.96684744328519123], [-0.37893362511194795, 0.44803354310583465]]]))        arg1.setTaggedValue(1,numarray.array([[[4.0791814075741115, -2.7571044312349056], [-2.2565683255916067, 2.1599933357453178]], [[1.9490405642078104, -2.1937628909281379], [-2.0780393295047404, 3.3735947926417786]], [[-3.277246602870342, 0.12914894658870946], [-2.8392206047615187, -2.2118315970562996]], [[-1.113162735231592, -4.0540600088616854], [2.8236181373569611, -1.4112029583924612]], [[2.6684523673283422, 4.8710676069119501], [3.495269856384505, -2.1577555328919082]], [[-2.2665352681117277, 0.96684744328519123], [-0.37893362511194795, 0.44803354310583465]]]))
# Line 3808  class Test_util_overloaded_binary_with_t Line 3808  class Test_util_overloaded_binary_with_t
3808        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
3809        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3810     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3811     def test_div_overloaded_constData_rank4_taggedData_rank0(self):     def test_quotient_overloaded_constData_rank4_taggedData_rank0(self):
3812        arg0=Data(numarray.array([[[[-0.40439655050506307, 4.7434545426165862, 3.135682738883439, 3.6890247371085412], [-3.0240233683889506, -3.0091160627712443, 4.9563636007625362, -2.7993775220515458], [3.1593616202308965, 2.2839736444338268, -1.680261946012791, -2.7937825726014989]], [[0.46596655666301601, 3.6943544529664702, -1.5589931865433759, -1.2021917139461835], [-1.7532963918640587, 2.687443190168004, 1.2626313379950984, 0.57686811363170865], [3.6083299837397291, -3.301213684076548, 3.806992606627297, -0.70222177045157963]]], [[[-4.7482159117577414, 2.5371566506143637, -3.1243746857120214, 2.0799416723605884], [-3.4564422813449669, -4.9450390976084515, -1.1433380071130661, -3.7353188366478474], [0.70693669677722148, -4.4585762059345875, 4.2928520010064801, -4.7999322967126181]], [[-0.26969445824687988, 1.4888875603746863, 1.5696795377620223, 0.68305017181904315], [-3.4740113184712964, 3.0298970865586483, -3.2140618612730174, -4.2715960958365384], [2.905858897840174, -1.1307926793268299, -1.515030551515939, -1.7465901236069117]]], [[[-1.8544338104517877, 3.1855981173537415, 0.57801513741138155, -1.8057838711819985], [1.7459494646057667, 1.7369656430881362, 1.8768624862324437, -2.0087825793770966], [-2.624487765952952, -4.3579545617989499, 4.1792741353895337, 0.39684950891829107]], [[-2.6538601617546975, 3.4521058612465634, 0.46125256449499119, 2.3167452388635059], [-4.6112734888389975, -3.702753425479882, 3.5555330825741684, 0.35105302555406759], [1.9210357584595217, -2.9392465676608639, 1.865934640724296, 0.73700163702246435]]]]),self.functionspace)        arg0=Data(numarray.array([[[[-0.40439655050506307, 4.7434545426165862, 3.135682738883439, 3.6890247371085412], [-3.0240233683889506, -3.0091160627712443, 4.9563636007625362, -2.7993775220515458], [3.1593616202308965, 2.2839736444338268, -1.680261946012791, -2.7937825726014989]], [[0.46596655666301601, 3.6943544529664702, -1.5589931865433759, -1.2021917139461835], [-1.7532963918640587, 2.687443190168004, 1.2626313379950984, 0.57686811363170865], [3.6083299837397291, -3.301213684076548, 3.806992606627297, -0.70222177045157963]]], [[[-4.7482159117577414, 2.5371566506143637, -3.1243746857120214, 2.0799416723605884], [-3.4564422813449669, -4.9450390976084515, -1.1433380071130661, -3.7353188366478474], [0.70693669677722148, -4.4585762059345875, 4.2928520010064801, -4.7999322967126181]], [[-0.26969445824687988, 1.4888875603746863, 1.5696795377620223, 0.68305017181904315], [-3.4740113184712964, 3.0298970865586483, -3.2140618612730174, -4.2715960958365384], [2.905858897840174, -1.1307926793268299, -1.515030551515939, -1.7465901236069117]]], [[[-1.8544338104517877, 3.1855981173537415, 0.57801513741138155, -1.8057838711819985], [1.7459494646057667, 1.7369656430881362, 1.8768624862324437, -2.0087825793770966], [-2.624487765952952, -4.3579545617989499, 4.1792741353895337, 0.39684950891829107]], [[-2.6538601617546975, 3.4521058612465634, 0.46125256449499119, 2.3167452388635059], [-4.6112734888389975, -3.702753425479882, 3.5555330825741684, 0.35105302555406759], [1.9210357584595217, -2.9392465676608639, 1.865934640724296, 0.73700163702246435]]]]),self.functionspace)
3813        arg1=Data(0.829003758751,self.functionspace)        arg1=Data(0.829003758751,self.functionspace)
3814        arg1.setTaggedValue(1,1.06971166958)        arg1.setTaggedValue(1,1.06971166958)
# Line 3819  class Test_util_overloaded_binary_with_t Line 3819  class Test_util_overloaded_binary_with_t
3819        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
3820        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3821     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3822     def test_div_overloaded_constData_rank4_taggedData_rank4(self):     def test_quotient_overloaded_constData_rank4_taggedData_rank4(self):
3823        arg0=Data(numarray.array([[[[2.0267423103229278, 4.4304144537213581, 2.3998280562999295, 0.73346121699437994], [-0.70471017413104953, 0.12036320698675773, -1.9875348687034, 1.7040368796017802], [-2.9924975322791738, 3.8272926953468183, 4.5594274045174554, -0.16228766761595814]], [[2.1449467587140028, -1.138919086121045, -3.5854052066399369, -3.5438499769716714], [1.7706143766847457, -3.3001727622469601, 4.6622898862050697, 2.1136376510182036], [-0.10334082163529423, -2.4222888015696475, 2.0207072143394091, 4.2395543949793613]]], [[[0.81742005488931291, 4.023960713960161, 3.6165574700924363, -3.98217737122601], [4.7758814615918705, -4.0098356488952538, -2.3378042266399977, 4.5768812718249325], [-4.6356398313845091, -2.469718272610578, -0.88945710474326667, 4.1639966092317433]], [[-2.4091448984896768, 0.87460010281437039, 3.8200461458693944, 0.96138924349685517], [4.5419678853711218, 1.3431536047458454, -0.5432998335173167, -1.5681019632291857], [-0.71961925597821619, -0.023225164995805514, -3.2215782779344018, 0.7147037911800993]]], [[[-3.2331757340286984, -3.8028177233147877, -3.0284332892284773, 1.9064210246288908], [-1.9767690620578748, -3.2315964412321154, 4.1049555220198339, -1.9432452143380763], [-1.2618564757456676, 4.2475267848701819, -4.3922832376031993, 4.9266431588365869]], [[-0.73818099973821916, -0.2429119201422747, -1.6837321904074165, -2.2725318026746888], [-0.078372641583149161, 0.21708511865109692, -4.8602869378366602, 0.10115190778778782], [-2.4173702167796951, 3.6570734534176221, 4.9018739714191923, -3.0200750675728982]]]]),self.functionspace)        arg0=Data(numarray.array([[[[2.0267423103229278, 4.4304144537213581, 2.3998280562999295, 0.73346121699437994], [-0.70471017413104953, 0.12036320698675773, -1.9875348687034, 1.7040368796017802], [-2.9924975322791738, 3.8272926953468183, 4.5594274045174554, -0.16228766761595814]], [[2.1449467587140028, -1.138919086121045, -3.5854052066399369, -3.5438499769716714], [1.7706143766847457, -3.3001727622469601, 4.6622898862050697, 2.1136376510182036], [-0.10334082163529423, -2.4222888015696475, 2.0207072143394091, 4.2395543949793613]]], [[[0.81742005488931291, 4.023960713960161, 3.6165574700924363, -3.98217737122601], [4.7758814615918705, -4.0098356488952538, -2.3378042266399977, 4.5768812718249325], [-4.6356398313845091, -2.469718272610578, -0.88945710474326667, 4.1639966092317433]], [[-2.4091448984896768, 0.87460010281437039, 3.8200461458693944, 0.96138924349685517], [4.5419678853711218, 1.3431536047458454, -0.5432998335173167, -1.5681019632291857], [-0.71961925597821619, -0.023225164995805514, -3.2215782779344018, 0.7147037911800993]]], [[[-3.2331757340286984, -3.8028177233147877, -3.0284332892284773, 1.9064210246288908], [-1.9767690620578748, -3.2315964412321154, 4.1049555220198339, -1.9432452143380763], [-1.2618564757456676, 4.2475267848701819, -4.3922832376031993, 4.9266431588365869]], [[-0.73818099973821916, -0.2429119201422747, -1.6837321904074165, -2.2725318026746888], [-0.078372641583149161, 0.21708511865109692, -4.8602869378366602, 0.10115190778778782], [-2.4173702167796951, 3.6570734534176221, 4.9018739714191923, -3.0200750675728982]]]]),self.functionspace)
3824        arg1=Data(numarray.array([[[[-3.0749199480722957, 4.527135569632474, 3.8314162039939816, -0.17890255087897344], [3.2744214839737396, -4.1033528924311957, -2.3215361326676143, 2.6137076375879973], [-0.49410291123851291, -1.7907712904243955, -1.2137242352469935, -2.1619296163976607]], [[-3.1907513685622515, 1.708388050884051, 4.2066499009231801, 2.6406571363429556], [1.5124465159515852, -0.85708823513832133, 2.2589981571609554, -4.0864183610547142], [0.017339812113645436, 3.4317973973471965, -2.5492970433716824, -2.3343116509947048]]], [[[1.4621064465511546, 4.3954244313602562, 2.2436704937089864, -2.593153967022086], [-0.43817452374418142, -1.4572602329033826, 1.4650427063747902, -1.6351042957221118], [-0.98293393491229253, -0.016659450881860494, -3.5572714927863922, 4.3513430853277075]], [[-4.4471446796274332, -4.6056359498574739, 0.70449701331028436, 1.8998795430745439], [1.9254438963206244, 0.39398369895024388, -4.6753723861998964, -1.944419492280276], [4.0698412790670542, -1.1423603011108452, -4.4919602257110594, 0.7227419735777163]]], [[[2.323855700529923, -0.75697665479222032, -1.3518806584814111, 4.0554573487258452], [-2.0576602387607945, 1.4415740555727732, -4.8307337346390886, -4.4699681608555775], [-3.1584800206067474, 2.2059791039773256, -4.7926475503324699, 4.947202826973145]], [[-0.72950717024511924, 0.36647077147856066, 2.1111574790992034, 1.0656325051029505], [-1.9285251192882846, 3.8562039891700302, -1.2230308520631796, -1.1689889042311554], [1.9053815031943824, 4.656492252685668, 3.6513764548491707, 1.8199585584886613]]]]),self.functionspace)        arg1=Data(numarray.array([[[[-3.0749199480722957, 4.527135569632474, 3.8314162039939816, -0.17890255087897344], [3.2744214839737396, -4.1033528924311957, -2.3215361326676143, 2.6137076375879973], [-0.49410291123851291, -1.7907712904243955, -1.2137242352469935, -2.1619296163976607]], [[-3.1907513685622515, 1.708388050884051, 4.2066499009231801, 2.6406571363429556], [1.5124465159515852, -0.85708823513832133, 2.2589981571609554, -4.0864183610547142], [0.017339812113645436, 3.4317973973471965, -2.5492970433716824, -2.3343116509947048]]], [[[1.4621064465511546, 4.3954244313602562, 2.2436704937089864, -2.593153967022086], [-0.43817452374418142, -1.4572602329033826, 1.4650427063747902, -1.6351042957221118], [-0.98293393491229253, -0.016659450881860494, -3.5572714927863922, 4.3513430853277075]], [[-4.4471446796274332, -4.6056359498574739, 0.70449701331028436, 1.8998795430745439], [1.9254438963206244, 0.39398369895024388, -4.6753723861998964, -1.944419492280276], [4.0698412790670542, -1.1423603011108452, -4.4919602257110594, 0.7227419735777163]]], [[[2.323855700529923, -0.75697665479222032, -1.3518806584814111, 4.0554573487258452], [-2.0576602387607945, 1.4415740555727732, -4.8307337346390886, -4.4699681608555775], [-3.1584800206067474, 2.2059791039773256, -4.7926475503324699, 4.947202826973145]], [[-0.72950717024511924, 0.36647077147856066, 2.1111574790992034, 1.0656325051029505], [-1.9285251192882846, 3.8562039891700302, -1.2230308520631796, -1.1689889042311554], [1.9053815031943824, 4.656492252685668, 3.6513764548491707, 1.8199585584886613]]]]),self.functionspace)
3825        arg1.setTaggedValue(1,numarray.array([[[[-0.36456385228451182, 2.2220461965410649, -1.9938606399882297, 4.0566344137755568], [2.5297709783923326, 0.73437391225396098, -4.8661744266664355, 1.4313162781076647], [-1.5867385405986867, -4.7509072633968721, 0.6862239678750548, -3.3828501795365149]], [[2.7038486779949036, -3.8417740864616636, -2.0001342191239049, -4.8125464015906152], [3.0740096934550287, 2.0861463332381156, -2.2973261516936407, 3.7860789586752617], [0.046222477934768413, -3.9412823790604556, -0.71558050872530998, -0.63438638763907029]]], [[[2.3169286406542327, -4.4338772677528677, -1.6916025033697224, -4.8289544524638552], [3.5897702062943253, -0.69684785172973474, 4.999688069539534, -4.9405518118605398], [3.0674225999757248, -0.34068115988563097, 4.445246225618849, 2.7354626544339853]], [[1.1404855054694529, 4.6077912581580058, -0.1561917937774302, 1.9031770744487231], [3.6884162791384458, -4.5702543326058205, -1.3577584451280034, -0.658097687525105], [4.2446893257066911, 1.5532247403082442, -2.1916973257355208, -0.7737461629127651]]], [[[-3.922054846645552, 0.093300629927113299, -3.6473786127903542, -1.4747299137752634], [-4.7722884547734976, -3.3666393719363876, 2.9647284395784048, 1.2114491935013492], [0.29917041263470701, -1.0464700598139776, 0.82958819060768629, 3.8284997851980638]], [[4.8272996441080291, 2.0515738836123996, -0.21313910907914746, 4.9907295061662555], [4.2134997819973101, 4.8047816888385597, -1.0342983460422284, -0.21998108051719445], [3.4369485288642814, 1.2991584707787407, 4.2376545125842977, 2.8609853695778709]]]]))        arg1.setTaggedValue(1,numarray.array([[[[-0.36456385228451182, 2.2220461965410649, -1.9938606399882297, 4.0566344137755568], [2.5297709783923326, 0.73437391225396098, -4.8661744266664355, 1.4313162781076647], [-1.5867385405986867, -4.7509072633968721, 0.6862239678750548, -3.3828501795365149]], [[2.7038486779949036, -3.8417740864616636, -2.0001342191239049, -4.8125464015906152], [3.0740096934550287, 2.0861463332381156, -2.2973261516936407, 3.7860789586752617], [0.046222477934768413, -3.9412823790604556, -0.71558050872530998, -0.63438638763907029]]], [[[2.3169286406542327, -4.4338772677528677, -1.6916025033697224, -4.8289544524638552], [3.5897702062943253, -0.69684785172973474, 4.999688069539534, -4.9405518118605398], [3.0674225999757248, -0.34068115988563097, 4.445246225618849, 2.7354626544339853]], [[1.1404855054694529, 4.6077912581580058, -0.1561917937774302, 1.9031770744487231], [3.6884162791384458, -4.5702543326058205, -1.3577584451280034, -0.658097687525105], [4.2446893257066911, 1.5532247403082442, -2.1916973257355208, -0.7737461629127651]]], [[[-3.922054846645552, 0.093300629927113299, -3.6473786127903542, -1.4747299137752634], [-4.7722884547734976, -3.3666393719363876, 2.9647284395784048, 1.2114491935013492], [0.29917041263470701, -1.0464700598139776, 0.82958819060768629, 3.8284997851980638]], [[4.8272996441080291, 2.0515738836123996, -0.21313910907914746, 4.9907295061662555], [4.2134997819973101, 4.8047816888385597, -1.0342983460422284, -0.21998108051719445], [3.4369485288642814, 1.2991584707787407, 4.2376545125842977, 2.8609853695778709]]]]))
# Line 3830  class Test_util_overloaded_binary_with_t Line 3830  class Test_util_overloaded_binary_with_t
3830        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
3831        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3832     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3833     def test_div_overloaded_taggedData_rank0_float_rank0(self):     def test_quotient_overloaded_taggedData_rank0_float_rank0(self):
3834        arg0=Data(3.65356534422,self.functionspace)        arg0=Data(3.65356534422,self.functionspace)
3835        arg0.setTaggedValue(1,-1.17926016579)        arg0.setTaggedValue(1,-1.17926016579)
3836        arg1=-2.37300818504        arg1=-2.37300818504
# Line 3841  class Test_util_overloaded_binary_with_t Line 3841  class Test_util_overloaded_binary_with_t
3841        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
3842        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3843     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3844     def test_div_overloaded_taggedData_rank0_array_rank0(self):     def test_quotient_overloaded_taggedData_rank0_array_rank0(self):
3845        arg0=Data(-0.177107121474,self.functionspace)        arg0=Data(-0.177107121474,self.functionspace)
3846        arg0.setTaggedValue(1,-0.694156234322)        arg0.setTaggedValue(1,-0.694156234322)
3847        arg1=numarray.array(1.03752931743)        arg1=numarray.array(1.03752931743)
# Line 3852  class Test_util_overloaded_binary_with_t Line 3852  class Test_util_overloaded_binary_with_t
3852        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
3853        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3854     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3855     def test_div_overloaded_taggedData_rank0_array_rank1(self):     def test_quotient_overloaded_taggedData_rank0_array_rank1(self):
3856        arg0=Data(-0.667094646269,self.functionspace)        arg0=Data(-0.667094646269,self.functionspace)
3857        arg0.setTaggedValue(1,-3.86103689664)        arg0.setTaggedValue(1,-3.86103689664)
3858        arg1=numarray.array([-3.2794782614723719, 2.4566354281925591])        arg1=numarray.array([-3.2794782614723719, 2.4566354281925591])
# Line 3863  class Test_util_overloaded_binary_with_t Line 3863  class Test_util_overloaded_binary_with_t
3863        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
3864        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3865     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3866     def test_div_overloaded_taggedData_rank0_array_rank2(self):     def test_quotient_overloaded_taggedData_rank0_array_rank2(self):
3867        arg0=Data(-1.12136649302,self.functionspace)        arg0=Data(-1.12136649302,self.functionspace)
3868        arg0.setTaggedValue(1,-0.135474988185)        arg0.setTaggedValue(1,-0.135474988185)
3869        arg1=numarray.array([[-4.7016203258815779, -1.195553024451661, 0.70607934955873386, 0.76361944055447672, -2.9546114444532368], [-0.84237928527766659, -2.6504357791235478, -2.9392721252310561, -3.9923151524787492, 1.0749527219716075], [0.95063739419692794, -3.6584397860427131, 4.2619516746355277, 4.7461606918243255, -0.86318012019117152], [-0.68072422070398009, 0.072401114773859909, -2.3193253343869316, 0.76198100785014233, 0.91251085425159228]])        arg1=numarray.array([[-4.7016203258815779, -1.195553024451661, 0.70607934955873386, 0.76361944055447672, -2.9546114444532368], [-0.84237928527766659, -2.6504357791235478, -2.9392721252310561, -3.9923151524787492, 1.0749527219716075], [0.95063739419692794, -3.6584397860427131, 4.2619516746355277, 4.7461606918243255, -0.86318012019117152], [-0.68072422070398009, 0.072401114773859909, -2.3193253343869316, 0.76198100785014233, 0.91251085425159228]])
# Line 3874  class Test_util_overloaded_binary_with_t Line 3874  class Test_util_overloaded_binary_with_t
3874        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
3875        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3876     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3877     def test_div_overloaded_taggedData_rank0_array_rank3(self):     def test_quotient_overloaded_taggedData_rank0_array_rank3(self):
3878        arg0=Data(1.04505458244,self.functionspace)        arg0=Data(1.04505458244,self.functionspace)
3879        arg0.setTaggedValue(1,-4.42265972115)        arg0.setTaggedValue(1,-4.42265972115)
3880        arg1=numarray.array([[[-0.85371618468244836, 4.7933895743288719], [4.7447822909239825, 0.99290307762258756]], [[-1.5109097371537974, -4.971113528906753], [-0.55762642667318563, 1.1502033348125016]], [[-2.915209220379694, 4.3298574014955165], [2.4121988281640956, 3.8675256922831416]], [[2.425278072924498, 3.5545003821874452], [2.2306237850195725, 2.5967654878909752]], [[-1.8835381269518461, -3.3280636126263619], [1.5102969231404115, 3.5994910063932277]], [[3.8930526803950087, 3.8178257644340459], [-0.25009295764235873, -2.2152654993081686]]])        arg1=numarray.array([[[-0.85371618468244836, 4.7933895743288719], [4.7447822909239825, 0.99290307762258756]], [[-1.5109097371537974, -4.971113528906753], [-0.55762642667318563, 1.1502033348125016]], [[-2.915209220379694, 4.3298574014955165], [2.4121988281640956, 3.8675256922831416]], [[2.425278072924498, 3.5545003821874452], [2.2306237850195725, 2.5967654878909752]], [[-1.8835381269518461, -3.3280636126263619], [1.5102969231404115, 3.5994910063932277]], [[3.8930526803950087, 3.8178257644340459], [-0.25009295764235873, -2.2152654993081686]]])
# Line 3885  class Test_util_overloaded_binary_with_t Line 3885  class Test_util_overloaded_binary_with_t
3885        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
3886        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3887     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3888     def test_div_overloaded_taggedData_rank0_array_rank4(self):     def test_quotient_overloaded_taggedData_rank0_array_rank4(self):
3889        arg0=Data(2.79370294518,self.functionspace)        arg0=Data(2.79370294518,self.functionspace)
3890        arg0.setTaggedValue(1,-2.86744498095)        arg0.setTaggedValue(1,-2.86744498095)
3891        arg1=numarray.array([[[[1.4248287908084727, -1.7304678349826075, -1.5878385754886071, -0.21777917617957332], [0.53171468876790673, 4.3731568345348251, 1.7050672045022974, 4.6050075276918818], [4.6527971178732344, 1.8938925169077283, 2.583143433781574, 3.1480201107678738]], [[3.7875392155597289, 2.2412750037755425, -2.5736967334388119, 2.8802643576253697], [-0.61376571637346622, -2.8428520213819422, -3.1372808922717743, -0.38231467528594898], [3.680723722632548, 4.7481540330616312, -1.0051596282873811, 1.8839188110630971]]], [[[1.2870581087220643, -1.32073746798542, -1.9812776812063246, 1.2948176354033203], [4.3700562979327735, 1.0740891030122421, -0.83870482096762267, -4.5607652083519579], [-2.4091902868028257, -0.1426399567648744, 3.6538589418800846, 1.813285329001407]], [[-4.5038182270932703, 1.673874344250895, -0.15539206591807631, 4.7273666398045773], [1.8809828251669458, -1.2176266440921211, -3.9709101887242868, -3.5862383890117364], [0.20581793341956001, 4.1878806179562069, -2.6295301450609152, 1.8092259097201078]]], [[[-1.7469294859436548, 3.3695279137357126, -2.5809961613918042, 1.6559816856217102], [-2.9355906765013873, -0.13185985973782621, 1.3934501237527011, -3.3011587407423693], [0.79080667429923501, 2.9204713694404578, -1.9600441816227301, -3.7026076834852804]], [[2.874970873111188, -2.3154801899357014, 4.2187833414159801, 3.8758031353410143], [0.80152141615899541, -2.6708142888982209, -2.322302379449328, 3.5335964742879185], [-3.6888480534253389, 1.6825242681388195, -3.121182557042339, 4.9088970957681823]]]])        arg1=numarray.array([[[[1.4248287908084727, -1.7304678349826075, -1.5878385754886071, -0.21777917617957332], [0.53171468876790673, 4.3731568345348251, 1.7050672045022974, 4.6050075276918818], [4.6527971178732344, 1.8938925169077283, 2.583143433781574, 3.1480201107678738]], [[3.7875392155597289, 2.2412750037755425, -2.5736967334388119, 2.8802643576253697], [-0.61376571637346622, -2.8428520213819422, -3.1372808922717743, -0.38231467528594898], [3.680723722632548, 4.7481540330616312, -1.0051596282873811, 1.8839188110630971]]], [[[1.2870581087220643, -1.32073746798542, -1.9812776812063246, 1.2948176354033203], [4.3700562979327735, 1.0740891030122421, -0.83870482096762267, -4.5607652083519579], [-2.4091902868028257, -0.1426399567648744, 3.6538589418800846, 1.813285329001407]], [[-4.5038182270932703, 1.673874344250895, -0.15539206591807631, 4.7273666398045773], [1.8809828251669458, -1.2176266440921211, -3.9709101887242868, -3.5862383890117364], [0.20581793341956001, 4.1878806179562069, -2.6295301450609152, 1.8092259097201078]]], [[[-1.7469294859436548, 3.3695279137357126, -2.5809961613918042, 1.6559816856217102], [-2.9355906765013873, -0.13185985973782621, 1.3934501237527011, -3.3011587407423693], [0.79080667429923501, 2.9204713694404578, -1.9600441816227301, -3.7026076834852804]], [[2.874970873111188, -2.3154801899357014, 4.2187833414159801, 3.8758031353410143], [0.80152141615899541, -2.6708142888982209, -2.322302379449328, 3.5335964742879185], [-3.6888480534253389, 1.6825242681388195, -3.121182557042339, 4.9088970957681823]]]])
# Line 3896  class Test_util_overloaded_binary_with_t Line 3896  class Test_util_overloaded_binary_with_t
3896        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
3897        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3898     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3899     def test_div_overloaded_taggedData_rank0_constData_rank0(self):     def test_quotient_overloaded_taggedData_rank0_constData_rank0(self):
3900        arg0=Data(-0.0283128535384,self.functionspace)        arg0=Data(-0.0283128535384,self.functionspace)
3901        arg0.setTaggedValue(1,1.79608880446)        arg0.setTaggedValue(1,1.79608880446)
3902        arg1=Data(-4.66599643441,self.functionspace)        arg1=Data(-4.66599643441,self.functionspace)
# Line 3907  class Test_util_overloaded_binary_with_t Line 3907  class Test_util_overloaded_binary_with_t
3907        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
3908        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3909     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3910     def test_div_overloaded_taggedData_rank0_constData_rank1(self):     def test_quotient_overloaded_taggedData_rank0_constData_rank1(self):
3911        arg0=Data(-0.878851394404,self.functionspace)        arg0=Data(-0.878851394404,self.functionspace)
3912        arg0.setTaggedValue(1,4.7006799177)        arg0.setTaggedValue(1,4.7006799177)
3913        arg1=Data(numarray.array([1.0889262256835419, 0.17033168040482405]),self.functionspace)        arg1=Data(numarray.array([1.0889262256835419, 0.17033168040482405]),self.functionspace)
# Line 3918  class Test_util_overloaded_binary_with_t Line 3918  class Test_util_overloaded_binary_with_t
3918        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
3919        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3920     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3921     def test_div_overloaded_taggedData_rank0_constData_rank2(self):     def test_quotient_overloaded_taggedData_rank0_constData_rank2(self):
3922        arg0=Data(-1.79071968044,self.functionspace)        arg0=Data(-1.79071968044,self.functionspace)
3923        arg0.setTaggedValue(1,-4.05190302404)        arg0.setTaggedValue(1,-4.05190302404)
3924        arg1=Data(numarray.array([[3.3227948715468596, 4.4019901286560756, 3.5327950123940628, 1.0360594336973552, -4.5360262382692866], [-0.67888861194611128, -3.1593593522434316, -0.13551814757515857, -4.9347811884290627, -3.5929785159799921], [4.5309740146872759, -2.336853069803011, 3.5886944968120922, 4.0147878253869642, 4.1742705165228315], [4.3444033431698639, 2.9195692550647863, 1.0568468873081969, -2.4811997399936656, 1.7952193648542227]]),self.functionspace)        arg1=Data(numarray.array([[3.3227948715468596, 4.4019901286560756, 3.5327950123940628, 1.0360594336973552, -4.5360262382692866], [-0.67888861194611128, -3.1593593522434316, -0.13551814757515857, -4.9347811884290627, -3.5929785159799921], [4.5309740146872759, -2.336853069803011, 3.5886944968120922, 4.0147878253869642, 4.1742705165228315], [4.3444033431698639, 2.9195692550647863, 1.0568468873081969, -2.4811997399936656, 1.7952193648542227]]),self.functionspace)
# Line 3929  class Test_util_overloaded_binary_with_t Line 3929  class Test_util_overloaded_binary_with_t
3929        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
3930        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3931     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3932     def test_div_overloaded_taggedData_rank0_constData_rank3(self):     def test_quotient_overloaded_taggedData_rank0_constData_rank3(self):
3933        arg0=Data(4.52906509113,self.functionspace)        arg0=Data(4.52906509113,self.functionspace)
3934        arg0.setTaggedValue(1,-4.6262702253)        arg0.setTaggedValue(1,-4.6262702253)
3935        arg1=Data(numarray.array([[[-4.29305547636723, 0.24597715884219884], [-2.1490153711561897, 3.51230655418175]], [[2.6472988906595161, -4.9815800353560373], [0.28601959081328143, -2.007021075964289]], [[-3.5903182816760193, 3.1653115189614223], [-4.1478168439266607, -4.2020309451968281]], [[0.24634018030861071, 3.0513399543590047], [1.3704546924491146, -3.2920982593393147]], [[3.3681734611895902, 1.7271529165301036], [3.2683825469940047, -3.5607612048751571]], [[1.6754734057637668, -1.967821549034011], [3.4461406769222833, -2.4790813441888373]]]),self.functionspace)        arg1=Data(numarray.array([[[-4.29305547636723, 0.24597715884219884], [-2.1490153711561897, 3.51230655418175]], [[2.6472988906595161, -4.9815800353560373], [0.28601959081328143, -2.007021075964289]], [[-3.5903182816760193, 3.1653115189614223], [-4.1478168439266607, -4.2020309451968281]], [[0.24634018030861071, 3.0513399543590047], [1.3704546924491146, -3.2920982593393147]], [[3.3681734611895902, 1.7271529165301036], [3.2683825469940047, -3.5607612048751571]], [[1.6754734057637668, -1.967821549034011], [3.4461406769222833, -2.4790813441888373]]]),self.functionspace)
# Line 3940  class Test_util_overloaded_binary_with_t Line 3940  class Test_util_overloaded_binary_with_t
3940        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
3941        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3942     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3943     def test_div_overloaded_taggedData_rank0_constData_rank4(self):     def test_quotient_overloaded_taggedData_rank0_constData_rank4(self):
3944        arg0=Data(-1.87400473233,self.functionspace)        arg0=Data(-1.87400473233,self.functionspace)
3945        arg0.setTaggedValue(1,0.0362796037947)        arg0.setTaggedValue(1,0.0362796037947)
3946        arg1=Data(numarray.array([[[[0.058347597377736982, 1.8625416969204966, 1.7934734722818755, -2.8351925203595063], [3.7760306971696025, -1.7564200670817955, 1.0856871257068548, 0.11871549003082116], [1.1036491406041629, -3.77448405271008, 2.5647614059537158, -3.2943957938616042]], [[-0.048275771939394474, 0.37830551598762252, 2.5615192384070005, 0.72340458478667014], [-4.125241159258958, 2.6684660155882058, 1.0466547599654721, 0.10552320824038919], [-4.30863132838223, -3.6083832495958665, -2.412632296893209, -4.548670155534329]]], [[[-3.9261352738412292, 1.1068734025516633, 3.8061208327786602, 1.4249499053819417], [-0.80053884869661651, 2.8600876648003082, 0.66840261404344314, -1.0356828709045973], [3.3694562891636632, -4.1939741897498273, -0.91815132723240733, 1.3279872691013317]], [[-3.0704812663247583, -1.1798506923743446, -1.3672698458334342, -4.1232225798817712], [-0.028968607237399802, 3.8138090299463947, 1.3795904838575224, 1.9475879248430283], [0.28188355764269257, 2.0712127537582656, 3.7175372210568352, 2.8979979571539687]]], [[[-3.7108215503854289, -3.0870336230592033, 4.2993691563358389, 1.2096120473062193], [4.1636582734336027, 4.3237750957454182, -2.3970015820029911, 3.3478797896379984], [-4.9528365930148919, -0.43664652527808556, -0.75980631710951396, 2.2076815680212958]], [[-0.99806651102131205, 4.3667553186072201, -3.0086784842363201, -2.5060720681661985], [4.7629622091106008, -0.55449294733600141, 0.68510782006316084, -3.9654897352036], [-4.5885399126788995, -2.7777416633007324, 3.7004375397447156, 3.3904007245100249]]]]),self.functionspace)        arg1=Data(numarray.array([[[[0.058347597377736982, 1.8625416969204966, 1.7934734722818755, -2.8351925203595063], [3.7760306971696025, -1.7564200670817955, 1.0856871257068548, 0.11871549003082116], [1.1036491406041629, -3.77448405271008, 2.5647614059537158, -3.2943957938616042]], [[-0.048275771939394474, 0.37830551598762252, 2.5615192384070005, 0.72340458478667014], [-4.125241159258958, 2.6684660155882058, 1.0466547599654721, 0.10552320824038919], [-4.30863132838223, -3.6083832495958665, -2.412632296893209, -4.548670155534329]]], [[[-3.9261352738412292, 1.1068734025516633, 3.8061208327786602, 1.4249499053819417], [-0.80053884869661651, 2.8600876648003082, 0.66840261404344314, -1.0356828709045973], [3.3694562891636632, -4.1939741897498273, -0.91815132723240733, 1.3279872691013317]], [[-3.0704812663247583, -1.1798506923743446, -1.3672698458334342, -4.1232225798817712], [-0.028968607237399802, 3.8138090299463947, 1.3795904838575224, 1.9475879248430283], [0.28188355764269257, 2.0712127537582656, 3.7175372210568352, 2.8979979571539687]]], [[[-3.7108215503854289, -3.0870336230592033, 4.2993691563358389, 1.2096120473062193], [4.1636582734336027, 4.3237750957454182, -2.3970015820029911, 3.3478797896379984], [-4.9528365930148919, -0.43664652527808556, -0.75980631710951396, 2.2076815680212958]], [[-0.99806651102131205, 4.3667553186072201, -3.0086784842363201, -2.5060720681661985], [4.7629622091106008, -0.55449294733600141, 0.68510782006316084, -3.9654897352036], [-4.5885399126788995, -2.7777416633007324, 3.7004375397447156, 3.3904007245100249]]]]),self.functionspace)
# Line 3951  class Test_util_overloaded_binary_with_t Line 3951  class Test_util_overloaded_binary_with_t
3951        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
3952        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3953     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3954     def test_div_overloaded_taggedData_rank0_taggedData_rank0(self):     def test_quotient_overloaded_taggedData_rank0_taggedData_rank0(self):
3955        arg0=Data(-0.453669765546,self.functionspace)        arg0=Data(-0.453669765546,self.functionspace)
3956        arg0.setTaggedValue(1,0.011241474504)        arg0.setTaggedValue(1,0.011241474504)
3957        arg1=Data(-0.588500262809,self.functionspace)        arg1=Data(-0.588500262809,self.functionspace)
# Line 3963  class Test_util_overloaded_binary_with_t Line 3963  class Test_util_overloaded_binary_with_t
3963        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
3964        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3965     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3966     def test_div_overloaded_taggedData_rank0_taggedData_rank1(self):     def test_quotient_overloaded_taggedData_rank0_taggedData_rank1(self):
3967        arg0=Data(-4.21556327047,self.functionspace)        arg0=Data(-4.21556327047,self.functionspace)
3968        arg0.setTaggedValue(1,4.7278077455)        arg0.setTaggedValue(1,4.7278077455)
3969        arg1=Data(numarray.array([1.3595023971429061, -4.4488245092837806]),self.functionspace)        arg1=Data(numarray.array([1.3595023971429061, -4.4488245092837806]),self.functionspace)
# Line 3975  class Test_util_overloaded_binary_with_t Line 3975  class Test_util_overloaded_binary_with_t
3975        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
3976        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3977     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3978     def test_div_overloaded_taggedData_rank0_taggedData_rank2(self):     def test_quotient_overloaded_taggedData_rank0_taggedData_rank2(self):
3979        arg0=Data(-0.966091079476,self.functionspace)        arg0=Data(-0.966091079476,self.functionspace)
3980        arg0.setTaggedValue(1,-4.93447026408)        arg0.setTaggedValue(1,-4.93447026408)
3981        arg1=Data(numarray.array([[-1.6438963019922581, 4.9735662405722749, -3.4220694157282736, 4.613346795430628, 0.31826771793314279], [-2.8442408494331883, 3.703145829016032, -2.7304274489860725, -2.665330148633287, 3.3337899074801882], [1.6383386529679491, 0.88312808709937496, 0.71961606206577144, -4.8979257227363888, -3.439782929743159], [0.085268288014404447, 2.1849421213156086, 4.9132009902484022, -1.0220567518567858, -4.3980456582799548]]),self.functionspace)        arg1=Data(numarray.array([[-1.6438963019922581, 4.9735662405722749, -3.4220694157282736, 4.613346795430628, 0.31826771793314279], [-2.8442408494331883, 3.703145829016032, -2.7304274489860725, -2.665330148633287, 3.3337899074801882], [1.6383386529679491, 0.88312808709937496, 0.71961606206577144, -4.8979257227363888, -3.439782929743159], [0.085268288014404447, 2.1849421213156086, 4.9132009902484022, -1.0220567518567858, -4.3980456582799548]]),self.functionspace)
# Line 3987  class Test_util_overloaded_binary_with_t Line 3987  class Test_util_overloaded_binary_with_t
3987        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
3988        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
3989     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3990     def test_div_overloaded_taggedData_rank0_taggedData_rank3(self):     def test_quotient_overloaded_taggedData_rank0_taggedData_rank3(self):
3991        arg0=Data(-1.81664246796,self.functionspace)        arg0=Data(-1.81664246796,self.functionspace)
3992        arg0.setTaggedValue(1,4.46387457355)        arg0.setTaggedValue(1,4.46387457355)
3993        arg1=Data(numarray.array([[[1.4850376184631315, -1.3933942291535595], [-2.0083169776060785, 0.98100783331441122]], [[-4.4032839330649285, -3.5634930840889103], [2.2732272840852499, 1.6835078278446218]], [[-1.2429237532913051, 1.4955486286156363], [4.2157916269941929, -2.76280105088229]], [[3.8009575255761554, 2.888422220105995], [3.4482664468826201, 0.89811738641277117]], [[-0.43029554687801141, -3.9738451716931733], [0.36127797698629571, 2.6502839052976777]], [[1.2205998958897144, 4.3255182934682495], [3.3092526196601373, 2.3106639707779166]]]),self.functionspace)        arg1=Data(numarray.array([[[1.4850376184631315, -1.3933942291535595], [-2.0083169776060785, 0.98100783331441122]], [[-4.4032839330649285, -3.5634930840889103], [2.2732272840852499, 1.6835078278446218]], [[-1.2429237532913051, 1.4955486286156363], [4.2157916269941929, -2.76280105088229]], [[3.8009575255761554, 2.888422220105995], [3.4482664468826201, 0.89811738641277117]], [[-0.43029554687801141, -3.9738451716931733], [0.36127797698629571, 2.6502839052976777]], [[1.2205998958897144, 4.3255182934682495], [3.3092526196601373, 2.3106639707779166]]]),self.functionspace)
# Line 3999  class Test_util_overloaded_binary_with_t Line 3999  class Test_util_overloaded_binary_with_t
3999        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
4000        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4001     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4002     def test_div_overloaded_taggedData_rank0_taggedData_rank4(self):     def test_quotient_overloaded_taggedData_rank0_taggedData_rank4(self):
4003        arg0=Data(-4.33459200977,self.functionspace)        arg0=Data(-4.33459200977,self.functionspace)
4004        arg0.setTaggedValue(1,4.96142104529)        arg0.setTaggedValue(1,4.96142104529)
4005        arg1=Data(numarray.array([[[[-2.5560622075966832, 0.21123248607315492, -2.8558357377619545, 2.6728741063594743], [-1.4130500254892961, -0.51734307388043455, 4.4618570982579016, -3.9222758679812788], [1.4871882525810518, -0.21059693570670746, 3.9415040459913477, -4.159679074077939]], [[2.2319614247688175, -0.87556252785269528, 0.28045835245833572, -2.3407235358027698], [-1.253587074114618, -4.8227016394684803, 4.2556425164228084, 2.0646454127542757], [4.0984029147716399, 1.5667800037135944, -1.2676554805251969, 4.1855175758015868]]], [[[1.5379230034448863, -3.177082682780509, 0.91412809104564907, 2.2907979947424462], [1.647498035765242, -0.94889258263806298, 3.2399002953813145, 2.7380089511422465], [2.3615886927451726, -4.3396607248204733, 4.6957926389748064, -0.27105662440875555]], [[4.2139321486118586, -3.387080457729498, 0.17859242801337682, -0.96930346441610915], [-0.49096192080272161, -3.4895088559320939, 0.74554073476852345, -4.8638424465808425], [-4.7678993684924018, -3.9431336725572885, -2.0242236648446488, 1.3933820507885297]]], [[[2.8325719326427565, 0.32418415704306724, 3.8267512851785881, -4.4640542958307652], [4.4364015446792706, 4.2276973150545203, 3.3791890929061736, -2.3884012760197981], [-4.7491093887390265, -3.1323487130297343, 0.56655435324242465, -2.2453913298191166]], [[-0.51407286716072775, -3.1993706638928012, -4.2917732732211, 1.5017220912066467], [-3.622510023882155, 0.83477979765192245, 3.6295131008120798, -4.3922952577479357], [4.5397371755719753, -0.9752586798552132, -2.1838605695407853, 2.4725808570494054]]]]),self.functionspace)        arg1=Data(numarray.array([[[[-2.5560622075966832, 0.21123248607315492, -2.8558357377619545, 2.6728741063594743], [-1.4130500254892961, -0.51734307388043455, 4.4618570982579016, -3.9222758679812788], [1.4871882525810518, -0.21059693570670746, 3.9415040459913477, -4.159679074077939]], [[2.2319614247688175, -0.87556252785269528, 0.28045835245833572, -2.3407235358027698], [-1.253587074114618, -4.8227016394684803, 4.2556425164228084, 2.0646454127542757], [4.0984029147716399, 1.5667800037135944, -1.2676554805251969, 4.1855175758015868]]], [[[1.5379230034448863, -3.177082682780509, 0.91412809104564907, 2.2907979947424462], [1.647498035765242, -0.94889258263806298, 3.2399002953813145, 2.7380089511422465], [2.3615886927451726, -4.3396607248204733, 4.6957926389748064, -0.27105662440875555]], [[4.2139321486118586, -3.387080457729498, 0.17859242801337682, -0.96930346441610915], [-0.49096192080272161, -3.4895088559320939, 0.74554073476852345, -4.8638424465808425], [-4.7678993684924018, -3.9431336725572885, -2.0242236648446488, 1.3933820507885297]]], [[[2.8325719326427565, 0.32418415704306724, 3.8267512851785881, -4.4640542958307652], [4.4364015446792706, 4.2276973150545203, 3.3791890929061736, -2.3884012760197981], [-4.7491093887390265, -3.1323487130297343, 0.56655435324242465, -2.2453913298191166]], [[-0.51407286716072775, -3.1993706638928012, -4.2917732732211, 1.5017220912066467], [-3.622510023882155, 0.83477979765192245, 3.6295131008120798, -4.3922952577479357], [4.5397371755719753, -0.9752586798552132, -2.1838605695407853, 2.4725808570494054]]]]),self.functionspace)
# Line 4011  class Test_util_overloaded_binary_with_t Line 4011  class Test_util_overloaded_binary_with_t
4011        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
4012        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4013     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4014     def test_div_overloaded_taggedData_rank0_expandedData_rank0(self):     def test_quotient_overloaded_taggedData_rank0_expandedData_rank0(self):
4015        arg0=Data(-4.34905492087,self.functionspace)        arg0=Data(-4.34905492087,self.functionspace)
4016        arg0.setTaggedValue(1,1.15303882944)        arg0.setTaggedValue(1,1.15303882944)
4017        arg1=Data(3.0112285778,self.functionspace)        arg1=Data(3.0112285778,self.functionspace)
# Line 4024  class Test_util_overloaded_binary_with_t Line 4024  class Test_util_overloaded_binary_with_t
4024        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
4025        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4026     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4027     def test_div_overloaded_taggedData_rank0_expandedData_rank1(self):     def test_quotient_overloaded_taggedData_rank0_expandedData_rank1(self):
4028        arg0=Data(4.00995768724,self.functionspace)        arg0=Data(4.00995768724,self.functionspace)
4029        arg0.setTaggedValue(1,-2.00220236418)        arg0.setTaggedValue(1,-2.00220236418)
4030        arg1=Data(numarray.array([2.0994462036726649, 2.673579231938076]),self.functionspace)        arg1=Data(numarray.array([2.0994462036726649, 2.673579231938076]),self.functionspace)
# Line 4037  class Test_util_overloaded_binary_with_t Line 4037  class Test_util_overloaded_binary_with_t
4037        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
4038        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4039     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4040     def test_div_overloaded_taggedData_rank0_expandedData_rank2(self):     def test_quotient_overloaded_taggedData_rank0_expandedData_rank2(self):
4041        arg0=Data(-4.17082551299,self.functionspace)        arg0=Data(-4.17082551299,self.functionspace)
4042        arg0.setTaggedValue(1,-1.74232260959)        arg0.setTaggedValue(1,-1.74232260959)
4043        arg1=Data(numarray.array([[4.0087954440243898, -2.7750306475964361, 4.0606996479551647, -2.1548122550698356, -3.446092235357614], [3.1107974127556037, -1.7059535742566112, 0.49777370979760249, -4.6293523622698887, 3.0208945209323232], [-3.6038287403873204, -0.46401708293522148, -3.3073887136789715, 1.0377385090007838, 0.18590623208800228], [-1.3240557135703392, -4.2378047306192741, -3.6624302691775146, 0.10933844803161996, -3.9071019631855517]]),self.functionspace)        arg1=Data(numarray.array([[4.0087954440243898, -2.7750306475964361, 4.0606996479551647, -2.1548122550698356, -3.446092235357614], [3.1107974127556037, -1.7059535742566112, 0.49777370979760249, -4.6293523622698887, 3.0208945209323232], [-3.6038287403873204, -0.46401708293522148, -3.3073887136789715, 1.0377385090007838, 0.18590623208800228], [-1.3240557135703392, -4.2378047306192741, -3.6624302691775146, 0.10933844803161996, -3.9071019631855517]]),self.functionspace)
# Line 4050  class Test_util_overloaded_binary_with_t Line 4050  class Test_util_overloaded_binary_with_t
4050        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
4051        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4052     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4053     def test_div_overloaded_taggedData_rank0_expandedData_rank3(self):     def test_quotient_overloaded_taggedData_rank0_expandedData_rank3(self):
4054        arg0=Data(0.532523847342,self.functionspace)        arg0=Data(0.532523847342,self.functionspace)
4055        arg0.setTaggedValue(1,4.66312843622)        arg0.setTaggedValue(1,4.66312843622)
4056        arg1=Data(numarray.array([[[4.3058616519490709, -2.513724733530025], [0.47677819556482604, -2.3538795590231896]], [[4.2414306346467541, 0.7495356419509358], [0.21876776368661677, 1.6942419352442748]], [[0.34188533835082957, 1.8739372160026218], [-3.4264188783980662, 2.6968599559437578]], [[-2.8486975740462981, -1.2073590382391339], [0.74015335841206031, -3.6939094924523208]], [[2.8768705604203904, 1.3121327841819399], [-1.3068827757046808, 1.8769048375264816]], [[-4.1700688019836445, -0.30075017722268527], [-2.477106430988516, -2.7504480564723655]]]),self.functionspace)        arg1=Data(numarray.array([[[4.3058616519490709, -2.513724733530025], [0.47677819556482604, -2.3538795590231896]], [[4.2414306346467541, 0.7495356419509358], [0.21876776368661677, 1.6942419352442748]], [[0.34188533835082957, 1.8739372160026218], [-3.4264188783980662, 2.6968599559437578]], [[-2.8486975740462981, -1.2073590382391339], [0.74015335841206031, -3.6939094924523208]], [[2.8768705604203904, 1.3121327841819399], [-1.3068827757046808, 1.8769048375264816]], [[-4.1700688019836445, -0.30075017722268527], [-2.477106430988516, -2.7504480564723655]]]),self.functionspace)
# Line 4063  class Test_util_overloaded_binary_with_t Line 4063  class Test_util_overloaded_binary_with_t
4063        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
4064        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4065     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4066     def test_div_overloaded_taggedData_rank0_expandedData_rank4(self):     def test_quotient_overloaded_taggedData_rank0_expandedData_rank4(self):
4067        arg0=Data(2.84998385413,self.functionspace)        arg0=Data(2.84998385413,self.functionspace)
4068        arg0.setTaggedValue(1,2.38733853285)        arg0.setTaggedValue(1,2.38733853285)
4069        arg1=Data(numarray.array([[[[-0.45767471930061454, -3.9272674409317219, 3.1347077551511013, 3.4434165582722596], [3.8366679836940509, 2.0244239729990268, 2.1264023907726672, -3.6142433976306299], [-1.7270712058341275, 0.29499008578792996, -4.8017571425766974, 3.2939256106497972]], [[-0.34618201821149963, -2.4172694552892859, -3.8971442881709359, 1.8658079940269303], [-1.0723662209946019, -3.6580915735177544, -1.632814753749666, -0.90754508331792572], [1.8084875698726597, -3.5821375798551989, -3.0735656954115429, -4.6306368534833684]]], [[[2.6106457117901307, 4.8445064796969337, 1.960913330311981, -3.263287320551381], [-4.9748402967369723, 4.0240054393186444, 3.1368794853996196, 3.3037202682139881], [-4.2907290089086905, -2.9123732359332157, -1.8498883241099859, 0.70581339775108187]], [[0.47222113136728794, 3.3175404153925712, -4.1590485580973757, -3.7590442260778509], [3.936768352922476, 3.1093324299232741, -2.0058900491385021, 2.1007633817438069], [3.5490048646907564, -4.0159649758207818, 3.6258432291040634, 4.1273276907005325]]], [[[-1.052267174503827, -4.364689840543754, -3.9360336931486173, -1.4835175450225977], [-1.4611255072993359, 1.1133357251379286, -0.2513726868743893, -0.018276028050577153], [-1.3787857770503287, -2.3085969384722862, -2.5296618435851248, 3.9382584085266537]], [[-3.4493005662193643, 1.4206714036461374, 2.4068575425257519, 2.1101204030556158], [-3.0147594614038553, -3.0716631930591065, -0.23661279388452439, 2.4538655210309201], [-3.6104680324761871, -2.6301357082606023, 0.94962766549029176, 0.64114360257541936]]]]),self.functionspace)        arg1=Data(numarray.array([[[[-0.45767471930061454, -3.9272674409317219, 3.1347077551511013, 3.4434165582722596], [3.8366679836940509, 2.0244239729990268, 2.1264023907726672, -3.6142433976306299], [-1.7270712058341275, 0.29499008578792996, -4.8017571425766974, 3.2939256106497972]], [[-0.34618201821149963, -2.4172694552892859, -3.8971442881709359, 1.8658079940269303], [-1.0723662209946019, -3.6580915735177544, -1.632814753749666, -0.90754508331792572], [1.8084875698726597, -3.5821375798551989, -3.0735656954115429, -4.6306368534833684]]], [[[2.6106457117901307, 4.8445064796969337, 1.960913330311981, -3.263287320551381], [-4.9748402967369723, 4.0240054393186444, 3.1368794853996196, 3.3037202682139881], [-4.2907290089086905, -2.9123732359332157, -1.8498883241099859, 0.70581339775108187]], [[0.47222113136728794, 3.3175404153925712, -4.1590485580973757, -3.7590442260778509], [3.936768352922476, 3.1093324299232741, -2.0058900491385021, 2.1007633817438069], [3.5490048646907564, -4.0159649758207818, 3.6258432291040634, 4.1273276907005325]]], [[[-1.052267174503827, -4.364689840543754, -3.9360336931486173, -1.4835175450225977], [-1.4611255072993359, 1.1133357251379286, -0.2513726868743893, -0.018276028050577153], [-1.3787857770503287, -2.3085969384722862, -2.5296618435851248, 3.9382584085266537]], [[-3.4493005662193643, 1.4206714036461374, 2.4068575425257519, 2.1101204030556158], [-3.0147594614038553, -3.0716631930591065, -0.23661279388452439, 2.4538655210309201], [-3.6104680324761871, -2.6301357082606023, 0.94962766549029176, 0.64114360257541936]]]]),self.functionspace)
# Line 4076  class Test_util_overloaded_binary_with_t Line 4076  class Test_util_overloaded_binary_with_t
4076        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
4077        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4078     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4079     def test_div_overloaded_taggedData_rank1_float_rank0(self):     def test_quotient_overloaded_taggedData_rank1_float_rank0(self):
4080        arg0=Data(numarray.array([-4.7578217123530333, 4.4315786179062311]),self.functionspace)        arg0=Data(numarray.array([-4.7578217123530333, 4.4315786179062311]),self.functionspace)
4081        arg0.setTaggedValue(1,numarray.array([-1.3831856498875386, -1.2228219493438997]))        arg0.setTaggedValue(1,numarray.array([-1.3831856498875386, -1.2228219493438997]))
4082        arg1=-1.04566150784        arg1=-1.04566150784
# Line 4087  class Test_util_overloaded_binary_with_t Line 4087  class Test_util_overloaded_binary_with_t
4087        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
4088        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4089     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4090     def test_div_overloaded_taggedData_rank1_array_rank0(self):     def test_quotient_overloaded_taggedData_rank1_array_rank0(self):
4091        arg0=Data(numarray.array([0.89679554939939443, -0.92263199926399064]),self.functionspace)        arg0=Data(numarray.array([0.89679554939939443, -0.92263199926399064]),self.functionspace)
4092        arg0.setTaggedValue(1,numarray.array([-3.2732533809677413, -1.2063353198834714]))        arg0.setTaggedValue(1,numarray.array([-3.2732533809677413, -1.2063353198834714]))
4093        arg1=numarray.array(-4.70762130446)        arg1=numarray.array(-4.70762130446)
# Line 4098  class Test_util_overloaded_binary_with_t Line 4098  class Test_util_overloaded_binary_with_t
4098        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
4099        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4100     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4101     def test_div_overloaded_taggedData_rank1_array_rank1(self):     def test_quotient_overloaded_taggedData_rank1_array_rank1(self):
4102        arg0=Data(numarray.array([4.1010553208827556, 1.0401909712110395]),self.functionspace)        arg0=Data(numarray.array([4.1010553208827556, 1.0401909712110395]),self.functionspace)
4103        arg0.setTaggedValue(1,numarray.array([2.379786423594668, 0.18274133683874005]))        arg0.setTaggedValue(1,numarray.array([2.379786423594668, 0.18274133683874005]))
4104        arg1=numarray.array([-0.11664989875909892, 4.6921845196824794])        arg1=numarray.array([-0.11664989875909892, 4.6921845196824794])
# Line 4109  class Test_util_overloaded_binary_with_t Line 4109  class Test_util_overloaded_binary_with_t
4109        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
4110        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4111     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4112     def test_div_overloaded_taggedData_rank1_constData_rank0(self):     def test_quotient_overloaded_taggedData_rank1_constData_rank0(self):
4113        arg0=Data(numarray.array([4.7051476178243341, 2.0491810770016325]),self.functionspace)        arg0=Data(numarray.array([4.7051476178243341, 2.0491810770016325]),self.functionspace)
4114        arg0.setTaggedValue(1,numarray.array([4.2671687268351928, 3.071700801556128]))        arg0.setTaggedValue(1,numarray.array([4.2671687268351928, 3.071700801556128]))
4115        arg1=Data(-4.0639770884,self.functionspace)        arg1=Data(-4.0639770884,self.functionspace)
# Line 4120  class Test_util_overloaded_binary_with_t Line 4120  class Test_util_overloaded_binary_with_t
4120        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
4121        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4122     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4123     def test_div_overloaded_taggedData_rank1_constData_rank1(self):     def test_quotient_overloaded_taggedData_rank1_constData_rank1(self):
4124        arg0=Data(numarray.array([-4.5903931628652792, -3.003311261411131]),self.functionspace)        arg0=Data(numarray.array([-4.5903931628652792, -3.003311261411131]),self.functionspace)
4125        arg0.setTaggedValue(1,numarray.array([1.7691300155565806, -3.2978689534347239]))        arg0.setTaggedValue(1,numarray.array([1.7691300155565806, -3.2978689534347239]))
4126        arg1=Data(numarray.array([-0.53634382045320006, -0.61911680385402157]),self.functionspace)        arg1=Data(numarray.array([-0.53634382045320006, -0.61911680385402157]),self.functionspace)
# Line 4131  class Test_util_overloaded_binary_with_t Line 4131  class Test_util_overloaded_binary_with_t
4131        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
4132        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4133     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4134     def test_div_overloaded_taggedData_rank1_taggedData_rank0(self):     def test_quotient_overloaded_taggedData_rank1_taggedData_rank0(self):
4135        arg0=Data(numarray.array([-4.8605831153265076, 4.5841737890307535]),self.functionspace)        arg0=Data(numarray.array([-4.8605831153265076, 4.5841737890307535]),self.functionspace)
4136        arg0.setTaggedValue(1,numarray.array([-3.5994750716987776, 4.3425793558512673]))        arg0.setTaggedValue(1,numarray.array([-3.5994750716987776, 4.3425793558512673]))
4137        arg1=Data(-4.15085940313,self.functionspace)        arg1=Data(-4.15085940313,self.functionspace)
# Line 4143  class Test_util_overloaded_binary_with_t Line 4143  class Test_util_overloaded_binary_with_t
4143        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
4144        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4145     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4146     def test_div_overloaded_taggedData_rank1_taggedData_rank1(self):     def test_quotient_overloaded_taggedData_rank1_taggedData_rank1(self):
4147        arg0=Data(numarray.array([3.3810872778838696, 1.6475730627265417]),self.functionspace)        arg0=Data(numarray.array([3.3810872778838696, 1.6475730627265417]),self.functionspace)
4148        arg0.setTaggedValue(1,numarray.array([3.3142778823486516, 0.17151178503778564]))        arg0.setTaggedValue(1,numarray.array([3.3142778823486516, 0.17151178503778564]))
4149        arg1=Data(numarray.array([3.7552739180059209, -4.1172718698479516]),self.functionspace)        arg1=Data(numarray.array([3.7552739180059209, -4.1172718698479516]),self.functionspace)
# Line 4155  class Test_util_overloaded_binary_with_t Line 4155  class Test_util_overloaded_binary_with_t
4155        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
4156        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4157     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4158     def test_div_overloaded_taggedData_rank1_expandedData_rank0(self):     def test_quotient_overloaded_taggedData_rank1_expandedData_rank0(self):
4159        arg0=Data(numarray.array([-4.2857362454502823, 4.2148426355495729]),self.functionspace)        arg0=Data(numarray.array([-4.2857362454502823, 4.2148426355495729]),self.functionspace)
4160        arg0.setTaggedValue(1,numarray.array([0.023646371870507998, -3.6177048959897773]))        arg0.setTaggedValue(1,numarray.array([0.023646371870507998, -3.6177048959897773]))
4161        arg1=Data(0.613760918735,self.functionspace)        arg1=Data(0.613760918735,self.functionspace)
# Line 4168  class Test_util_overloaded_binary_with_t Line 4168  class Test_util_overloaded_binary_with_t
4168        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
4169        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4170     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4171     def test_div_overloaded_taggedData_rank1_expandedData_rank1(self):     def test_quotient_overloaded_taggedData_rank1_expandedData_rank1(self):
4172        arg0=Data(numarray.array([4.2249033586340605, -3.2399083084192846]),self.functionspace)        arg0=Data(numarray.array([4.2249033586340605, -3.2399083084192846]),self.functionspace)
4173        arg0.setTaggedValue(1,numarray.array([-3.8341853977490823, 0.9059571177822443]))        arg0.setTaggedValue(1,numarray.array([-3.8341853977490823, 0.9059571177822443]))
4174        arg1=Data(numarray.array([-1.4019643743011292, 0.028380576969282423]),self.functionspace)        arg1=Data(numarray.array([-1.4019643743011292, 0.028380576969282423]),self.functionspace)
# Line 4181  class Test_util_overloaded_binary_with_t Line 4181  class Test_util_overloaded_binary_with_t
4181        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
4182        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4183     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4184     def test_div_overloaded_taggedData_rank2_float_rank0(self):     def test_quotient_overloaded_taggedData_rank2_float_rank0(self):
4185        arg0=Data(numarray.array([[-0.96850210242003154, 3.781502646832152, -3.8474647040746679, 3.9024026227889266, 0.87096348976100124], [4.9644659602751595, -1.0611480121333292, -0.32565561597713177, 1.0911911503774334, -3.9960652574041089], [4.9548040887202909, 3.6283218283466638, 0.7082980773072034, -3.6743829629729188, 1.0651486717127661], [2.8225234212805379, -2.0578292748745652, -1.4527402651044508, 2.1565364193238858, 3.1134283188501417]]),self.functionspace)        arg0=Data(numarray.array([[-0.96850210242003154, 3.781502646832152, -3.8474647040746679, 3.9024026227889266, 0.87096348976100124], [4.9644659602751595, -1.0611480121333292, -0.32565561597713177, 1.0911911503774334, -3.9960652574041089], [4.9548040887202909, 3.6283218283466638, 0.7082980773072034, -3.6743829629729188, 1.0651486717127661], [2.8225234212805379, -2.0578292748745652, -1.4527402651044508, 2.1565364193238858, 3.1134283188501417]]),self.functionspace)
4186        arg0.setTaggedValue(1,numarray.array([[-2.2802095260764488, 2.3138487364639175, 1.2657856865812462, -3.261317945964719, -2.7782112252104394], [-1.2678958290996745, -4.6285007637749951, -3.4693072567737659, -4.602246020118419, 0.83422529431232384], [-1.951583116012392, 3.4603739741508583, 1.5464922685103275, 0.30933401000278415, 0.054488824811835812], [-0.17346852088860576, -4.1460553496565486, -0.30820225234651666, 2.8683805176537858, 1.722354401627193]]))        arg0.setTaggedValue(1,numarray.array([[-2.2802095260764488, 2.3138487364639175, 1.2657856865812462, -3.261317945964719, -2.7782112252104394], [-1.2678958290996745, -4.6285007637749951, -3.4693072567737659, -4.602246020118419, 0.83422529431232384], [-1.951583116012392, 3.4603739741508583, 1.5464922685103275, 0.30933401000278415, 0.054488824811835812], [-0.17346852088860576, -4.1460553496565486, -0.30820225234651666, 2.8683805176537858, 1.722354401627193]]))
4187        arg1=-1.69413983905        arg1=-1.69413983905
# Line 4192  class Test_util_overloaded_binary_with_t Line 4192  class Test_util_overloaded_binary_with_t
4192        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
4193        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4194     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4195     def test_div_overloaded_taggedData_rank2_array_rank0(self):     def test_quotient_overloaded_taggedData_rank2_array_rank0(self):
4196        arg0=Data(numarray.array([[-0.86877202576759593, 4.6823850407762482, 4.7832512368068549, -1.0771977118132048, -1.0808582530891275], [-3.1170942988902772, 0.13425662102394131, -2.8111787049557213, -2.0630331356687726, -2.5369244726618678], [-1.9885758414216106, 1.9077986902968433, 2.8433828110992838, 1.2159842141051502, -3.4010419657412969], [0.54337993094706682, -0.17058354824602073, 0.80717350447632796, -4.8313886478040446, 0.23232013809738472]]),self.functionspace)        arg0=Data(numarray.array([[-0.86877202576759593, 4.6823850407762482, 4.7832512368068549, -1.0771977118132048, -1.0808582530891275], [-3.1170942988902772, 0.13425662102394131, -2.8111787049557213, -2.0630331356687726, -2.5369244726618678], [-1.9885758414216106, 1.9077986902968433, 2.8433828110992838, 1.2159842141051502, -3.4010419657412969], [0.54337993094706682, -0.17058354824602073, 0.80717350447632796, -4.8313886478040446, 0.23232013809738472]]),self.functionspace)
4197        arg0.setTaggedValue(1,numarray.array([[-3.9794749013168076, 4.1645831365517552, 0.53106033956518139, 0.27710892337327664, -0.3967233056376287], [4.6133980599895335, -4.0057616541961369, -2.8561369204110654, -3.7411130207334531, -1.8897238945063108], [0.65935489144387827, -0.14470695221244423, 2.6240280157987907, 3.2626845236366382, 1.4048525894803641], [-0.74345394006123655, 3.9363504382427177, 0.26476519664200637, -1.9513354349777678, 4.6815015188103928]]))        arg0.setTaggedValue(1,numarray.array([[-3.9794749013168076, 4.1645831365517552, 0.53106033956518139, 0.27710892337327664, -0.3967233056376287], [4.6133980599895335, -4.0057616541961369, -2.8561369204110654, -3.7411130207334531, -1.8897238945063108], [0.65935489144387827, -0.14470695221244423, 2.6240280157987907, 3.2626845236366382, 1.4048525894803641], [-0.74345394006123655, 3.9363504382427177, 0.26476519664200637, -1.9513354349777678, 4.6815015188103928]]))
4198        arg1=numarray.array(4.43852348684)        arg1=numarray.array(4.43852348684)
# Line 4203  class Test_util_overloaded_binary_with_t Line 4203  class Test_util_overloaded_binary_with_t
4203        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
4204        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4205     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4206     def test_div_overloaded_taggedData_rank2_array_rank2(self):     def test_quotient_overloaded_taggedData_rank2_array_rank2(self):
4207        arg0=Data(numarray.array([[-4.680459229495586, 3.5086992616684824, 4.6054145981410599, -4.9227853438784042, 0.9463344268417595], [-2.7570556308569492, 2.2361380984984596, 1.1723470805649594, 2.7082441248431257, 0.57328838737897403], [0.21491402272158044, 0.037011524317512645, -4.5982653755979355, 2.185432758297515, 2.1727815800981967], [4.6367277133885469, 0.81357627120924736, 2.3393905269164117, -1.9195861881296317, -1.2993918833900828]]),self.functionspace)        arg0=Data(numarray.array([[-4.680459229495586, 3.5086992616684824, 4.6054145981410599, -4.9227853438784042, 0.9463344268417595], [-2.7570556308569492, 2.2361380984984596, 1.1723470805649594, 2.7082441248431257, 0.57328838737897403], [0.21491402272158044, 0.037011524317512645, -4.5982653755979355, 2.185432758297515, 2.1727815800981967], [4.6367277133885469, 0.81357627120924736, 2.3393905269164117, -1.9195861881296317, -1.2993918833900828]]),self.functionspace)
4208        arg0.setTaggedValue(1,numarray.array([[2.2483877032216961, 4.5151550356187045, -4.565516548199553, -4.3254139967345226, -1.917195561676456], [-2.9924210601110302, 1.2187078210552027, -3.5971200466067152, -2.2860320264712133, -0.64613124280667833], [-2.9714970771789693, -4.3279367179402488, -2.9460945717188904, 0.81628151856682152, -3.0793646816279563], [1.469245350777836, 1.7181297074566437, 0.11319749001826018, 3.8930383232993826, -0.61431201799334012]]))        arg0.setTaggedValue(1,numarray.array([[2.2483877032216961, 4.5151550356187045, -4.565516548199553, -4.3254139967345226, -1.917195561676456], [-2.9924210601110302, 1.2187078210552027, -3.5971200466067152, -2.2860320264712133, -0.64613124280667833], [-2.9714970771789693, -4.3279367179402488, -2.9460945717188904, 0.81628151856682152, -3.0793646816279563], [1.469245350777836, 1.7181297074566437, 0.11319749001826018, 3.8930383232993826, -0.61431201799334012]]))
4209        arg1=numarray.array([[-4.6696661363926042, -3.9108922104562382, -0.37285733404263244, -3.0392948051772803, -3.2356120160727206], [1.4335647808583669, 4.6112495784872038, 3.7005360034262438, 3.7016208542585183, -3.1963114986615251], [-2.0804478907833888, -3.1947497976993553, 0.9816102698815623, -3.3924746575248657, -1.768109850697245], [-2.8522107944728337, -4.7808064650252167, -1.4065903050885185, -3.1636750612490494, 3.3926042149914242]])        arg1=numarray.array([[-4.6696661363926042, -3.9108922104562382, -0.37285733404263244, -3.0392948051772803, -3.2356120160727206], [1.4335647808583669, 4.6112495784872038, 3.7005360034262438, 3.7016208542585183, -3.1963114986615251], [-2.0804478907833888, -3.1947497976993553, 0.9816102698815623, -3.3924746575248657, -1.768109850697245], [-2.8522107944728337, -4.7808064650252167, -1.4065903050885185, -3.1636750612490494, 3.3926042149914242]])
# Line 4214  class Test_util_overloaded_binary_with_t Line 4214  class Test_util_overloaded_binary_with_t
4214        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
4215        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4216     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4217     def test_div_overloaded_taggedData_rank2_constData_rank0(self):     def test_quotient_overloaded_taggedData_rank2_constData_rank0(self):
4218        arg0=Data(numarray.array([[4.7381624111313041, 0.13568298849501659, 2.2397249921395712, -1.8792998063470878, -0.43823350482581347], [-4.353430451352077, 1.7258530152098341, -2.3554071557072165, -0.5100589575859038, -2.4694484646673809], [-2.887004642158717, 4.1989813619698637, -1.8779944209560053, 3.396118464014199, 3.5417248680053888], [-1.7259852752446916, 3.8767394617580884, 3.3796412275282908, 0.97763229909163663, 0.53392773067385946]]),self.functionspace)        arg0=Data(numarray.array([[4.7381624111313041, 0.13568298849501659, 2.2397249921395712, -1.8792998063470878, -0.43823350482581347], [-4.353430451352077, 1.7258530152098341, -2.3554071557072165, -0.5100589575859038, -2.4694484646673809], [-2.887004642158717, 4.1989813619698637, -1.8779944209560053, 3.396118464014199, 3.5417248680053888], [-1.7259852752446916, 3.8767394617580884, 3.3796412275282908, 0.97763229909163663, 0.53392773067385946]]),self.functionspace)
4219        arg0.setTaggedValue(1,numarray.array([[-0.47143531055055288, -0.81936402795983554, 1.3964568028269673, 4.2069824505429114, -4.5678782034867087], [3.3208206022065649, 3.6987565284183059, -2.1905297090835063, 4.3442031944294133, -2.3278688764524782], [3.1005484659046338, -1.100965344121497, 2.4052976262093644, -3.1804480145014202, -3.4886744535858227], [-1.2459873003814081, -3.6650774206041192, 2.9700472066872052, -0.93195629669241331, 4.933632227260194]]))        arg0.setTaggedValue(1,numarray.array([[-0.47143531055055288, -0.81936402795983554, 1.3964568028269673, 4.2069824505429114, -4.5678782034867087], [3.3208206022065649, 3.6987565284183059, -2.1905297090835063, 4.3442031944294133, -2.3278688764524782], [3.1005484659046338, -1.100965344121497, 2.4052976262093644, -3.1804480145014202, -3.4886744535858227], [-1.2459873003814081, -3.6650774206041192, 2.9700472066872052, -0.93195629669241331, 4.933632227260194]]))
4220        arg1=Data(1.48163591676,self.functionspace)        arg1=Data(1.48163591676,self.functionspace)
# Line 4225  class Test_util_overloaded_binary_with_t Line 4225  class Test_util_overloaded_binary_with_t
4225        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
4226        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4227     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4228     def test_div_overloaded_taggedData_rank2_constData_rank2(self):     def test_quotient_overloaded_taggedData_rank2_constData_rank2(self):
4229        arg0=Data(numarray.array([[4.0196862927330308, 1.4209060338696924, -1.5305585309848913, -1.7585074454525538, -3.4282684625181759], [2.7380810498806945, 0.60648868744311102, -0.51957688708537297, -3.4114805210616828, 1.7958523837800398], [2.0731973753800057, -1.8654000051692323, -3.3445384034857986, -4.8188145073710009, 2.9328119444793295], [-0.39034114064433112, 0.78577501092795732, -4.2350204151090765, -0.54792199732024116, 1.0129500725329006]]),self.functionspace)        arg0=Data(numarray.array([[4.0196862927330308, 1.4209060338696924, -1.5305585309848913, -1.7585074454525538, -3.4282684625181759], [2.7380810498806945, 0.60648868744311102, -0.51957688708537297, -3.4114805210616828, 1.7958523837800398], [2.0731973753800057, -1.8654000051692323, -3.3445384034857986, -4.8188145073710009, 2.9328119444793295], [-0.39034114064433112, 0.78577501092795732, -4.2350204151090765, -0.54792199732024116, 1.0129500725329006]]),self.functionspace)
4230        arg0.setTaggedValue(1,numarray.array([[1.6013253736167998, 1.8143178441846679, -0.46185749664512699, -0.80220040035261952, 2.3326568036808712], [0.20813716161286333, -3.4650664162598166, 3.3953284219720832, -4.5848652921452393, -4.9757462977595379], [-3.0285603274404718, -0.22786768299635529, -3.1354740154472163, 2.0912987935881961, 2.0598586587375411], [0.42280850685455462, 1.6609112120697587, 0.81840709417158841, 0.48006393827907345, -1.4103724446340147]]))        arg0.setTaggedValue(1,numarray.array([[1.6013253736167998, 1.8143178441846679, -0.46185749664512699, -0.80220040035261952, 2.3326568036808712], [0.20813716161286333, -3.4650664162598166, 3.3953284219720832, -4.5848652921452393, -4.9757462977595379], [-3.0285603274404718, -0.22786768299635529, -3.1354740154472163, 2.0912987935881961, 2.0598586587375411], [0.42280850685455462, 1.6609112120697587, 0.81840709417158841, 0.48006393827907345, -1.4103724446340147]]))
4231        arg1=Data(numarray.array([[3.9613372629979988, -1.0130494995838593, 3.806524444790842, 2.6940884510355287, 0.11281037621404444], [4.4375555287127124, 0.34424559039139435, -2.4196055837978623, -3.0577975572331226, -2.2880130808743449], [2.6485890816482538, -1.5790284323110959, -3.9124982540491526, -4.2849333360619957, -0.63654083845953924], [-0.37913667938615614, 0.084526838971296314, 4.7637305208526115, 0.37537921948770858, -1.3508330614532382]]),self.functionspace)        arg1=Data(numarray.array([[3.9613372629979988, -1.0130494995838593, 3.806524444790842, 2.6940884510355287, 0.11281037621404444], [4.4375555287127124, 0.34424559039139435, -2.4196055837978623, -3.0577975572331226, -2.2880130808743449], [2.6485890816482538, -1.5790284323110959, -3.9124982540491526, -4.2849333360619957, -0.63654083845953924], [-0.37913667938615614, 0.084526838971296314, 4.7637305208526115, 0.37537921948770858, -1.3508330614532382]]),self.functionspace)
# Line 4236  class Test_util_overloaded_binary_with_t Line 4236  class Test_util_overloaded_binary_with_t
4236        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
4237        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4238     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4239     def test_div_overloaded_taggedData_rank2_taggedData_rank0(self):     def test_quotient_overloaded_taggedData_rank2_taggedData_rank0(self):
4240        arg0=Data(numarray.array([[3.0872704665448207, 0.25094350734692217, 3.2558142937884647, -3.8129216643769972, -3.4777575291065412], [-3.2536230990178927, 1.8675633618786271, -3.9047844920612071, -0.068669303729897102, 0.91167583791798545], [-4.9061726237392564, 3.5832206948059415, 0.42412435403912507, 2.7976596863397782, 1.3060804305081568], [4.3484113378533511, -2.7883532167938152, 3.102221189100911, 2.4592776783855177, -2.9337653740576775]]),self.functionspace)        arg0=Data(numarray.array([[3.0872704665448207, 0.25094350734692217, 3.2558142937884647, -3.8129216643769972, -3.4777575291065412], [-3.2536230990178927, 1.8675633618786271, -3.9047844920612071, -0.068669303729897102, 0.91167583791798545], [-4.9061726237392564, 3.5832206948059415, 0.42412435403912507, 2.7976596863397782, 1.3060804305081568], [4.3484113378533511, -2.7883532167938152, 3.102221189100911, 2.4592776783855177, -2.9337653740576775]]),self.functionspace)
4241        arg0.setTaggedValue(1,numarray.array([[1.9314475306988435, 4.7205913111124769, -1.4317861015641311, -2.6201872377971966, -0.16074478139048143], [3.3667408815099797, -4.2669437203974949, -4.2650160670382711, -2.3113276748995402, -1.6056856631732752], [-3.9884394656548383, -2.4020796896935481, 3.6441411399237769, -1.7360849791093069, -1.8301188462570939], [-3.6608237610639227, -0.72926946864759934, 2.7947911367053528, 2.7704563369696427, -4.8203658507379714]]))        arg0.setTaggedValue(1,numarray.array([[1.9314475306988435, 4.7205913111124769, -1.4317861015641311, -2.6201872377971966, -0.16074478139048143], [3.3667408815099797, -4.2669437203974949, -4.2650160670382711, -2.3113276748995402, -1.6056856631732752], [-3.9884394656548383, -2.4020796896935481, 3.6441411399237769, -1.7360849791093069, -1.8301188462570939], [-3.6608237610639227, -0.72926946864759934, 2.7947911367053528, 2.7704563369696427, -4.8203658507379714]]))
4242        arg1=Data(1.7024078282,self.functionspace)        arg1=Data(1.7024078282,self.functionspace)
# Line 4248  class Test_util_overloaded_binary_with_t Line 4248  class Test_util_overloaded_binary_with_t
4248        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
4249        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4250     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4251     def test_div_overloaded_taggedData_rank2_taggedData_rank2(self):     def test_quotient_overloaded_taggedData_rank2_taggedData_rank2(self):
4252        arg0=Data(numarray.array([[2.4064861557228721, -0.40277278166582242, 2.6159521004565232, 2.9471342618430789, 1.6280431255815575], [2.954704259644295, -2.5362618356540878, 3.5857339613590451, 2.0923414973267498, 3.1885141632534548], [1.5356281187811422, -4.1291945486851054, 3.4857098292377913, 1.1164616625203774, 2.5847916522030765], [2.4964947423872141, -3.2897710443558359, -3.6539907055062928, 4.1467813982665653, -0.74216384017212622]]),self.functionspace)        arg0=Data(numarray.array([[2.4064861557228721, -0.40277278166582242, 2.6159521004565232, 2.9471342618430789, 1.6280431255815575], [2.954704259644295, -2.5362618356540878, 3.5857339613590451, 2.0923414973267498, 3.1885141632534548], [1.5356281187811422, -4.1291945486851054, 3.4857098292377913, 1.1164616625203774, 2.5847916522030765], [2.4964947423872141, -3.2897710443558359, -3.6539907055062928, 4.1467813982665653, -0.74216384017212622]]),self.functionspace)
4253        arg0.setTaggedValue(1,numarray.array([[-0.72050458576253718, -1.6386842961823911, -4.8461160649959325, -4.7795278727167902, -2.7350903135228313], [-1.7436704562597463, 1.9375119504166225, 1.9755999341734167, -2.3059172583383392, 1.6515476291587596], [2.7987441852884354, -4.8935794930071284, 2.5505003522648657, -3.7575355131236288, 2.5396394514280471], [-0.12534326160963705, -2.0015811379246582, 2.8487301763888917, -4.9334606356505217, 3.3902777014695786]]))        arg0.setTaggedValue(1,numarray.array([[-0.72050458576253718, -1.6386842961823911, -4.8461160649959325, -4.7795278727167902, -2.7350903135228313], [-1.7436704562597463, 1.9375119504166225, 1.9755999341734167, -2.3059172583383392, 1.6515476291587596], [2.7987441852884354, -4.8935794930071284, 2.5505003522648657, -3.7575355131236288, 2.5396394514280471], [-0.12534326160963705, -2.0015811379246582, 2.8487301763888917, -4.9334606356505217, 3.3902777014695786]]))
4254        arg1=Data(numarray.array([[-2.8581403876527647, 4.9856764402670724, -1.0276430219302601, -1.8049385499841994, -0.0093728544684665849], [4.1223651673324806, 4.7574151662523185, -4.9530642582338791, -3.1222523011144543, -1.422887536110804], [1.1073765696299045, 0.79132294240336432, 4.4758137740169719, 4.7707916064039129, 0.26741900233408522], [4.7998393287425909, 2.3539145307646621, 0.89293002812367561, 0.11014489755241286, -4.218320098100623]]),self.functionspace)        arg1=Data(numarray.array([[-2.8581403876527647, 4.9856764402670724, -1.0276430219302601, -1.8049385499841994, -0.0093728544684665849], [4.1223651673324806, 4.7574151662523185, -4.9530642582338791, -3.1222523011144543, -1.422887536110804], [1.1073765696299045, 0.79132294240336432, 4.4758137740169719, 4.7707916064039129, 0.26741900233408522], [4.7998393287425909, 2.3539145307646621, 0.89293002812367561, 0.11014489755241286, -4.218320098100623]]),self.functionspace)
# Line 4260  class Test_util_overloaded_binary_with_t Line 4260  class Test_util_overloaded_binary_with_t
4260        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
4261        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4262     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4263     def test_div_overloaded_taggedData_rank2_expandedData_rank0(self):     def test_quotient_overloaded_taggedData_rank2_expandedData_rank0(self):
4264        arg0=Data(numarray.array([[3.8247338339088941, 3.5195866844021655, -2.2356823955320229, 2.5821104539400785, -0.2798309883044281], [3.3095359660221462, -3.8503723262915903, 4.9239382170314467, 2.958881891559737, -3.3909813984873169], [1.4561827514917089, -0.31884689788780118, -1.7841064652739522, 1.0343446965407024, -2.5682127979261429], [3.7099598055226064, -1.3279777306190321, 2.2359625028251937, 1.4235694283169495, -2.5991349801713168]]),self.functionspace)        arg0=Data(numarray.array([[3.8247338339088941, 3.5195866844021655, -2.2356823955320229, 2.5821104539400785, -0.2798309883044281], [3.3095359660221462, -3.8503723262915903, 4.9239382170314467, 2.958881891559737, -3.3909813984873169], [1.4561827514917089, -0.31884689788780118, -1.7841064652739522, 1.0343446965407024, -2.5682127979261429], [3.7099598055226064, -1.3279777306190321, 2.2359625028251937, 1.4235694283169495, -2.5991349801713168]]),self.functionspace)
4265        arg0.setTaggedValue(1,numarray.array([[1.9976083233190423, 1.77411176859043, -0.66958530962942397, -0.2346316355441207, 1.1822866847811406], [-1.3145107956408033, -0.17705332759028991, -1.5071254289121807, 3.079250751713996, 2.0687721544582089], [-3.9787206963755639, 3.8578058296903084, -2.4099777241875788, -4.1692658188020442, 0.16614901863204068], [1.1585839421606927, 3.1860861105440446, 3.4471996975659351, -4.1085206500929718, -3.5737448569811416]]))        arg0.setTaggedValue(1,numarray.array([[1.9976083233190423, 1.77411176859043, -0.66958530962942397, -0.2346316355441207, 1.1822866847811406], [-1.3145107956408033, -0.17705332759028991, -1.5071254289121807, 3.079250751713996, 2.0687721544582089], [-3.9787206963755639, 3.8578058296903084, -2.4099777241875788, -4.1692658188020442, 0.16614901863204068], [1.1585839421606927, 3.1860861105440446, 3.4471996975659351, -4.1085206500929718, -3.5737448569811416]]))
4266        arg1=Data(1.34382909793,self.functionspace)        arg1=Data(1.34382909793,self.functionspace)
# Line 4273  class Test_util_overloaded_binary_with_t Line 4273  class Test_util_overloaded_binary_with_t
4273        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
4274        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4275     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4276     def test_div_overloaded_taggedData_rank2_expandedData_rank2(self):     def test_quotient_overloaded_taggedData_rank2_expandedData_rank2(self):
4277        arg0=Data(numarray.array([[-0.72379850533849677, 2.1985965363820723, -2.0490539052619896, -1.132863323393356, 3.4030895915967978], [-1.8352607794497744, 3.339365948647032, -4.9660039617174494, -2.3657772620579696, -3.6840685023954558], [-4.7155850171876477, -2.6517791836980309, -2.7733482225934147, 0.052710587056693292, -2.6072597230988315], [1.1445838265746762, -0.54682033015869624, -0.77098224078111066, -4.297879142495173, 0.83839611390418334]]),self.functionspace)        arg0=Data(numarray.array([[-0.72379850533849677, 2.1985965363820723, -2.0490539052619896, -1.132863323393356, 3.4030895915967978], [-1.8352607794497744, 3.339365948647032, -4.9660039617174494, -2.3657772620579696, -3.6840685023954558], [-4.7155850171876477, -2.6517791836980309, -2.7733482225934147, 0.052710587056693292, -2.6072597230988315], [1.1445838265746762, -0.54682033015869624, -0.77098224078111066, -4.297879142495173, 0.83839611390418334]]),self.functionspace)
4278        arg0.setTaggedValue(1,numarray.array([[-0.91879631114516513, 1.5547258432163744, 2.0020062919618535, 4.3329468648295322, -2.8366746618357599], [-0.075337422541112531, -1.1003772743824292, 1.7461448735470118, 3.5971232193420075, 3.7917368536389962], [-3.4286841437609095, 1.2461499012569561, -4.6067893474342583, -3.6168455895106257, -1.4791331362657667], [0.75512843498482063, -0.58725328527409104, 1.8301496780830631, 0.23458122719692831, 2.2864940443739501]]))        arg0.setTaggedValue(1,numarray.array([[-0.91879631114516513, 1.5547258432163744, 2.0020062919618535, 4.3329468648295322, -2.8366746618357599], [-0.075337422541112531, -1.1003772743824292, 1.7461448735470118, 3.5971232193420075, 3.7917368536389962], [-3.4286841437609095, 1.2461499012569561, -4.6067893474342583, -3.6168455895106257, -1.4791331362657667], [0.75512843498482063, -0.58725328527409104, 1.8301496780830631, 0.23458122719692831, 2.2864940443739501]]))
4279        arg1=Data(numarray.array([[4.4903474190252659, -3.8252180999631169, -2.570982001117649, -0.91837537411493031, -3.8008627922283322], [-4.7566309778707518, 0.93828810241630389, -3.8789305270519603, -0.62436129358632098, 4.5244112697189216], [-3.6645536114516872, -0.69212607710501928, 2.5804643456851437, 4.573815727030988, 2.119832741116352], [-1.0393958361106059, 2.8677653047517371, 1.2242261114471775, -3.9095841196945749, 3.9297385449386049]]),self.functionspace)        arg1=Data(numarray.array([[4.4903474190252659, -3.8252180999631169, -2.570982001117649, -0.91837537411493031, -3.8008627922283322], [-4.7566309778707518, 0.93828810241630389, -3.8789305270519603, -0.62436129358632098, 4.5244112697189216], [-3.6645536114516872, -0.69212607710501928, 2.5804643456851437, 4.573815727030988, 2.119832741116352], [-1.0393958361106059, 2.8677653047517371, 1.2242261114471775, -3.9095841196945749, 3.9297385449386049]]),self.functionspace)
# Line 4286  class Test_util_overloaded_binary_with_t Line 4286  class Test_util_overloaded_binary_with_t
4286        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
4287        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4288     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4289     def test_div_overloaded_taggedData_rank3_float_rank0(self):     def test_quotient_overloaded_taggedData_rank3_float_rank0(self):
4290        arg0=Data(numarray.array([[[2.5532378612591069, -0.30175198476828236], [3.1052177451838183, -3.8159778568198401]], [[2.3859544492752427, -0.86551304919249805], [-3.3577660783187504, 0.750826040637806]], [[-0.89021077588322139, -1.9297780910610474], [-4.5632905486930007, -0.08424212803408615]], [[-2.124632207704372, -2.3108633048343297], [-1.6592361507868736, 3.8069797244456023]], [[-1.0380743531161309, -1.622627866829347], [-4.102445360357061, -3.4644096735936225]], [[1.2182277899141223, -0.3686880395016745], [-2.3786114516997325, -0.54497661789960539]]]),self.functionspace)        arg0=Data(numarray.array([[[2.5532378612591069, -0.30175198476828236], [3.1052177451838183, -3.8159778568198401]], [[2.3859544492752427, -0.86551304919249805], [-3.3577660783187504, 0.750826040637806]], [[-0.89021077588322139, -1.9297780910610474], [-4.5632905486930007, -0.08424212803408615]], [[-2.124632207704372, -2.3108633048343297], [-1.6592361507868736, 3.8069797244456023]], [[-1.0380743531161309, -1.622627866829347], [-4.102445360357061, -3.4644096735936225]], [[1.2182277899141223, -0.3686880395016745], [-2.3786114516997325, -0.54497661789960539]]]),self.functionspace)
4291        arg0.setTaggedValue(1,numarray.array([[[-4.311377598697125, 0.39516878910976949], [-2.2842079644753124, 4.6699639910049076]], [[-4.088649031689938, -1.5639647788399702], [-4.6365648337690359, -4.5493013582657529]], [[3.447724442580542, 2.1341662814580689], [1.5351070387608008, -0.042172004862186085]], [[-0.56832205644354161, -1.1567919454623468], [4.1377467317326566, 3.6529317186117858]], [[3.404127724063752, -0.54721690399906642], [-0.074718820610154779, 3.5198805824026262]], [[-2.2600444887043247, -3.782656619427438], [3.563554564166866, -4.0676617506032153]]]))        arg0.setTaggedValue(1,numarray.array([[[-4.311377598697125, 0.39516878910976949], [-2.2842079644753124, 4.6699639910049076]], [[-4.088649031689938, -1.5639647788399702], [-4.6365648337690359, -4.5493013582657529]], [[3.447724442580542, 2.1341662814580689], [1.5351070387608008, -0.042172004862186085]], [[-0.56832205644354161, -1.1567919454623468], [4.1377467317326566, 3.6529317186117858]], [[3.404127724063752, -0.54721690399906642], [-0.074718820610154779, 3.5198805824026262]], [[-2.2600444887043247, -3.782656619427438], [3.563554564166866, -4.0676617506032153]]]))
4292        arg1=1.84941062748        arg1=1.84941062748
# Line 4297  class Test_util_overloaded_binary_with_t Line 4297  class Test_util_overloaded_binary_with_t
4297        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
4298        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4299     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4300     def test_div_overloaded_taggedData_rank3_array_rank0(self):     def test_quotient_overloaded_taggedData_rank3_array_rank0(self):
4301        arg0=Data(numarray.array([[[-3.6536378486115284, 3.3242827856699755], [-3.6856663252397359, 0.31811672647400435]], [[-1.7135577199646521, 2.7699818797069931], [0.0034531890434887913, -3.8417893604767004]], [[2.4236958082344087, 4.7340397156639362], [0.86099161749359432, 1.9072096804891281]], [[-3.5411952799652857, 1.6212989856936648], [-4.1086611522453707, 1.7245165367487916]], [[1.7552582940737258, -1.5545033525579943], [-0.84939615557367709, 1.9686126962740875]], [[-3.3869411086458543, 4.1411434866435837], [-1.0633827781924876, 4.7828489020138303]]]),self.functionspace)        arg0=Data(numarray.array([[[-3.6536378486115284, 3.3242827856699755], [-3.6856663252397359, 0.31811672647400435]], [[-1.7135577199646521, 2.7699818797069931], [0.0034531890434887913, -3.8417893604767004]], [[2.4236958082344087, 4.7340397156639362], [0.86099161749359432, 1.9072096804891281]], [[-3.5411952799652857, 1.6212989856936648], [-4.1086611522453707, 1.7245165367487916]], [[1.7552582940737258, -1.5545033525579943], [-0.84939615557367709, 1.9686126962740875]], [[-3.3869411086458543, 4.1411434866435837], [-1.0633827781924876, 4.7828489020138303]]]),self.functionspace)
4302        arg0.setTaggedValue(1,numarray.array([[[-1.8902282079452917, 4.7680188747156951], [-2.5816121333893491, 3.3233188050723292]], [[3.2143470992634988, 3.5715412154591295], [-0.26348341062075242, -0.42857596953714072]], [[-1.8909276243688558, 0.417283150709018], [-2.7873584879630622, -0.2065878422652192]], [[-2.2209229242376329, -0.3244552610034841], [1.9625268342609514, 4.8990543386093073]], [[0.17603649424332168, -4.002103439248053], [-4.2192898047752134, -0.16291931448901487]], [[-2.8550343817953836, 1.1162966601597404], [3.5906990394751421, -0.14321610771094306]]]))        arg0.setTaggedValue(1,numarray.array([[[-1.8902282079452917, 4.7680188747156951], [-2.5816121333893491, 3.3233188050723292]], [[3.2143470992634988, 3.5715412154591295], [-0.26348341062075242, -0.42857596953714072]], [[-1.8909276243688558, 0.417283150709018], [-2.7873584879630622, -0.2065878422652192]], [[-2.2209229242376329, -0.3244552610034841], [1.9625268342609514, 4.8990543386093073]], [[0.17603649424332168, -4.002103439248053], [-4.2192898047752134, -0.16291931448901487]], [[-2.8550343817953836, 1.1162966601597404], [3.5906990394751421, -0.14321610771094306]]]))
4303        arg1=numarray.array(0.168140709001)        arg1=numarray.array(0.168140709001)
# Line 4308  class Test_util_overloaded_binary_with_t Line 4308  class Test_util_overloaded_binary_with_t
4308        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
4309        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4310     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4311     def test_div_overloaded_taggedData_rank3_array_rank3(self):     def test_quotient_overloaded_taggedData_rank3_array_rank3(self):
4312        arg0=Data(numarray.array([[[-2.1441425798937166, 4.0784007312797108], [0.33256583727128941, -1.254823433287835]], [[1.2219642026211801, -1.5429443361926687], [-2.8787665435464325, 2.389528765815788]], [[-0.5878305704692135, 4.2375674369847456], [-0.0036826456830718612, -4.3701543776847984]], [[0.9150478377139688, 3.7038018949999127], [-4.4760431758714692, 4.1251973141960132]], [[3.4172067236820425, 3.3502562706843726], [0.55329357864442308, 4.4935280618624809]], [[-1.9920859306257608, -3.7394130471113662], [2.0901189485555749, -0.07336904421024748]]]),self.functionspace)        arg0=Data(numarray.array([[[-2.1441425798937166, 4.0784007312797108], [0.33256583727128941, -1.254823433287835]], [[1.2219642026211801, -1.5429443361926687], [-2.8787665435464325, 2.389528765815788]], [[-0.5878305704692135, 4.2375674369847456], [-0.0036826456830718612, -4.3701543776847984]], [[0.9150478377139688, 3.7038018949999127], [-4.4760431758714692, 4.1251973141960132]], [[3.4172067236820425, 3.3502562706843726], [0.55329357864442308, 4.4935280618624809]], [[-1.9920859306257608, -3.7394130471113662], [2.0901189485555749, -0.07336904421024748]]]),self.functionspace)
4313        arg0.setTaggedValue(1,numarray.array([[[-4.4909616298009123, -3.7595204685788977], [-3.2802855538462361, 3.4717112214745978]], [[-0.2294650633573454, -3.4333177479852441], [1.1682057930790277, -3.3327131693442613]], [[-3.3168686117127311, -4.5755331760127396], [-1.4375744354183362, -4.1932692342653173]], [[3.9056870958317145, 1.0113330612044731], [3.4345902167882674, 3.1756522449199771]], [[-2.4932068121441153, 3.9139214299710599], [0.27264117187332904, -1.5402598751422536]], [[4.1702802298637192, -3.2109505159949228], [-4.4230809873541634, -0.6157800144982879]]]))        arg0.setTaggedValue(1,numarray.array([[[-4.4909616298009123, -3.7595204685788977], [-3.2802855538462361, 3.4717112214745978]], [[-0.2294650633573454, -3.4333177479852441], [1.1682057930790277, -3.3327131693442613]], [[-3.3168686117127311, -4.5755331760127396], [-1.4375744354183362, -4.1932692342653173]], [[3.9056870958317145, 1.0113330612044731], [3.4345902167882674, 3.1756522449199771]], [[-2.4932068121441153, 3.9139214299710599], [0.27264117187332904, -1.5402598751422536]], [[4.1702802298637192, -3.2109505159949228], [-4.4230809873541634, -0.6157800144982879]]]))
4314        arg1=numarray.array([[[-3.3783542916377671, -1.6466380848798066], [0.55261959271472705, 1.0852988729279058]], [[2.3627234033823576, -0.77139983056033579], [4.1726031853017691, -2.4664339071671879]], [[3.6424248081846393, 1.3591855563166169], [-1.3551971848985489, 2.2157114629223624]], [[-4.2807467426620063, 3.8907724093294309], [-1.2343405946579109, -0.29843511241130471]], [[-3.7883809083234832, -1.7126967010228187], [0.80402711335573684, 2.824333012502116]], [[-0.34747741563332735, 2.6895934485282211], [0.016940788367399762, 1.7422335044570065]]])        arg1=numarray.array([[[-3.3783542916377671, -1.6466380848798066], [0.55261959271472705, 1.0852988729279058]], [[2.3627234033823576, -0.77139983056033579], [4.1726031853017691, -2.4664339071671879]], [[3.6424248081846393, 1.3591855563166169], [-1.3551971848985489, 2.2157114629223624]], [[-4.2807467426620063, 3.8907724093294309], [-1.2343405946579109, -0.29843511241130471]], [[-3.7883809083234832, -1.7126967010228187], [0.80402711335573684, 2.824333012502116]], [[-0.34747741563332735, 2.6895934485282211], [0.016940788367399762, 1.7422335044570065]]])
# Line 4319  class Test_util_overloaded_binary_with_t Line 4319  class Test_util_overloaded_binary_with_t
4319        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
4320        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4321     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4322     def test_div_overloaded_taggedData_rank3_constData_rank0(self):     def test_quotient_overloaded_taggedData_rank3_constData_rank0(self):
4323        arg0=Data(numarray.array([[[2.7656170567218492, -0.58204174852103385], [-3.1102954656909745, -1.5839816458631448]], [[1.4684679070607842, 1.9077953082218011], [4.3121062310874851, 0.22354741075810569]], [[-1.8363892420075487, 4.3765203852071526], [-1.4197616931049151, -3.7492133477886669]], [[0.12473787059878561, 0.46487131968311424], [-4.7333063782646043, -4.0576942373423872]], [[2.0864833177022586, 4.924546519610292], [-3.4476573197345708, -0.98300564687094472]], [[-2.6480282805230604, -2.487453010423236], [1.3351550194088961, 4.486143181561447]]]),self.functionspace)        arg0=Data(numarray.array([[[2.7656170567218492, -0.58204174852103385], [-3.1102954656909745, -1.5839816458631448]], [[1.4684679070607842, 1.9077953082218011], [4.3121062310874851, 0.22354741075810569]], [[-1.8363892420075487, 4.3765203852071526], [-1.4197616931049151, -3.7492133477886669]], [[0.12473787059878561, 0.46487131968311424], [-4.7333063782646043, -4.0576942373423872]], [[2.0864833177022586, 4.924546519610292], [-3.4476573197345708, -0.98300564687094472]], [[-2.6480282805230604, -2.487453010423236], [1.3351550194088961, 4.486143181561447]]]),self.functionspace)
4324        arg0.setTaggedValue(1,numarray.array([[[3.4491370804309867, -1.6347938201148815], [-0.37312224570803565, 3.1427888072688539]], [[-4.3347470638668391, 1.9040863912021084], [-1.0348732571241559, 2.952260668907833]], [[1.1491533077467517, 4.3161681090597472], [-4.6297877554297076, -1.7908274163069668]], [[4.0963055739014305, 2.4819696723352855], [-4.5046774633502338, -3.0319031222275452]], [[1.3008358424120372, -4.3929368763841055], [0.46120789878588386, 1.602378727584596]], [[3.2036615578301593, 3.1889393682470697], [-2.2513123711192904, 2.1332047026027512]]]))        arg0.setTaggedValue(1,numarray.array([[[3.4491370804309867, -1.6347938201148815], [-0.37312224570803565, 3.1427888072688539]], [[-4.3347470638668391, 1.9040863912021084], [-1.0348732571241559, 2.952260668907833]], [[1.1491533077467517, 4.3161681090597472], [-4.6297877554297076, -1.7908274163069668]], [[4.0963055739014305, 2.4819696723352855], [-4.5046774633502338, -3.0319031222275452]], [[1.3008358424120372, -4.3929368763841055], [0.46120789878588386, 1.602378727584596]], [[3.2036615578301593, 3.1889393682470697], [-2.2513123711192904, 2.1332047026027512]]]))
4325        arg1=Data(-4.22802627658,self.functionspace)        arg1=Data(-4.22802627658,self.functionspace)
# Line 4330  class Test_util_overloaded_binary_with_t Line 4330  class Test_util_overloaded_binary_with_t
4330        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
4331        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4332     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4333     def test_div_overloaded_taggedData_rank3_constData_rank3(self):     def test_quotient_overloaded_taggedData_rank3_constData_rank3(self):
4334        arg0=Data(numarray.array([[[-4.8674334986106382, 2.8887318600312906], [2.0538694057121685, 0.61053129878567791]], [[-3.6203383484459648, -0.6071910938051408], [-3.7526332453492497, -3.9582011840371409]], [[-1.3241064668814229, 2.9777492321256025], [0.38500561436277714, -3.0112735420924741]], [[0.6661399625171498, -4.2807600963611314], [2.278916904152358, -4.6575388908559967]], [[-0.021824772114461766, -3.6009820623354614], [-0.6763812621895493, -0.893176181106492]], [[-0.40190673597975035, -4.2164577208213441], [2.1280689666689314, 0.088712446116368859]]]),self.functionspace)        arg0=Data(numarray.array([[[-4.8674334986106382, 2.8887318600312906], [2.0538694057121685, 0.61053129878567791]], [[-3.6203383484459648, -0.6071910938051408], [-3.7526332453492497, -3.9582011840371409]], [[-1.3241064668814229, 2.9777492321256025], [0.38500561436277714, -3.0112735420924741]], [[0.6661399625171498, -4.2807600963611314], [2.278916904152358, -4.6575388908559967]], [[-0.021824772114461766, -3.6009820623354614], [-0.6763812621895493, -0.893176181106492]], [[-0.40190673597975035, -4.2164577208213441], [2.1280689666689314, 0.088712446116368859]]]),self.functionspace)
4335        arg0.setTaggedValue(1,numarray.array([[[-2.5167853671021034, -1.0284204112352411], [0.43150120974364548, -4.2603930002781016]], [[-1.7113384479765714, 0.46569309785701929], [1.8237757267904939, 1.8846290833594868]], [[0.09726288074230105, 0.78458232469691414], [4.135584347217474, 2.6553708520258805]], [[3.6199013501973294, 3.318219113973182], [-4.9183716669915185, 1.2748356481278442]], [[-1.3335303831170755, -3.8176652808277822], [-0.5120987526311227, 2.940057261448433]], [[3.5090862536180385, 3.6898639610378616], [-4.3319804376002766, 4.541019818237892]]]))        arg0.setTaggedValue(1,numarray.array([[[-2.5167853671021034, -1.0284204112352411], [0.43150120974364548, -4.2603930002781016]], [[-1.7113384479765714, 0.46569309785701929], [1.8237757267904939, 1.8846290833594868]], [[0.09726288074230105, 0.78458232469691414], [4.135584347217474, 2.6553708520258805]], [[3.6199013501973294, 3.318219113973182], [-4.9183716669915185, 1.2748356481278442]], [[-1.3335303831170755, -3.8176652808277822], [-0.5120987526311227, 2.940057261448433]], [[3.5090862536180385, 3.6898639610378616], [-4.3319804376002766, 4.541019818237892]]]))
4336        arg1=Data(numarray.array([[[3.2963290076967251, 0.85357942680494769], [-4.0802845171646949, 4.9793501152270743]], [[0.5509817116483795, 3.3989499804234757], [4.1376229717551265, -2.6054583986891711]], [[3.8513847330702937, -4.5928937140620079], [-2.4776867431094174, -3.9668791347407795]], [[-3.6190008061586343, 1.1995958536501234], [-1.7327481103364151, -2.5493213908821764]], [[4.3539812929184301, 1.2662753732437961], [-0.86562308420087675, -1.1426120549797982]], [[-0.74179292781107975, -4.338340439862348], [3.8865545818726268, -3.9345830333203624]]]),self.functionspace)        arg1=Data(numarray.array([[[3.2963290076967251, 0.85357942680494769], [-4.0802845171646949, 4.9793501152270743]], [[0.5509817116483795, 3.3989499804234757], [4.1376229717551265, -2.6054583986891711]], [[3.8513847330702937, -4.5928937140620079], [-2.4776867431094174, -3.9668791347407795]], [[-3.6190008061586343, 1.1995958536501234], [-1.7327481103364151, -2.5493213908821764]], [[4.3539812929184301, 1.2662753732437961], [-0.86562308420087675, -1.1426120549797982]], [[-0.74179292781107975, -4.338340439862348], [3.8865545818726268, -3.9345830333203624]]]),self.functionspace)
# Line 4341  class Test_util_overloaded_binary_with_t Line 4341  class Test_util_overloaded_binary_with_t
4341        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
4342        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4343     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4344     def test_div_overloaded_taggedData_rank3_taggedData_rank0(self):     def test_quotient_overloaded_taggedData_rank3_taggedData_rank0(self):
4345        arg0=Data(numarray.array([[[4.0117227786695846, -0.53492418922952112], [-1.4882942167138591, 1.900837298708562]], [[0.3979828547855826, -2.0806414273277065], [-3.1038194294358092, 1.3619630468314083]], [[-1.8360143953269672, -0.54583843212253136], [-2.8745251386926807, 2.8454895264534175]], [[-4.0367023374846722, -4.8815643727381284], [-2.4178783308021412, -0.18865332193405226]], [[4.4239527120031354, -0.23469975720542635], [-2.6557303119811104, -4.228655562140105]], [[1.0241549991061296, 1.6012695623869719], [4.294822539139151, -0.66009157022351594]]]),self.functionspace)        arg0=Data(numarray.array([[[4.0117227786695846, -0.53492418922952112], [-1.4882942167138591, 1.900837298708562]], [[0.3979828547855826, -2.0806414273277065], [-3.1038194294358092, 1.3619630468314083]], [[-1.8360143953269672, -0.54583843212253136], [-2.8745251386926807, 2.8454895264534175]], [[-4.0367023374846722, -4.8815643727381284], [-2.4178783308021412, -0.18865332193405226]], [[4.4239527120031354, -0.23469975720542635], [-2.6557303119811104, -4.228655562140105]], [[1.0241549991061296, 1.6012695623869719], [4.294822539139151, -0.66009157022351594]]]),self.functionspace)
4346        arg0.setTaggedValue(1,numarray.array([[[-3.7467677360500771, -3.1566842580210439], [3.5515499219663269, 1.5656649082458323]], [[-1.0059725635217331, 4.0121910445334912], [-1.9861236068404295, 1.1688601739729174]], [[-4.7791339554087582, -1.2361230737018425], [-0.094248485141122273, -3.1051132394500334]], [[4.7778069411338233, 1.0007220688184661], [2.106976210113233, -0.61430719630395725]], [[1.5404800798012701, 0.79080850633239574], [-3.4835194084275747, -0.74931004023844316]], [[-2.445319759379637, -1.8443175619123844], [4.6036602132061084, -1.3015696598232296]]]))        arg0.setTaggedValue(1,numarray.array([[[-3.7467677360500771, -3.1566842580210439], [3.5515499219663269, 1.5656649082458323]], [[-1.0059725635217331, 4.0121910445334912], [-1.9861236068404295, 1.1688601739729174]], [[-4.7791339554087582, -1.2361230737018425], [-0.094248485141122273, -3.1051132394500334]], [[4.7778069411338233, 1.0007220688184661], [2.106976210113233, -0.61430719630395725]], [[1.5404800798012701, 0.79080850633239574], [-3.4835194084275747, -0.74931004023844316]], [[-2.445319759379637, -1.8443175619123844], [4.6036602132061084, -1.3015696598232296]]]))
4347        arg1=Data(3.76509523495,self.functionspace)        arg1=Data(3.76509523495,self.functionspace)
# Line 4353  class Test_util_overloaded_binary_with_t Line 4353  class Test_util_overloaded_binary_with_t
4353        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
4354        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4355     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4356     def test_div_overloaded_taggedData_rank3_taggedData_rank3(self):     def test_quotient_overloaded_taggedData_rank3_taggedData_rank3(self):
4357        arg0=Data(numarray.array([[[1.5937778250119417, 1.1222313900225354], [0.77948460194958891, -2.5380780385458204]], [[-3.138691428415501, 0.3279494678157846], [-4.5778698242660028, 1.384000964765443]], [[-1.1160444348521437, -0.54829334971058863], [1.8664472023968779, -4.4659166827566636]], [[-1.8710693431629744, -0.66054166701996841], [0.71327913550891964, 3.1722427340027295]], [[1.2498289090681949, 4.1746474144082182], [-3.9323326976200446, 0.65790680147240543]], [[-3.5388360463036372, -0.50190928882352814], [-2.1998792527280617, 3.3685005402883981]]]),self.functionspace)        arg0=Data(numarray.array([[[1.5937778250119417, 1.1222313900225354], [0.77948460194958891, -2.5380780385458204]], [[-3.138691428415501, 0.3279494678157846], [-4.5778698242660028, 1.384000964765443]], [[-1.1160444348521437, -0.54829334971058863], [1.8664472023968779, -4.4659166827566636]], [[-1.8710693431629744, -0.66054166701996841], [0.71327913550891964, 3.1722427340027295]], [[1.2498289090681949, 4.1746474144082182], [-3.9323326976200446, 0.65790680147240543]], [[-3.5388360463036372, -0.50190928882352814], [-2.1998792527280617, 3.3685005402883981]]]),self.functionspace)
4358        arg0.setTaggedValue(1,numarray.array([[[3.5751931384164575, -0.15270724878766995], [-1.2964474481215293, 2.9411685095922246]], [[3.9827285699197095, -0.36835243661909978], [4.3222517341685638, -3.0461074462971762]], [[3.2875535691212505, -4.1602493486471221], [1.2903858495079987, 3.4347804637468968]], [[0.7343249455630918, -4.3980873412001174], [-0.23010238111155878, -3.0859699278609929]], [[-2.5545618965079155, -1.2222884334765927], [-0.025342010922082991, 3.2000852974204719]], [[2.9496213267253761, 3.1998425197446405], [1.7305719630653886, 4.0924554658293069]]]))        arg0.setTaggedValue(1,numarray.array([[[3.5751931384164575, -0.15270724878766995], [-1.2964474481215293, 2.9411685095922246]], [[3.9827285699197095, -0.36835243661909978], [4.3222517341685638, -3.0461074462971762]], [[3.2875535691212505, -4.1602493486471221], [1.2903858495079987, 3.4347804637468968]], [[0.7343249455630918, -4.3980873412001174], [-0.23010238111155878, -3.0859699278609929]], [[-2.5545618965079155, -1.2222884334765927], [-0.025342010922082991, 3.2000852974204719]], [[2.9496213267253761, 3.1998425197446405], [1.7305719630653886, 4.0924554658293069]]]))
4359        arg1=Data(numarray.array([[[2.3019482566686067, 2.4151921713670834], [4.9863199346297211, 2.7496577250514012]], [[-2.8187488643605296, 3.9429412106483461], [0.70822665206212054, -1.0585529095703681]], [[-4.7684941529121039, -0.75282231717744175], [-2.9978257342497985, 3.059495541521267]], [[-2.5232680258562654, 0.62187038751541657], [-2.098159851848024, 4.7599109785216616]], [[-3.7209922362758316, 4.802534289533714], [-3.1955257408812923, -4.1253666216266218]], [[-1.874515928762893, 3.2816047369005155], [3.9607499751068662, -2.3419882732384103]]]),self.functionspace)        arg1=Data(numarray.array([[[2.3019482566686067, 2.4151921713670834], [4.9863199346297211, 2.7496577250514012]], [[-2.8187488643605296, 3.9429412106483461], [0.70822665206212054, -1.0585529095703681]], [[-4.7684941529121039, -0.75282231717744175], [-2.9978257342497985, 3.059495541521267]], [[-2.5232680258562654, 0.62187038751541657], [-2.098159851848024, 4.7599109785216616]], [[-3.7209922362758316, 4.802534289533714], [-3.1955257408812923, -4.1253666216266218]], [[-1.874515928762893, 3.2816047369005155], [3.9607499751068662, -2.3419882732384103]]]),self.functionspace)
# Line 4365  class Test_util_overloaded_binary_with_t Line 4365  class Test_util_overloaded_binary_with_t
4365        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
4366        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4367     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4368     def test_div_overloaded_taggedData_rank3_expandedData_rank0(self):     def test_quotient_overloaded_taggedData_rank3_expandedData_rank0(self):
4369        arg0=Data(numarray.array([[[-2.9234329263958045, -4.6133510296387232], [0.36977338192269471, -1.4132543604160377]], [[-0.095529011036092015, 0.28743106785685058], [-0.13391103476522392, 1.4970278654800335]], [[-0.19839489809219035, 3.5234266890100017], [-0.76688567031431809, -3.0817924695570098]], [[-4.0464820015838852, 2.344248494534618], [-2.1923214832479223, 2.9269692343885261]], [[-3.3030189300411275, -3.6495395496230554], [0.18122263589447485, 3.8123939654433006]], [[-0.27049898348041168, -0.12490504905707223], [4.5882713231869623, -0.44323594640142439]]]),self.functionspace)        arg0=Data(numarray.array([[[-2.9234329263958045, -4.6133510296387232], [0.36977338192269471, -1.4132543604160377]], [[-0.095529011036092015, 0.28743106785685058], [-0.13391103476522392, 1.4970278654800335]], [[-0.19839489809219035, 3.5234266890100017], [-0.76688567031431809, -3.0817924695570098]], [[-4.0464820015838852, 2.344248494534618], [-2.1923214832479223, 2.9269692343885261]], [[-3.3030189300411275, -3.6495395496230554], [0.18122263589447485, 3.8123939654433006]], [[-0.27049898348041168, -0.12490504905707223], [4.5882713231869623, -0.44323594640142439]]]),self.functionspace)
4370        arg0.setTaggedValue(1,numarray.array([[[-4.2731527360257902, 2.6207669149340695], [-1.4607543320385377, 0.34556696867206771]], [[1.3183700646854533, 0.16651816063926628], [0.12571553103927879, 2.6041271722556427]], [[-4.6460883139768274, 0.82703695488618401], [-0.29685825079511918, -2.7314911113193761]], [[3.2141601516351734, 4.2938631512172911], [-3.4196645360181845, 3.3405093976069828]], [[-0.74495637357537703, 3.7512125741603857], [3.9467791556907699, 2.0230395050836645]], [[-1.284872990686996, -0.61787673514865826], [-3.9235720833257046, -0.11825446977713661]]]))        arg0.setTaggedValue(1,numarray.array([[[-4.2731527360257902, 2.6207669149340695], [-1.4607543320385377, 0.34556696867206771]], [[1.3183700646854533, 0.16651816063926628], [0.12571553103927879, 2.6041271722556427]], [[-4.6460883139768274, 0.82703695488618401], [-0.29685825079511918, -2.7314911113193761]], [[3.2141601516351734, 4.2938631512172911], [-3.4196645360181845, 3.3405093976069828]], [[-0.74495637357537703, 3.7512125741603857], [3.9467791556907699, 2.0230395050836645]], [[-1.284872990686996, -0.61787673514865826], [-3.9235720833257046, -0.11825446977713661]]]))
4371        arg1=Data(-0.380983118767,self.functionspace)        arg1=Data(-0.380983118767,self.functionspace)
# Line 4378  class Test_util_overloaded_binary_with_t Line 4378  class Test_util_overloaded_binary_with_t
4378        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
4379        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4380     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4381     def test_div_overloaded_taggedData_rank3_expandedData_rank3(self):     def test_quotient_overloaded_taggedData_rank3_expandedData_rank3(self):
4382        arg0=Data(numarray.array([[[1.3030807390070231, 0.82127637791553276], [-2.9606834680969496, -1.118500727450924]], [[-0.10527441065803256, -1.7036285349095071], [2.0749292280559715, 0.18766364610176289]], [[0.17322444543358095, 1.8375346797078631], [3.3181757408573951, 1.5715641685845041]], [[-1.8544947705522832, -4.8166379022667529], [4.8520794350991032, 2.6712900737127176]], [[-3.1314844443990397, 1.3948832470485897], [4.0479224098608295, 3.3473999426191678]], [[-0.56471985665859403, 2.7421007640238759], [0.4901941429997887, 4.167578888219337]]]),self.functionspace)        arg0=Data(numarray.array([[[1.3030807390070231, 0.82127637791553276], [-2.9606834680969496, -1.118500727450924]], [[-0.10527441065803256, -1.7036285349095071], [2.0749292280559715, 0.18766364610176289]], [[0.17322444543358095, 1.8375346797078631], [3.3181757408573951, 1.5715641685845041]], [[-1.8544947705522832, -4.8166379022667529], [4.8520794350991032, 2.6712900737127176]], [[-3.1314844443990397, 1.3948832470485897], [4.0479224098608295, 3.3473999426191678]], [[-0.56471985665859403, 2.7421007640238759], [0.4901941429997887, 4.167578888219337]]]),self.functionspace)
4383        arg0.setTaggedValue(1,numarray.array([[[-3.303869536271332, 1.11279445169325], [4.8332355282011328, -3.9306895647498044]], [[4.3973887894618553, -3.634065929413195], [-3.189822296333904, -2.7055559770184923]], [[-0.86544452397463001, -1.1173825047968986], [1.4607489243185938, 0.70581535455476274]], [[-0.11179792520149778, 2.0989695219655893], [1.511321381783846, -0.88964822861353632]], [[0.84022664796619928, -2.3804943246397805], [0.48611183702885974, 0.44058210065668568]], [[4.4082571824426182, 1.1114191929844477], [0.65626061651835599, 0.19178014938961141]]]))        arg0.setTaggedValue(1,numarray.array([[[-3.303869536271332, 1.11279445169325], [4.8332355282011328, -3.9306895647498044]], [[4.3973887894618553, -3.634065929413195], [-3.189822296333904, -2.7055559770184923]], [[-0.86544452397463001, -1.1173825047968986], [1.4607489243185938, 0.70581535455476274]], [[-0.11179792520149778, 2.0989695219655893], [1.511321381783846, -0.88964822861353632]], [[0.84022664796619928, -2.3804943246397805], [0.48611183702885974, 0.44058210065668568]], [[4.4082571824426182, 1.1114191929844477], [0.65626061651835599, 0.19178014938961141]]]))
4384        arg1=Data(numarray.array([[[1.4677610289674732, -3.7236404556747491], [3.7207377949461975, 3.5930209564696032]], [[-3.8006610018199396, -0.39710647500866525], [-3.8904627344396681, 4.8903230445371815]], [[-2.9314504272302, 2.3587324666543701], [4.665664136916531, 4.9945594696438782]], [[1.9628235610719553, -4.8889899786606064], [1.8838860934203812, -1.029348815023484]], [[3.3814184641408254, 0.71686668985086133], [-0.65039794223511294, -4.9535588999565654]], [[-0.84501415113220713, 1.9805961596815989], [2.5931526352221104, 1.1220257622302112]]]),self.functionspace)        arg1=Data(numarray.array([[[1.4677610289674732, -3.7236404556747491], [3.7207377949461975, 3.5930209564696032]], [[-3.8006610018199396, -0.39710647500866525], [-3.8904627344396681, 4.8903230445371815]], [[-2.9314504272302, 2.3587324666543701], [4.665664136916531, 4.9945594696438782]], [[1.9628235610719553, -4.8889899786606064], [1.8838860934203812, -1.029348815023484]], [[3.3814184641408254, 0.71686668985086133], [-0.65039794223511294, -4.9535588999565654]], [[-0.84501415113220713, 1.9805961596815989], [2.5931526352221104, 1.1220257622302112]]]),self.functionspace)
# Line 4391  class Test_util_overloaded_binary_with_t Line 4391  class Test_util_overloaded_binary_with_t
4391        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
4392        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4393     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4394     def test_div_overloaded_taggedData_rank4_float_rank0(self):     def test_quotient_overloaded_taggedData_rank4_float_rank0(self):
4395        arg0=Data(numarray.array([[[[3.6203898043611602, -4.8522252206209142, 3.1930866223489787, -4.7335254845755834], [-4.9589079272086423, -3.3771502779694762, -4.3302456038164392, 3.2988256323598524], [1.5372701442055314, 3.3506351444045244, 0.37323338247660054, 0.66273168450391751]], [[-0.37569636227086889, 3.5117066629685514, -0.68247207856867576, -3.5518497694242668], [0.52969358964135704, 3.2380028341101603, -2.8115421943851162, -1.2112866867917305], [1.312586199221939, 2.2049983340740873, -0.063973208576920904, -1.3744609948537612]]], [[[-2.6119033395905733, 1.6478643456924482, -1.8326459567700928, -2.0904354431940151], [3.0025998076579015, -3.216243008732762, 4.8184792438440169, 1.6769454462177773], [-3.6266313077416945, 0.58490737983812835, -0.24713838094624929, 0.67551945767703536]], [[0.39214409502181269, 4.4550016931441547, -0.92391535607890773, 4.8711114102911335], [0.06138164770969734, -3.7850186033068711, -0.44883011158736608, -1.1388227684437768], [3.9946701951683821, -1.5235711003213859, -4.909818628684647, 3.1171649422216579]]], [[[-0.42423119998224035, -2.5228654622761071, -0.2122461957948385, -2.900151833219641], [2.5687623559133783, 1.1172843662843448, -3.2010427689428225, -2.2640960195326909], [-4.8469757068278572, -0.78288514960780198, -3.8480800644004587, -0.61918384740730747]], [[2.4123778086960312, 0.16077761049424133, -1.2547160847252501, 1.9801405242982115], [-0.54998003204373092, -2.8676285276543778, 2.3933635846937227, -3.3144110754777891], [-1.2675207995210314, 0.61155064775410306, -3.8693222930075066, 3.6992300759582619]]]]),self.functionspace)        arg0=Data(numarray.array([[[[3.6203898043611602, -4.8522252206209142, 3.1930866223489787, -4.7335254845755834], [-4.9589079272086423, -3.3771502779694762, -4.3302456038164392, 3.2988256323598524], [1.5372701442055314, 3.3506351444045244, 0.37323338247660054, 0.66273168450391751]], [[-0.37569636227086889, 3.5117066629685514, -0.68247207856867576, -3.5518497694242668], [0.52969358964135704, 3.2380028341101603, -2.8115421943851162, -1.2112866867917305], [1.312586199221939, 2.2049983340740873, -0.063973208576920904, -1.3744609948537612]]], [[[-2.6119033395905733, 1.6478643456924482, -1.8326459567700928, -2.0904354431940151], [3.0025998076579015, -3.216243008732762, 4.8184792438440169, 1.6769454462177773], [-3.6266313077416945, 0.58490737983812835, -0.24713838094624929, 0.67551945767703536]], [[0.39214409502181269, 4.4550016931441547, -0.92391535607890773, 4.8711114102911335], [0.06138164770969734, -3.7850186033068711, -0.44883011158736608, -1.1388227684437768], [3.9946701951683821, -1.5235711003213859, -4.909818628684647, 3.1171649422216579]]], [[[-0.42423119998224035, -2.5228654622761071, -0.2122461957948385, -2.900151833219641], [2.5687623559133783, 1.1172843662843448, -3.2010427689428225, -2.2640960195326909], [-4.8469757068278572, -0.78288514960780198, -3.8480800644004587, -0.61918384740730747]], [[2.4123778086960312, 0.16077761049424133, -1.2547160847252501, 1.9801405242982115], [-0.54998003204373092, -2.8676285276543778, 2.3933635846937227, -3.3144110754777891], [-1.2675207995210314, 0.61155064775410306, -3.8693222930075066, 3.6992300759582619]]]]),self.functionspace)
4396        arg0.setTaggedValue(1,numarray.array([[[[-3.634851405743913, 0.27020005877386755, 4.6453187805316745, -0.52328532154797802], [-0.82978855445949051, -4.746822215577704, -4.332549741487421, -1.6242034193431243], [-4.9322371420319167, 0.22972216757547237, 3.6264993122046523, -2.4148707558881455]], [[-0.53059750609464462, 1.5789454802460314, -2.204494424669281, -4.8604313537221477], [0.42659220872660875, -4.0354210574814431, -4.6115751168595267, 3.2002303390390416], [0.64763447796177509, -2.1720613963955469, 0.8863986077623478, 3.5941628697016341]]], [[[-3.4699331906186428, -0.88802807462416666, 1.082548213294996, -3.0845995178982943], [0.33065149231971525, -4.6219993942457975, 0.13862939178681533, -4.6872263486545931], [3.3681435450104207, -0.98115160228651987, 2.6737643765785233, -3.3741281655630795]], [[0.39786453691122148, 2.6812507071066625, 1.7081409703380608, 1.6248594881653684], [-0.78496210682853729, 2.7617802436342682, 3.1095291962382685, 3.2655545837171935], [-0.16081689153361367, 4.130199757349116, -0.32388642843524451, 0.84634232389791197]]], [[[3.0873340023218176, -0.41109976788443348, -3.1184580296746156, -0.5696825246610695], [2.4620105272124873, 0.43074446661690491, -0.799082081550468, 0.73248964174856379], [-4.0633985174048748, -2.4843305264582325, 1.3472174598355791, 4.4028741514964072]], [[2.4236778091329283, -1.8484683056142193, -3.7205804053990388, -0.28143868847938069], [-2.842491844767181, 2.2381877451472612, 0.67607094394759848, 0.23955332426623244], [-3.6987505214923488, 3.1925484048981083, -4.8258105785692997, -3.2680928819884336]]]]))        arg0.setTaggedValue(1,numarray.array([[[[-3.634851405743913, 0.27020005877386755, 4.6453187805316745, -0.52328532154797802], [-0.82978855445949051, -4.746822215577704, -4.332549741487421, -1.6242034193431243], [-4.9322371420319167, 0.22972216757547237, 3.6264993122046523, -2.4148707558881455]], [[-0.53059750609464462, 1.5789454802460314, -2.204494424669281, -4.8604313537221477], [0.42659220872660875, -4.0354210574814431, -4.6115751168595267, 3.2002303390390416], [0.64763447796177509, -2.1720613963955469, 0.8863986077623478, 3.5941628697016341]]], [[[-3.4699331906186428, -0.88802807462416666, 1.082548213294996, -3.0845995178982943], [0.33065149231971525, -4.6219993942457975, 0.13862939178681533, -4.6872263486545931], [3.3681435450104207, -0.98115160228651987, 2.6737643765785233, -3.3741281655630795]], [[0.39786453691122148, 2.6812507071066625, 1.7081409703380608, 1.6248594881653684], [-0.78496210682853729, 2.7617802436342682, 3.1095291962382685, 3.2655545837171935], [-0.16081689153361367, 4.130199757349116, -0.32388642843524451, 0.84634232389791197]]], [[[3.0873340023218176, -0.41109976788443348, -3.1184580296746156, -0.5696825246610695], [2.4620105272124873, 0.43074446661690491, -0.799082081550468, 0.73248964174856379], [-4.0633985174048748, -2.4843305264582325, 1.3472174598355791, 4.4028741514964072]], [[2.4236778091329283, -1.8484683056142193, -3.7205804053990388, -0.28143868847938069], [-2.842491844767181, 2.2381877451472612, 0.67607094394759848, 0.23955332426623244], [-3.6987505214923488, 3.1925484048981083, -4.8258105785692997, -3.2680928819884336]]]]))
4397        arg1=0.413558452763        arg1=0.413558452763
# Line 4402  class Test_util_overloaded_binary_with_t Line 4402  class Test_util_overloaded_binary_with_t
4402        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
4403        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4404     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4405     def test_div_overloaded_taggedData_rank4_array_rank0(self):     def test_quotient_overloaded_taggedData_rank4_array_rank0(self):
4406        arg0=Data(numarray.array([[[[3.4291166724435556, -3.5926339750524203, -1.5475843284301338, -3.4566378870411008], [-3.672887604919862, -4.5295982023752899, -1.4658640846319413, -0.014575827085298698], [-1.253532674795943, -4.6553481394901208, 4.862329645566291, -1.51717090636871]], [[1.8161815466297355, 3.7585630608880471, -2.6866097249378864, -2.7480595936533616], [1.1878511834883465, 0.3647196286663732, -1.5374358841644673, 0.58709308345952582], [3.5533218142514649, -0.37232562804411451, -1.2137088225392301, 3.9446296095433855]]], [[[0.25170530254330536, 1.0783691566479501, 1.4521010658044844, -2.3963713247532512], [-4.3383471977641888, 2.1563624449196128, 3.8141212549286365, 4.0912931529208052], [-2.4807386402123233, 2.0367813392198011, -0.29099812506794187, -3.3842548469707578]], [[-0.82534111740968719, -3.2362584223700241, -0.81520740895996369, 0.24629244526181981], [-2.3470833053686824, 2.2250912336018969, 1.2535083827066824, 1.4506279015892778], [-4.4413536877400723, 0.22597360655997178, -4.2731012937159853, 0.88576214135889764]]], [[[-2.7775903348569733, -0.32907536494470868, 4.8380401319641546, 1.2853515653123964], [1.3956938433885995, 1.7898635170409953, 2.8197354403935302, -1.9117009156228026], [-1.8413635689185437, 1.8044097183152994, 0.33537690066736126, -3.6486560523145926]], [[2.0535577780102106, 1.5376737584515601, -0.25710013106498586, -1.1731957173889573], [2.4279006360588786, -1.3926894400285725, 3.7160645033901378, -0.59603409648490135], [2.1961906463550989, -4.8502792078765768, -2.6741887490519489, 4.6451433282020052]]]]),self.functionspace)        arg0=Data(numarray.array([[[[3.4291166724435556, -3.5926339750524203, -1.5475843284301338, -3.4566378870411008], [-3.672887604919862, -4.5295982023752899, -1.4658640846319413, -0.014575827085298698], [-1.253532674795943, -4.6553481394901208, 4.862329645566291, -1.51717090636871]], [[1.8161815466297355, 3.7585630608880471, -2.6866097249378864, -2.7480595936533616], [1.1878511834883465, 0.3647196286663732, -1.5374358841644673, 0.58709308345952582], [3.5533218142514649, -0.37232562804411451, -1.2137088225392301, 3.9446296095433855]]], [[[0.25170530254330536, 1.0783691566479501, 1.4521010658044844, -2.3963713247532512], [-4.3383471977641888, 2.1563624449196128, 3.8141212549286365, 4.0912931529208052], [-2.4807386402123233, 2.0367813392198011, -0.29099812506794187, -3.3842548469707578]], [[-0.82534111740968719, -3.2362584223700241, -0.81520740895996369, 0.24629244526181981], [-2.3470833053686824, 2.2250912336018969, 1.2535083827066824, 1.4506279015892778], [-4.4413536877400723, 0.22597360655997178, -4.2731012937159853, 0.88576214135889764]]], [[[-2.7775903348569733, -0.32907536494470868, 4.8380401319641546, 1.2853515653123964], [1.3956938433885995, 1.7898635170409953, 2.8197354403935302, -1.9117009156228026], [-1.8413635689185437, 1.8044097183152994, 0.33537690066736126, -3.6486560523145926]], [[2.0535577780102106, 1.5376737584515601, -0.25710013106498586, -1.1731957173889573], [2.4279006360588786, -1.3926894400285725, 3.7160645033901378, -0.59603409648490135], [2.1961906463550989, -4.8502792078765768, -2.6741887490519489, 4.6451433282020052]]]]),self.functionspace)
4407        arg0.setTaggedValue(1,numarray.array([[[[-1.9771675854126611, 4.9618182253042313, 1.712135945833321, -0.67123899563295009], [3.941760104308786, -1.5661992738598962, 0.30424350159760216, 2.8287611250635925], [2.7512229432822313, -3.5283965645877879, -4.7500059147253513, -3.9493198458266487]], [[-1.0742850319177935, -0.76421683993359135, -1.5611177509428842, -3.5448170561914849], [-1.6657876306848518, 1.9787072708209852, -1.4607491047318213, -4.4590699358789525], [-0.49773075429816771, 1.7665162863795993, 3.8854046738265371, 4.2832536612472634]]], [[[3.9890217647607162, -2.3994769041291053, -2.1163364325133003, -1.307887439158101], [3.9605554981132371, 0.48753951223392278, 3.7033077812374344, -0.66348907194746687], [-4.666759865063308, 2.3997229252818952, 0.31299119875697468, 3.5203143497411702]], [[-2.6814907550189151, 0.77666800881142528, -1.9893706891053728, -0.42858869738287453], [4.9998354563033569, 3.4099475118847558, 0.16083020588602537, 0.082896008013789491], [1.7047891583154353, -3.4959118176542683, -2.4548329754440221, 1.9960045736244547]]], [[[2.3076956668090753, -0.99915431286848388, -0.72964162046804582, -4.46671518492641], [4.0613942475823119, -0.81754340528169678, 2.8936712519469694, 1.7267394065339161], [2.9659526805781864, -1.1489506392304483, -0.33478659759331109, 3.9044015537839947]], [[-3.6586411908075132, 3.0936431238494233, -1.6824067748478386, -2.7631481667262889], [4.6689057608218185, -1.2908633616405227, 4.8583632131870083, 4.2658077893322606], [0.93515334196051292, 0.35912305019103741, -2.1671416722028356, -3.0998917370748922]]]]))        arg0.setTaggedValue(1,numarray.array([[[[-1.9771675854126611, 4.9618182253042313, 1.712135945833321, -0.67123899563295009], [3.941760104308786, -1.5661992738598962, 0.30424350159760216, 2.8287611250635925], [2.7512229432822313, -3.5283965645877879, -4.7500059147253513, -3.9493198458266487]], [[-1.0742850319177935, -0.76421683993359135, -1.5611177509428842, -3.5448170561914849], [-1.6657876306848518, 1.9787072708209852, -1.4607491047318213, -4.4590699358789525], [-0.49773075429816771, 1.7665162863795993, 3.8854046738265371, 4.2832536612472634]]], [[[3.9890217647607162, -2.3994769041291053, -2.1163364325133003, -1.307887439158101], [3.9605554981132371, 0.48753951223392278, 3.7033077812374344, -0.66348907194746687], [-4.666759865063308, 2.3997229252818952, 0.31299119875697468, 3.5203143497411702]], [[-2.6814907550189151, 0.77666800881142528, -1.9893706891053728, -0.42858869738287453], [4.9998354563033569, 3.4099475118847558, 0.16083020588602537, 0.082896008013789491], [1.7047891583154353, -3.4959118176542683, -2.4548329754440221, 1.9960045736244547]]], [[[2.3076956668090753, -0.99915431286848388, -0.72964162046804582, -4.46671518492641], [4.0613942475823119, -0.81754340528169678, 2.8936712519469694, 1.7267394065339161], [2.9659526805781864, -1.1489506392304483, -0.33478659759331109, 3.9044015537839947]], [[-3.6586411908075132, 3.0936431238494233, -1.6824067748478386, -2.7631481667262889], [4.6689057608218185, -1.2908633616405227, 4.8583632131870083, 4.2658077893322606], [0.93515334196051292, 0.35912305019103741, -2.1671416722028356, -3.0998917370748922]]]]))
4408        arg1=numarray.array(-0.354012216204)        arg1=numarray.array(-0.354012216204)
# Line 4413  class Test_util_overloaded_binary_with_t Line 4413  class Test_util_overloaded_binary_with_t
4413        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
4414        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4415     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4416     def test_div_overloaded_taggedData_rank4_array_rank4(self):     def test_quotient_overloaded_taggedData_rank4_array_rank4(self):
4417        arg0=Data(numarray.array([[[[4.3484989775288003, -1.7929249802302092, 2.0779983540925562, 1.0503700983964652], [-1.5895395382220325, 1.0401312317618272, 0.4842399425365862, -3.6060523482073901], [-4.5935125880844749, -4.0596976604690553, -4.0608640851511657, -2.0157235671605123]], [[-3.705612740297568, -3.5943235555444364, -0.37810498476484433, 4.3370173161720711], [0.94768283206301795, 1.7164605126868828, 3.6979707581269352, -1.5616197272506649], [-1.1388436761841092, 4.6107919748917823, 3.5046908064414435, -2.0225996410347391]]], [[[-3.7681998585876841, -3.9961751598521911, -3.3503387997472966, -0.89624739120825758], [4.1276689211184454, 2.4142060759166153, 2.9275395190108311, -4.9964976557795993], [0.48846218191833746, -2.4045911125750621, -2.6714033286046543, -3.8023982287566915]], [[2.6659828717665937, -2.4211606978373581, -4.7326133175617313, -0.39007157864666553], [-4.4244615074437945, -1.0269630616652305, 2.3126705703389847, -1.7290368232987485], [4.4098964101457696, 4.7888247663779708, -1.6360308140793043, 0.054362557577115389]]], [[[3.5373421989778624, -2.7639050986102154, 4.9300954082122281, 4.8628243931665498], [-4.0252485831981266, 2.5490427067941104, -2.55346821912973, -1.2104300088942122], [-1.5835993362950296, -1.8046684461723874, 1.9089968859838002, 3.2044118092594083]], [[-2.5012986239860191, -2.5895327276050804, -4.0673106142341018, -0.27916934689119621], [-4.0992174947658029, -3.094139736906627, -4.7619515312450442, -2.2463466407900725], [-1.9373603504946644, 0.74140082630889559, 3.2811941121539192, -4.6192599827704353]]]]),self.functionspace)        arg0=Data(numarray.array([[[[4.3484989775288003, -1.7929249802302092, 2.0779983540925562, 1.0503700983964652], [-1.5895395382220325, 1.0401312317618272, 0.4842399425365862, -3.6060523482073901], [-4.5935125880844749, -4.0596976604690553, -4.0608640851511657, -2.0157235671605123]], [[-3.705612740297568, -3.5943235555444364, -0.37810498476484433, 4.3370173161720711], [0.94768283206301795, 1.7164605126868828, 3.6979707581269352, -1.5616197272506649], [-1.1388436761841092, 4.6107919748917823, 3.5046908064414435, -2.0225996410347391]]], [[[-3.7681998585876841, -3.9961751598521911, -3.3503387997472966, -0.89624739120825758], [4.1276689211184454, 2.4142060759166153, 2.9275395190108311, -4.9964976557795993], [0.48846218191833746, -2.4045911125750621, -2.6714033286046543, -3.8023982287566915]], [[2.6659828717665937, -2.4211606978373581, -4.7326133175617313, -0.39007157864666553], [-4.4244615074437945, -1.0269630616652305, 2.3126705703389847, -1.7290368232987485], [4.4098964101457696, 4.7888247663779708, -1.6360308140793043, 0.054362557577115389]]], [[[3.5373421989778624, -2.7639050986102154, 4.9300954082122281, 4.8628243931665498], [-4.0252485831981266, 2.5490427067941104, -2.55346821912973, -1.2104300088942122], [-1.5835993362950296, -1.8046684461723874, 1.9089968859838002, 3.2044118092594083]], [[-2.5012986239860191, -2.5895327276050804, -4.0673106142341018, -0.27916934689119621], [-4.0992174947658029, -3.094139736906627, -4.7619515312450442, -2.2463466407900725], [-1.9373603504946644, 0.74140082630889559, 3.2811941121539192, -4.6192599827704353]]]]),self.functionspace)
4418        arg0.setTaggedValue(1,numarray.array([[[[-0.53663512635629385, -2.7009508966269555, -2.9322864221970413, -3.87407870139858], [1.5638958138044252, 2.9611526205707133, 4.6624899616753783, -2.6664701966094704], [4.3013786357304102, 4.3867218757293518, 1.3914518509106006, 3.7129868708778346]], [[-3.4818343088488382, 2.5529269591639459, -3.6597647209151618, -4.7848121574289673], [0.39120757141152929, -2.8205906155952052, 2.9359324295877567, 1.3342046387109647], [-2.8404138690301428, 2.4433535796198145, 0.27164604513699508, 0.76577024112161851]]], [[[-2.6323114349293721, -1.9513245823199332, -0.76132885374069126, 3.7670465834725739], [0.87090429210883791, 1.4328657939451253, 4.6166272718333357, 2.8806864955884093], [0.13519516280943034, 1.336724047314366, 1.7326233175785619, -2.8137716073347074]], [[4.1661183110905053, 4.1813391123985664, 0.65205508760660091, -2.1780140471497522], [-1.0295038503306819, -3.561536226697565, -0.98984005700005007, 2.0199834539679262], [-2.3777231591733248, -0.5168651308529002, 3.1683067215847558, 3.2200356944224939]]], [[[4.974940365627603, 3.4341504372262026, -1.3160374767203917, 2.0415103042394822], [-1.3664969791606896, 4.1962542537677727, 0.84410761968411308, -0.30046476238547815], [-1.9850060038121251, 4.1392920819649994, -2.4979400850061131, 3.701761580821854]], [[-4.5777784298094257, 4.9330256940430761, -3.7606154108547729, -2.4976261728072782], [-3.3011102553944207, -1.744681441245671, -1.9624990640275231, -0.41181125455890921], [3.6866442215485584, -3.9399299890178763, -0.34589830377824349, 0.14071561716039316]]]]))        arg0.setTaggedValue(1,numarray.array([[[[-0.53663512635629385, -2.7009508966269555, -2.9322864221970413, -3.87407870139858], [1.5638958138044252, 2.9611526205707133, 4.6624899616753783, -2.6664701966094704], [4.3013786357304102, 4.3867218757293518, 1.3914518509106006, 3.7129868708778346]], [[-3.4818343088488382, 2.5529269591639459, -3.6597647209151618, -4.7848121574289673], [0.39120757141152929, -2.8205906155952052, 2.9359324295877567, 1.3342046387109647], [-2.8404138690301428, 2.4433535796198145, 0.27164604513699508, 0.76577024112161851]]], [[[-2.6323114349293721, -1.9513245823199332, -0.76132885374069126, 3.7670465834725739], [0.87090429210883791, 1.4328657939451253, 4.6166272718333357, 2.8806864955884093], [0.13519516280943034, 1.336724047314366, 1.7326233175785619, -2.8137716073347074]], [[4.1661183110905053, 4.1813391123985664, 0.65205508760660091, -2.1780140471497522], [-1.0295038503306819, -3.561536226697565, -0.98984005700005007, 2.0199834539679262], [-2.3777231591733248, -0.5168651308529002, 3.1683067215847558, 3.2200356944224939]]], [[[4.974940365627603, 3.4341504372262026, -1.3160374767203917, 2.0415103042394822], [-1.3664969791606896, 4.1962542537677727, 0.84410761968411308, -0.30046476238547815], [-1.9850060038121251, 4.1392920819649994, -2.4979400850061131, 3.701761580821854]], [[-4.5777784298094257, 4.9330256940430761, -3.7606154108547729, -2.4976261728072782], [-3.3011102553944207, -1.744681441245671, -1.9624990640275231, -0.41181125455890921], [3.6866442215485584, -3.9399299890178763, -0.34589830377824349, 0.14071561716039316]]]]))
4419        arg1=numarray.array([[[[4.716548264407276, 4.9493153670893459, 4.0303632338287727, -2.7918373753992864], [-3.1642256890177145, 0.9600016877976465, 0.72222248585893567, -1.3021771337840651], [1.6876352262470533, -2.508511798266019, 1.7918329453704818, -4.4240928385756773]], [[-2.2850969455766137, 2.3712584404976047, 2.1591345574435277, -4.3539796308593148], [-3.3100226259288723, -3.6486010213358702, -2.3626764092902519, -0.21996471093734282], [4.2405939229935043, -1.905055393004309, -1.1046149451251051, -1.2587547246524733]]], [[[2.8132719726595674, 3.5263384111761304, 1.007061035840298, 0.87839844219783458], [3.4777328984979299, 2.5677732076137723, 4.4273041523020744, -3.0822857438537565], [-2.4246005886145094, 0.37110775845864197, 3.4328395558187648, 3.1793581852310631]], [[3.5445478456448996, -1.7111295028806026, -0.86774760399449491, 0.015294499517274573], [-3.5690561958867328, -1.8256590645822666, -4.72718231165058, 3.0726391003770388], [-3.7589834524042489, -4.9523731632275876, -3.7044074225194388, -1.5312388184257952]]], [[[0.22698221784808048, 2.5757324564337116, -0.46298738382947935, 2.201675952805795], [-3.5694600590090673, -4.9378448578136585, 1.9011925430637024, 2.9918275022166636], [3.1290586582976552, 0.29008015530205622, 1.5476947894407997, 0.68434817331810294]], [[-4.987272382360727, 4.1052625238211498, 0.91361922587186761, -4.9668268962228179], [-1.2487665619448363, -4.6277666543668747, 1.4315247358023777, 1.0367934698711965], [1.5567636790409436, -0.52414264847394509, 0.00029941434281344215, -3.9271025566758508]]]])        arg1=numarray.array([[[[4.716548264407276, 4.9493153670893459, 4.0303632338287727, -2.7918373753992864], [-3.1642256890177145, 0.9600016877976465, 0.72222248585893567, -1.3021771337840651], [1.6876352262470533, -2.508511798266019, 1.7918329453704818, -4.4240928385756773]], [[-2.2850969455766137, 2.3712584404976047, 2.1591345574435277, -4.3539796308593148], [-3.3100226259288723, -3.6486010213358702, -2.3626764092902519, -0.21996471093734282], [4.2405939229935043, -1.905055393004309, -1.1046149451251051, -1.2587547246524733]]], [[[2.8132719726595674, 3.5263384111761304, 1.007061035840298, 0.87839844219783458], [3.4777328984979299, 2.5677732076137723, 4.4273041523020744, -3.0822857438537565], [-2.4246005886145094, 0.37110775845864197, 3.4328395558187648, 3.1793581852310631]], [[3.5445478456448996, -1.7111295028806026, -0.86774760399449491, 0.015294499517274573], [-3.5690561958867328, -1.8256590645822666, -4.72718231165058, 3.0726391003770388], [-3.7589834524042489, -4.9523731632275876, -3.7044074225194388, -1.5312388184257952]]], [[[0.22698221784808048, 2.5757324564337116, -0.46298738382947935, 2.201675952805795], [-3.5694600590090673, -4.9378448578136585, 1.9011925430637024, 2.9918275022166636], [3.1290586582976552, 0.29008015530205622, 1.5476947894407997, 0.68434817331810294]], [[-4.987272382360727, 4.1052625238211498, 0.91361922587186761, -4.9668268962228179], [-1.2487665619448363, -4.6277666543668747, 1.4315247358023777, 1.0367934698711965], [1.5567636790409436, -0.52414264847394509, 0.00029941434281344215, -3.9271025566758508]]]])
# Line 4424  class Test_util_overloaded_binary_with_t Line 4424  class Test_util_overloaded_binary_with_t
4424        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
4425        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4426     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4427     def test_div_overloaded_taggedData_rank4_constData_rank0(self):     def test_quotient_overloaded_taggedData_rank4_constData_rank0(self):
4428        arg0=Data(numarray.array([[[[1.4173585570317968, -3.4393893015769494, -3.1509699880534292, 1.7628667246861784], [0.067347000712521421, 0.11965659760196168, -2.1880479829258781, -4.8400510091415869], [3.6467741235840219, -4.3380954071712026, -4.0426865104307996, -2.2242393001433438]], [[2.1833635582686455, 2.9203573628514992, 3.5790548753483122, -4.3630553763423121], [3.8187389435246271, -1.3905976522639985, 4.4779815014379363, -2.7986552858896854], [-0.28202541643548518, 4.3292870746101091, 0.62063941405136447, 4.9342658555532051]]], [[[-4.7415827367013446, 2.407056747163848, 2.8534937886305309, 3.786423030640675], [-1.8195754586326451, 2.9033743594199812, 3.7222111716350863, -1.9726850719996136], [0.608936138105447, -4.940120414207624, 0.43614026498707137, -3.555285140406407]], [[2.1209173855882, 4.226177429619181, -2.5967747750708337, -4.6503828639089209], [1.58306759699268, -4.068533982115607, 0.60819098812429662, -2.6595307686277958], [-1.4154754405006651, -4.9373597216554508, 4.6389162956127432, -3.2206479990838268]]], [[[-2.8720339641094772, 2.242634641027176, -1.8648698974356548, -4.7099746442479775], [2.772191984852884, -1.0013392310020528, 4.873597742875317, 3.6182945461428968], [0.024120148988890477, 2.0715664150573119, 3.4977936991930552, 2.1083334817544985]], [[-3.667584818856052, -0.18618817620501815, -2.03406364033482, 4.5674396199330296], [0.0038148629550915913, -2.7801037613319779, 0.6075336550236603, -3.8391515563881828], [-1.9597005615585106, 0.85720098260441446, 4.6413579299494643, 4.9537024539144916]]]]),self.functionspace)        arg0=Data(numarray.array([[[[1.4173585570317968, -3.4393893015769494, -3.1509699880534292, 1.7628667246861784], [0.067347000712521421, 0.11965659760196168, -2.1880479829258781, -4.8400510091415869], [3.6467741235840219, -4.3380954071712026, -4.0426865104307996, -2.2242393001433438]], [[2.1833635582686455, 2.9203573628514992, 3.5790548753483122, -4.3630553763423121], [3.8187389435246271, -1.3905976522639985, 4.4779815014379363, -2.7986552858896854], [-0.28202541643548518, 4.3292870746101091, 0.62063941405136447, 4.9342658555532051]]], [[[-4.7415827367013446, 2.407056747163848, 2.8534937886305309, 3.786423030640675], [-1.8195754586326451, 2.9033743594199812, 3.7222111716350863, -1.9726850719996136], [0.608936138105447, -4.940120414207624, 0.43614026498707137, -3.555285140406407]], [[2.1209173855882, 4.226177429619181, -2.5967747750708337, -4.6503828639089209], [1.58306759699268, -4.068533982115607, 0.60819098812429662, -2.6595307686277958], [-1.4154754405006651, -4.9373597216554508, 4.6389162956127432, -3.2206479990838268]]], [[[-2.8720339641094772, 2.242634641027176, -1.8648698974356548, -4.7099746442479775], [2.772191984852884, -1.0013392310020528, 4.873597742875317, 3.6182945461428968], [0.024120148988890477, 2.0715664150573119, 3.4977936991930552, 2.1083334817544985]], [[-3.667584818856052, -0.18618817620501815, -2.03406364033482, 4.5674396199330296], [0.0038148629550915913, -2.7801037613319779, 0.6075336550236603, -3.8391515563881828], [-1.9597005615585106, 0.85720098260441446, 4.6413579299494643, 4.9537024539144916]]]]),self.functionspace)
4429        arg0.setTaggedValue(1,numarray.array([[[[-3.9570089266185526, -1.1788388614277956, 4.9871221500653942, -1.1263227497125272], [-4.7820371711370822, -1.5988984302751774, -4.8605916736720891, -4.197788131553148], [1.1789837219166124, 4.3036149006784878, -3.6887726107349517, -1.8159689787298996]], [[-3.766620874378118, 0.76658944920751715, -0.63626181543470217, 3.5065526932923916], [-2.4382612735796649, 3.8413000700443192, -4.2431761370571008, -4.8799764552597509], [0.029220677961343533, -2.1941625574978776, -2.4657880163465364, 1.08462526349527]]], [[[4.5243766869060309, -0.16860083372765988, -4.5936390657344006, -4.3725680499032311], [2.514812865534144, -0.20614827168817662, -1.9610510771216294, 3.5907269365980667], [0.85365999983534913, 2.3977418092871261, 4.7772304391655886, 3.6729390698295674]], [[-4.5443861551323721, 1.4225729471964224, -0.7779134988817491, -3.242376137955282], [-3.8327511617844943, -0.97328759004036414, -3.7652958167274884, 0.5676714583596727], [-0.16840680222869508, -0.4223679804411411, 0.45452141604072427, -4.6381891557963701]]], [[[-0.75086306079533482, -2.5386852340591437, 4.7618030419518398, -2.0382885083950031], [-2.4780191973084675, -2.6499862808785135, 3.0294958184300746, 3.4292567495673385], [4.8465440472347581, 0.52512139371831523, -2.5929720943877066, -4.5730372663522445]], [[2.0895256871276793, -3.83148683348033, 2.9288901294151035, -4.80406347473407], [-3.9850590813625053, -4.5481400160096888, -1.3542666107504631, -0.10811912590963679], [-1.0784287881976629, 3.7690661883856595, 2.6920830517008199, -0.37334808389058516]]]]))        arg0.setTaggedValue(1,numarray.array([[[[-3.9570089266185526, -1.1788388614277956, 4.9871221500653942, -1.1263227497125272], [-4.7820371711370822, -1.5988984302751774, -4.8605916736720891, -4.197788131553148], [1.1789837219166124, 4.3036149006784878, -3.6887726107349517, -1.8159689787298996]], [[-3.766620874378118, 0.76658944920751715, -0.63626181543470217, 3.5065526932923916], [-2.4382612735796649, 3.8413000700443192, -4.2431761370571008, -4.8799764552597509], [0.029220677961343533, -2.1941625574978776, -2.4657880163465364, 1.08462526349527]]], [[[4.5243766869060309, -0.16860083372765988, -4.5936390657344006, -4.3725680499032311], [2.514812865534144, -0.20614827168817662, -1.9610510771216294, 3.5907269365980667], [0.85365999983534913, 2.3977418092871261, 4.7772304391655886, 3.6729390698295674]], [[-4.5443861551323721, 1.4225729471964224, -0.7779134988817491, -3.242376137955282], [-3.8327511617844943, -0.97328759004036414, -3.7652958167274884, 0.5676714583596727], [-0.16840680222869508, -0.4223679804411411, 0.45452141604072427, -4.6381891557963701]]], [[[-0.75086306079533482, -2.5386852340591437, 4.7618030419518398, -2.0382885083950031], [-2.4780191973084675, -2.6499862808785135, 3.0294958184300746, 3.4292567495673385], [4.8465440472347581, 0.52512139371831523, -2.5929720943877066, -4.5730372663522445]], [[2.0895256871276793, -3.83148683348033, 2.9288901294151035, -4.80406347473407], [-3.9850590813625053, -4.5481400160096888, -1.3542666107504631, -0.10811912590963679], [-1.0784287881976629, 3.7690661883856595, 2.6920830517008199, -0.37334808389058516]]]]))
4430        arg1=Data(-1.20267864853,self.functionspace)        arg1=Data(-1.20267864853,self.functionspace)
# Line 4435  class Test_util_overloaded_binary_with_t Line 4435  class Test_util_overloaded_binary_with_t
4435        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
4436        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4437     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4438     def test_div_overloaded_taggedData_rank4_constData_rank4(self):     def test_quotient_overloaded_taggedData_rank4_constData_rank4(self):
4439        arg0=Data(numarray.array([[[[-1.0327339609779749, 2.0143756421271029, -1.4786431987463611, -3.3066473304511557], [-2.3857503755349541, -4.0989361275654144, -0.95981928972363129, -0.81912046501743685], [1.4552110308441808, -2.5256713956724641, 4.917275304979583, -0.84847890779292534]], [[-2.5198600255551993, -2.216911110117632, 3.4623156019023007, 2.3733635203373264], [-1.2490402234630729, 4.2041740272172046, -0.053829965996404994, 3.1525337197841203], [3.3295868593620455, 1.7001663075343405, -2.7437005349229815, -3.5457429439732047]]], [[[4.3492032764944568, -4.425918659979871, 3.4567987514242127, -2.3004055709219373], [-1.5112239287444518, -3.57060958366581, -4.0315098892273298, 1.8236002895632062], [-2.0719580828739081, 0.30223543143100784, 0.12944985525811781, 4.9648094786369512]], [[-3.7944453951822665, 0.94503128847260509, 0.47331917406600788, 2.5447210435078187], [-3.906021725515092, 1.6280705688937367, -3.4235948528843108, 4.5782607650119509], [-0.88158581136565495, -1.0769009851907696, -0.62053325420310124, -3.1597054761685484]]], [[[4.1631536517574403, 4.3452018044542768, -2.4897641411748572, -0.35602874699410503], [-2.4908988029131485, -2.9117802416963698, 3.4314284530743997, 2.5809687464932161], [2.3597874119038238, 1.0984189214186868, -1.8594596581995351, -2.5238387417743291]], [[-3.9572176122462555, -2.2886849222489491, -4.970763528630922, 1.694891486429607], [-4.9000788616881508, -2.0414302673538809, -3.76770221370227, -4.8482329677888654], [3.4099913440822878, -0.24363081159977718, 0.062331472170862767, -4.0476356555207147]]]]),self.functionspace)        arg0=Data(numarray.array([[[[-1.0327339609779749, 2.0143756421271029, -1.4786431987463611, -3.3066473304511557], [-2.3857503755349541, -4.0989361275654144, -0.95981928972363129, -0.81912046501743685], [1.4552110308441808, -2.5256713956724641, 4.917275304979583, -0.84847890779292534]], [[-2.5198600255551993, -2.216911110117632, 3.4623156019023007, 2.3733635203373264], [-1.2490402234630729, 4.2041740272172046, -0.053829965996404994, 3.1525337197841203], [3.3295868593620455, 1.7001663075343405, -2.7437005349229815, -3.5457429439732047]]], [[[4.3492032764944568, -4.425918659979871, 3.4567987514242127, -2.3004055709219373], [-1.5112239287444518, -3.57060958366581, -4.0315098892273298, 1.8236002895632062], [-2.0719580828739081, 0.30223543143100784, 0.12944985525811781, 4.9648094786369512]], [[-3.7944453951822665, 0.94503128847260509, 0.47331917406600788, 2.5447210435078187], [-3.906021725515092, 1.6280705688937367, -3.4235948528843108, 4.5782607650119509], [-0.88158581136565495, -1.0769009851907696, -0.62053325420310124, -3.1597054761685484]]], [[[4.1631536517574403, 4.3452018044542768, -2.4897641411748572, -0.35602874699410503], [-2.4908988029131485, -2.9117802416963698, 3.4314284530743997, 2.5809687464932161], [2.3597874119038238, 1.0984189214186868, -1.8594596581995351, -2.5238387417743291]], [[-3.9572176122462555, -2.2886849222489491, -4.970763528630922, 1.694891486429607], [-4.9000788616881508, -2.0414302673538809, -3.76770221370227, -4.8482329677888654], [3.4099913440822878, -0.24363081159977718, 0.062331472170862767, -4.0476356555207147]]]]),self.functionspace)
4440        arg0.setTaggedValue(1,numarray.array([[[[0.18609579813963162, 2.9249226424011274, -3.3454919932308158, -1.6908852276540709], [4.8038090250202465, -2.6760579538656626, -0.11976206415871005, -4.5870291204655897], [3.2733848401463277, 4.8175569176651365, -2.3116863072831384, -4.07593517618227]], [[0.64858307312623786, 3.6195210186852282, 4.5260455645804836, -1.1594215305978404], [-1.77083941759724, 4.6499892967311158, -4.7281132836578363, 3.3639957748524179], [-3.7312141708376014, 3.7361883061083727, 0.53445097464518021, -3.7481246467759521]]], [[[-1.9869577655721473, -3.7717121865214098, -4.1854328353994488, 3.110458616826012], [-1.5396021073926223, 1.4602605301617979, -1.6444015905094456, -0.051360332396369834], [-3.7096192130280095, 4.9003256250813667, 1.406610428911482, 3.3249377590384501]], [[1.058063689730484, -1.1725067573512424, -3.6860642360241291, -2.278360136068792], [-3.3510345697745612, 2.9528141804938981, -4.38702870994506, -4.6579529585640467], [4.3087101651252642, 1.4743391204198355, 4.3889554146178149, -2.7559075549819543]]], [[[0.61939385953013204, 0.83406770965311239, 1.423942477925296, -3.6199653533478293], [0.04719680785062863, -3.2361875561286868, 3.1715068534183786, 0.0050131096953274223], [-4.8923191404689428, -0.55102373078262801, -0.92997995499814934, 1.9254434710409027]], [[2.7036847671301469, 4.9216725479761081, 2.8666102776185642, -1.7579156474796385], [-3.807137040478028, -2.950373718365217, 0.41297350766783048, -3.9539762623456776], [-0.22064451292381548, 1.0126529079254034, 0.66795032878315475, 4.0932377778717921]]]]))        arg0.setTaggedValue(1,numarray.array([[[[0.18609579813963162, 2.9249226424011274, -3.3454919932308158, -1.6908852276540709], [4.8038090250202465, -2.6760579538656626, -0.11976206415871005, -4.5870291204655897], [3.2733848401463277, 4.8175569176651365, -2.3116863072831384, -4.07593517618227]], [[0.64858307312623786, 3.6195210186852282, 4.5260455645804836, -1.1594215305978404], [-1.77083941759724, 4.6499892967311158, -4.7281132836578363, 3.3639957748524179], [-3.7312141708376014, 3.7361883061083727, 0.53445097464518021, -3.7481246467759521]]], [[[-1.9869577655721473, -3.7717121865214098, -4.1854328353994488, 3.110458616826012], [-1.5396021073926223, 1.4602605301617979, -1.6444015905094456, -0.051360332396369834], [-3.7096192130280095, 4.9003256250813667, 1.406610428911482, 3.3249377590384501]], [[1.058063689730484, -1.1725067573512424, -3.6860642360241291, -2.278360136068792], [-3.3510345697745612, 2.9528141804938981, -4.38702870994506, -4.6579529585640467], [4.3087101651252642, 1.4743391204198355, 4.3889554146178149, -2.7559075549819543]]], [[[0.61939385953013204, 0.83406770965311239, 1.423942477925296, -3.6199653533478293], [0.04719680785062863, -3.2361875561286868, 3.1715068534183786, 0.0050131096953274223], [-4.8923191404689428, -0.55102373078262801, -0.92997995499814934, 1.9254434710409027]], [[2.7036847671301469, 4.9216725479761081, 2.8666102776185642, -1.7579156474796385], [-3.807137040478028, -2.950373718365217, 0.41297350766783048, -3.9539762623456776], [-0.22064451292381548, 1.0126529079254034, 0.66795032878315475, 4.0932377778717921]]]]))
4441        arg1=Data(numarray.array([[[[-1.3312800333173334, -1.2910396058893756, 2.5147578690884203, 4.0739027971873085], [3.7700260502184353, 0.54161430581316594, -3.0931532505810369, -0.44787191634812906], [0.59492156959891407, -4.0516437035473443, 2.3349818256603685, 2.4752672498872634]], [[4.4409330881365676, -2.3079933784723892, -4.2809444673227439, -2.8356804813898142], [4.6116847259232188, 2.9290417447727766, -4.3832596200982525, -3.8813038635301043], [0.25738532308619355, -1.2306647979479735, 1.1010715313719075, 2.953081064683067]]], [[[0.66877561500101201, 2.3617003661917915, 4.0912092286832138, 0.22725377284902404], [-0.14462763652825927, 1.0228724619218177, -3.7292900079072622, -0.74482357119130427], [2.4278025697684598, 0.45707659085504027, 1.5722478681951451, 4.1632310441724805]], [[-4.6250280554489045, 4.6463579579802889, 3.1269690657908704, 4.9063443457582885], [-0.014848349317174936, 2.3920121450559382, -1.4338035828251536, 4.2519882430015574], [-4.1003465593683366, -2.5230288750185945, -3.6802875469010665, -1.3317641815100334]]], [[[3.9971224488236725, -4.6860599157029306, 1.4243255625558016, -2.9447517298642225], [0.31994815793669495, -3.1075444383287265, 3.9151714138169051, 0.0016135577092271092], [2.4972478391360644, 4.4552548713869342, 1.9744489091719171, -2.2571281692770828]], [[2.6616788333468886, -0.010624796701055317, -0.95127951390529208, 3.8649177450920753], [1.1768111299437489, -1.6461489519670582, -2.0105118651319587, -1.3525247017642483], [0.94313538447299372, 0.60994861556454261, -2.8717423862263489, 3.5075536263829061]]]]),self.functionspace)        arg1=Data(numarray.array([[[[-1.3312800333173334, -1.2910396058893756, 2.5147578690884203, 4.0739027971873085], [3.7700260502184353, 0.54161430581316594, -3.0931532505810369, -0.44787191634812906], [0.59492156959891407, -4.0516437035473443, 2.3349818256603685, 2.4752672498872634]], [[4.4409330881365676, -2.3079933784723892, -4.2809444673227439, -2.8356804813898142], [4.6116847259232188, 2.9290417447727766, -4.3832596200982525, -3.8813038635301043], [0.25738532308619355, -1.2306647979479735, 1.1010715313719075, 2.953081064683067]]], [[[0.66877561500101201, 2.3617003661917915, 4.0912092286832138, 0.22725377284902404], [-0.14462763652825927, 1.0228724619218177, -3.7292900079072622, -0.74482357119130427], [2.4278025697684598, 0.45707659085504027, 1.5722478681951451, 4.1632310441724805]], [[-4.6250280554489045, 4.6463579579802889, 3.1269690657908704, 4.9063443457582885], [-0.014848349317174936, 2.3920121450559382, -1.4338035828251536, 4.2519882430015574], [-4.1003465593683366, -2.5230288750185945, -3.6802875469010665, -1.3317641815100334]]], [[[3.9971224488236725, -4.6860599157029306, 1.4243255625558016, -2.9447517298642225], [0.31994815793669495, -3.1075444383287265, 3.9151714138169051, 0.0016135577092271092], [2.4972478391360644, 4.4552548713869342, 1.9744489091719171, -2.2571281692770828]], [[2.6616788333468886, -0.010624796701055317, -0.95127951390529208, 3.8649177450920753], [1.1768111299437489, -1.6461489519670582, -2.0105118651319587, -1.3525247017642483], [0.94313538447299372, 0.60994861556454261, -2.8717423862263489, 3.5075536263829061]]]]),self.functionspace)
# Line 4446  class Test_util_overloaded_binary_with_t Line 4446  class Test_util_overloaded_binary_with_t
4446        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
4447        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4448     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4449     def test_div_overloaded_taggedData_rank4_taggedData_rank0(self):     def test_quotient_overloaded_taggedData_rank4_taggedData_rank0(self):
4450        arg0=Data(numarray.array([[[[4.1007426349949725, -4.519732892858956, 4.7293849715227214, -0.28898207591347713], [0.55762176075736392, -1.0628715205486916, 0.66848695018160775, 3.5110793166256702], [0.10283202730874219, 2.7052524978179253, 2.8326265122643646, -4.7152653159891376]], [[4.1484005977522642, -4.3902301323650921, -3.4693138187917514, 0.57004159784484187], [0.14137737472461964, 4.0025183897828907, 4.9245677094597031, -0.76291386880514622], [-0.17084730988633545, -0.026736136212413442, 3.5053123019306494, 4.9418461315484166]]], [[[4.8017266655704134, 2.3171799385958201, -0.46730564148265685, 3.5201794972523555], [-0.46347188310928367, 3.9171558215207405, 4.9887716037125927, -3.6031584815729003], [-0.284282449264321, -1.6969663005117432, -4.3074021206231263, 3.1518012098091646]], [[4.8396148263500045, 0.89208823741248544, 2.3584938435932168, 3.5322340968157349], [-1.7116603978219236, -2.6064424603442338, 2.6696406363837335, -1.8681388264168906], [-1.5286663611455564, 0.69407234036637711, 1.2720299802229658, 1.2095882729783121]]], [[[-4.5591143019847618, 2.2166573142078843, 1.2198079645257103, -4.8410252577970052], [3.9450930169386638, 2.2573642178585764, 0.40755171373376164, -0.83310549622346297], [-2.7210938306756138, -2.2727676395034879, -1.5413440138460119, -4.2785489429394392]], [[-0.69128153199194742, 0.067135671848010503, 0.79267745460581107, -1.3197544231641292], [0.23283811800019727, 2.654085425482732, 3.8624565881931332, -2.0019718172030743], [1.7950199765221857, -4.4640736902418698, -4.8645144560789628, 3.0417550711231058]]]]),self.functionspace)        arg0=Data(numarray.array([[[[4.1007426349949725, -4.519732892858956, 4.7293849715227214, -0.28898207591347713], [0.55762176075736392, -1.0628715205486916, 0.66848695018160775, 3.5110793166256702], [0.10283202730874219, 2.7052524978179253, 2.8326265122643646, -4.7152653159891376]], [[4.1484005977522642, -4.3902301323650921, -3.4693138187917514, 0.57004159784484187], [0.14137737472461964, 4.0025183897828907, 4.9245677094597031, -0.76291386880514622], [-0.17084730988633545, -0.026736136212413442, 3.5053123019306494, 4.9418461315484166]]], [[[4.8017266655704134, 2.3171799385958201, -0.46730564148265685, 3.5201794972523555], [-0.46347188310928367, 3.9171558215207405, 4.9887716037125927, -3.6031584815729003], [-0.284282449264321, -1.6969663005117432, -4.3074021206231263, 3.1518012098091646]], [[4.8396148263500045, 0.89208823741248544, 2.3584938435932168, 3.5322340968157349], [-1.7116603978219236, -2.6064424603442338, 2.6696406363837335, -1.8681388264168906], [-1.5286663611455564, 0.69407234036637711, 1.2720299802229658, 1.2095882729783121]]], [[[-4.5591143019847618, 2.2166573142078843, 1.2198079645257103, -4.8410252577970052], [3.9450930169386638, 2.2573642178585764, 0.40755171373376164, -0.83310549622346297], [-2.7210938306756138, -2.2727676395034879, -1.5413440138460119, -4.2785489429394392]], [[-0.69128153199194742, 0.067135671848010503, 0.79267745460581107, -1.3197544231641292], [0.23283811800019727, 2.654085425482732, 3.8624565881931332, -2.0019718172030743], [1.7950199765221857, -4.4640736902418698, -4.8645144560789628, 3.0417550711231058]]]]),self.functionspace)
4451        arg0.setTaggedValue(1,numarray.array([[[[-2.3005185744779988, -1.2491428718597875, -4.1534661963625519, -3.2504302668519847], [3.7441647610516533, 1.9382774900121094, -0.28971022029775195, 1.3379140524199933], [0.67437833685640669, 3.6827935567186518, 0.18808629251455233, 1.5953047903090667]], [[2.9904609235071451, -1.0744799961237161, 2.4188331620484584, 2.1432545794028934], [-4.5846321967672203, -4.8160102341790036, -2.7191372978758066, 3.767797810163966], [-0.35446520795042602, -0.29091934715030021, -0.92793039759923257, 2.096406718096036]]], [[[1.9155168239565503, 1.6676698112020105, 0.14056204774522918, 3.108379355397318], [1.7152535885035913, 1.8199104367703942, -0.55774055354723551, -4.5700073386961435], [-1.9653086972102396, -0.26224038407908346, -0.24877949232596741, -2.9275802966760747]], [[4.1491403545718626, -1.6401663439420977, -4.0631386856139828, 4.9366951229348217], [-0.781324138865096, -3.1083849150122367, 0.83260797353436278, -4.0336581413838966], [-0.43765157692457013, 3.0204870664815768, -3.174934734493787, -3.6182308330378476]]], [[[-0.32659020813598705, 3.6115315302986506, 1.9808517984926759, -4.1578309504973543], [4.9419930674696726, -0.59807266472997611, -2.6874034592577303, 3.1265165029361182], [3.5833640072724329, -4.7869378475608446, 3.6198150783807659, -3.0020744900796501]], [[2.5347129953709349, -4.5750771859517601, 3.2598863328964214, -4.8520101461831846], [0.70583885439488103, 0.94538165740791058, -4.6925057824462781, 1.4297836601778346], [-0.72980890086483541, 2.1254089004795826, 0.77475702802959479, -4.1084262707435908]]]]))        arg0.setTaggedValue(1,numarray.array([[[[-2.3005185744779988, -1.2491428718597875, -4.1534661963625519, -3.2504302668519847], [3.7441647610516533, 1.9382774900121094, -0.28971022029775195, 1.3379140524199933], [0.67437833685640669, 3.6827935567186518, 0.18808629251455233, 1.5953047903090667]], [[2.9904609235071451, -1.0744799961237161, 2.4188331620484584, 2.1432545794028934], [-4.5846321967672203, -4.8160102341790036, -2.7191372978758066, 3.767797810163966], [-0.35446520795042602, -0.29091934715030021, -0.92793039759923257, 2.096406718096036]]], [[[1.9155168239565503, 1.6676698112020105, 0.14056204774522918, 3.108379355397318], [1.7152535885035913, 1.8199104367703942, -0.55774055354723551, -4.5700073386961435], [-1.9653086972102396, -0.26224038407908346, -0.24877949232596741, -2.9275802966760747]], [[4.1491403545718626, -1.6401663439420977, -4.0631386856139828, 4.9366951229348217], [-0.781324138865096, -3.1083849150122367, 0.83260797353436278, -4.0336581413838966], [-0.43765157692457013, 3.0204870664815768, -3.174934734493787, -3.6182308330378476]]], [[[-0.32659020813598705, 3.6115315302986506, 1.9808517984926759, -4.1578309504973543], [4.9419930674696726, -0.59807266472997611, -2.6874034592577303, 3.1265165029361182], [3.5833640072724329, -4.7869378475608446, 3.6198150783807659, -3.0020744900796501]], [[2.5347129953709349, -4.5750771859517601, 3.2598863328964214, -4.8520101461831846], [0.70583885439488103, 0.94538165740791058, -4.6925057824462781, 1.4297836601778346], [-0.72980890086483541, 2.1254089004795826, 0.77475702802959479, -4.1084262707435908]]]]))
4452        arg1=Data(2.99900582466,self.functionspace)        arg1=Data(2.99900582466,self.functionspace)
# Line 4458  class Test_util_overloaded_binary_with_t Line 4458  class Test_util_overloaded_binary_with_t
4458        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
4459        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4460     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4461     def test_div_overloaded_taggedData_rank4_taggedData_rank4(self):     def test_quotient_overloaded_taggedData_rank4_taggedData_rank4(self):
4462        arg0=Data(numarray.array([[[[1.0618271583459373, 1.7184780416616103, -3.336781801090023, -2.3670734116308023], [-0.043146499496482527, -0.39678181068694762, 1.0868040369924419, 2.3463943761221522], [4.0143548680960475, 1.7812490527650748, 3.5249544589291144, -3.5103104101748137]], [[2.4493629081526898, 0.22334084821464728, 0.82904495314491911, -2.6823113268833874], [-4.2620766671659638, -0.89195615689549079, -0.72196052600927807, 0.80489502290759063], [4.1999058233141113, -3.720911559706388, -0.92848233253016588, 1.0166185120281535]]], [[[0.36030150228313662, -2.2041015807855535, 1.2487700908507646, -0.83211788949314958], [-1.9916698185930706, -1.0428781559288303, 1.9720913364728343, -1.6662602417963877], [-0.30847241052365959, 1.1279145906064416, -0.60507705545981239, -1.2291886642753189]], [[-1.1650755952672132, 4.1423088477127603, -3.4678049116409451, -4.1323127562927287], [-3.3691011693939634, -0.64705725962743355, 0.95874300811407842, 3.0840681696449046], [4.2012245226344156, 1.5605862182031505, 0.098166286422406657, -3.3039310281834942]]], [[[-3.8226342736185979, -1.5719276567476834, -4.7898221223434447, -2.9460285103791994], [-4.652331825817325, -2.3168736955394587, 1.5303040716012557, 0.55021792311256146], [-2.7760347834213075, 4.2947811716375544, 4.0350024298566733, -0.16915979935495429]], [[-3.5104736845685567, 3.5844630933637731, -1.4395418040270136, -0.99111984318581481], [1.2457378008678832, -2.7431074229395449, 0.30537289674310131, -0.55981011898774824], [-4.9678937547042583, 0.51075512796737677, 4.1972156492475889, -0.21175288793081837]]]]),self.functionspace)        arg0=Data(numarray.array([[[[1.0618271583459373, 1.7184780416616103, -3.336781801090023, -2.3670734116308023], [-0.043146499496482527, -0.39678181068694762, 1.0868040369924419, 2.3463943761221522], [4.0143548680960475, 1.7812490527650748, 3.5249544589291144, -3.5103104101748137]], [[2.4493629081526898, 0.22334084821464728, 0.82904495314491911, -2.6823113268833874], [-4.2620766671659638, -0.89195615689549079, -0.72196052600927807, 0.80489502290759063], [4.1999058233141113, -3.720911559706388, -0.92848233253016588, 1.0166185120281535]]], [[[0.36030150228313662, -2.2041015807855535, 1.2487700908507646, -0.83211788949314958], [-1.9916698185930706, -1.0428781559288303, 1.9720913364728343, -1.6662602417963877], [-0.30847241052365959, 1.1279145906064416, -0.60507705545981239, -1.2291886642753189]], [[-1.1650755952672132, 4.1423088477127603, -3.4678049116409451, -4.1323127562927287], [-3.3691011693939634, -0.64705725962743355, 0.95874300811407842, 3.0840681696449046], [4.2012245226344156, 1.5605862182031505, 0.098166286422406657, -3.3039310281834942]]], [[[-3.8226342736185979, -1.5719276567476834, -4.7898221223434447, -2.9460285103791994], [-4.652331825817325, -2.3168736955394587, 1.5303040716012557, 0.55021792311256146], [-2.7760347834213075, 4.2947811716375544, 4.0350024298566733, -0.16915979935495429]], [[-3.5104736845685567, 3.5844630933637731, -1.4395418040270136, -0.99111984318581481], [1.2457378008678832, -2.7431074229395449, 0.30537289674310131, -0.55981011898774824], [-4.9678937547042583, 0.51075512796737677, 4.1972156492475889, -0.21175288793081837]]]]),self.functionspace)
4463        arg0.setTaggedValue(1,numarray.array([[[[3.5122610763651601, 3.0517618574098613, -4.149218174833301, -1.4168789509485102], [-2.517928622745206, -4.666817528144743, -1.919825954080344, 4.5248889280830991], [3.7817725894714425, -0.82748655676561, -1.0724055147942533, -4.094720874288801]], [[3.0815444266462784, -1.720499726941882, 4.1205729058672524, 2.1368147322167852], [1.2882129255283816, 2.1191991365673761, 2.272013332893561, -1.9323793628683719], [-3.0204494419588945, 1.339179711255607, 0.37825133738720851, -3.8950088527553941]]], [[[-1.1191245124623461, 0.15934533712808552, 4.6486301352559956, 4.0946893973199554], [3.5579957101088961, -2.1612014156332338, 1.2931114312561824, -2.2878304974698294], [4.7671793831448017, 4.808594411817591, -2.735457879808628, -2.6573573325991537]], [[1.7839151280633665, -1.1991349596996184, -3.5261613489865198, -3.8578130763723264], [1.9575449248897066, -2.3789070040871252, 2.4546053540439914, 2.5576986208421326], [1.0420757821373332, -3.966833147693257, 4.8625749032835834, 1.2234722207613702]]], [[[-4.4418863918488904, 0.22050378829320394, -3.6483081431211764, 4.1514250477317436], [-4.7789903893436172, 4.2035267930237055, 2.1019168293472044, -4.5841456832497895], [-1.3407900515355795, -0.67869762518357923, 2.6331933991495662, 1.9195108601247393]], [[-4.6590755878616879, 3.7328159205771918, -4.4602013568577812, 0.27833681256916787], [-2.2746590217196383, -4.7613797243128841, -3.6103628617611006, 4.4434048803562902], [4.6671745725551652, 3.8929458352139203, 4.9131863370268061, -2.7466634455882488]]]]))        arg0.setTaggedValue(1,numarray.array([[[[3.5122610763651601, 3.0517618574098613, -4.149218174833301, -1.4168789509485102], [-2.517928622745206, -4.666817528144743, -1.919825954080344, 4.5248889280830991], [3.7817725894714425, -0.82748655676561, -1.0724055147942533, -4.094720874288801]], [[3.0815444266462784, -1.720499726941882, 4.1205729058672524, 2.1368147322167852], [1.2882129255283816, 2.1191991365673761, 2.272013332893561, -1.9323793628683719], [-3.0204494419588945, 1.339179711255607, 0.37825133738720851, -3.8950088527553941]]], [[[-1.1191245124623461, 0.15934533712808552, 4.6486301352559956, 4.0946893973199554], [3.5579957101088961, -2.1612014156332338, 1.2931114312561824, -2.2878304974698294], [4.7671793831448017, 4.808594411817591, -2.735457879808628, -2.6573573325991537]], [[1.7839151280633665, -1.1991349596996184, -3.5261613489865198, -3.8578130763723264], [1.9575449248897066, -2.3789070040871252, 2.4546053540439914, 2.5576986208421326], [1.0420757821373332, -3.966833147693257, 4.8625749032835834, 1.2234722207613702]]], [[[-4.4418863918488904, 0.22050378829320394, -3.6483081431211764, 4.1514250477317436], [-4.7789903893436172, 4.2035267930237055, 2.1019168293472044, -4.5841456832497895], [-1.3407900515355795, -0.67869762518357923, 2.6331933991495662, 1.9195108601247393]], [[-4.6590755878616879, 3.7328159205771918, -4.4602013568577812, 0.27833681256916787], [-2.2746590217196383, -4.7613797243128841, -3.6103628617611006, 4.4434048803562902], [4.6671745725551652, 3.8929458352139203, 4.9131863370268061, -2.7466634455882488]]]]))
4464        arg1=Data(numarray.array([[[[-0.65038757855055529, -0.93880676562237309, -0.42605193437611266, 3.6519686515255643], [-1.077027335293983, -2.835998931506134, 1.2348558375421561, -3.089489817614556], [3.4268334215326703, -3.4090492221765736, 3.3718265168568653, 3.2471348640364752]], [[0.80244152241828637, 1.8726425911859224, 1.3376655746479917, 3.5707793921769468], [-4.5531627156380852, -2.6926366478569417, -0.37497600131739972, -4.828375407477572], [2.1069719268343885, 2.4120118758449038, 1.6310716712346354, -1.2126470663592768]]], [[[4.3263113256794465, 0.48824093972754312, -1.1696280489213464, 2.033748428585044], [1.230842898624104, 3.3722009275761575, -1.3118769467607851, -2.1893856305721195], [-3.0524898696517768, -0.69628482831163474, 0.38487501832779802, -2.1654004990439537]], [[-1.5662518496594391, 3.4763807753157092, -4.4256766309015916, 1.5633124905480535], [0.27114540814956101, -0.0012152957848847734, -4.1259273840692821, -3.3862078860508262], [-4.9554746046883249, -3.7073614550879777, 2.6460415392674141, 3.3371798628895259]]], [[[4.332150931686833, -1.3299102610645752, -3.9667886779057748, 0.79937779985716162], [-1.5796696570107462, 1.6520689766194208, 4.796722042343939, 0.25927010003692708], [1.5475370548483589, 1.2042560590962905, -1.8123425716833621, -4.0080717441876832]], [[-4.0191163732729409, 1.0937258541326402, -2.2776643545813355, -1.2764899452165079], [-1.6204876233274321, -3.4289156461908021, 0.77937272670497215, -2.3152304844388869], [0.87296893376424123, -4.5703008505874436, 3.5658912282878816, -1.3464412959924554]]]]),self.functionspace)        arg1=Data(numarray.array([[[[-0.65038757855055529, -0.93880676562237309, -0.42605193437611266, 3.6519686515255643], [-1.077027335293983, -2.835998931506134, 1.2348558375421561, -3.089489817614556], [3.4268334215326703, -3.4090492221765736, 3.3718265168568653, 3.2471348640364752]], [[0.80244152241828637, 1.8726425911859224, 1.3376655746479917, 3.5707793921769468], [-4.5531627156380852, -2.6926366478569417, -0.37497600131739972, -4.828375407477572], [2.1069719268343885, 2.4120118758449038, 1.6310716712346354, -1.2126470663592768]]], [[[4.3263113256794465, 0.48824093972754312, -1.1696280489213464, 2.033748428585044], [1.230842898624104, 3.3722009275761575, -1.3118769467607851, -2.1893856305721195], [-3.0524898696517768, -0.69628482831163474, 0.38487501832779802, -2.1654004990439537]], [[-1.5662518496594391, 3.4763807753157092, -4.4256766309015916, 1.5633124905480535], [0.27114540814956101, -0.0012152957848847734, -4.1259273840692821, -3.3862078860508262], [-4.9554746046883249, -3.7073614550879777, 2.6460415392674141, 3.3371798628895259]]], [[[4.332150931686833, -1.3299102610645752, -3.9667886779057748, 0.79937779985716162], [-1.5796696570107462, 1.6520689766194208, 4.796722042343939, 0.25927010003692708], [1.5475370548483589, 1.2042560590962905, -1.8123425716833621, -4.0080717441876832]], [[-4.0191163732729409, 1.0937258541326402, -2.2776643545813355, -1.2764899452165079], [-1.6204876233274321, -3.4289156461908021, 0.77937272670497215, -2.3152304844388869], [0.87296893376424123, -4.5703008505874436, 3.5658912282878816, -1.3464412959924554]]]]),self.functionspace)
# Line 4470  class Test_util_overloaded_binary_with_t Line 4470  class Test_util_overloaded_binary_with_t
4470        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
4471        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4472     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4473     def test_div_overloaded_taggedData_rank4_expandedData_rank0(self):     def test_quotient_overloaded_taggedData_rank4_expandedData_rank0(self):
4474        arg0=Data(numarray.array([[[[-2.265648390553995, -2.9200974994770812, -2.9738356457519108, 0.47070061992501433], [-2.8002435362200409, 0.74142785196968486, 3.6157580410878492, 4.1426545276650266], [2.0110881358371628, 4.3062074812751199, 1.8442448181320206, 1.2414592568983558]], [[1.8513999912994974, -4.5658553850384127, -0.21744391375126781, 2.9733992676545213], [-4.3258217524123523, -3.8996241164617187, -0.43889595991960029, -3.6555436181267376], [-4.1118051354633618, 2.6119574344487972, 4.5403298107730645, -3.7689573500877094]]], [[[1.959282116033906, 0.015329999128599781, 0.57050332601638143, -1.8072710926602928], [-2.1542164128732866, -2.1354355394777649, 2.4522619461243149, -0.025855451721236378], [3.8561667806731368, -2.8529835622661337, -4.722283768013944, -0.50898021811774719]], [[-1.3243836972141754, 2.4158383081464407, 2.506209342104051, -1.7850503760643264], [2.2921837132612568, 3.047583846027587, -4.6581368830141479, -1.4298209586345134], [-0.685585315107204, -4.665066520267434, -0.55488013928404278, 4.6166932286985389]]], [[[2.153595002009502, 1.7767388696224309, 0.74540204034132351, -4.6401080855635568], [-4.9566124193687919, -1.0345220190650406, -2.1249232827773468, -2.6494751583438694], [-0.16127915233722057, 1.4915288081273452, -4.339421886305149, -1.7180211667952019]], [[1.4347324230160261, -1.2823468894105106, 3.8242421149955739, -1.7315565463080462], [0.050490881927206743, 4.844989221347916, -1.9661211142960209, -3.4161981873495662], [1.4945865602300659, 4.809327375728115, 2.6230740415966576, -2.9628328132989026]]]]),self.functionspace)        arg0=Data(numarray.array([[[[-2.265648390553995, -2.9200974994770812, -2.9738356457519108, 0.47070061992501433], [-2.8002435362200409, 0.74142785196968486, 3.6157580410878492, 4.1426545276650266], [2.0110881358371628, 4.3062074812751199, 1.8442448181320206, 1.2414592568983558]], [[1.8513999912994974, -4.5658553850384127, -0.21744391375126781, 2.9733992676545213], [-4.3258217524123523, -3.8996241164617187, -0.43889595991960029, -3.6555436181267376], [-4.1118051354633618, 2.6119574344487972, 4.5403298107730645, -3.7689573500877094]]], [[[1.959282116033906, 0.015329999128599781, 0.57050332601638143, -1.8072710926602928], [-2.1542164128732866, -2.1354355394777649, 2.4522619461243149, -0.025855451721236378], [3.8561667806731368, -2.8529835622661337, -4.722283768013944, -0.50898021811774719]], [[-1.3243836972141754, 2.4158383081464407, 2.506209342104051, -1.7850503760643264], [2.2921837132612568, 3.047583846027587, -4.6581368830141479, -1.4298209586345134], [-0.685585315107204, -4.665066520267434, -0.55488013928404278, 4.6166932286985389]]], [[[2.153595002009502, 1.7767388696224309, 0.74540204034132351, -4.6401080855635568], [-4.9566124193687919, -1.0345220190650406, -2.1249232827773468, -2.6494751583438694], [-0.16127915233722057, 1.4915288081273452, -4.339421886305149, -1.7180211667952019]], [[1.4347324230160261, -1.2823468894105106, 3.8242421149955739, -1.7315565463080462], [0.050490881927206743, 4.844989221347916, -1.9661211142960209, -3.4161981873495662], [1.4945865602300659, 4.809327375728115, 2.6230740415966576, -2.9628328132989026]]]]),self.functionspace)
4475        arg0.setTaggedValue(1,numarray.array([[[[-0.31785639817894396, 0.36983394990707374, 1.9373222090202784, -1.3057974224533107], [-0.70445093120710744, -2.6222595507050697, -2.4760010838350208, -3.5054572997536351], [-4.8622665246297956, 4.402670172367614, 0.82526698440179302, 4.5302414243620142]], [[-1.1774644693518099, 4.2707997152069836, -2.2753347254618514, 0.97505626140751112], [1.0934737916610437, -2.3354305385247076, 4.2830466816638193, 1.8399957342987348], [-4.7379966465543122, -0.72742830899541833, -2.3773013594702688, 3.6693679906626979]]], [[[2.3796252634252486, -4.5650282365215844, 4.8134980176939592, -1.844397763509197], [1.5250879512199544, 1.0572835892168699, -3.2469954593089332, 1.4228883006506621], [-2.1726533242691271, -1.2065294419614547, 1.2484387969554946, 1.0990712360378918]], [[-2.4162105256886282, -2.5406633048212246, 3.8330178297238859, 3.0567414025082194], [2.1190007273967097, 4.4158026995429562, 2.0451990938830624, 2.5288095590256425], [4.7051223480141466, 1.1938645456089017, 4.3246730102291888, -4.8530402768378567]]], [[[0.53866738191620378, -4.0280610368566556, -0.54793521869597051, 1.1063448829798137], [-0.65812810448573877, -4.2231780752215089, 4.7735226827992712, 2.3349879558059596], [3.9014773101342382, 3.8401166969693694, 2.893490830255284, 1.3851016476523696]], [[-4.8510624426771711, 0.63269336421068267, -3.2611041370876457, 1.728355698635994], [3.7578497695675193, -1.9606616500774732, -0.46627909002342705, 3.047533991099165], [1.8768210564436325, -1.5634811462144671, 3.5733696572968547, -3.3135138094133221]]]]))        arg0.setTaggedValue(1,numarray.array([[[[-0.31785639817894396, 0.36983394990707374, 1.9373222090202784, -1.3057974224533107], [-0.70445093120710744, -2.6222595507050697, -2.4760010838350208, -3.5054572997536351], [-4.8622665246297956, 4.402670172367614, 0.82526698440179302, 4.5302414243620142]], [[-1.1774644693518099, 4.2707997152069836, -2.2753347254618514, 0.97505626140751112], [1.0934737916610437, -2.3354305385247076, 4.2830466816638193, 1.8399957342987348], [-4.7379966465543122, -0.72742830899541833, -2.3773013594702688, 3.6693679906626979]]], [[[2.3796252634252486, -4.5650282365215844, 4.8134980176939592, -1.844397763509197], [1.5250879512199544, 1.0572835892168699, -3.2469954593089332, 1.4228883006506621], [-2.1726533242691271, -1.2065294419614547, 1.2484387969554946, 1.0990712360378918]], [[-2.4162105256886282, -2.5406633048212246, 3.8330178297238859, 3.0567414025082194], [2.1190007273967097, 4.4158026995429562, 2.0451990938830624, 2.5288095590256425], [4.7051223480141466, 1.1938645456089017, 4.3246730102291888, -4.8530402768378567]]], [[[0.53866738191620378, -4.0280610368566556, -0.54793521869597051, 1.1063448829798137], [-0.65812810448573877, -4.2231780752215089, 4.7735226827992712, 2.3349879558059596], [3.9014773101342382, 3.8401166969693694, 2.893490830255284, 1.3851016476523696]], [[-4.8510624426771711, 0.63269336421068267, -3.2611041370876457, 1.728355698635994], [3.7578497695675193, -1.9606616500774732, -0.46627909002342705, 3.047533991099165], [1.8768210564436325, -1.5634811462144671, 3.5733696572968547, -3.3135138094133221]]]]))
4476        arg1=Data(-3.49526341243,self.functionspace)        arg1=Data(-3.49526341243,self.functionspace)
# Line 4483  class Test_util_overloaded_binary_with_t Line 4483  class Test_util_overloaded_binary_with_t
4483        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
4484        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4485     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4486     def test_div_overloaded_taggedData_rank4_expandedData_rank4(self):     def test_quotient_overloaded_taggedData_rank4_expandedData_rank4(self):
4487        arg0=Data(numarray.array([[[[-3.6851566239733269, 1.1533224301519827, -4.9285187076086121, 3.6263450512140079], [0.48919897660488232, 4.5529846894296906, 1.1113203399544229, 1.5037072134475089], [0.37964623480817394, -4.8379949722247249, -4.1617781559907598, 0.58277978280663056]], [[4.054645303508714, 2.7714693487589752, 3.2297034273487419, 0.34788822466271885], [4.9641834293649882, -4.2821077134380641, 1.1716337560058463, -2.0432888110331113], [0.675695837304497, -0.51300125326017021, -4.7243447763732327, -4.3207995828595287]]], [[[-4.0540825268290916, 3.6289742833674481, 3.6038508506898168, 1.21820395743541], [2.2714017972297853, 0.80630408863172498, -2.0833280735078228, -0.13564936819583551], [-2.2625379575776492, 0.090119065456053526, -0.64906857951379315, -1.7088049015587456]], [[1.4898974069803668, -3.2489984118441395, -0.25172310847942292, -2.6582559209522225], [2.3096968525084858, -1.9280003777453825, 2.6721996239401866, -1.0426414242763151], [-4.3752435266961234, -4.0387561737998112, -1.9954587260518397, -0.1134705782414045]]], [[[-1.0794875486950839, -0.38237878871277076, -2.4983461002557705, -1.8573108479946674], [-3.3148582580278232, -2.5864458871335119, 1.764038835692963, 3.7703259488145324], [-4.793246376389245, 3.8307631682699501, 3.0567268027774315, -0.21949428873601917]], [[-2.1864971894244531, -2.5924398858741018, 1.3468577770668073, -0.67131401342146191], [-1.1346021880513559, -3.1999854573065267, 2.0365293767652943, 4.6535173838957284], [-2.2702126644664968, 1.3624288984739756, -1.1773655367430202, 2.5816950916101273]]]]),self.functionspace)        arg0=Data(numarray.array([[[[-3.6851566239733269, 1.1533224301519827, -4.9285187076086121, 3.6263450512140079], [0.48919897660488232, 4.5529846894296906, 1.1113203399544229, 1.5037072134475089], [0.37964623480817394, -4.8379949722247249, -4.1617781559907598, 0.58277978280663056]], [[4.054645303508714, 2.7714693487589752, 3.2297034273487419, 0.34788822466271885], [4.9641834293649882, -4.2821077134380641, 1.1716337560058463, -2.0432888110331113], [0.675695837304497, -0.51300125326017021, -4.7243447763732327, -4.3207995828595287]]], [[[-4.0540825268290916, 3.6289742833674481, 3.6038508506898168, 1.21820395743541], [2.2714017972297853, 0.80630408863172498, -2.0833280735078228, -0.13564936819583551], [-2.2625379575776492, 0.090119065456053526, -0.64906857951379315, -1.7088049015587456]], [[1.4898974069803668, -3.2489984118441395, -0.25172310847942292, -2.6582559209522225], [2.3096968525084858, -1.9280003777453825, 2.6721996239401866, -1.0426414242763151], [-4.3752435266961234, -4.0387561737998112, -1.9954587260518397, -0.1134705782414045]]], [[[-1.0794875486950839, -0.38237878871277076, -2.4983461002557705, -1.8573108479946674], [-3.3148582580278232, -2.5864458871335119, 1.764038835692963, 3.7703259488145324], [-4.793246376389245, 3.8307631682699501, 3.0567268027774315, -0.21949428873601917]], [[-2.1864971894244531, -2.5924398858741018, 1.3468577770668073, -0.67131401342146191], [-1.1346021880513559, -3.1999854573065267, 2.0365293767652943, 4.6535173838957284], [-2.2702126644664968, 1.3624288984739756, -1.1773655367430202, 2.5816950916101273]]]]),self.functionspace)
4488        arg0.setTaggedValue(1,numarray.array([[[[-2.9004345225629038, -3.2717207008452354, -4.9276965563513144, -3.2667953795976459], [-1.9787999922028279, 0.62805003068389631, 2.7489167134094892, 2.5054878867231567], [-4.9057207824039475, -2.7636846029329201, 1.5507316063445895, 2.8586736994374586]], [[1.9010639302953347, -2.5020705389570996, -4.8510199426254994, 0.85456864964716051], [-4.01216644599684, 4.4535506742987909, 4.4209109658062715, -4.8709781800966843], [-0.070541782094181826, -3.0234980659277477, 4.8668517706460843, 3.9166244944993558]]], [[[-1.5021570350848021, -0.07832595848674373, 1.9778934197451035, -3.8696688786656952], [4.3102137437468144, 3.6294567171315144, 3.7219523142954003, -4.5814718575296407], [-1.6562802112843134, -4.7794288842284169, 4.2626236813392175, -3.2097613549899418]], [[0.11120342411898321, 0.2518789860875037, -4.8030461570976568, 4.5092108793178998], [0.82263466007281139, -0.028216606721471749, -0.41031234769010361, 1.4839412055336236], [1.0839610623105607, -1.9093047547536202, 2.626314653398496, 1.2106828898723627]]], [[[-4.8785769751578458, 2.7109286817256608, -1.9884820444724269, -0.18340392864844723], [4.245494492581031, 1.8397033660462538, -0.26276606639886069, 2.0319672399177504], [2.8828757275580585, -3.8707489277117579, -3.1921051154373825, -4.1559637294415053]], [[2.63402242625288, -4.2413464853334402, -3.5610860497586327, 1.4691708383051205], [-4.4842718371407848, -2.8016665751553802, -4.8731842751732257, 4.1951235927490096], [4.0112662304026347, 2.7970037976811177, -1.7438773953696307, 2.635356892058426]]]]))        arg0.setTaggedValue(1,numarray.array([[[[-2.9004345225629038, -3.2717207008452354, -4.9276965563513144, -3.2667953795976459], [-1.9787999922028279, 0.62805003068389631, 2.7489167134094892, 2.5054878867231567], [-4.9057207824039475, -2.7636846029329201, 1.5507316063445895, 2.8586736994374586]], [[1.9010639302953347, -2.5020705389570996, -4.8510199426254994, 0.85456864964716051], [-4.01216644599684, 4.4535506742987909, 4.4209109658062715, -4.8709781800966843], [-0.070541782094181826, -3.0234980659277477, 4.8668517706460843, 3.9166244944993558]]], [[[-1.5021570350848021, -0.07832595848674373, 1.9778934197451035, -3.8696688786656952], [4.3102137437468144, 3.6294567171315144, 3.7219523142954003, -4.5814718575296407], [-1.6562802112843134, -4.7794288842284169, 4.2626236813392175, -3.2097613549899418]], [[0.11120342411898321, 0.2518789860875037, -4.8030461570976568, 4.5092108793178998], [0.82263466007281139, -0.028216606721471749, -0.41031234769010361, 1.4839412055336236], [1.0839610623105607, -1.9093047547536202, 2.626314653398496, 1.2106828898723627]]], [[[-4.8785769751578458, 2.7109286817256608, -1.9884820444724269, -0.18340392864844723], [4.245494492581031, 1.8397033660462538, -0.26276606639886069, 2.0319672399177504], [2.8828757275580585, -3.8707489277117579, -3.1921051154373825, -4.1559637294415053]], [[2.63402242625288, -4.2413464853334402, -3.5610860497586327, 1.4691708383051205], [-4.4842718371407848, -2.8016665751553802, -4.8731842751732257, 4.1951235927490096], [4.0112662304026347, 2.7970037976811177, -1.7438773953696307, 2.635356892058426]]]]))
4489        arg1=Data(numarray.array([[[[0.38652242618978594, -0.48340536926048561, 3.7878291614198805, -3.378599806448539], [-4.0110215701639529, -4.2498451759243858, -2.2464801448680927, -3.8714846781772652], [3.2776964103412691, -4.9626083285314433, 0.14442033978273372, 1.6980909883090831]], [[3.7317390727038369, -0.26085764519305599, 2.2993802251193483, -2.6857037784795179], [0.61966006239067184, 4.893033102843825, 0.50104420115685055, -0.090491452059055177], [4.3179008325832484, 4.7701294339811113, -2.7499169445471052, -2.9250385254304589]]], [[[-0.0088487780797619209, 3.9201486471110396, -3.9144968555812265, -2.3163074200869991], [-1.0976934334874464, -2.5904094256137578, 1.9308778760242564, -1.1652708391907254], [-0.17421223942566755, 3.512135113004657, 0.77422197678590798, -4.2132579450429848]], [[-3.0691642207464143, 3.6702881129424689, -2.6007526655415889, 0.80170672531641785], [-0.11173999637705467, 2.0212398599039396, -4.1813789941580897, -3.3858221590364925], [-3.0723920325898502, 2.3562640251700806, 1.0698213612039398, 2.7535427857161316]]], [[[-4.9074802188805915, -3.0366254286560213, -3.7273492104898276, -0.77529266605563674], [-2.9237479268441682, 2.7818573067598606, -3.6546154534242503, -0.87150180202691807], [3.997503732119247, 0.10985852201516444, 1.5825574492073757, 2.9464575186986544]], [[1.9079725446759275, -3.8609029352616031, 0.54734354666454177, 3.5463287806894854], [2.9251383095471359, -4.7320601732568388, -4.6712454499393852, -3.4543319709016149], [-2.9451454450107093, 4.830082508842553, -4.9340701182486306, -1.8970117446210608]]]]),self.functionspace)        arg1=Data(numarray.array([[[[0.38652242618978594, -0.48340536926048561, 3.7878291614198805, -3.378599806448539], [-4.0110215701639529, -4.2498451759243858, -2.2464801448680927, -3.8714846781772652], [3.2776964103412691, -4.9626083285314433, 0.14442033978273372, 1.6980909883090831]], [[3.7317390727038369, -0.26085764519305599, 2.2993802251193483, -2.6857037784795179], [0.61966006239067184, 4.893033102843825, 0.50104420115685055, -0.090491452059055177], [4.3179008325832484, 4.7701294339811113, -2.7499169445471052, -2.9250385254304589]]], [[[-0.0088487780797619209, 3.9201486471110396, -3.9144968555812265, -2.3163074200869991], [-1.0976934334874464, -2.5904094256137578, 1.9308778760242564, -1.1652708391907254], [-0.17421223942566755, 3.512135113004657, 0.77422197678590798, -4.2132579450429848]], [[-3.0691642207464143, 3.6702881129424689, -2.6007526655415889, 0.80170672531641785], [-0.11173999637705467, 2.0212398599039396, -4.1813789941580897, -3.3858221590364925], [-3.0723920325898502, 2.3562640251700806, 1.0698213612039398, 2.7535427857161316]]], [[[-4.9074802188805915, -3.0366254286560213, -3.7273492104898276, -0.77529266605563674], [-2.9237479268441682, 2.7818573067598606, -3.6546154534242503, -0.87150180202691807], [3.997503732119247, 0.10985852201516444, 1.5825574492073757, 2.9464575186986544]], [[1.9079725446759275, -3.8609029352616031, 0.54734354666454177, 3.5463287806894854], [2.9251383095471359, -4.7320601732568388, -4.6712454499393852, -3.4543319709016149], [-2.9451454450107093, 4.830082508842553, -4.9340701182486306, -1.8970117446210608]]]]),self.functionspace)
# Line 4496  class Test_util_overloaded_binary_with_t Line 4496  class Test_util_overloaded_binary_with_t
4496        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
4497        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4498     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4499     def test_div_overloaded_expandedData_rank0_taggedData_rank0(self):     def test_quotient_overloaded_expandedData_rank0_taggedData_rank0(self):
4500        arg0=Data(-4.12968961024,self.functionspace)        arg0=Data(-4.12968961024,self.functionspace)
4501        arg0.setTaggedValue(1,-1.72964545461)        arg0.setTaggedValue(1,-1.72964545461)
4502        arg0.expand()        arg0.expand()
# Line 4509  class Test_util_overloaded_binary_with_t Line 4509  class Test_util_overloaded_binary_with_t
4509        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
4510        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4511     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4512     def test_div_overloaded_expandedData_rank0_taggedData_rank1(self):     def test_quotient_overloaded_expandedData_rank0_taggedData_rank1(self):
4513        arg0=Data(0.0367751854327,self.functionspace)        arg0=Data(0.0367751854327,self.functionspace)
4514        arg0.setTaggedValue(1,-4.94354937816)        arg0.setTaggedValue(1,-4.94354937816)
4515        arg0.expand()        arg0.expand()
# Line 4522  class Test_util_overloaded_binary_with_t Line 4522  class Test_util_overloaded_binary_with_t
4522        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
4523        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4524     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4525     def test_div_overloaded_expandedData_rank0_taggedData_rank2(self):     def test_quotient_overloaded_expandedData_rank0_taggedData_rank2(self):
4526        arg0=Data(1.81823013316,self.functionspace)        arg0=Data(1.81823013316,self.functionspace)
4527        arg0.setTaggedValue(1,4.48108484826)        arg0.setTaggedValue(1,4.48108484826)
4528        arg0.expand()        arg0.expand()
# Line 4535  class Test_util_overloaded_binary_with_t Line 4535  class Test_util_overloaded_binary_with_t
4535        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
4536        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4537     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4538     def test_div_overloaded_expandedData_rank0_taggedData_rank3(self):     def test_quotient_overloaded_expandedData_rank0_taggedData_rank3(self):
4539        arg0=Data(2.18522369209,self.functionspace)        arg0=Data(2.18522369209,self.functionspace)
4540        arg0.setTaggedValue(1,-3.84267880549)        arg0.setTaggedValue(1,-3.84267880549)
4541        arg0.expand()        arg0.expand()
# Line 4548  class Test_util_overloaded_binary_with_t Line 4548  class Test_util_overloaded_binary_with_t
4548        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
4549        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4550     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4551     def test_div_overloaded_expandedData_rank0_taggedData_rank4(self):     def test_quotient_overloaded_expandedData_rank0_taggedData_rank4(self):
4552        arg0=Data(-3.16795904631,self.functionspace)        arg0=Data(-3.16795904631,self.functionspace)
4553        arg0.setTaggedValue(1,-4.74875896127)        arg0.setTaggedValue(1,-4.74875896127)
4554        arg0.expand()        arg0.expand()
# Line 4561  class Test_util_overloaded_binary_with_t Line 4561  class Test_util_overloaded_binary_with_t
4561        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
4562        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4563     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4564     def test_div_overloaded_expandedData_rank1_taggedData_rank0(self):     def test_quotient_overloaded_expandedData_rank1_taggedData_rank0(self):
4565        arg0=Data(numarray.array([0.050869530446854938, 0.57044148650264059]),self.functionspace)        arg0=Data(numarray.array([0.050869530446854938, 0.57044148650264059]),self.functionspace)
4566        arg0.setTaggedValue(1,numarray.array([2.5863579857850283, 2.0026348357086645]))        arg0.setTaggedValue(1,numarray.array([2.5863579857850283, 2.0026348357086645]))
4567        arg0.expand()        arg0.expand()
# Line 4574  class Test_util_overloaded_binary_with_t Line 4574  class Test_util_overloaded_binary_with_t
4574        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
4575        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4576     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4577     def test_div_overloaded_expandedData_rank1_taggedData_rank1(self):     def test_quotient_overloaded_expandedData_rank1_taggedData_rank1(self):
4578        arg0=Data(numarray.array([3.6652104484260146, 0.70865435078999184]),self.functionspace)        arg0=Data(numarray.array([3.6652104484260146, 0.70865435078999184]),self.functionspace)
4579        arg0.setTaggedValue(1,numarray.array([2.6142552170855051, -1.6134134893908247]))        arg0.setTaggedValue(1,numarray.array([2.6142552170855051, -1.6134134893908247]))
4580        arg0.expand()        arg0.expand()
# Line 4587  class Test_util_overloaded_binary_with_t Line 4587  class Test_util_overloaded_binary_with_t
4587        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
4588        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4589     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4590     def test_div_overloaded_expandedData_rank2_taggedData_rank0(self):     def test_quotient_overloaded_expandedData_rank2_taggedData_rank0(self):
4591        arg0=Data(numarray.array([[0.5032968268550384, 0.81623140601263433, 4.8986212943902565, 1.8650205879739943, -1.9651330673879253], [3.960179969840901, -0.65489452790720915, 3.862709121874607, -3.5642496107395405, 0.35747595852123126], [4.5893931025135153, 4.5661201922455525, -1.6515040661658165, -3.1458584428660616, -1.2784323961951136], [1.7388037440702639, 0.45639372753176222, -1.8490174903050436, -3.535826969447994, -0.14186055623094607]]),self.functionspace)        arg0=Data(numarray.array([[0.5032968268550384, 0.81623140601263433, 4.8986212943902565, 1.8650205879739943, -1.9651330673879253], [3.960179969840901, -0.65489452790720915, 3.862709121874607, -3.5642496107395405, 0.35747595852123126], [4.5893931025135153, 4.5661201922455525, -1.6515040661658165, -3.1458584428660616, -1.2784323961951136], [1.7388037440702639, 0.45639372753176222, -1.8490174903050436, -3.535826969447994, -0.14186055623094607]]),self.functionspace)
4592        arg0.setTaggedValue(1,numarray.array([[4.3434211425210716, 0.23815809706087432, -0.075987884888548685, 1.2129153476610526, 2.8596825293942825], [3.6530458799852887, 4.7059543966999513, 4.9073970919813732, 0.78209885451569061, 3.9574929211243841], [-4.9479191271207368, -3.21476350247484, 0.44369770025525757, 1.2079277807037583, 4.4414056763950978], [3.5505624090331303, 1.3523345699611724, -2.1927438296597082, 4.0557083980717064, 4.2658477801731571]]))        arg0.setTaggedValue(1,numarray.array([[4.3434211425210716, 0.23815809706087432, -0.075987884888548685, 1.2129153476610526, 2.8596825293942825], [3.6530458799852887, 4.7059543966999513, 4.9073970919813732, 0.78209885451569061, 3.9574929211243841], [-4.9479191271207368, -3.21476350247484, 0.44369770025525757, 1.2079277807037583, 4.4414056763950978], [3.5505624090331303, 1.3523345699611724, -2.1927438296597082, 4.0557083980717064, 4.2658477801731571]]))
4593        arg0.expand()        arg0.expand()
# Line 4600  class Test_util_overloaded_binary_with_t Line 4600  class Test_util_overloaded_binary_with_t
4600        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
4601        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4602     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4603     def test_div_overloaded_expandedData_rank2_taggedData_rank2(self):     def test_quotient_overloaded_expandedData_rank2_taggedData_rank2(self):
4604        arg0=Data(numarray.array([[-2.7726332657066957, -0.55647315223105398, 2.0342905708570393, 0.066799750790863754, 4.7675310657421015], [4.6957920788815244, 3.9839006614221759, -1.4563924452585644, -0.70992272610598661, 2.7183237378785252], [-4.5493628234788748, -1.1558185449946046, 4.1586786791404542, 4.1220857159298721, -4.6057096487239999], [-0.68787444638313744, 3.2869785329814007, -4.7048628637830836, 0.03286660056750712, 0.90831102310309308]]),self.functionspace)        arg0=Data(numarray.array([[-2.7726332657066957, -0.55647315223105398, 2.0342905708570393, 0.066799750790863754, 4.7675310657421015], [4.6957920788815244, 3.9839006614221759, -1.4563924452585644, -0.70992272610598661, 2.7183237378785252], [-4.5493628234788748, -1.1558185449946046, 4.1586786791404542, 4.1220857159298721, -4.6057096487239999], [-0.68787444638313744, 3.2869785329814007, -4.7048628637830836, 0.03286660056750712, 0.90831102310309308]]),self.functionspace)
4605        arg0.setTaggedValue(1,numarray.array([[-0.31403053516098733, -2.4366655589042496, -3.6590447312261287, 3.418384858436438, 0.4837831723863264], [-3.8873569538835975, 3.0129569693683731, -1.7420029216798003, 4.1336432047585827, 0.24878248545163384], [-3.7014476709667354, 1.2706936151885468, 0.54361045416007148, 4.6339559553626763, 2.6264411867285675], [-3.129303757691051, -0.61495225057048053, 1.1013078448051896, 0.84735010813921363, -3.8959809293654315]]))        arg0.setTaggedValue(1,numarray.array([[-0.31403053516098733, -2.4366655589042496, -3.6590447312261287, 3.418384858436438, 0.4837831723863264], [-3.8873569538835975, 3.0129569693683731, -1.7420029216798003, 4.1336432047585827, 0.24878248545163384], [-3.7014476709667354, 1.2706936151885468, 0.54361045416007148, 4.6339559553626763, 2.6264411867285675], [-3.129303757691051, -0.61495225057048053, 1.1013078448051896, 0.84735010813921363, -3.8959809293654315]]))
4606        arg0.expand()        arg0.expand()
# Line 4613  class Test_util_overloaded_binary_with_t Line 4613  class Test_util_overloaded_binary_with_t
4613        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
4614        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4615     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4616     def test_div_overloaded_expandedData_rank3_taggedData_rank0(self):     def test_quotient_overloaded_expandedData_rank3_taggedData_rank0(self):
4617        arg0=Data(numarray.array([[[-4.5518083923945296, 3.9239510656140713], [2.1301183881130692, -4.1376043313262745]], [[0.65046868584697126, 3.9250059999445934], [-3.9678032672431165, -0.53613563554295496]], [[-4.1532399712214705, -4.9405549511715794], [-2.1353209917077653, 4.5183815142138943]], [[-0.80807187921753254, -4.0076480639128729], [0.60053643670902268, -2.7068429113794901]], [[4.8417752424295628, 3.1565108541345577], [0.53337762711286452, 0.68594977808451318]], [[1.0191378545945975, 2.3473073639716588], [3.204560011995067, 4.4160624428767292]]]),self.functionspace)        arg0=Data(numarray.array([[[-4.5518083923945296, 3.9239510656140713], [2.1301183881130692, -4.1376043313262745]], [[0.65046868584697126, 3.9250059999445934], [-3.9678032672431165, -0.53613563554295496]], [[-4.1532399712214705, -4.9405549511715794], [-2.1353209917077653, 4.5183815142138943]], [[-0.80807187921753254, -4.0076480639128729], [0.60053643670902268, -2.7068429113794901]], [[4.8417752424295628, 3.1565108541345577], [0.53337762711286452, 0.68594977808451318]], [[1.0191378545945975, 2.3473073639716588], [3.204560011995067, 4.4160624428767292]]]),self.functionspace)
4618        arg0.setTaggedValue(1,numarray.array([[[0.39255698535767181, -0.71535977197693335], [3.6748628856286025, 0.72061390107465328]], [[-1.82797502041258, -2.272988637894179], [-1.3992839187086306, -0.56885469747904427]], [[-1.3682982965774748, -4.807670622643359], [-3.1972732890174793, -2.2237116496014053]], [[1.2845303195673088, -0.88688926210467933], [2.7629269220361339, -3.7051151281977992]], [[-4.5423936778873966, 3.8074332366269275], [-0.21824546314244664, -2.6309126892903221]], [[-3.5628926480274425, 4.0273441459703765], [-2.9458980241702273, -4.4625772849179324]]]))        arg0.setTaggedValue(1,numarray.array([[[0.39255698535767181, -0.71535977197693335], [3.6748628856286025, 0.72061390107465328]], [[-1.82797502041258, -2.272988637894179], [-1.3992839187086306, -0.56885469747904427]], [[-1.3682982965774748, -4.807670622643359], [-3.1972732890174793, -2.2237116496014053]], [[1.2845303195673088, -0.88688926210467933], [2.7629269220361339, -3.7051151281977992]], [[-4.5423936778873966, 3.8074332366269275], [-0.21824546314244664, -2.6309126892903221]], [[-3.5628926480274425, 4.0273441459703765], [-2.9458980241702273, -4.4625772849179324]]]))
4619        arg0.expand()        arg0.expand()
# Line 4626  class Test_util_overloaded_binary_with_t Line 4626  class Test_util_overloaded_binary_with_t
4626        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
4627        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4628     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4629     def test_div_overloaded_expandedData_rank3_taggedData_rank3(self):     def test_quotient_overloaded_expandedData_rank3_taggedData_rank3(self):
4630        arg0=Data(numarray.array([[[-0.21429045684894099, -1.1798307427277144], [-1.0157257787137839, 1.9957662917643928]], [[1.776437270179537, -0.54358642283014724], [-1.3244067059119868, 1.8923244733672204]], [[2.9066118465906454, 2.7777735738089762], [-2.6580367318195552, -4.5946586987127001]], [[3.324748533182472, -2.8360332538316579], [-0.138789273181807, 1.7689952057172995]], [[-4.5861565688654737, 3.655522058193176], [4.9889781231399457, -0.41362302504517778]], [[-4.9320672070339082, 2.9439078114404325], [1.6872302857748824, 3.8121554318092894]]]),self.functionspace)        arg0=Data(numarray.array([[[-0.21429045684894099, -1.1798307427277144], [-1.0157257787137839, 1.9957662917643928]], [[1.776437270179537, -0.54358642283014724], [-1.3244067059119868, 1.8923244733672204]], [[2.9066118465906454, 2.7777735738089762], [-2.6580367318195552, -4.5946586987127001]], [[3.324748533182472, -2.8360332538316579], [-0.138789273181807, 1.7689952057172995]], [[-4.5861565688654737, 3.655522058193176], [4.9889781231399457, -0.41362302504517778]], [[-4.9320672070339082, 2.9439078114404325], [1.6872302857748824, 3.8121554318092894]]]),self.functionspace)
4631        arg0.setTaggedValue(1,numarray.array([[[-3.7896411872370308, -4.5320158375495652], [-1.1385607892966734, -3.9307069528614589]], [[4.0402186101348097, 4.2284993390373149], [3.637914750747747, -1.9146207755762612]], [[1.1633200469989413, -2.8552338504759223], [2.8472654792196526, -2.3100399414317296]], [[3.8531849021326288, 0.18430454115771155], [4.5965527209785098, -1.9020039092491912]], [[0.34881119739416011, -1.0588491350696638], [-1.0015702981888994, -1.6349708760786119]], [[2.1307800390517038, -0.15496995028318938], [4.0703605212853891, -0.34020163283754101]]]))        arg0.setTaggedValue(1,numarray.array([[[-3.7896411872370308, -4.5320158375495652], [-1.1385607892966734, -3.9307069528614589]], [[4.0402186101348097, 4.2284993390373149], [3.637914750747747, -1.9146207755762612]], [[1.1633200469989413, -2.8552338504759223], [2.8472654792196526, -2.3100399414317296]], [[3.8531849021326288, 0.18430454115771155], [4.5965527209785098, -1.9020039092491912]], [[0.34881119739416011, -1.0588491350696638], [-1.0015702981888994, -1.6349708760786119]], [[2.1307800390517038, -0.15496995028318938], [4.0703605212853891, -0.34020163283754101]]]))
4632        arg0.expand()        arg0.expand()
# Line 4639  class Test_util_overloaded_binary_with_t Line 4639  class Test_util_overloaded_binary_with_t
4639        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
4640        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4641     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4642     def test_div_overloaded_expandedData_rank4_taggedData_rank0(self):     def test_quotient_overloaded_expandedData_rank4_taggedData_rank0(self):
4643        arg0=Data(numarray.array([[[[-3.1052544232391845, 2.8912525264744557, -3.3829877793759175, 4.1910809073972661], [2.3314625626967747, 4.7050875036610034, -1.8716576505158091, -2.8771767298538498], [-0.73637376279450439, 0.52658588698529485, 0.064066637479109012, -3.0940462224457157]], [[-3.2243420023304861, 1.901217114086899, 4.3816853303128926, -2.5572214048171715], [3.4002462163019018, 2.7993570180486564, -1.4514914886889709, -4.6351790517067144], [3.2896222092345546, -3.4850262598110913, -4.8863176669284814, 1.420857260121597]]], [[[-1.9914362753178914, 4.423972441147848, 0.50194384810581738, 1.673528736034438], [-3.5646589195280454, 0.84491581216502887, -3.9603502687133618, -4.9794293117103772], [1.4327305430072332, 4.5805855654860697, 0.00063190708642490989, -2.6517537738765986]], [[-2.835614331819424, 2.8572056405034649, -0.085684656928010305, -1.5431105415552784], [-0.53587293964167504, 1.3978695659165741, -3.92757073285809, -1.057962142075203], [4.1433723832406013, 3.7006374809067335, 4.4786080422132031, -2.6669422219711567]]], [[[-3.2903147317166681, 0.53745756115403331, -3.1720173092612578, 1.5059661308285985], [2.679017006294389, 3.2088301834184705, 2.3290080280695236, 3.7513948003520277], [2.9506120435445204, 4.0890148868031648, 3.7773584920488226, 3.6024867066278912]], [[0.86512211535402095, 4.3124619748030426, 4.1503191063389835, 2.159016999725198], [3.2976651156320038, -4.3723734452831708, 2.0744719773902345, 2.930414966367727], [0.15329906505372914, -2.0624803526498603, 1.2601255358819365, -3.3191709579942796]]]]),self.functionspace)        arg0=Data(numarray.array([[[[-3.1052544232391845, 2.8912525264744557, -3.3829877793759175, 4.1910809073972661], [2.3314625626967747, 4.7050875036610034, -1.8716576505158091, -2.8771767298538498], [-0.73637376279450439, 0.52658588698529485, 0.064066637479109012, -3.0940462224457157]], [[-3.2243420023304861, 1.901217114086899, 4.3816853303128926, -2.5572214048171715], [3.4002462163019018, 2.7993570180486564, -1.4514914886889709, -4.6351790517067144], [3.2896222092345546, -3.4850262598110913, -4.8863176669284814, 1.420857260121597]]], [[[-1.9914362753178914, 4.423972441147848, 0.50194384810581738, 1.673528736034438], [-3.5646589195280454, 0.84491581216502887, -3.9603502687133618, -4.9794293117103772], [1.4327305430072332, 4.5805855654860697, 0.00063190708642490989, -2.6517537738765986]], [[-2.835614331819424, 2.8572056405034649, -0.085684656928010305, -1.5431105415552784], [-0.53587293964167504, 1.3978695659165741, -3.92757073285809, -1.057962142075203], [4.1433723832406013, 3.7006374809067335, 4.4786080422132031, -2.6669422219711567]]], [[[-3.2903147317166681, 0.53745756115403331, -3.1720173092612578, 1.5059661308285985], [2.679017006294389, 3.2088301834184705, 2.3290080280695236, 3.7513948003520277], [2.9506120435445204, 4.0890148868031648, 3.7773584920488226, 3.6024867066278912]], [[0.86512211535402095, 4.3124619748030426, 4.1503191063389835, 2.159016999725198], [3.2976651156320038, -4.3723734452831708, 2.0744719773902345, 2.930414966367727], [0.15329906505372914, -2.0624803526498603, 1.2601255358819365, -3.3191709579942796]]]]),self.functionspace)
4644        arg0.setTaggedValue(1,numarray.array([[[[0.60115997461122284, -3.3443314264350343, -4.2404008495850363, -3.8293772883751007], [-4.2473619468059951, 1.6873706507126425, -0.92905280722398764, 3.8239956275130069], [-0.83349383620580753, -4.8176085146435721, -0.95093610628269953, 2.0778607122080555]], [[-4.3364796944749617, -0.31674384054277471, 4.4447634680102137, -1.5158924370150686], [3.2291249048100106, -4.033747625553171, -4.3957670629564376, 2.5740361932488103], [-2.917624274325441, 3.9548560134248127, 3.5415123767492407, -1.0553534528221755]]], [[[-4.4632203335353857, -4.7034179295596177, 0.38324352063976974, -3.6369454378599708], [2.0570772657118663, -4.1654358679138292, 2.2987905054969113, -2.367046781968293], [1.9674925107976478, -4.6574382119245499, 2.3313571551058141, 1.0815913520076688]], [[3.3482249136003066, 0.22947755035760764, -1.8678459474936551, -4.7442760290974917], [4.3943902541311495, 4.8728496065561853, 1.8872006716769096, 1.1372573009279527], [-1.6945074837347365, 4.2219059665232734, 1.6827493094848478, -4.4279022519354347]]], [[[1.4807716597855194, 2.5848338944977121, -4.6168715581003159, 0.02745631463149234], [2.8221504375607855, 1.5723735919415791, -3.8003914921395832, 3.9786036161940892], [1.6727775052650484, 2.4456504813605218, 1.4655430860731506, -0.82437899810862092]], [[-0.30815409476604927, -3.616609300807283, -2.0211248498852177, -1.3063251457333838], [1.0854852690609986, -3.347126744941884, -3.9142029749711185, 3.3988510951452628], [2.3678808764317161, -1.635007919964754, -3.5394422185044236, 0.36865786229694386]]]]))        arg0.setTaggedValue(1,numarray.array([[[[0.60115997461122284, -3.3443314264350343, -4.2404008495850363, -3.8293772883751007], [-4.2473619468059951, 1.6873706507126425, -0.92905280722398764, 3.8239956275130069], [-0.83349383620580753, -4.8176085146435721, -0.95093610628269953, 2.0778607122080555]], [[-4.3364796944749617, -0.31674384054277471, 4.4447634680102137, -1.5158924370150686], [3.2291249048100106, -4.033747625553171, -4.3957670629564376, 2.5740361932488103], [-2.917624274325441, 3.9548560134248127, 3.5415123767492407, -1.0553534528221755]]], [[[-4.4632203335353857, -4.7034179295596177, 0.38324352063976974, -3.6369454378599708], [2.0570772657118663, -4.1654358679138292, 2.2987905054969113, -2.367046781968293], [1.9674925107976478, -4.6574382119245499, 2.3313571551058141, 1.0815913520076688]], [[3.3482249136003066, 0.22947755035760764, -1.8678459474936551, -4.7442760290974917], [4.3943902541311495, 4.8728496065561853, 1.8872006716769096, 1.1372573009279527], [-1.6945074837347365, 4.2219059665232734, 1.6827493094848478, -4.4279022519354347]]], [[[1.4807716597855194, 2.5848338944977121, -4.6168715581003159, 0.02745631463149234], [2.8221504375607855, 1.5723735919415791, -3.8003914921395832, 3.9786036161940892], [1.6727775052650484, 2.4456504813605218, 1.4655430860731506, -0.82437899810862092]], [[-0.30815409476604927, -3.616609300807283, -2.0211248498852177, -1.3063251457333838], [1.0854852690609986, -3.347126744941884, -3.9142029749711185, 3.3988510951452628], [2.3678808764317161, -1.635007919964754, -3.5394422185044236, 0.36865786229694386]]]]))
4645        arg0.expand()        arg0.expand()
# Line 4652  class Test_util_overloaded_binary_with_t Line 4652  class Test_util_overloaded_binary_with_t
4652        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
4653        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4654     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4655     def test_div_overloaded_expandedData_rank4_taggedData_rank4(self):     def test_quotient_overloaded_expandedData_rank4_taggedData_rank4(self):
4656        arg0=Data(numarray.array([[[[-0.97320346566297999, 3.3278746551006009, 0.43127263141732453, -4.2154532898179689], [0.39869394596021124, -4.445838555235663, 2.143923586380919, -1.7836392239680654], [-3.7765877123650959, 0.2919631651089869, -0.76832729680280565, -1.9017786503874747]], [[0.030352117103344511, -2.9524791718635757, 0.55016784851447476, -1.2075943736899286], [-4.4266083003720951, -2.7183156711905623, 0.81831557175799219, 2.3978306421487527], [1.0105393208761395, 2.0673262281189855, 1.0119480620313936, 0.53876393024911451]]], [[[3.1338335581155405, -1.7951680922511262, -4.8331814890118885, 3.7908846988160327], [-2.0813217762204994, -3.5521320446498983, -2.3705891266207537, -1.0992233503212767], [0.31204555361571451, 1.5380377545778092, -4.0950974378642604, -0.75599318447996389]], [[3.6118621026439151, 0.31936120146850833, -4.0069165997085037, -3.9869933378105804], [0.90052171301919248, -0.026242465371546508, -1.3670513369512607, -3.964603383521168], [-1.7836280839026433, 4.1269843605123988, 4.3890863586346303, -0.35417596524537043]]], [[[1.5688353489830913, -2.0871863749629771, 1.6153331117982574, -1.9138757429791231], [4.1315452120767837, -0.16652638697444466, -3.2385080829256738, -2.0466825207328987], [2.2877422543751891, -2.0303433022470987, -0.78771024964489644, -1.3173966221626889]], [[2.8279106132251277, -1.6321947545233737, -1.5784930697816337, 1.1370827774706536], [-4.2511274417122156, 3.0160286917100869, 3.4906022250729904, -3.0767632869607588], [4.9339311729252877, 4.6536345623769257, 4.0964435416469929, -4.3652678847880768]]]]),self.functionspace)        arg0=Data(numarray.array([[[[-0.97320346566297999, 3.3278746551006009, 0.43127263141732453, -4.2154532898179689], [0.39869394596021124, -4.445838555235663, 2.143923586380919, -1.7836392239680654], [-3.7765877123650959, 0.2919631651089869, -0.76832729680280565, -1.9017786503874747]], [[0.030352117103344511, -2.9524791718635757, 0.55016784851447476, -1.2075943736899286], [-4.4266083003720951, -2.7183156711905623, 0.81831557175799219, 2.3978306421487527], [1.0105393208761395, 2.0673262281189855, 1.0119480620313936, 0.53876393024911451]]], [[[3.1338335581155405, -1.7951680922511262, -4.8331814890118885, 3.7908846988160327], [-2.0813217762204994, -3.5521320446498983, -2.3705891266207537, -1.0992233503212767], [0.31204555361571451, 1.5380377545778092, -4.0950974378642604, -0.75599318447996389]], [[3.6118621026439151, 0.31936120146850833, -4.0069165997085037, -3.9869933378105804], [0.90052171301919248, -0.026242465371546508, -1.3670513369512607, -3.964603383521168], [-1.7836280839026433, 4.1269843605123988, 4.3890863586346303, -0.35417596524537043]]], [[[1.5688353489830913, -2.0871863749629771, 1.6153331117982574, -1.9138757429791231], [4.1315452120767837, -0.16652638697444466, -3.2385080829256738, -2.0466825207328987], [2.2877422543751891, -2.0303433022470987, -0.78771024964489644, -1.3173966221626889]], [[2.8279106132251277, -1.6321947545233737, -1.5784930697816337, 1.1370827774706536], [-4.2511274417122156, 3.0160286917100869, 3.4906022250729904, -3.0767632869607588], [4.9339311729252877, 4.6536345623769257, 4.0964435416469929, -4.3652678847880768]]]]),self.functionspace)
4657        arg0.setTaggedValue(1,numarray.array([[[[3.0068402197091473, 1.7820167215760918, -3.2422127745639431, 2.0025351411111689], [-0.55122931157427502, 4.3518274949029774, 0.35236787406923487, -2.7238108530635321], [-1.8650308824528752, 0.60508326872424245, -0.51880213854316359, 2.6345763531927808]], [[-3.4861809071904402, 2.0779162827587587, -3.5992591870296797, 2.9597019976956709], [0.73992270949682748, -2.6158509620534653, -2.1498381736476224, -2.0829293828458417], [3.71752447794813, -0.0045791639288994546, 1.5521892134094903, -1.1957257632685616]]], [[[-0.63995791275185265, -3.7071506426256198, -1.4839074278258177, 4.8664678969162587], [-0.6879731604285837, -2.4593222851792129, -0.39738406186859621, -4.3787211514319724], [1.8033238741098803, -3.2990197593751027, -2.4508840741587976, 1.8301094280656844]], [[1.7230128745548328, -2.1925714471184934, 3.5963407024909717, -4.3082931571561787], [4.8057954954871764, 0.71608784298021178, -1.8743037101564375, 2.7647582688703141], [2.9850661302659978, -0.2690880951423118, 1.1661697952954704, -4.5163258089391602]]], [[[0.41337136006940423, 3.6440797005733607, -1.1839064595670989, -0.39764703596586326], [-0.47627964746849383, -4.1535509014885079, 2.8919677775376886, -3.937011387832281], [4.0122501590378938, -2.8913063507568673, -1.8151459378282633, 4.0580695392301482]], [[-4.5827407445191373, 1.6848941567975206, -0.37759907841933682, -4.8860459154083005], [-3.8917767504663536, 1.6825144283323725, -4.1847367107539775, 3.2791397591180811], [-4.2161095789948, -0.40062637335507301, 1.1532455817557814, -3.7584390222339525]]]]))        arg0.setTaggedValue(1,numarray.array([[[[3.0068402197091473, 1.7820167215760918, -3.2422127745639431, 2.0025351411111689], [-0.55122931157427502, 4.3518274949029774, 0.35236787406923487, -2.7238108530635321], [-1.8650308824528752, 0.60508326872424245, -0.51880213854316359, 2.6345763531927808]], [[-3.4861809071904402, 2.0779162827587587, -3.5992591870296797, 2.9597019976956709], [0.73992270949682748, -2.6158509620534653, -2.1498381736476224, -2.0829293828458417], [3.71752447794813, -0.0045791639288994546, 1.5521892134094903, -1.1957257632685616]]], [[[-0.63995791275185265, -3.7071506426256198, -1.4839074278258177, 4.8664678969162587], [-0.6879731604285837, -2.4593222851792129, -0.39738406186859621, -4.3787211514319724], [1.8033238741098803, -3.2990197593751027, -2.4508840741587976, 1.8301094280656844]], [[1.7230128745548328, -2.1925714471184934, 3.5963407024909717, -4.3082931571561787], [4.8057954954871764, 0.71608784298021178, -1.8743037101564375, 2.7647582688703141], [2.9850661302659978, -0.2690880951423118, 1.1661697952954704, -4.5163258089391602]]], [[[0.41337136006940423, 3.6440797005733607, -1.1839064595670989, -0.39764703596586326], [-0.47627964746849383, -4.1535509014885079, 2.8919677775376886, -3.937011387832281], [4.0122501590378938, -2.8913063507568673, -1.8151459378282633, 4.0580695392301482]], [[-4.5827407445191373, 1.6848941567975206, -0.37759907841933682, -4.8860459154083005], [-3.8917767504663536, 1.6825144283323725, -4.1847367107539775, 3.2791397591180811], [-4.2161095789948, -0.40062637335507301, 1.1532455817557814, -3.7584390222339525]]]]))
4658        arg0.expand()        arg0.expand()
# Line 4665  class Test_util_overloaded_binary_with_t Line 4665  class Test_util_overloaded_binary_with_t
4665        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
4666        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4667     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4668     def test_div_overloaded_Symbol_rank0_taggedData_rank0(self):     def test_quotient_overloaded_Symbol_rank0_taggedData_rank0(self):
4669        arg0=Symbol(shape=())        arg0=Symbol(shape=())
4670        arg1=Data(-4.13228805597,self.functionspace)        arg1=Data(-4.13228805597,self.functionspace)
4671        arg1.setTaggedValue(1,0.788196083249)        arg1.setTaggedValue(1,0.788196083249)
# Line 4678  class Test_util_overloaded_binary_with_t Line 4678  class Test_util_overloaded_binary_with_t
4678        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
4679        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4680     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4681     def test_div_overloaded_Symbol_rank0_taggedData_rank1(self):     def test_quotient_overloaded_Symbol_rank0_taggedData_rank1(self):
4682        arg0=Symbol(shape=())        arg0=Symbol(shape=())
4683        arg1=Data(numarray.array([-0.73993239781602504, 2.9226819782461275]),self.functionspace)        arg1=Data(numarray.array([-0.73993239781602504, 2.9226819782461275]),self.functionspace)
4684        arg1.setTaggedValue(1,numarray.array([2.946738055547141, -1.0606803414835655]))        arg1.setTaggedValue(1,numarray.array([2.946738055547141, -1.0606803414835655]))
# Line 4691  class Test_util_overloaded_binary_with_t Line 4691  class Test_util_overloaded_binary_with_t
4691        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
4692        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4693     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4694     def test_div_overloaded_Symbol_rank0_taggedData_rank2(self):     def test_quotient_overloaded_Symbol_rank0_taggedData_rank2(self):
4695        arg0=Symbol(shape=())        arg0=Symbol(shape=())
4696        arg1=Data(numarray.array([[4.3991568817879418, -3.1284437769597973, 4.8063957163574162, 1.8665558141248662, 1.0675644361261041], [-4.5712231796031872, 4.1118538209663154, -0.5421837355930883, 4.3419399585099558, 1.8641118628482776], [-1.3148118230480277, -3.3468499848753464, -1.4703636162333988, 4.6482930967870502, -0.4858946887955593], [-1.0099504767616798, -1.0358831526209853, 4.2406730053811472, 4.7091947730811334, -2.7205563383611562]]),self.functionspace)        arg1=Data(numarray.array([[4.3991568817879418, -3.1284437769597973, 4.8063957163574162, 1.8665558141248662, 1.0675644361261041], [-4.5712231796031872, 4.1118538209663154, -0.5421837355930883, 4.3419399585099558, 1.8641118628482776], [-1.3148118230480277, -3.3468499848753464, -1.4703636162333988, 4.6482930967870502, -0.4858946887955593], [-1.0099504767616798, -1.0358831526209853, 4.2406730053811472, 4.7091947730811334, -2.7205563383611562]]),self.functionspace)
4697        arg1.setTaggedValue(1,numarray.array([[-0.89506604540170365, 0.41257981975861835, 4.2993583198506684, -3.8050176842398455, -4.974985875539617], [-1.0171101570009577, -3.4463599287190769, -0.48134708576769469, -4.6498437112938102, -1.7461996930845691], [3.0554622474037298, -0.26300441302319211, -2.2169461894043696, 4.6214432931241323, 0.80748496371225631], [-4.3197084797608927, 1.7474806406033325, -2.5298242828114956, 2.6522239379646173, 4.347262556378876]]))        arg1.setTaggedValue(1,numarray.array([[-0.89506604540170365, 0.41257981975861835, 4.2993583198506684, -3.8050176842398455, -4.974985875539617], [-1.0171101570009577, -3.4463599287190769, -0.48134708576769469, -4.6498437112938102, -1.7461996930845691], [3.0554622474037298, -0.26300441302319211, -2.2169461894043696, 4.6214432931241323, 0.80748496371225631], [-4.3197084797608927, 1.7474806406033325, -2.5298242828114956, 2.6522239379646173, 4.347262556378876]]))
# Line 4704  class Test_util_overloaded_binary_with_t Line 4704  class Test_util_overloaded_binary_with_t
4704        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
4705        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4706     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4707     def test_div_overloaded_Symbol_rank0_taggedData_rank3(self):     def test_quotient_overloaded_Symbol_rank0_taggedData_rank3(self):
4708        arg0=Symbol(shape=())        arg0=Symbol(shape=())
4709        arg1=Data(numarray.array([[[-1.4177404265411617, -3.3147863083812954], [-0.72466650518948317, 2.4486553800256505]], [[1.142106090217232, 2.5905121607640798], [-1.2147841256263883, -0.93506235721053699]], [[1.267658460947148, 3.7689296764547482], [-4.3972907141664388, -4.0572823668942153]], [[-0.99456892443753642, 4.174811980892148], [0.71050812934455365, -2.871115772754175]], [[2.535196165680901, 4.0412048287340667], [-0.82947677430700306, 3.2791557666430009]], [[2.7053730346792229, 1.4591666264871659], [3.1298478664969114, -2.0001315435282407]]]),self.functionspace)        arg1=Data(numarray.array([[[-1.4177404265411617, -3.3147863083812954], [-0.72466650518948317, 2.4486553800256505]], [[1.142106090217232, 2.5905121607640798], [-1.2147841256263883, -0.93506235721053699]], [[1.267658460947148, 3.7689296764547482], [-4.3972907141664388, -4.0572823668942153]], [[-0.99456892443753642, 4.174811980892148], [0.71050812934455365, -2.871115772754175]], [[2.535196165680901, 4.0412048287340667], [-0.82947677430700306, 3.2791557666430009]], [[2.7053730346792229, 1.4591666264871659], [3.1298478664969114, -2.0001315435282407]]]),self.functionspace)
4710        arg1.setTaggedValue(1,numarray.array([[[-3.3980438728911908, 2.9346934917885683], [-2.2725736847902067, 2.8476308473055765]], [[-3.6952972887917057, -4.2161892868167419], [-2.1020037683362003, 1.7699462571976952]], [[4.7187716805095583, 3.0680602149069429], [0.1202616138348418, -1.211404080127271]], [[2.3718470733770269, -0.67572826457071677], [0.82348659934982038, -4.2311228028666195]], [[4.0038556197052326, 4.0120329843355034], [4.4538793810882424, -4.7828187422014681]], [[-4.7204727349407927, 0.75557967524823155], [4.2798387660411379, -3.2013412578986489]]]))        arg1.setTaggedValue(1,numarray.array([[[-3.3980438728911908, 2.9346934917885683], [-2.2725736847902067, 2.8476308473055765]], [[-3.6952972887917057, -4.2161892868167419], [-2.1020037683362003, 1.7699462571976952]], [[4.7187716805095583, 3.0680602149069429], [0.1202616138348418, -1.211404080127271]], [[2.3718470733770269, -0.67572826457071677], [0.82348659934982038, -4.2311228028666195]], [[4.0038556197052326, 4.0120329843355034], [4.4538793810882424, -4.7828187422014681]], [[-4.7204727349407927, 0.75557967524823155], [4.2798387660411379, -3.2013412578986489]]]))
# Line 4717  class Test_util_overloaded_binary_with_t Line 4717  class Test_util_overloaded_binary_with_t
4717        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
4718        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4719     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4720     def test_div_overloaded_Symbol_rank0_taggedData_rank4(self):     def test_quotient_overloaded_Symbol_rank0_taggedData_rank4(self):
4721        arg0=Symbol(shape=())        arg0=Symbol(shape=())
4722        arg1=Data(numarray.array([[[[0.56623784519155862, -0.11423889515937802, 1.2371149160020254, -4.0561094275701981], [-4.8813428690845582, -3.0343297243145253, 3.2525365424781594, 0.064007319979378252], [2.6930044815322987, 1.6445689681050792, 1.6332026256278471, -4.7670792736051659]], [[-3.6386382332588427, 4.1651752162494482, 0.83928675814116893, 3.8320607256680272], [-1.3938402803404468, 2.0107268720524889, 4.796598769578015, -2.9996077723625203], [-0.99266738468548255, 1.0836148840543984, 3.3447422595987373, 3.093711220756731]]], [[[3.500289415701431, -4.8448055476191998, 4.0610314335167814, 2.3642075345496103], [3.3147446456402125, 1.5818027085790654, 1.2823723994146876, -3.9744256064881132], [2.0339673434123204, 2.1587167913663858, 0.40481958965395837, 4.4005292256574986]], [[0.29876582231064575, 1.880885444019496, 3.7993768029054369, 4.8763708505592529], [4.3972398939016539, -1.3226271310817106, -4.9373517106508293, -3.6013459566886352], [1.0333556564653072, -0.64759510629420447, 0.83185983115091311, 4.3661019610207141]]], [[[2.2207327405828554, -3.121312139724528, 3.8615399039685414, 0.1864132930418485], [-3.4615321691014609, 1.1898630118504165, -3.9345987177126931, 0.8867162816653007], [1.3026581018633578, 3.9419332108943195, 1.8540986093031906, -1.6162040996087201]], [[-1.4590928590052954, -1.3306006805310622, 0.50688042472596173, -0.31010304325613358], [2.2801172589513961, -3.1721758179369566, -3.6745988958416245, -2.7946913449846988], [2.0081154904148306, -4.7531214797906181, 2.9353402632047736, -2.5850968568542632]]]]),self.functionspace)        arg1=Data(numarray.array([[[[0.56623784519155862, -0.11423889515937802, 1.2371149160020254, -4.0561094275701981], [-4.8813428690845582, -3.0343297243145253, 3.2525365424781594, 0.064007319979378252], [2.6930044815322987, 1.6445689681050792, 1.6332026256278471, -4.7670792736051659]], [[-3.6386382332588427, 4.1651752162494482, 0.83928675814116893, 3.8320607256680272], [-1.3938402803404468, 2.0107268720524889, 4.796598769578015, -2.9996077723625203], [-0.99266738468548255, 1.0836148840543984, 3.3447422595987373, 3.093711220756731]]], [[[3.500289415701431, -4.8448055476191998, 4.0610314335167814, 2.3642075345496103], [3.3147446456402125, 1.5818027085790654, 1.2823723994146876, -3.9744256064881132], [2.0339673434123204, 2.1587167913663858, 0.40481958965395837, 4.4005292256574986]], [[0.29876582231064575, 1.880885444019496, 3.7993768029054369, 4.8763708505592529], [4.3972398939016539, -1.3226271310817106, -4.9373517106508293, -3.6013459566886352], [1.0333556564653072, -0.64759510629420447, 0.83185983115091311, 4.3661019610207141]]], [[[2.2207327405828554, -3.121312139724528, 3.8615399039685414, 0.1864132930418485], [-3.4615321691014609, 1.1898630118504165, -3.9345987177126931, 0.8867162816653007], [1.3026581018633578, 3.9419332108943195, 1.8540986093031906, -1.6162040996087201]], [[-1.4590928590052954, -1.3306006805310622, 0.50688042472596173, -0.31010304325613358], [2.2801172589513961, -3.1721758179369566, -3.6745988958416245, -2.7946913449846988], [2.0081154904148306, -4.7531214797906181, 2.9353402632047736, -2.5850968568542632]]]]),self.functionspace)
4723        arg1.setTaggedValue(1,numarray.array([[[[4.0272444843661237, -4.4537691931727528, -2.4545376231963036, -4.1582050592919906], [1.6543066371195625, -1.9275830768178883, -2.6203108350435169, 0.80514649820598372], [-0.67283130947634895, -0.79846615755972739, -3.6105745811502334, 1.8988441752814058]], [[-4.438437059141398, -3.5337371378410651, -4.4662693813546808, 0.4436098841195264], [1.3963827694466522, 1.53900054526021, 3.0917496424870077, -2.6136217073070989], [-4.188157107035404, 3.1528634345308166, 3.9434938039059126, 0.79105496323341296]]], [[[-0.025690266477495172, 1.5366069679898384, 0.44235227160539736, -3.2741390369915258], [2.7658074839703382, -0.31929829557352019, -3.1046729479230573, -4.8310084906300998], [1.092883621354126, -3.1685603296106701, 2.5308436039517943, -0.760762545463324]], [[3.9473579365685492, -2.4082200992258929, 0.53266381604287094, 1.2641064564798565], [4.9529699131665463, 0.11227411342775184, 0.57521544544467318, -0.7757556747934089], [3.7454652556785852, 3.6675188960693426, -0.078416898733850715, 4.8706188611431713]]], [[[2.2603649059897748, 3.590343724216396, 2.9596469498186364, -2.812169543029519], [4.9868179453691468, 2.828010560934203, -2.7183780602061436, -0.37830105156183258], [2.9839713966769219, -2.6299880011982779, 1.3522105714009447, 1.4345613253385228]], [[2.0533141462259401, 0.053286732988436114, 0.22827221443525225, -2.0231500841902053], [-2.9821874078453323, -2.3490651251592354, -2.658270541884733, 0.4257584576183131], [-2.1311968264189387, -1.2429699637815284, 0.6158641113129546, -1.8107320154946605]]]]))        arg1.setTaggedValue(1,numarray.array([[[[4.0272444843661237, -4.4537691931727528, -2.4545376231963036, -4.1582050592919906], [1.6543066371195625, -1.9275830768178883, -2.6203108350435169, 0.80514649820598372], [-0.67283130947634895, -0.79846615755972739, -3.6105745811502334, 1.8988441752814058]], [[-4.438437059141398, -3.5337371378410651, -4.4662693813546808, 0.4436098841195264], [1.3963827694466522, 1.53900054526021, 3.0917496424870077, -2.6136217073070989], [-4.188157107035404, 3.1528634345308166, 3.9434938039059126, 0.79105496323341296]]], [[[-0.025690266477495172, 1.5366069679898384, 0.44235227160539736, -3.2741390369915258], [2.7658074839703382, -0.31929829557352019, -3.1046729479230573, -4.8310084906300998], [1.092883621354126, -3.1685603296106701, 2.5308436039517943, -0.760762545463324]], [[3.9473579365685492, -2.4082200992258929, 0.53266381604287094, 1.2641064564798565], [4.9529699131665463, 0.11227411342775184, 0.57521544544467318, -0.7757556747934089], [3.7454652556785852, 3.6675188960693426, -0.078416898733850715, 4.8706188611431713]]], [[[2.2603649059897748, 3.590343724216396, 2.9596469498186364, -2.812169543029519], [4.9868179453691468, 2.828010560934203, -2.7183780602061436, -0.37830105156183258], [2.9839713966769219, -2.6299880011982779, 1.3522105714009447, 1.4345613253385228]], [[2.0533141462259401, 0.053286732988436114, 0.22827221443525225, -2.0231500841902053], [-2.9821874078453323, -2.3490651251592354, -2.658270541884733, 0.4257584576183131], [-2.1311968264189387, -1.2429699637815284, 0.6158641113129546, -1.8107320154946605]]]]))
# Line 4730  class Test_util_overloaded_binary_with_t Line 4730  class Test_util_overloaded_binary_with_t
4730        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
4731        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4732     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4733     def test_div_overloaded_Symbol_rank1_taggedData_rank0(self):     def test_quotient_overloaded_Symbol_rank1_taggedData_rank0(self):
4734        arg0=Symbol(shape=(2,))        arg0=Symbol(shape=(2,))
4735        arg1=Data(-3.04017426778,self.functionspace)        arg1=Data(-3.04017426778,self.functionspace)
4736        arg1.setTaggedValue(1,2.0177990306)        arg1.setTaggedValue(1,2.0177990306)
# Line 4743  class Test_util_overloaded_binary_with_t Line 4743  class Test_util_overloaded_binary_with_t
4743        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
4744        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4745     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4746     def test_div_overloaded_Symbol_rank1_taggedData_rank1(self):     def test_quotient_overloaded_Symbol_rank1_taggedData_rank1(self):
4747        arg0=Symbol(shape=(2,))        arg0=Symbol(shape=(2,))
4748        arg1=Data(numarray.array([-2.1476994766614013, -2.2925218227652557]),self.functionspace)        arg1=Data(numarray.array([-2.1476994766614013, -2.2925218227652557]),self.functionspace)
4749        arg1.setTaggedValue(1,numarray.array([-2.865748607538686, 2.7969241193125178]))        arg1.setTaggedValue(1,numarray.array([-2.865748607538686, 2.7969241193125178]))
# Line 4756  class Test_util_overloaded_binary_with_t Line 4756  class Test_util_overloaded_binary_with_t
4756        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
4757        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4758     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4759     def test_div_overloaded_Symbol_rank2_taggedData_rank0(self):     def test_quotient_overloaded_Symbol_rank2_taggedData_rank0(self):
4760        arg0=Symbol(shape=(4, 5))        arg0=Symbol(shape=(4, 5))
4761        arg1=Data(3.11905380251,self.functionspace)        arg1=Data(3.11905380251,self.functionspace)
4762        arg1.setTaggedValue(1,-3.26260245328)        arg1.setTaggedValue(1,-3.26260245328)
# Line 4769  class Test_util_overloaded_binary_with_t Line 4769  class Test_util_overloaded_binary_with_t
4769        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
4770        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4771     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4772     def test_div_overloaded_Symbol_rank2_taggedData_rank2(self):     def test_quotient_overloaded_Symbol_rank2_taggedData_rank2(self):
4773        arg0=Symbol(shape=(4, 5))        arg0=Symbol(shape=(4, 5))
4774        arg1=Data(numarray.array([[-4.2400152931057988, 2.0380491194835235, 0.91101349191802861, -4.4834079091239971, -2.2154734695518252], [-4.5332053408256243, -3.9823629323026264, -2.1535347807161043, -0.092528910394756636, 4.6087455584438271], [1.0777725216549641, 1.6282680237741873, 0.194097001670678, -2.4480536007048768, 3.6026891519391757], [0.74551046837404567, 4.4225945068445291, 4.5230132131405796, -4.8616083864649928, -4.5205712640253441]]),self.functionspace)        arg1=Data(numarray.array([[-4.2400152931057988, 2.0380491194835235, 0.91101349191802861, -4.4834079091239971, -2.2154734695518252], [-4.5332053408256243, -3.9823629323026264, -2.1535347807161043, -0.092528910394756636, 4.6087455584438271], [1.0777725216549641, 1.6282680237741873, 0.194097001670678, -2.4480536007048768, 3.6026891519391757], [0.74551046837404567, 4.4225945068445291, 4.5230132131405796, -4.8616083864649928, -4.5205712640253441]]),self.functionspace)
4775        arg1.setTaggedValue(1,numarray.array([[0.56705377199597873, 2.3039719977109421, 2.9960000717338797, -3.2818407291842089, -1.4460264608849469], [1.3157515984200341, 2.3734508747145036, 2.7570426675429704, -4.8178820558450539, -0.10654482177862601], [-3.1115559014344649, -0.57989246992490528, -2.4903638922672924, -4.6560314177869468, -3.8541104055725994], [4.4341234642152507, 4.4601355033505214, 4.5281414945421545, -3.2369430202845786, -2.4374147482839481]]))        arg1.setTaggedValue(1,numarray.array([[0.56705377199597873, 2.3039719977109421, 2.9960000717338797, -3.2818407291842089, -1.4460264608849469], [1.3157515984200341, 2.3734508747145036, 2.7570426675429704, -4.8178820558450539, -0.10654482177862601], [-3.1115559014344649, -0.57989246992490528, -2.4903638922672924, -4.6560314177869468, -3.8541104055725994], [4.4341234642152507, 4.4601355033505214, 4.5281414945421545, -3.2369430202845786, -2.4374147482839481]]))
# Line 4782  class Test_util_overloaded_binary_with_t Line 4782  class Test_util_overloaded_binary_with_t
4782        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
4783        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4784     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4785     def test_div_overloaded_Symbol_rank3_taggedData_rank0(self):     def test_quotient_overloaded_Symbol_rank3_taggedData_rank0(self):
4786        arg0=Symbol(shape=(6, 2, 2))        arg0=Symbol(shape=(6, 2, 2))
4787        arg1=Data(-1.67731234215,self.functionspace)        arg1=Data(-1.67731234215,self.functionspace)
4788        arg1.setTaggedValue(1,-1.72067089907)        arg1.setTaggedValue(1,-1.72067089907)
# Line 4795  class Test_util_overloaded_binary_with_t Line 4795  class Test_util_overloaded_binary_with_t
4795        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
4796        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4797     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4798     def test_div_overloaded_Symbol_rank3_taggedData_rank3(self):     def test_quotient_overloaded_Symbol_rank3_taggedData_rank3(self):
4799        arg0=Symbol(shape=(6, 2, 2))        arg0=Symbol(shape=(6, 2, 2))
4800        arg1=Data(numarray.array([[[-1.1948669336416184, -4.8482630862083242], [0.92944539503691459, -3.4094883291268498]], [[1.8841788799368029, 1.825366586557843], [-4.5424287789410833, -0.69073134489368826]], [[-3.801163324551168, -1.701745464906359], [0.37544764774162154, 3.7891887673484721]], [[-3.9790561947478964, 4.7856572382120071], [0.32621319833563778, 2.0137078118978371]], [[0.49765355228984198, 4.9015467368389345], [-0.59290340205704872, 0.79141400459364242]], [[4.1011904097859606, 2.5199788684829034], [-2.5856368937631702, 4.1387732113108342]]]),self.functionspace)        arg1=Data(numarray.array([[[-1.1948669336416184, -4.8482630862083242], [0.92944539503691459, -3.4094883291268498]], [[1.8841788799368029, 1.825366586557843], [-4.5424287789410833, -0.69073134489368826]], [[-3.801163324551168, -1.701745464906359], [0.37544764774162154, 3.7891887673484721]], [[-3.9790561947478964, 4.7856572382120071], [0.32621319833563778, 2.0137078118978371]], [[0.49765355228984198, 4.9015467368389345], [-0.59290340205704872, 0.79141400459364242]], [[4.1011904097859606, 2.5199788684829034], [-2.5856368937631702, 4.1387732113108342]]]),self.functionspace)
4801        arg1.setTaggedValue(1,numarray.array([[[-1.0216083037215498, 3.0257683549384051], [3.6767690562700519, 3.8224721501187275]], [[-2.3159120339101511, -0.044855829302194117], [4.9740059686176359, -1.2924878794982697]], [[-2.5359543133445897, -0.58793341762563589], [4.4426197657945607, -2.850864809224408]], [[-2.1680607667951191, 3.8939752851173761], [-3.7004502417092953, -3.9600228505699064]], [[-2.7257226465019002, -0.93072740919210162], [3.3056380363385927, 1.3462954530613622]], [[1.5375865561259614, -3.3799194674592261], [-4.0972461177403847, 1.7917499356364708]]]))        arg1.setTaggedValue(1,numarray.array([[[-1.0216083037215498, 3.0257683549384051], [3.6767690562700519, 3.8224721501187275]], [[-2.3159120339101511, -0.044855829302194117], [4.9740059686176359, -1.2924878794982697]], [[-2.5359543133445897, -0.58793341762563589], [4.4426197657945607, -2.850864809224408]], [[-2.1680607667951191, 3.8939752851173761], [-3.7004502417092953, -3.9600228505699064]], [[-2.7257226465019002, -0.93072740919210162], [3.3056380363385927, 1.3462954530613622]], [[1.5375865561259614, -3.3799194674592261], [-4.0972461177403847, 1.7917499356364708]]]))
# Line 4808  class Test_util_overloaded_binary_with_t Line 4808  class Test_util_overloaded_binary_with_t
4808        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
4809        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4810     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4811     def test_div_overloaded_Symbol_rank4_taggedData_rank0(self):     def test_quotient_overloaded_Symbol_rank4_taggedData_rank0(self):
4812        arg0=Symbol(shape=(3, 2, 3, 4))        arg0=Symbol(shape=(3, 2, 3, 4))
4813        arg1=Data(-2.34724786312,self.functionspace)        arg1=Data(-2.34724786312,self.functionspace)
4814        arg1.setTaggedValue(1,-1.14150112823)        arg1.setTaggedValue(1,-1.14150112823)
# Line 4821  class Test_util_overloaded_binary_with_t Line 4821  class Test_util_overloaded_binary_with_t
4821        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
4822        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
4823     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4824     def test_div_overloaded_Symbol_rank4_taggedData_rank4(self):     def test_quotient_overloaded_Symbol_rank4_taggedData_rank4(self):
4825        arg0=Symbol(shape=(3, 2, 3, 4))        arg0=Symbol(shape=(3, 2, 3, 4))
4826        arg1=Data(numarray.array([[[[-4.692244649272256, 1.0356733816668493, -1.4115435735313939, -3.3533239896597], [-1.7559316701608063, 0.25583175712406359, 1.1225449156205647, 1.5491515905051383], [-3.4099511613632316, 1.4749821375305574, 0.88895191602829637, -0.20648918924605741]], [[-4.3419539072386391, -2.5743904544580722, -2.2486440163371837, -3.9767602694345348], [-2.3487522239863603, 2.3113499953832619, -3.9655787887451699, 4.6511096002030143], [-2.3962332651787399, -0.66856762307285855, 3.1652536747762454, -3.8524545464225444]]], [[[0.52869939407037414, -4.6169772559763977, 3.9054435061353825, 3.1123662657564886], [-0.944914545508305, 4.1348614834104538, 4.916828368912519, -3.1901061735337279], [1.5585733480276041, -2.5968351957220404, -0.60243324405629117, 1.3988240180012514]], [[-4.4299304783051818, -2.0781122206261973, -0.52551578674964983, 3.2474443643928588], [-0.13292178094243123, -4.8658444131397838, 0.40539257466406831, 4.1591773218399659], [-4.4274711916813212, 4.5441020180139819, 0.96965640881446635, -1.1281604296420156]]], [[[2.3380322834013754, -0.31956081844297124, 0.2961722340211761, -3.7319983310204363], [-4.5019872727389085, 1.2884371570347, -2.9351049981613642, -4.685290159641041], [1.6944724390118786, 0.055906721011096394, -4.7035466615486481, -0.47983210077196148]], [[-0.86302542714260877, -4.8477625213575104, 4.6227141939572576, 3.0092738439168585], [-4.96716961060479, -0.70539310773829911, -4.2299798154973907, -3.2296469596672295], [-1.9222247911212822, 0.73599414632792737, -4.0955146048137081, -2.3603850862550599]]]]),self.functionspace)        arg1=Data(numarray.array([[[[-4.692244649272256, 1.0356733816668493, -1.4115435735313939, -3.3533239896597], [-1.7559316701608063, 0.25583175712406359, 1.1225449156205647, 1.5491515905051383], [-3.4099511613632316, 1.4749821375305574, 0.88895191602829637, -0.20648918924605741]], [[-4.3419539072386391, -2.5743904544580722, -2.2486440163371837, -3.9767602694345348], [-2.3487522239863603, 2.3113499953832619, -3.9655787887451699, 4.6511096002030143], [-2.3962332651787399, -0.66856762307285855, 3.1652536747762454, -3.8524545464225444]]], [[[0.52869939407037414, -4.6169772559763977, 3.9054435061353825, 3.1123662657564886], [-0.944914545508305, 4.1348614834104538, 4.916828368912519, -3.1901061735337279], [1.5585733480276041, -2.5968351957220404, -0.60243324405629117, 1.3988240180012514]], [[-4.4299304783051818, -2.0781122206261973, -0.52551578674964983, 3.2474443643928588], [-0.13292178094243123, -4.8658444131397838, 0.40539257466406831, 4.1591773218399659], [-4.4274711916813212, 4.5441020180139819, 0.96965640881446635, -1.1281604296420156]]], [[[2.3380322834013754, -0.31956081844297124, 0.2961722340211761, -3.7319983310204363], [-4.5019872727389085, 1.2884371570347, -2.9351049981613642, -4.685290159641041], [1.6944724390118786, 0.055906721011096394, -4.7035466615486481, -0.47983210077196148]], [[-0.86302542714260877, -4.8477625213575104, 4.6227141939572576, 3.0092738439168585], [-4.96716961060479, -0.70539310773829911, -4.2299798154973907, -3.2296469596672295], [-1.9222247911212822, 0.73599414632792737, -4.0955146048137081, -2.3603850862550599]]]]),self.functionspace)
4827        arg1.setTaggedValue(1,numarray.array([[[[3.4003771586744396, 3.0662705755449782, -2.7499254065200751, 3.9113769149389412], [4.4222946755925676, 4.215093108259742, 1.4794877017904637, -1.1740072654262166], [-4.765335827712736, -3.3421053903750453, -4.8137826631026268, -1.8772778150029943]], [[3.5882188990795445, 0.51382540173399427, -4.143893994755584, -1.8285016096973838], [-1.8708161869798756, 2.2370449376942094, 1.7499548523941559, -2.5362886583866984], [-1.5477536924401591, 0.48074055259244464, -2.3864247410680459, 4.2043813221572002]]], [[[-1.3895049239395316, 3.2431718872202957, 1.4357238260131, 0.20179321757892765], [0.68941011919723394, -1.78770894200033, 4.0371355207474977, -4.6650351532376799], [1.882751181321737, -1.9112360199045408, -3.076139157936022, 3.8609093825317]], [[-4.6591702336609107, 2.9429556481184926, -4.1993028203300131, 3.7115098940409226], [-1.0393532624583135, 2.3958807218009639, 3.2441749097022985, 3.3881023550429799], [-3.7865124084870896, -2.9548151227110053, -2.6059301846590177, 3.6399756365380327]]], [[[-4.9501548026635902, -1.6891710122974724, -3.9758740967684805, -2.1548334947738712], [3.25685029448222, 1.4989420208118256, 0.42094169001293924, -0.31774079392453114], [0.11496458521239639, -2.3202208701728577, 1.9900496913140007, 3.0570361041433074]], [[3.2562985953506782, -2.6912814261326714, -0.76604404638984569, -1.4344622252523411], [-4.6567619773097508, -4.6660681115099445, 3.0433603387552903, 2.3631818456893843], [1.262914703318474, 4.338064437492319, -2.3846981616547938, -0.88396708643685074]]]]))        arg1.setTaggedValue(1,numarray.array([[[[3.4003771586744396, 3.0662705755449782, -2.7499254065200751, 3.9113769149389412], [4.4222946755925676, 4.215093108259742, 1.4794877017904637, -1.1740072654262166], [-4.765335827712736, -3.3421053903750453, -4.8137826631026268, -1.8772778150029943]], [[3.5882188990795445, 0.51382540173399427, -4.143893994755584, -1.8285016096973838], [-1.8708161869798756, 2.2370449376942094, 1.7499548523941559, -2.5362886583866984], [-1.5477536924401591, 0.48074055259244464, -2.3864247410680459, 4.2043813221572002]]], [[[-1.3895049239395316, 3.2431718872202957, 1.4357238260131, 0.20179321757892765], [0.68941011919723394, -1.78770894200033, 4.0371355207474977, -4.6650351532376799], [1.882751181321737, -1.9112360199045408, -3.076139157936022, 3.8609093825317]], [[-4.6591702336609107, 2.9429556481184926, -4.1993028203300131, 3.7115098940409226], [-1.0393532624583135, 2.3958807218009639, 3.2441749097022985, 3.3881023550429799], [-3.7865124084870896, -2.9548151227110053, -2.6059301846590177, 3.6399756365380327]]], [[[-4.9501548026635902, -1.6891710122974724, -3.9758740967684805, -2.1548334947738712], [3.25685029448222, 1.4989420208118256, 0.42094169001293924, -0.31774079392453114], [0.11496458521239639, -2.3202208701728577, 1.9900496913140007, 3.0570361041433074]], [[3.2562985953506782, -2.6912814261326714, -0.76604404638984569, -1.4344622252523411], [-4.6567619773097508, -4.6660681115099445, 3.0433603387552903, 2.3631818456893843], [1.262914703318474, 4.338064437492319, -2.3846981616547938, -0.88396708643685074]]]]))
# Line 6035  class Test_util_overloaded_binary_with_t Line 6035  class Test_util_overloaded_binary_with_t
6035        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.failUnless(isinstance(res,Symbol),"wrong type of result.")
6036        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6037        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_taggedData_rank0_offset0(self):  
       arg0=-0.26757248589  
       arg1=Data(-0.845346619976,self.functionspace)  
       arg1.setTaggedValue(1,-0.164939544191)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(0.22619149654580534,self.functionspace)  
       ref.setTaggedValue(1,0.044133283860763033)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_taggedData_rank1_offset0(self):  
       arg0=0.796750749318  
       arg1=Data(numarray.array([0.71795366535495631, 0.52653855960302054]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([0.24254790248497127, -0.89703657103420276]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([0.57203012084690563, 0.41951999190833605]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([0.19325022305032208, -0.71471456013682511]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_taggedData_rank2_offset0(self):  
       arg0=0.695709993643  
       arg1=Data(numarray.array([[0.020860044940730571, -0.029660347286396993, -0.52432778011587056, 0.16323818055966832, 0.23656513789445799], [-0.94714247989983846, 0.88028874793065404, -0.80492047695032132, -0.1705466841006269, 0.26041675138028464], [0.51077512727642538, 0.30844961603752541, 0.92974442192889684, -0.29528156956238738, 0.82263550865498036], [0.64585924254051674, -0.53641015540398373, -0.99798834032979333, 0.30966027448251321, 0.043112098114223008]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[0.64188692087685117, 0.39360124259112728, -0.75019784742320894, -0.526723465119322, -0.39782285568476472], [-0.81062105747380531, 0.41798281693760542, -0.85685874165134712, -0.19118971519642813, -0.84993495899479599], [0.89086613100115342, 0.94117717592473626, 0.23970421209032811, 0.84662298079483556, 0.61042317686862524], [0.43617096051797755, 0.47613540926509823, 0.87963467661658368, 0.52339361553568819, 0.84472192299856874]]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[0.014512541733110847, -0.020635000022071963, -0.36478007657132311, 0.11356643355948121, 0.16458073058073699], [-0.65893648867024479, 0.61242567922694469, -0.55999121990232459, -0.11865103251150221, 0.18117453644733958], [0.35535136055054534, 0.21459148041268938, 0.6468324858698784, -0.2054303388831788, 0.57231574449696054], [0.4493307295222127, -0.37318590580621014, -0.69431046190674761, 0.21543374759175582, 0.029993517504987622]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[0.44656714564283551, 0.273832317980997, -0.52192013966188244, -0.36644677856984526, -0.27676933639953522], [-0.56395717074207974, 0.29079482291459452, -0.59612518970730988, -0.1330125955439368, -0.59130824491933431], [0.61978447033568274, 0.65478636707964721, 0.16676461586959107, 0.58900406858689369, 0.42467750449888392], [0.30344849616927538, 0.33125216255308548, 0.61197063527719064, 0.36413016893718281, 0.58768148367953776]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_taggedData_rank3_offset0(self):  
       arg0=0.484037306122  
       arg1=Data(numarray.array([[[0.68265538612757171, -0.1110965724433548], [-0.5662762533652177, 0.78934646910807293]], [[-0.1302879130937733, 0.44955885333630219], [-0.70642464431652807, -0.38736932551572267]], [[0.91760749190540047, -0.47273734671155543], [-0.15302376331735901, -0.70016811030317783]], [[0.45013141661922829, 0.81567106675810264], [-0.59615473801203045, 0.34671300912721348]], [[0.23903112608792654, -0.31114947887937272], [0.62016389414155948, -0.82747459961955983]], [[-0.91511460631251573, -0.32568238555751816], [-0.40329157753955713, -0.82101250044004104]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[0.018775740122862317, -0.11443654923919833], [0.43486736144027782, 0.38480797876112471]], [[0.55181515928391778, 0.11140381764071683], [0.18926828403697682, -0.20016270876144659]], [[0.7280994039969968, 0.073961476761866152], [-0.6697897808718698, 0.030058399297158145]], [[-0.15297116577480252, 0.54959167221419425], [-0.73596162012515909, -0.62944147322810307]], [[-0.130497384390585, -0.074648690607898249], [0.89655273131792357, 0.57515634235572155]], [[-0.53168430120443966, 0.91631417471415899], [-0.19868649938767047, 0.97447626383861796]]]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[[0.33043067411119004, -0.053774885644922214], [-0.27409883220002995, 0.38207313850436164]], [[-0.063064210474229596, 0.21760325631241403], [-0.34193588181350215, -0.1875012047971118]], [[0.44415625845969386, -0.22882251180574931], [-0.074069210168858174, -0.33890748594401643]], [[0.21788039830146622, 0.39481522583564016], [-0.28856113341949502, 0.16782203093555464]], [[0.11569998235102241, -0.15060795555818454], [0.30018246067470628, -0.40052857608462805]], [[-0.4429496088328424, -0.15764242455680341], [-0.1952081687741318, -0.3974006790058775]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[0.0090881586695260048, -0.055391559015693904], [0.21049202615214219, 0.18626141741397065]], [[0.26709912317733386, 0.053923603782572403], [0.09161291033968233, -0.096886218335068802]], [[0.35242727410008834, 0.035800113968653971], [-0.32420324120158489, 0.014549386622150223]], [[-0.07404375099605047, 0.26602287248590667], [-0.35623288001491671, -0.30467315506309506]], [[-0.06316560239644832, -0.036132751107417413], [0.43396496886387781, 0.27839712655312132]], [[-0.2573550368626093, 0.44353024469048347], [-0.096171677926513446, 0.47168286562874207]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_taggedData_rank4_offset0(self):  
       arg0=-0.82612164061  
       arg1=Data(numarray.array([[[[0.49137230608321159, 0.21103397397591972, 0.36894695797613597, -0.98934457807391096], [0.72704960548443953, 0.40167275033472238, 0.58725780128843574, -0.10728333413432201], [0.99124949932668827, -0.646519831641438, 0.029197269026953077, 0.030911350424682515]], [[-0.2062470776840899, 0.47074529044667623, 0.39284725161264755, -0.79430925885241277], [-0.39637287434231028, -0.9461043990096667, 0.98357675278498369, 0.09119868886628546], [0.91396857840844747, 0.85432450564711382, -0.35423417818924774, -0.4192775306299914]]], [[[-0.83191415405301505, -0.10956248737146823, 0.25400718228889407, -0.11693553662376077], [-0.0080216603023453015, 0.23885756457584106, -0.34713262645684284, 0.46501360266582159], [-0.29131559484184577, -0.33852545531854772, 0.13787465227116202, -0.25170735763681362]], [[0.28495381018787858, 0.65120424561293389, 0.35994204133054541, 0.9204717883540452], [-0.88451718169770621, 0.30533185395629858, -0.082085559206255709, 0.59340273277123412], [-0.53028926744778127, 0.71911169474982639, -0.92543659627885555, -0.25163796630716662]]], [[[-0.2406854475941016, 0.73809304974413026, 0.68357891676627713, -0.40738060369549856], [0.69230516626747285, 0.61465390677783716, -0.50936848663217682, 0.29742832750319681], [0.36009425257419814, -0.10656686018273454, 0.44342857915480227, -0.18332317751439375]], [[0.80444079297957383, -0.087904217723211442, -0.76307780635792777, 0.12779018458029689], [0.23309964011556872, 0.5126085720989233, -0.98215495805790787, 0.37699412625362849], [0.93486132495407115, -0.4472239943844849, 0.026263762762378962, -0.66190224340523462]]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[[0.16616967377174974, -0.34107493762952257, -0.013366504122305445, 0.3916585189816173], [-0.51443295867620642, -0.061956143344672032, -0.46825145806797974, 0.93626982523512203], [-0.38827530515953357, 0.76492363380102857, 0.9106638908219844, 0.82366217715856216]], [[0.0777021432639875, -0.1266865881760002, 0.94159533967464126, -0.52875807266097596], [0.72286575971810585, -0.77732888911952047, -0.34573213185526286, -0.50543303426366437], [-0.30623465226307678, 0.72745029312048759, 0.029705243092159828, -0.46235736717130349]]], [[[-0.023779335438608662, 0.062125873920558128, 0.55432211434727252, -0.4910628288412513], [-0.34836515769635312, 0.75268152200559157, 0.18972705449311222, 0.20609273075803891], [0.40002294900947777, -0.069504408378212146, 0.33361971327149709, 0.96462084486009525]], [[-0.37425750917278622, -0.36854032805550929, -0.76003840737679318, 0.28810224841584242], [-0.63434214294045788, -0.64508629082812363, -0.88595356937835024, 0.018348107926466239], [0.19521376070150187, 0.27345548434566203, 0.38107788831816691, 0.11669712593060977]]], [[[0.38397614572939998, 0.86441444697364211, 0.84537640188458707, -0.87984981292402931], [-0.89945185236059189, -0.18316500042027717, 0.52176022932540378, 0.90446948037966424], [0.84249247342924782, -0.5831061613180073, 0.81322201875229028, -0.72602553774982126]], [[0.65265301490599925, -0.35965776340528843, -0.74966085019277862, 0.50894589155692227], [0.59793303791118579, 0.89854331043644731, -0.59261270886988227, -0.02537886281454127], [0.66860854165544392, -0.87533172628080691, 0.94974216080754914, 0.60985323529838964]]]]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[[[-0.40593329565157654, -0.17433973280534668, -0.30479506622115998, 0.81731896596661413], [-0.60063141288735467, -0.33183055149468393, -0.48514637826117851, 0.088629084005112088], [-0.81889266263719063, 0.53410402400225565, -0.024120495789865814, -0.025536535526296422]], [[0.17038517418731228, -0.38889287165304243, -0.32453961601120573, 0.65619606807453645], [0.32745220924480511, 0.78159731829780854, -0.81255404067617609, -0.075341210467658584], [-0.7550492214603941, -0.70577596221816385, 0.29264052044568839, 0.34637424147478285]]], [[[0.68726228579260951, 0.090511941816583966, -0.20984083015911836, 0.096602977361183132], [0.0066268671693862575, -0.19732540311940303, 0.28677377487764028, -0.38415780034006092], [0.24066211714590197, 0.27966320453586446, -0.11390123393272802, 0.2079408952444273]], [[-0.23540650917036171, -0.53797391975768227, -0.29735590970835218, -0.76042166392987987], [0.73071878529147294, -0.25224125212074272, 0.067812656841826954, -0.49022283913918141], [0.43808343962161456, -0.59407373304826361, 0.76452319919803569, 0.20788356956533524]]], [[[0.19883545683729081, -0.60975464117715084, -0.56471933620507786, 0.33654593267744726], [-0.57192827975937421, -0.50777889387439601, 0.42080032985139393, -0.24571197788070506], [-0.29748165471067783, 0.088037189368772611, -0.36632594530454121, 0.15144724416995262]], [[-0.66456594766955879, 0.072619576562001339, 0.63039508930117227, -0.1055702369392762], [-0.19256865711777679, -0.42347703457289781, 0.81137946528363425, -0.31144300608082354], [-0.77230917151350498, 0.36946141996088122, -0.021697062781837358, 0.54681176724509539]]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[[-0.13727636351587694, 0.28176938704531207, 0.011042358314733717, -0.32355757825981285], [0.424984199805229, 0.051183310785742904, 0.38683266275694839, -0.7734727640764858], [0.32076263210658001, -0.63191996729674893, -0.75231914752976314, -0.6804451491022917]], [[-0.06419142207212615, 0.10465853206718778, -0.77787228680235143, 0.43681848647224614], [-0.59717504735881366, 0.64216821717264227, 0.28561679597971812, 0.41754916748417759], [0.25298707333907788, -0.60096242961461865, -0.024540144158001535, 0.38196342671548422]]], [[[0.019644623605148966, -0.051323528887555536, -0.45793749453074117, 0.40567762980471694], [0.28779199560732704, -0.62180649381577657, -0.15673762552587348, -0.17025766485154001], [-0.33046761491719301, 0.057419095879007002, -0.27561046486754759, -0.79689415492202309]], [[0.30918222748827789, 0.30445914044401096, 0.62788417602841029, -0.23800750212460514], [0.52404377183376916, 0.53291974491367955, 0.73190541623875793, -0.015157769022293969], [-0.16127031226029109, -0.22590749336132623, -0.31481669029743919, -0.096406021128218347]]], [[[-0.31721100346491593, -0.71411148110048983, -0.69838374005752057, 0.72686297094283303], [0.74305663992145987, 0.15131657064945417, -0.4310374166551344, -0.74720181101254446], [-0.69600126435059506, 0.48171661863758786, -0.67182030831147843, 0.59978540837033645]], [[-0.53917077942293423, 0.2971210615623498, 0.61931105146203247, -0.4204512149145111], [-0.49396542225386031, -0.74230607377652291, 0.48957018329767582, 0.020966027785154353], [-0.55235198535797547, 0.72313048179271788, -0.78460255204242213, -0.50381295527576719]]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_taggedData_rank0_offset0(self):  
       arg0=numarray.array(-0.0102127620888)  
       arg1=Data(-0.229005763458,self.functionspace)  
       arg1.setTaggedValue(1,0.607738889454)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(0.0023387813791681139,self.functionspace)  
       ref.setTaggedValue(1,-0.0062066926901362569)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_taggedData_rank1_offset1(self):  
       arg0=numarray.array([-0.81150477379380859, -0.73587893035477503, 0.27818054841543649])  
       arg1=Data(numarray.array([0.053483962561304388, -0.0042571315280595101, 0.83151744596001032]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([0.30066592295644945, 0.87745173727212933, -0.45405038562992828]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=Data(0.19104222158949891,self.functionspace)  
       ref.setTaggedValue(1,-1.0159980629408079)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_taggedData_rank2_offset2(self):  
       arg0=numarray.array([[-0.62605686995587884, -0.72929095095918695, 0.4214186314345667], [-0.85483526226718332, -0.33406596197755456, 0.93287608203809058]])  
       arg1=Data(numarray.array([[-0.93868821320947071, 0.71743669634732843, -0.9363554874116542], [-0.72841321266812575, 0.62456893465181174, -0.48655379087510675]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[-0.57443404126190778, 0.10887243568313831, 0.00061471288556869119], [-0.085390418078078012, 0.38307914000270271, -0.78776523313850433]]))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       ref=Data(-0.37001385036509371,self.functionspace)  
       ref.setTaggedValue(1,-0.50937855806283105)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank3_taggedData_rank3_offset3(self):  
       arg0=numarray.array([[[0.86883447826937132, 0.97325833302667242, -0.071522808192899578], [0.32113897493125232, 0.54800038651893357, -0.69343772406267701], [-0.10212755477106628, 0.42020867036993614, 0.64244693405959641], [-0.32714722303726496, 0.39492940125511034, -0.28509015499323831]], [[-0.22658357894136105, -0.55394354325330775, 0.25179354148662747], [0.25368652940318426, 0.95083690434953394, 0.26073816945524531], [-0.66933686181802154, -0.65545265142391451, -0.747708988224695], [-0.91415569034671429, -0.6807068113459025, 0.98006373141429948]]])  
       arg1=Data(numarray.array([[[-0.11198855242982608, 0.79843327477455861, -0.90494891601357152], [0.55551817149205518, 0.73698837688900976, -0.16791015090254402], [-0.76554690630950684, 0.67339179748468236, 0.82732663029929476], [-0.732763959593981, -0.12026973749619319, -0.0094463456757079012]], [[-0.24350864090647728, -0.2119063679675417, 0.070472523613789528], [0.57111505730538226, 0.93787468279206654, -0.39143680271366321], [0.34039581332629565, 0.67185435411187444, -0.43437841675905275], [0.23295582653355118, -0.99609080306487097, -0.56516572190345205]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[0.37662867699049896, 0.18670139809775721, -0.89991915637376607], [-0.13363681073289313, 0.35731067515164239, 0.43760700193387425], [0.98049776027741564, -0.61083838250889011, -0.56317193133285559], [0.68051023955452572, 0.75186330901953524, -0.93914363223259567]], [[-0.77507351317097828, -0.39401581699087473, -0.30219396622800621], [-0.49635536015912063, 0.99958173243776227, -0.60017647351193304], [0.40262135749217465, -0.85130379852049964, 0.91534014247622664], [0.92547162623221846, 0.14277112080183629, 0.78769427784298318]]]))  
       res=generalTensorProduct(arg0,arg1,offset=3)  
       ref=Data(3.2234503848434359,self.functionspace)  
       ref.setTaggedValue(1,0.46485630943087264)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank4_taggedData_rank4_offset4(self):  
       arg0=numarray.array([[[[0.63858810145799172, -0.55320224350092806], [-0.065465869663912546, 0.0071510902302500678], [-0.96026607434360045, 0.34535275577055824]], [[0.2357434014948816, 0.74902526877312803], [0.05916209892193014, 0.050231845572323852], [0.21241397832314424, 0.7980749192608414]]], [[[-0.99734371539495315, -0.63811234751267754], [-0.37921775291358562, 0.57918693993930326], [-0.61869100903708252, -0.60931759110848227]], [[0.55290353158673766, -0.30821017407074502], [-0.78705790903275452, -0.77101989637883461], [-0.56072604812729465, 0.18522694644085624]]], [[[-0.25495079078062188, 0.3640643797006422], [0.25992158376471108, 0.24306141621815192], [0.10818066453792441, 0.64722047258592963]], [[-0.2457097682304612, -0.81174030154562749], [0.98356321362361054, -0.87401304345915376], [-0.85393948464423475, 0.033089134015780841]]], [[[0.70735936535490218, 0.86654159429498745], [-0.10220632038685951, -0.67792783829704772], [0.99473473361256648, -0.63819896364880435]], [[-0.74696846320322585, -0.28249884289217331], [-0.59906245718739082, 0.35842438303043256], [0.18267370125116966, 0.37419240157333156]]]])  
       arg1=Data(numarray.array([[[[-0.27338610365113292, -0.69941687164857469], [0.96041442269000377, 0.14947987866291101], [0.24205187951344054, -0.66249364226801122]], [[-0.95036798683289914, -0.93371239428923913], [-0.20692236402935826, -0.17715629492434104], [0.73767702970444304, 0.31151235744893557]]], [[[0.75255271591089601, 0.91384191105966361], [0.61192355817863819, -0.24224148764215014], [-0.82142070491023556, -0.28210832813750275]], [[-0.79158161174906039, 0.21852307437879936], [-0.84107518537691095, -0.063759290970212934], [0.59934349486300476, 0.44818165737795246]]], [[[-0.80000689071967779, -0.1180797235748472], [0.13362776392406084, 0.48306899711621254], [-0.32295130096289459, 0.90514191780022246]], [[-0.93481762421204606, 0.97785675665689675], [0.14424912459319827, 0.20296806616924212], [-0.93265092738291844, -0.41649448774686815]]], [[[0.52903709102043295, 0.046338963704659841], [-0.80770405114770538, 0.4009150936706487], [-0.76170364921368239, -0.49565245476858744]], [[0.83314254291881329, 0.33180501826174469], [-0.22475028459570678, 0.11148664823922361], [0.96717010076239007, 0.61165031610874432]]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[[-0.13354686484545741, 0.86759773467117141], [-0.74796939099902371, 0.22742151340850003], [0.10014487420830642, -0.89440562345228503]], [[0.0096960607877947247, -0.91032884354826438], [-0.93275279094762453, 0.14969186045954119], [0.34168402124262554, 0.37730133502290908]]], [[[0.8152733448213465, 0.76167626660345911], [-0.39794288252225751, -0.64665109463402182], [0.92027071530795945, -0.17284316507878916]], [[0.95108208711677844, -0.70723370777515271], [-0.92065464061774849, 0.69296454624741188], [0.50467776595823799, 0.52314005463612068]]], [[[-0.35805631296738127, -0.79128285558381073], [0.10586782228350877, 0.53754619043445251], [0.8156391710668407, -0.16295842240024849]], [[-0.91682927048081386, 0.12878647356532835], [0.47464488857490461, -0.5292559411292701], [0.35780514690980803, 0.84457459679176394]]], [[[0.69231673242905645, 0.93345428019305321], [0.25973721344056133, -0.45384073586554519], [-0.38819559882810517, -0.34981743990222447]], [[0.2417716413724571, -0.34597744971571776], [0.4506352179368085, 0.55601884817522773], [-0.59878566046623516, 0.69774156231643536]]]]))  
       res=generalTensorProduct(arg0,arg1,offset=4)  
       ref=Data(-1.2279131717080729,self.functionspace)  
       ref.setTaggedValue(1,-0.38028445735883404)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_taggedData_rank1_offset0(self):  
       arg0=numarray.array(0.69487888948)  
       arg1=Data(numarray.array([-0.085411859244966859, -0.93976988791956928]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([-0.17110762709715743, 0.13308663639577833]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([-0.05935089790057875, -0.65302625608444964]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([-0.11889907789885898, 0.09247909410334898]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_taggedData_rank2_offset1(self):  
       arg0=numarray.array([-0.32613135700346207, 0.63748147302895064, 0.89226805858255775])  
       arg1=Data(numarray.array([[-0.24713405338076999, -0.93371680139605906], [0.96171369766723491, 0.52912048660806432], [-0.52027265624071983, -0.15173627714919369]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[-0.30174403541125216, -0.10659890826349483], [0.68506814425883755, 0.076052956971514041], [-0.6386793142448135, 0.60048580620335112]]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=Data(numarray.array([0.22945015589436679, 0.50642940128047687]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([-0.03474671031435328, 0.61904190215291544]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_taggedData_rank3_offset2(self):  
       arg0=numarray.array([[-0.66023662685401807, -0.6337825435454385, 0.29167431468884431], [0.94451796051735859, -0.46614319856030928, -0.73737604523225175]])  
       arg1=Data(numarray.array([[[-0.0060283542426766701, 0.71406187318960157], [0.92212413020320705, 0.89112593211943336], [0.64525035258227614, -0.51627877735664796]], [[-0.35826829628537338, -0.81040252251512035], [-0.87556249165537858, 0.677296367513883], [0.99375934249904518, -0.11604810185775438]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[0.61310976502454229, 0.62241916467380132], [-0.92023902084014209, -0.25732227835122035], [-0.81498828919605315, 0.70489623209589447]], [[-0.72779245586313923, 0.99173129910639624], [-0.47667764076270491, -0.52944752798384442], [0.6355937890106369, 0.63794148710475773]]]))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       ref=Data(numarray.array([-1.0552707560523431, -2.1824008634573371]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([-0.99316188704323527, 0.67084618106069027]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank3_taggedData_rank4_offset3(self):  
       arg0=numarray.array([[[-0.74685877344840801, -0.16360461431784912, 0.89253201770767854], [0.89860614630092472, 0.47676723892163486, 0.48020432075163932], [0.013580892482476958, 0.25313284444681972, -0.72832906654802665], [0.26289995867973825, -0.1360145930930865, 0.94781534365153175]], [[0.47953323688846838, -0.8523199123772367, -0.78669408239144056], [0.47064706798376865, -0.52917691133499445, 0.38705915220782594], [-0.51179429530166454, 0.89291169791364888, -0.37093149308364692], [-0.59098447214724015, 0.20392341234660272, 0.75021054578123447]]])  
       arg1=Data(numarray.array([[[[-0.948726908067689, -0.61359244635228216], [0.51406989321292351, -0.20831361699124851], [-0.90887786246436675, 0.71557916436556557]], [[-0.33948934639119055, -0.11879393723738341], [0.66775794225840568, 0.38619015351541419], [-0.50169383818448554, 0.77809610456164169]], [[0.46281994107991742, -0.12121076996123858], [0.45900624905883958, 0.13335478380393551], [0.64177917199497481, -0.36723521898217437]], [[-0.21115889555960488, -0.92200311409040769], [-0.35381854759532994, 0.28459921984618863], [-0.56501090309887148, -0.42917182777686236]]], [[[-0.28147914690114639, -0.43376256312999462], [-0.18080881572087293, -0.7480329684389726], [-0.9362532384762221, -0.17001401319349574]], [[0.68258052502730049, -0.15250537079951965], [-0.491822032621269, 0.31288325262049366], [0.7292840447092217, 0.78949294782556589]], [[-0.27348585811977233, -0.93508885485956417], [-0.089855343129160659, 0.17963413276601603], [0.39170832397406197, 0.022221855343987906]], [[-0.36665620287309819, 0.59902334934212997], [-0.75219744958946966, -0.57660766622631288], [0.57891388936935617, 0.23998616632484904]]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[[-0.35731026425218015, 0.99152998811224546], [0.79800053990160791, 0.27164889730872921], [-0.95279011187792828, 0.31036848513884108]], [[-0.21537138768454889, 0.10894661998552935], [0.90897136217505681, -0.56164069232482583], [0.69957436310479881, 0.16551674625297719]], [[-0.10499888039026151, -0.73434354160487425], [0.40904030171036698, -0.72447746397597257], [-0.30469361993786692, -0.56304032593086295]], [[-0.69946972076599057, 0.88812864772400646], [0.044511443534362538, 0.8450203105358105], [0.25449548459351878, -0.92842541838005133]]], [[[-0.2086920545125277, 0.41567438517325517], [-0.69642364513634414, 0.52837637336666488], [0.90713301716266415, -0.49475890473689677]], [[-0.88844899113900211, -0.026939483778334772], [-0.61677873926225968, 0.27404045611980465], [0.99954591637071166, -0.60794701713577792]], [[-0.93898753827103998, 0.72421176195554837], [0.48954923821785079, 0.14541684755214557], [-0.047368487689250838, 0.97197315297147746]], [[0.25890938559966403, 0.47985481856960965], [0.04573552164070005, 0.48384639750352409], [0.1800915705972943, -0.29781619273194293]]]]))  
       res=generalTensorProduct(arg0,arg1,offset=3)  
       ref=Data(numarray.array([0.72928212095209821, 2.1644559316464433]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([1.2386553559099351, -2.4075383396127519]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_taggedData_rank2_offset0(self):  
       arg0=numarray.array(-0.0076382108537)  
       arg1=Data(numarray.array([[-0.075123626895323259, 0.11399208783031467, 0.60140159468235499, -0.98165605446860571, 0.060573134459918299], [-0.97590893810982315, -0.13712945450626957, -0.8678711738674707, -0.93647549303944011, 0.0036135746306817929], [0.46790176650093729, -0.0031086896429830535, 0.79123192468144699, -0.86737865848473561, -0.69107968660714869], [0.48522695497603041, 0.4362608490834381, -0.7023029697526848, 0.93155259344417329, -0.32450611701628529]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[-0.7082078622672543, -0.52202390988029146, -0.64107419017997391, -0.41105073481237553, -0.97052336964914154], [-0.74928802689753127, 0.70062301179706465, -0.80287402010931563, 0.46013161789334478, 0.36560859855389038], [0.24429050931245033, -0.91368022088344514, 0.8183212394058752, 0.9809479061635149, 0.75105884497194331], [-0.15985102541033358, 0.70866470229741796, -0.9309045534066176, 0.89989361052339345, 0.66014865163971725]]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[0.00057381010232110733, -0.00087069560250134211, -0.0045936321879347713, 0.0074980959298416383, -0.00046267037307432907], [0.0074541982432925133, 0.0010474236877716389, 0.0066289830198471809, 0.0071529972751571622, -2.7601244964725752e-05], [-0.0035739323513524885, 2.3744826971815454e-05, -0.0060435962748951371, 0.00662522108350516, 0.0052786123630137651], [-0.0037062657940053292, -0.0033322523525131458, 0.0053643381661501385, -0.007115395130036924, 0.0024786461450855735]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[0.0054094409802448503, 0.0039873286943381357, 0.0048966598374591023, 0.0031396921840649186, 0.0074130621358227946], [0.0057232199395955826, -0.0053515062930597629, 0.0061325210545520852, -0.0035145823179231197, -0.0027925955656800797], [-0.0018659424196860639, 0.006978882179962214, -0.0062505101726425382, -0.0074926869437716651, -0.0057367458214314833], [0.0012209758372641567, -0.0054129304207216509, 0.007110445263588434, -0.0068735771430743454, -0.0050423545960093814]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_taggedData_rank3_offset1(self):  
       arg0=numarray.array([0.52740927894754619, 0.92711635622544497, 0.21953387453373652])  
       arg1=Data(numarray.array([[[-0.22392083741334945, -0.30235339921774051, -0.44301386367935147, -0.44316180861534993, -0.34678833213783067], [0.24961880731273012, -0.34290109081328413, 0.30476011903078648, -0.54998551867196577, -0.60074692863908941], [-0.054957962474853961, -0.31713965784080411, 0.67226015328839228, -0.40104591242338672, -0.27476582162654783], [-0.55431697141969027, -0.98638218261212662, -0.50493365105734789, -0.61607491179943263, -0.45151520465277417]], [[0.62037337363985312, -0.4699399301026328, -0.43684235853569309, -0.81141634353422165, -0.10467810077998818], [-0.95312119770637804, 0.80983653946537681, 0.42287272543192134, -0.9508587478867887, 0.61493229981631248], [-0.75010300220466064, -0.54128732884328623, -0.27407300025939274, 0.74075697682554398, 0.38349161839485557], [0.081815350248955809, 0.0010176467460347727, 0.31177535891296349, -0.3669373686248969, -0.87042994098830673]], [[0.49295499304477453, 0.055622465425793299, -0.010386088290052387, 0.81505746647294064, -0.77343467126360155], [-0.58146206038521808, 0.95689279311332753, 0.74334666823582407, 0.44198050892095098, -0.12228012023773438], [-0.0086209706464153157, -0.47622892188030197, 0.21304959604044371, -0.24780747212868359, -0.41185326075899065], [0.75057587354167299, -0.94687789776507936, 0.86807083386192563, 0.61905742512961437, -0.87380510227827601]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[-0.47772886840682971, 0.82937879318125907, 0.76787340171351004, 0.16621086364583793, 0.18152740122415612], [0.91497129773452923, -0.30525725027576911, -0.36759867967555082, 0.31289389636080789, 0.077081290109164868], [-0.012168268656227443, 0.12902953418448226, 0.1653049562908786, 0.96836951312686659, -0.35988740090935911], [-0.7027905520405886, -0.15582576511362611, 0.20893018306932798, 0.1043578739462987, 0.95038966575449146]], [[-0.34180614792928532, 0.55817412305655556, 0.80340700894833295, -0.38906512510488467, -0.055328925918995742], [0.87269858310438142, -0.77333065440838111, 0.81333771330487292, 0.32356542101737107, -0.23253008388033614], [-0.43032440113284087, 0.24272854626442864, -0.85853886191583628, 0.18931503172877528, 0.75173310356815737], [0.077368186035134068, 0.97387660394662023, -0.84595593322080997, -0.7471304205282947, -0.65158921764464806]], [[-0.67980354539778176, -0.16189355298404062, 0.88985599897969214, 0.18548328718475338, -0.18500125474439311], [0.089257110145460006, -0.45151890952274298, 0.63995871137991989, -0.26764206985479366, -0.61832181853185442], [-0.83242006142831837, -0.52355863033399275, 0.92733756893871022, 0.53040270974090964, -0.70935580393293662], [-0.16990796114502094, 0.45594468811813837, -0.40363535084664948, 0.23305336309042524, 0.11799611368699803]]]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=Data(numarray.array([[0.56528069386063218, -0.58294196856431812, -0.64093341630099909, -0.80707229015567794, -0.44974327365320321], [-0.87965359569295198, 0.78003386693678067, 0.71597530917911589, -1.0745944698684531, 0.22642966009329638], [-0.72631069664728998, -0.7736471146410886, 0.14723028465734023, 0.42085043921217474, 0.12021156595197509], [-0.051722735148578641, -0.72715541236178716, 0.2133162954231993, -0.52921318607469647, -1.2369529634488794]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[-0.71809261466547358, 0.91937331144502155, 1.3451888710559841, -0.23232762467601459, 0.0038288413493277468], [1.3112524420666287, -0.97708670036676659, 0.70067635800104822, 0.40624943781746714, -0.310671640974157], [-0.58812284989616681, 0.17815012428895433, -0.50520004402371166, 0.80268549100072839, 0.3514084731578524], [-0.3362295006025029, 0.92080827799982512, -0.76271949760214919, -0.58647441428250191, -0.076950548866088903]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_taggedData_rank4_offset2(self):  
       arg0=numarray.array([[-0.76138663657763317, 0.80092007493119932, -0.98971611690740446], [0.75715842943795186, 0.01562270901778029, -0.38091063327663566]])  
       arg1=Data(numarray.array([[[[-0.83560266279859596, 0.94972397975532652, 0.51790321138093542, -0.35108261741873115, -0.7558030663647346], [0.76866496798455497, 0.32329226903774777, 0.18277980840079411, -0.41611349763614047, -0.4525356521615802], [-0.62407471049943641, 0.32997092851807164, 0.39298327813600942, 0.61459204766562525, -0.40374203768111694], [-0.36958010356839588, 0.130290489890591, 0.52784207925456461, -0.013331249269650014, -0.48885545816485432]], [[-0.60656815128196495, -0.92171018240763503, 0.83493650000587016, -0.11537767407957666, -0.73241479886343486], [0.69662876488115466, -0.087621660009356006, -0.90948252971332599, -0.71217814456830242, 0.20256163098854674], [-0.97342367325530232, -0.57072983710846326, 0.03503208896765031, 0.70699915978400285, 0.72440201922663094], [0.74547327019524356, 0.97297254530034283, -0.58951415091607595, -0.41980643030845344, 0.29443960392186463]], [[0.81240516981927713, 0.17076029887909439, 0.60923893487117731, -0.65823188302962343, 0.19929739541515312], [-0.54576807848190523, -0.87664684771412693, 0.7118913928917272, 0.32860264688503271, -0.40950453449411039], [-0.43908673805979204, 0.21041762838464684, -0.09981594555110318, -0.75062986784109698, -0.17311623787883579], [0.22543750122783401, 0.69863807744901796, 0.75262958723213336, -0.53295555007159501, 0.85046365633145293]]], [[[-0.074036833028703342, -0.92720818819344886, 0.72032563471394706, 0.64441117277034921, 0.045442245710698215], [-0.78568537805326177, 0.35074022872924404, 0.31824612766681404, 0.29228555462829897, 0.83224024774781702], [-0.0046869498532340348, 0.59996749812581229, -0.18882966967554982, 0.87421098203459002, -0.61295306962921736], [-0.97960434870771862, -0.25937841927809524, -0.28323316224046646, 0.16847602797927097, -0.77946458750487246]], [[0.56763161211707347, -0.71441422905678742, -0.27214555251106165, 0.84727293819297866, 0.62628776695923127], [0.20926041225147207, -0.33859524655723838, -0.87617609217009451, -0.54354868398764422, 0.75200065121873916], [0.9834287056106954, 0.14876321381519064, 0.71015677349810402, -0.17349392311933332, 0.34178317580874418], [-0.33072036523627535, 0.054308903287552113, 0.41789047604471818, 0.4908857254600163, 0.60690408590192035]], [[-0.37349313311496157, 0.17229126932529448, -0.45309742100365535, -0.21421206402079895, -0.25944799274278929], [-0.88837643198407057, 0.12396242411471858, -0.48501999385140415, 0.76676098267292869, -0.31038593086399779], [0.76221633431653291, -0.043016731102265116, 0.83645122278429795, 0.87282057354773968, -0.97056738175325097], [0.89228999713355339, -0.45326930544372179, -0.024369698992643629, -0.74354718806835263, 0.14533480220560291]]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[[-0.54616467991324735, 0.57976852853613936, 0.87163217022266126, 0.71011664635055594, 0.50754000460374971], [-0.78853022483669521, 0.72142688375821606, 0.10151618279453345, -0.66935246313485708, 0.70871039280972581], [0.0034131995502404422, 0.93219696292007304, 0.14725236304446976, -0.28615780109996458, 0.67600289302425476], [0.91233652376908148, -0.51809013667738624, 0.06302259539682864, 0.47885132598761948, -0.52093582320586607]], [[0.94999034900719725, 0.1975211900443965, -0.048413626501447871, 0.82151298158854247, -0.34962118595097302], [0.75566873370493193, 0.10471544578061809, -0.3099457447634919, -0.36447232118223027, -0.43103358490236943], [-0.8494665093926812, 0.81143768027144403, -0.31237288709870081, -0.22268973845108597, 0.87542232699259093], [-0.5643206003802943, 0.60819778774195354, 0.90949825644039461, -0.53257175928094114, -0.78146968055884325]], [[-0.090586768142021823, -0.52471831864791896, 0.38046081371520724, -0.87361293455675804, 0.11260402434948946], [0.89892173200322256, -0.63820307236641494, 0.66205833636038491, -0.7957983919689875, -0.70891832300808733], [0.65933150514376959, 0.93240803419396845, -0.78634040125152627, 0.12092377170633051, 0.62601033740309497], [-0.11408834710747562, 0.41385372129246845, 0.74295472908869642, 0.81468219143823251, 0.48346774551718208]]], [[[-0.066272271442725961, 0.3753925200719368, 0.75857190268529484, 0.046011153717615549, 0.28863549112330622], [0.030112130465934195, 0.75777389859688893, -0.21405833739685987, -0.94453677876875797, 0.9240945675018446], [0.36824884990768991, -0.76613538827943906, 0.40520295835890252, 0.9447577968236347, -0.047156645282012466], [-0.95076389050031174, -0.55975642463374919, -0.38375619207501988, -0.72414130365717311, -0.54397128836307385]], [[-0.82355282945908725, -0.3641967149858707, -0.69125020596022768, -0.0021277378568234084, 0.023294816806539664], [-0.32021514108363802, -0.63832842229099795, 0.12688907386527437, -0.99733790248339216, 0.37167480564299438], [0.61512520175202301, -0.80837769263390458, -0.98056282722667731, -0.89126884506029591, 0.19639999711538403], [-0.82428132190749781, -0.48132118639227772, -0.42991106475729324, 0.89257199639701001, -0.23988407656889144]], [[0.29537576510772245, -0.6825254346998586, -0.53347892938144836, -0.027034592242984434, 0.79998183116566612], [-0.78222470426821711, 0.01719557578261921, -0.56604241752467988, 0.46161110357886903, -0.79642373068196659], [-0.12251174175032631, 0.66818100405956393, 0.18270975218241503, -0.5806255802463951, -0.31811949714885945], [-0.94534450094670319, -0.3659484714049297, 0.26582629308042072, -0.94695118235117159, 0.86122803933277337]]]]))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       ref=Data(numarray.array([[-0.55856856111300834, -2.4091597125703794, 0.38515782812896204, 1.4091177241855979, -0.065377415116906423], [0.25962112825162037, 0.7643606944057818, -1.1601355373594284, -0.65805049511175451, 1.6721988202763136], [-0.14842244482558523, -0.44361809414647629, -0.62285743148322625, 1.1679572576959438, 0.96986427396587116], [-0.43142645493959875, -0.03426856532053163, -1.817576373339632, 0.61985057479541072, -0.86974325330188351]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[1.0908075096580985, 0.77461592037346438, -0.31220502451238352, 1.0270239706055124, -0.86371368384610814], [0.63168404145424284, 0.72345627877112817, -0.92526678767769799, 0.09875963454669584, 0.82566064277544293], [-1.0004058938966083, -1.8299170077110427, 0.63783977134757019, 0.8424135912158347, -0.34459042594026901], [-1.406366087735972, 0.18003685414173182, -0.45340009253688762, -1.77108403392749, -1.4514280038897776]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_taggedData_rank3_offset0(self):  
       arg0=numarray.array(0.84121522304)  
       arg1=Data(numarray.array([[[-0.24663267372525488, -0.10945073511887027], [0.07976282727299, 0.88633763806907062]], [[0.53808827163431161, 0.6076693685094583], [0.96671768664174396, 0.58574426669171742]], [[-0.21762565032479775, 0.64396881762222979], [0.60007030508547787, 0.99010151798972967]], [[0.36959047235068376, -0.53305754128374727], [-0.8905661243165508, 0.74527279917455913]], [[-0.69200858827200951, -0.057174151772140247], [0.96690253534400239, 0.050290458877692013]], [[-0.22433285107592305, 0.025151062814394942], [-0.61874077043938303, -0.98454723496273244]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[-0.4779573584418142, -0.0045526128203858818], [0.54735205145689259, -0.93002745869130887]], [[-0.62140461535825908, -0.43216463942865202], [-0.92150865752954636, -0.16114691786312174]], [[-0.46941067876706266, -0.37180115368988087], [0.89405889226075397, 0.97023721849019973]], [[-0.70666390709389337, 0.48146728631103541], [-0.68371114216712026, -0.22462783564116995]], [[-0.66876253568521737, 0.67427863310824754], [0.59421080091382783, 0.96155507641187588]], [[-0.14702837535604285, -0.39837316006264301], [-0.71270454603859346, 0.38307482381540092]]]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[[-0.20747115963676183, -0.092071624554921294], [0.067097704534755748, 0.74560071389709193]], [[0.45264804543810921, 0.51118072336530918], [0.81321763438512584, 0.49273699394952181]], [[-0.18307000997721745, 0.54171637254694138], [0.50478827553220984, 0.83288846928805338]], [[0.31090513163196937, -0.44841611848420471], [-0.74915778089888785, 0.62693482398333233]], [[-0.58212815892889014, -0.048095766835128409], [0.81337313192742489, 0.042305099581585716]], [[-0.18871220935304991, 0.021157456915106333], [-0.52049415520915721, -0.82821612185267013]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[-0.40206500588527871, -0.0038297272091160424], [0.46044087804775585, -0.78235325609640927]], [[-0.52273502210673373, -0.36354347354700972], [-0.77518711087708303, -0.13555924045244758]], [[-0.39487540883643046, -0.31276479042779259], [0.75209595046409805, 0.81617831815402131]], [[-0.5944564362203647, 0.40501761064064024], [-0.5751482209531027, -0.18896035485989746]], [[-0.5625732256172904, 0.56721345074131546], [0.49985917142355091, 0.80887476806913838]], [[-0.12368250756835435, -0.33511756669527815], [-0.59953791365753517, 0.32224837335691225]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_taggedData_rank4_offset1(self):  
       arg0=numarray.array([0.42093743503457759, 0.73232104743133641, -0.14878028119271147])  
       arg1=Data(numarray.array([[[[0.78710133320156928, 0.904724510416687], [0.93931026404524087, 0.33920904332744928]], [[-0.2134005921995239, 0.72390751268435372], [0.70865659976324258, 0.98172103290744883]], [[-0.79074618041986167, -0.93341388720727814], [0.38353829871662426, 0.37510038487326991]], [[0.69463855148963516, 0.52754187859703827], [0.80642127398576968, -0.67835838831204365]], [[0.24239534106723437, -0.94389821715748812], [-0.15941542047845481, 0.10399532721392379]], [[-0.85811785598565238, 0.87283109258759617], [-0.95715898043356629, 0.96715075002913675]]], [[[0.35114265767724029, -0.45652844828617067], [-0.49969511579070458, -0.071084423661412321]], [[0.90148295948000401, 0.76115766848635191], [0.13596698489371928, 0.55564758782612578]], [[-0.027187721926189568, 0.71252579494387103], [-0.084338009995321039, -0.031439903447676221]], [[0.26131987950229241, 0.21349573526510168], [-0.80575084479471548, -0.42163110489689082]], [[0.76330786219251001, -0.097052741051362412], [-0.049644380109131525, -0.21398058844109635]], [[0.61692348762788818, 0.78743716730880053], [-0.93025574372390896, -0.63110722448927659]]], [[[-0.45922726881258291, 0.81781316410212512], [-0.094373391050986521, -0.80898932595614026]], [[-0.27291296745026328, -0.14257988381332853], [0.52608589713760812, -0.38588992920541965]], [[-0.41893846259883638, 0.8437687258479718], [0.79421526301617784, -0.68484288241585789]], [[0.14738914609420384, -0.18098211922538043], [0.55329310979645951, -0.044039760411740403]], [[0.073553284988028045, -0.82310691807778436], [0.38518083347142995, 0.076513809513227393]], [[0.9563736030517862, -0.25691712039803405], [-0.3159249966356894, -0.40807898933024167]]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[[-0.59902293892645742, 0.4070901207828046], [-0.58232546518699757, 0.016474213083368383]], [[-0.0063369947838824991, -0.27273602166135791], [0.49777404662155611, 0.8968769635346312]], [[-0.1947627413450721, 0.55225148576229288], [-0.41409491470290827, -0.00037383529193713017]], [[0.88420803364689848, 0.59274534715690419], [0.14686033077843708, -0.051809538429408164]], [[-0.75154817288548004, -0.069156268280767375], [-0.81540598499408379, -0.61361644721131858]], [[-0.9375451831238315, 0.28241674539865769], [0.13820212902557283, -0.94335883578878055]]], [[[0.31973402954805219, 0.65088994807161171], [-0.96912795413198638, 0.53303010014969732]], [[0.068703252510207369, 0.85202495380431698], [0.23775787160462536, 0.21090896562691852]], [[0.80605616424216842, -0.43022031403036332], [-0.53971829450800479, 0.74403488368144433]], [[0.57493907808226519, 0.81629775999724274], [-0.93354186509027159, -0.24530797435127139]], [[0.45780232465399995, 0.14244524006220605], [0.68820230081584288, 0.54350829611983786]], [[-0.82440439539658161, -0.94278875347999214], [0.48863959060190076, 0.35307808213677983]]], [[[0.0048311838336423385, 0.56093315064741223], [0.39594424465558009, -0.78995903451792149]], [[-0.97450267991323059, -0.15338149665392442], [-0.21339127777779088, -0.64160851143172914]], [[-0.2747128459425876, 0.17586609366777384], [-0.48934715104038151, 0.75585706624331261]], [[-0.60605449209671014, 0.26414574917197986], [-0.74638775621562625, -0.26512756020803163]], [[-0.7242484515935883, -0.1470599651505875], [-0.49430181346352131, 0.57217102808038067]], [[0.88200942050607933, -0.004129854055393567], [0.41075967962180182, -0.86332013700981358]]]]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=Data(numarray.array([[[0.65679353736348178, -0.075167449121632299], [0.043494502314359279, 0.2110908244446677]], [[0.61095071525095745, 0.88334462784410306], [0.31960036851046053, 0.87756836920769954]], [[-0.29043502767968787, 0.0033526406751779037], [-0.018480442277836823, 0.23676080748375314]], [[0.46184081941128147, 0.40533611631062733], [-0.33293450445737099, -0.58776352444026603]], [[0.65007640786339993, -0.34593378072352088], [-0.16076685535568036, -0.12431070845865026]], [[-0.05171740819865478, 0.98228829389823713], [-1.0371464969316624, 0.0056509591109529522]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[-0.018722004909768934, 0.56456408792092538], [-1.0137440821925492, 0.51481410153988194]], [[0.19263214225060102, 0.53197114740987628], [0.41539523829205621, 0.62744085793888238]], [[0.54918082017080083, -0.10876147395429514], [-0.49674991127522072, 0.4322584172169564]], [[0.88340520734295869, 0.80800105784027532], [-0.51078556526914831, -0.16200701397729445]], [[0.12665740598926073, 0.097084808184588325], [0.23429248874403077, 0.054600664869816032]], [[-1.1296021645545062, -0.57092982618838128], [0.35490256587758595, -0.010083524975030317]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_taggedData_rank4_offset0(self):  
       arg0=numarray.array(0.464020914261)  
       arg1=Data(numarray.array([[[[0.11755054365974438, -0.40139218168795487, 0.072053551538426852, -0.63910577791810352], [-0.9885988547294926, -0.51537118206750909, 0.017311984926075663, -0.71554041516954614], [0.25716158315488369, -0.88728977354765681, -0.6512584186524295, 0.68403791372467526]], [[-0.63913374179799098, -0.64105966578682705, -0.95279874560421329, -0.23077283221130096], [-0.3326978349817924, -0.61138317009375087, 0.48993034100732724, 0.84778608858395454], [-0.35571974316190991, -0.29304817739334843, -0.72513731196938713, -0.98942127245414069]]], [[[-0.39657781945210124, 0.37692677760236193, -0.31404653104418712, 0.41778097807877179], [-0.34710424161643005, 0.12962754032322188, -0.96696015549094971, 0.20848949876280631], [0.025666093688795355, 0.87242748402315495, -0.61910922207732333, -0.044747570019129324]], [[-0.3891671617621455, 0.12759808814452844, -0.84124650726607753, 0.54935118507065783], [-0.48136806482263128, 0.16087111290615841, 0.86835387578259549, 0.33110786434002559], [-0.32761023920530863, -0.69432465536524446, -0.28222797289790558, 0.66513243224571172]]], [[[0.6222624392443965, -0.53063302368843623, -0.47302474748247691, 0.13453245785733903], [-0.49870171866403679, 0.65281221055036598, 0.34202992462184656, 0.086433419350200769], [0.70716969703380084, -0.14193436916590918, 0.38041134593159431, -0.35589153091671943]], [[0.012712130264437294, -0.43705521649742418, 0.080814362740557089, 0.14475814648714169], [0.85058446626966422, 0.27223143191434351, -0.49974204521291887, -0.21680225173838563], [-0.32862029476237842, -0.55064101990928904, -0.074830426465927413, 0.56014719098101096]]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[[0.94235013960670733, 0.23753869332318622, 0.34445182508806926, -0.43898912547214897], [0.6484129358186046, 0.50652938193724073, 0.14349385661291381, 0.1555221218478291], [0.91342837368031393, -0.87492912091299946, 0.65119952454917862, 0.28616208790855735]], [[-0.12350894618284292, -0.079138253112442269, -0.65818254675768939, -0.28326940787473243], [0.7340736177001439, 0.74023518082487083, 0.17736271698233086, -0.9074183880543305], [0.23742924822012035, 0.96963692173118532, 0.49276573413361269, -0.75334982863930433]]], [[[0.61167448833554627, -0.38184812763530651, 0.11645034265615961, -0.0097980587298938104], [-0.49419370788806272, -0.85192409314259043, -0.54550910351696724, -0.84478106898579086], [0.1255336192447527, -0.5729965356597122, -0.47505660164996732, -0.69958280725247368]], [[0.47768102726509931, -0.042787916060617714, -0.77318323993787486, -0.85897627930666265], [0.66247649900125816, 0.78050397294784135, 0.66574531944311421, -0.30518127411058704], [-0.51160104022414243, -0.85653020373257127, 0.17642821423058619, 0.48136904697170735]]], [[[-0.39952034191463071, -0.46045030874902393, -0.24889982425522517, 0.90030435639981743], [0.98071830657317527, 0.72124751798397924, -0.31609723237781506, 0.89766269999854198], [-0.67621439651540105, 0.11408732098376295, 0.56058240438295281, 0.43992669788420891]], [[-0.89857052858038888, 0.2556546028438913, 0.32676286327184934, 0.66749218006576982], [-0.37365600978104041, -0.52585609277581868, -0.81382732296486404, 0.19119409464947301], [0.67596105053607691, 0.60253883499193339, 0.57689653606691316, 0.38803565768413417]]]]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[[[0.054545910740921112, -0.18625436712422933, 0.033434354860642904, -0.29655844737931203], [-0.45873054440936817, -0.23914300708695238, 0.0080331230730774847, -0.33202571763796612], [0.11932835292844235, -0.41172101193638866, -0.30219752684354451, 0.31740789811599557]], [[-0.2965714232044237, -0.29746509221452144, -0.44211854504239761, -0.10708342058938428], [-0.15437875356104511, -0.28369457755094524, 0.22733792475862741, 0.3933904759228366], [-0.16506140044282561, -0.13598048319670322, -0.33647887846510083, -0.45911216343386418]]], [[[-0.18402040235796288, 0.17490190795265748, -0.14572415845574993, 0.19385911140914039], [-0.16106362753887138, 0.060149889774240017, -0.44868973540527168, 0.096743487829821798], [0.011909604258993985, 0.40482459876321147, -0.28727962725599376, -0.020763808351253125]], [[-0.18058170220139122, 0.059208181518832864, -0.39035597342082845, 0.25491043914707912], [-0.22336484953524605, 0.074647560888967138, 0.40293435934308419, 0.15364097393020365], [-0.15201800271744859, -0.32218116137682346, -0.13095968201423236, 0.30863535931557462]]], [[[0.28874278596872383, -0.2462248207892079, -0.21949337579509448, 0.062425874092797907], [-0.23140802743822594, 0.30291851878059695, 0.15870903832779251, 0.040106914269620549], [0.32814152935559299, -0.065860515745482545, 0.17651882053459428, -0.16514111355387123]], [[0.0058986943075144118, -0.20280276114185597, 0.037499554484327034, 0.067170807479751501], [0.39468898169500832, 0.12632107792758815, -0.23189076071456863, -0.10060077906557942], [-0.15248668962049491, -0.25550894948814701, -0.034722882903291313, 0.25992001167997281]]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[[0.43727017333467755, 0.11022292164828704, 0.15983285079637932, -0.20370013535240614], [0.30087716329747793, 0.23504022690678852, 0.066584150536420833, 0.072165517167705029], [0.42384986906745781, -0.40598541059998722, 0.3021701987479094, 0.13278519365828453]], [[-0.057310734127226821, -0.036721804562286832, -0.30541046709741038, -0.13144292962432336], [0.34062551122040613, 0.34348460537482134, 0.082300010090029976, -0.421061110042591], [0.11017213683150097, 0.4499318109233299, 0.22865360646937691, -0.34957007624389125]]], [[[0.28382975530784416, -0.1771855172943449, 0.054035394465366378, -0.0045465041698323763], [-0.22931621615645811, -0.3953105965813527, -0.25312763295186869, -0.39199608398152319], [0.058250224772494662, -0.26588237634544382, -0.22043619862353925, -0.32462105382286094]], [[0.22165398699688388, -0.019854487929788566, -0.35877319388757661, -0.39858295845274722], [0.30740295074326601, 0.36217016711192501, 0.30891975179325248, -0.14161049382825847], [-0.23739358242189815, -0.39744792822850483, 0.081866381268785607, 0.22336530527295825]]], [[[-0.18538579432126054, -0.21365857323767345, -0.1154947240104154, 0.41776005057017918], [0.45507380524899266, 0.33467393270370327, -0.14667572676345708, 0.41653426675169486], [-0.31377762250780822, 0.052938902988521344, 0.26012195980064073, 0.20413518856023646]], [[-0.41695551820023607, 0.1186290825467617, 0.15162480256208166, 0.30973033165646441], [-0.17338420327787105, -0.24400822493977151, -0.37763289845307707, 0.088718058600632213], [0.3136600646748578, 0.27959062109096555, 0.26769205810001312, 0.18005666064462189]]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_taggedData_rank0_offset0(self):  
       arg0=numarray.array([-0.29596901469549852, -0.49790487372373438])  
       arg1=Data(0.76831355123,self.functionspace)  
       arg1.setTaggedValue(1,-0.977087069153)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([-0.22739700473472377, -0.3825470617053755]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([0.28918749712898151, 0.48649641378381187]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_taggedData_rank1_offset1(self):  
       arg0=numarray.array([[0.84839100899258657, 0.63995278205392858, -0.22518927308060821], [0.62417961980622882, -0.4093347205638358, -0.51820930075503857]])  
       arg1=Data(numarray.array([0.65029528476596887, 0.29675757149284943, -0.14657175516773702]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([-0.72595920843424988, 0.47967681592024913, 0.87755655741797622]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=Data(numarray.array([0.77462189325851005, 0.36038273276068944]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([-0.50654307574813429, -1.1042352881135549]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank3_taggedData_rank2_offset2(self):  
       arg0=numarray.array([[[0.8857634315941374, -0.64922027003957394, 0.85767802430130113], [0.42528203997287828, -0.98510131120740763, 0.45263861034439823]], [[-0.95501468604731632, -0.34680321085215726, 0.077101031514611007], [0.14296036018536684, 0.66344300477160645, -0.62889213379515763]]])  
       arg1=Data(numarray.array([[-0.35560670830392649, -0.61743818620771229, 0.45709664415266604], [0.12643609028121605, -0.50595462018719806, -0.62871884269372935]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[0.2522731192686205, 0.59077343967396301, 0.54825792352365998], [0.12661367864362116, -0.49523494116892963, 0.21035303725414334]]))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       ref=Data(numarray.array([0.7455168493135651, 0.66678142718364053]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([0.94705800434800325, -0.84628419890463791]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank4_taggedData_rank3_offset3(self):  
       arg0=numarray.array([[[[0.87551146721810813, 0.28771538582234579, -0.15437310094017409], [0.68756318950966588, 0.26445838583723247, 0.32373630114498408], [-0.42086758680556158, -0.44783064702669684, -0.96968127630088774], [-0.40709420019735032, -0.37187645584025053, -0.70581627335802555]], [[0.62630296308633016, -0.68840738003201962, 0.57242186156020569], [0.57690971093873333, -0.38540897970548937, 0.34128114677934795], [0.37546178565646726, -0.61921118479761872, 0.19502756047360448], [0.6034121430542152, 0.61080731194605797, -0.38418196703132956]]], [[[0.55965256611451597, 0.58288566512371065, 0.8987568378413251], [0.53992736465257307, -0.1882635916615969, 0.48973640021427478], [0.85203661150963406, 0.73584633064344884, -0.83545478061497325], [0.31840175110958402, -0.5256509231279165, 0.38644604785950043]], [[0.99756206683886961, -0.20610203025004581, -0.82590744308615416], [-0.80000573771481376, -0.26824634148243276, 0.088637756291022773], [-0.63150830084355314, -0.94550055175344494, 0.071483302182796749], [-0.71377309004963307, -0.25811353825233896, 0.98811890657582868]]]])  
       arg1=Data(numarray.array([[[-0.51467600396146573, 0.70926095678837009, -0.63163248147737239], [0.89624331515459543, -0.17156805907961159, -0.66137665466444351], [-0.30885327027632603, 0.45453584110717959, -0.73658812703020882], [-0.92589776828624393, 0.24725623516500517, 0.021740237804729334]], [[0.85508637600310866, 0.055474021033104615, 0.17700727428001617], [-0.75254843473403477, 0.48904243298864114, -0.96428353955560886], [0.82776641672164297, -0.50627909794708992, -0.24334660876215253], [0.075193245557573896, 0.73737517900426397, -0.80335726058193346]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[0.71678653318238461, -0.12311602951580936, 0.78030860477591557], [-0.81933373807095333, -0.62288568144102952, -0.67387286214342379], [0.49544626539819636, -0.26546931588256939, 0.73901268961381517], [0.66246297549622035, -0.034973761870373599, 0.60053617311110807]], [[0.68982518244318047, 0.97893984565288683, -0.96628203885355646], [0.77657969122611714, -0.90916620475638554, 0.66453360641437875], [-0.62638542087033366, 0.039691984103488176, -0.94760416787934099], [-0.69310132536482261, 0.83247979072344003, -0.30187713547481998]]]))  
       res=generalTensorProduct(arg0,arg1,offset=3)  
       ref=Data(numarray.array([2.1462111553154131, 0.0018289197595722229]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([-1.9694567861709098, 1.6841424416510264]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_taggedData_rank1_offset0(self):  
       arg0=numarray.array([0.059107512318066879, -0.86443238423224034])  
       arg1=Data(numarray.array([0.26323295908478461, -0.87200177116993149]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([-0.47160488168708659, 0.42588097415230286]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[0.015559045371625101, -0.051541855430802863], [-0.22754709443016813, 0.75378657010716033]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[-0.027875391353579942, 0.025172764925737563], [0.40767053229233186, -0.36814530588562427]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_taggedData_rank2_offset1(self):  
       arg0=numarray.array([[0.87928940892560026, 0.45857057701152892, -0.71636944869938413], [0.76469394956908654, -0.50617870808981302, -0.083669068487796316]])  
       arg1=Data(numarray.array([[-0.83918291402612999, 0.8724655907290082], [-0.094317633486005636, -0.80716341399646141], [0.99731604189303447, -0.45791272693117469]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[-0.22043261953143589, -0.11771151518581213], [-0.30304403419134207, 0.52493670858736796], [0.38255222091814534, 0.85310429105915486]]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=Data(numarray.array([[-1.4955826831745032, 0.72504304882519865], [-0.67742102328262799, 1.1140512238628213]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[-0.6068398689526, -0.47391980992915317], [-0.047176840694213712, -0.4271035097947341]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank3_taggedData_rank3_offset2(self):  
       arg0=numarray.array([[[0.37992305691385031, 0.61876747772662832, 0.045342680899379761], [-0.40047632827023083, 0.15466055705712312, -0.44357459958403056]], [[0.26840869814605517, 0.35523465362518025, 0.12287957687473106], [0.96647751860299635, -0.83792974311338519, 0.11310600361644152]]])  
       arg1=Data(numarray.array([[[-0.33392279167171579, -0.16857351354564298], [0.48812062095085551, -0.90127622553897191], [0.095331239457839168, -0.67514724967494399]], [[-0.227343232057865, -0.87380676579834726], [0.71691550383695035, 0.56596215351114809], [-0.1787430650852746, -0.61636758001639991]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[0.19105980102157649, 0.55225511738960664], [0.31364782767761445, 0.066291571998562615], [0.89294308496599561, 0.37611031397199723]], [[-0.69376612638867541, 0.44512740294672049], [-0.0021026829686792148, 0.62442153616194274], [-0.94301525256393903, 0.7585189049994816]]]))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       ref=Data(numarray.array([[0.46070078917902513, 0.058537581927444071], [-0.74518002023611196, -1.8368389438660175]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[1.0029608541597337, -0.15026195374089973], [-0.50298299195057006, 0.21077270944283164]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank4_taggedData_rank4_offset3(self):  
       arg0=numarray.array([[[[-0.61546786905714113, 0.34200095706599187, -0.67725239113864366], [0.17407072378649335, 0.84698639438965584, -0.42975648201283567], [-0.57536506925096598, -0.79317715559584712, -0.73361547399143356], [-0.7002702232491993, 0.98896696424550123, 0.65605734602693122]], [[-0.30808828957772616, -0.070763991246238112, 0.60774598069649932], [-0.63600270873331155, 0.90222920400083306, -0.012275760089776711], [0.87283900920781021, 0.056673859347249556, 0.9432602104953689], [0.4343386152088522, 0.7107991114815817, 0.60797773546841971]]], [[[-0.69884981878846908, -0.25757270411503752, 0.11220990577376755], [-0.84541038008283231, -0.19034334027332811, 0.074447637946352785], [-0.92533114503742264, -0.32731062957647827, 0.24029755350320103], [-0.15299749270921947, -0.88849469120659563, 0.60409851902810163]], [[0.71870093649187239, 0.72975851765435706, -0.28581724447909718], [0.664496911158583, -0.42258317841023563, 0.92299811801373566], [-0.98627335468525934, -0.65705514628041994, -0.09471298660013594], [0.74351034831609031, 0.26572364611908172, -0.27564782915741848]]]])  
       arg1=Data(numarray.array([[[[-0.96921695920171946, -0.5922961744113111], [0.56190773201135058, 0.76518603343873259], [-0.17647849278961325, -0.50945810515064949]], [[0.31126802113913499, 0.23258593772300729], [0.97455326060444847, -0.28369994849870439], [0.98035521753269084, -0.85511927625213602]], [[0.38339994997336069, -0.65721861891924882], [0.075926095106743086, -0.57399673715209554], [-0.90753911660658404, -0.54289774857786566]], [[-0.62402562744698176, 0.66703809474065334], [0.82414796342391683, -0.57305964310379354], [-0.85623483030897729, -0.13909735365466758]]], [[[-0.62593854542200256, 0.52575575419030862], [0.74899377632797459, -0.039698835476366323], [-0.61817268137373804, 0.57286255922030938]], [[0.91905663496752221, 0.027610009453794548], [0.025214277099854687, -0.087764585983104215], [0.36798094858842911, -0.71891970910694347]], [[-0.22343883963304356, -0.90043265375422066], [0.76482057048380625, -0.2894811449114616], [-0.52726175037652601, 0.15862094154987227]], [[0.53659080546361282, 0.49607298862018956], [-0.37678803022644169, -0.16916353550817376], [-0.24755481351496988, -0.73079475063142141]]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[[-0.59444047512941078, 0.53901487019967731], [-0.31319432109864609, 0.36940660854357721], [-0.6672875825163096, 0.95564332389476592]], [[0.23939308181449048, -0.68257836162101415], [-0.24928289801867032, 0.31742773731707974], [-0.20563742773914284, 0.44419533719687676]], [[-0.87273092703619004, -0.87182077844058625], [-0.63464610808657018, 0.9956113250522074], [0.16620779844743439, -0.13008744379427717]], [[0.4219543335847582, 0.91568937346148371], [-0.89783154145263411, 0.16469762532269905], [-0.056535595551029383, 0.57627853197835277]]], [[[-0.86295991570102748, 0.93732150602472575], [-0.8977138529577815, 0.47639603485582982], [0.23188662733580179, 0.4243051486476237]], [[-0.76772154085180988, -0.84446394855099927], [0.35459670897292916, -0.26919624579062162], [-0.18543153201953366, 0.10806739277464006]], [[-0.90268407049897781, -0.075622028793681517], [-0.6963545495159067, -0.72392206054995811], [-0.13118357172955375, 0.66158888699708829]], [[0.34057044179408491, -0.40966284225674565], [0.35900784813561559, -0.044626226028205318], [0.22461046221218828, 0.15862503012972917]]]]))  
       res=generalTensorProduct(arg0,arg1,offset=3)  
       ref=Data(numarray.array([[0.8053545834640129, 0.34481884841545885], [-0.26662556839391527, 2.1076275303048049]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[1.1620281025951451, -0.55433761671616688], [1.4794244899203972, 1.3761904293335239]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_taggedData_rank2_offset0(self):  
       arg0=numarray.array([0.66484862689771274, 0.72553508726535809])  
       arg1=Data(numarray.array([[-0.51221898631706297, -0.51809842019505048, -0.02187182893195061, -0.7962451876597898, 0.12143693258814547], [0.45620444128430182, -0.6046263745508067, -0.5134609878933003, -0.086509872094893803, 0.5733979856537581], [-0.56026806868308721, -0.39193072466011092, 0.60062602131125997, 0.38888432064924983, 0.34665168732642582], [-0.44179592020373004, 0.53383139073126173, 0.41057201198526605, -0.69715124606327605, -0.69175332417877922]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[-0.0041382735503339152, -0.69484345181630047, 0.9593286736949711, 0.19264539868155439, -0.28449996479281303], [0.47632162141551704, 0.89774914930591199, -0.73449846172960198, -0.044225409872406862, -0.41843152689395513], [-0.60194886015824411, -0.1098618632946633, -0.10258058007083726, -0.45778840146333399, -0.062624769043876594], [0.45037818310025113, -0.60866396866914707, -0.73432087482115671, -0.19303524626358159, 0.26259632947310374]]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[[-0.3405480897238376, -0.34445702326455352, -0.014541455433149031, -0.52938251968952288, 0.080737177885898626], [0.3033068963725063, -0.401985014906246, -0.34137383276640382, -0.057515969675386899, 0.38122286342781547], [-0.37249345615858392, -0.26057460412930028, 0.39932538554782754, 0.25854920660570357, 0.23047089833074946], [-0.29372741091646137, 0.35491706712257576, 0.2729682384110354, -0.46350004868519856, -0.45991124773218972]], [[-0.37163284693652354, -0.37589858250826014, -0.015868779312795768, -0.57770382171336698, 0.088106755482577528], [0.33099232911804988, -0.43867764942265663, -0.37253396265852262, -0.062765947599683736, 0.41602035755907996], [-0.40649414210397733, -0.2843594925182486, 0.43577525278590984, 0.28214921951838295, 0.251507962215062], [-0.32053844151849248, 0.38731340465919345, 0.29788440054444365, -0.50580769014967208, -0.50189130842415208]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[-0.002751325487666626, -0.46196571484893439, 0.63780835144970549, 0.12808002879159389, -0.18914941094494936], [0.31668177595979868, 0.59686728921462529, -0.48833029373940806, -0.02940320302765825, -0.27819362610615944], [-0.40020487313885189, -0.073041508959881124, -0.068200557806467027, -0.30435999012259646, -0.041635991708607739], [0.29943331661888861, -0.40466940381179489, -0.48821222532717323, -0.12833921842120405, 0.17458680907857241]], [[-0.0030024626614694404, -0.50413330444930216, 0.69602661298544111, 0.13977099614369126, -0.20641470678294491], [0.34558804916008401, 0.6513485073840658, -0.53290440552725804, -0.032087086611122945, -0.30358675437958277], [-0.43673501878419446, -0.079708636572628375, -0.074425810113425958, -0.33214154780476879, -0.045436467273221898], [0.32676517437805414, -0.44160706562364882, -0.53277555999414206, -0.14005384424313755, 0.19052285081983106]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2, 4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_taggedData_rank3_offset1(self):  
       arg0=numarray.array([[0.95322201885270963, -0.48200264234421142, -0.37020216926657001], [-0.70595367061499514, -0.60747507159722836, 0.80480718386176364]])  
       arg1=Data(numarray.array([[[-0.31322950695610285, -0.99499481700580406, 0.58546341180249728, 0.28384135329916638, -0.1984389488706666], [-0.78686313407124264, -0.89653210958071883, -0.80262437307241963, -0.96230437203829622, -0.48621126148303984], [-0.69219670884665785, 0.95556284182638551, -0.046202966615932262, -0.024201411944125617, 0.38164363750859298], [-0.76334599583993712, -0.36949735602723566, 0.084190155548220513, 0.068607556568999639, 0.029669754951712646]], [[0.030986270509970826, 0.96766026127592952, 0.53478944495752323, 0.66397904661804485, -0.79460537857981239], [0.29951865537893085, 0.22451524083321295, 0.15719465627174523, -0.67196781733483513, 0.65466821560762001], [0.79381818886643218, 0.49053548421964632, -0.73636225696901136, -0.83445161304546378, -0.34227808107644764], [-0.6948373185554837, 0.85546741629875278, -0.29047823422142383, 0.69958367831181612, 0.47192056256679682]], [[0.072418924746935343, -0.19448736954170021, -0.15161502091328449, 0.96142366925202483, -0.87117031462984951], [0.36642822255508567, 0.67684254902181573, -0.77753268558809285, -0.0062228787228446603, 0.89280565188288818], [0.29154792964993415, -0.93927842693402508, 0.041070093952475961, 0.67189354145444158, 0.54819065803803935], [-0.59083725800019571, 0.069344530416675099, -0.02946230968310326, -0.53771686934796437, -0.60508705376318628]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[-0.56354100231698689, -0.70490986460644445, -0.67097817037855401, 0.95857752023009191, 0.54446439378400391], [0.16080153145239007, -0.14858740739811749, 0.52435513112404841, 0.32013093642198731, -0.33184072028109024], [-0.56176273620507655, 0.51316092184560369, -0.98702898765093883, 0.59376858435936142, -0.65309467088958595], [-0.2736022409756369, 0.16600692055009292, 0.36151844930580745, -0.98082007027832474, 0.20780486533878828]], [[0.57801309242457211, -0.82473156778595591, -0.012720481006593953, 0.76230058755900809, 0.97881700035566666], [0.10665039307478086, 0.071384350937912844, -0.87092249175846903, -0.83055751456791516, -0.95375591914865665], [-0.49728118783721809, -0.87198976072779733, 0.75622885382502592, -0.36401727314002796, -0.19289550346643725], [0.16475426037693897, -0.67897218363485323, -0.35286923301517503, -0.11066256566767341, -0.48972704669247791]], [[0.68036554365556179, 0.66691199771725995, 0.31121469680603187, 0.70382368348875723, 0.007303501281651803], [-0.2609379113027559, 0.65295747116197367, -0.015430180390434645, 0.77442378963256431, -0.11296582799335697], [-0.49096751497710067, -0.41185842938267281, 0.56380341452230076, 0.24943737026852908, -0.48607875340021023], [0.22850877967859207, 0.73884012848509562, -0.61849192850118895, -0.62805870772334171, 0.49532178198341126]]]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=Data(numarray.array([[[-0.3403223702844016, -1.3428661249414564, 0.35643489943094564, -0.40539695504669626, 0.51635465691149618], [-1.0300765714145763, -1.2133796666887582, -0.55300317808547961, -0.59109572953719092, -1.109537679101928], [-1.1503712848261121, 1.0221470528651806, 0.29568263059379896, 0.13040211708120517, 0.32582868734623605], [-0.17399555309938264, -0.79022206635541914, 0.23117019743369371, -0.072738996422079621, 0.02481944547842313]], [[0.26058540416788833, -0.041934075369783108, -0.86020215895012786, 0.17003111163153528, -0.078332463988673107], [0.66844286703022138, 1.0412504673789538, -0.15464010382647331, 1.0825377841353594, 0.66408440601736385], [0.24107391450339019, -1.7285091997308237, 0.51299237530439656, 1.064738377928093, 0.37969045475694863], [0.48547318781863713, -0.20301813895435741, 0.093312458306060719, -0.90617180079743309, -0.79460385767823971]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[-1.0676563299485886, -0.52130507761666178, -0.74867221658250593, 0.28574924718783973, 0.04449929607563001], [0.19847356998472965, -0.41777050649320058, 0.92532608524314275, 0.41879340730033793, 0.18521518643334137], [-0.11403652391207814, 1.0619285426740668, -1.5140833171314259, 0.64910832065721591, -0.34962066937702929], [-0.42481011527804446, 0.21198762023412565, 0.7436583024200768, -0.64909094243561305, 0.25076470562361464]], [[0.5942683716089886, 1.5353731413273577, 0.7318747011043607, -0.57334756633767081, -0.97309565438381151], [-0.38831059209664409, 0.58703647551030325, 0.14647495348727874, 0.90180720523298175, 0.72273140991312412], [0.3035302077277372, -0.16402241676410789, 0.69115959800767479, 0.0027072949547045921, 0.18703411729359298], [0.2769719076476258, 0.8898893240864324, -0.5386227609103964, 0.25417211896526259, 0.54943489375849952]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2, 4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank3_taggedData_rank4_offset2(self):  
       arg0=numarray.array([[[-0.20115544979504363, -0.10426060898394729, 0.23321087065509727], [0.82881689391239144, -0.59021651882393966, -0.74482747740833122]], [[0.083292845684861172, -0.17116430430443663, 0.05955894127476169], [0.6256115035535379, 0.030493783347750547, 0.36257173345990279]]])  
       arg1=Data(numarray.array([[[[0.06400882468549618, -0.25231790485272576, -0.88481418693171499, -0.89872896533103264, 0.30356836951057264], [0.82744828785793545, -0.41112123230833597, 0.055863040996112279, 0.35076577115425578, 0.56370988196498661], [-0.39928198117711378, -0.98234699133660519, 0.19992835360698691, -0.097354804151298602, -0.64149765151343652], [0.85752789322011291, 0.95083977102613382, -0.26352142819452884, -0.83589075322103734, -0.98302534551661158]], [[-0.4555971920642683, 0.64268176344885175, -0.79808901629752227, -0.40720314428976145, -0.76663216671528134], [-0.15506620691027195, -0.087529516693947595, -0.22616631293793654, -0.45536674360059148, 0.67359530765165299], [0.68547933048150989, 0.92718611605211931, 0.28936782965944907, 0.12803237092160002, 0.6249711001717273], [0.46877756894613376, -0.47081665245959647, -0.97362346992708448, -0.34896780061130772, -0.68827999040627796]], [[0.40076937131619927, -0.3788002231033718, 0.77909962910922825, -0.0086251102034939908, 0.21006155678822469], [0.41201467165861017, -0.11218953318580027, 0.85481405246992614, -0.97607140842928586, 0.11467431413459206], [-0.081308549567401966, 0.49994426757353705, 0.66688575333019862, 0.55116191203534548, -0.39133483970082183], [0.60030008843098592, 0.31494153264668534, 0.41127784123378919, 0.40201623277116427, -0.21990382801920405]]], [[[0.40056255472115221, -0.47452333734600716, 0.47473421522536619, -0.17821798793926891, 0.29449277396325568], [0.14014974348771081, 0.46519319912855583, 0.26529870554232637, 0.13424549971514987, -0.3352374089871033], [-0.032403164287071906, -0.11760474652456576, 0.68042233020582876, -0.56189181213484884, -0.44364370901054384], [0.090975354339726922, -0.091417417619367169, 0.29870972560772335, 0.96523897744135967, -0.61511337345955552]], [[-0.57683406853394592, -0.544107682768461, 0.72318743551010045, 0.11531385554559193, -0.75021409139011674], [0.85075533367234346, -0.03460583108605686, 0.16072060205355521, 0.14236821737348504, 0.96388409066918213], [0.55892453688973776, -0.95245273059231872, -0.48190409193064987, -0.17053192632216585, -0.49306096248669062], [-0.66093818083888234, -0.3791663435248136, -0.5947955160169931, -0.59686135867030798, -0.99629344781475515]], [[0.45123927451689139, -0.00023079043286933221, -0.96609902973249717, 0.63960051498495107, -0.45082964506061396], [-0.34593939922137729, -0.30636058181877202, 0.71324906144185385, 0.91748765008496491, 0.24783605815808785], [-0.92459450672605858, -0.06121876373741908, 0.41936488290413454, 0.55040342522471941, 0.39153063657720066], [-0.96084935105307645, -0.2928200413392319, -0.20687690184198471, -0.63184051275385089, 0.26078369392211997]]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[[0.98120809834875899, 0.26617920243837512, -0.025551809426254568, -0.037552784001149364, -0.033986968598348932], [0.40603768535472029, 0.47705066349326897, 0.9455645928092371, 0.49741063043814537, 0.34381856289637769], [0.01060961405479155, -0.65430240866499356, 0.81259523822628688, 0.72331145854880385, 0.086355882347096236], [-0.68898728702530798, -0.014829478859357481, -0.81262523651734897, 0.95538018114569057, 0.37429408436602496]], [[-0.8382948465362603, 0.080834596199491626, 0.63193793966774781, 0.16365252729099433, -0.19256673756218734], [-0.83666574838729346, 0.13305912175455381, 0.76458430637043229, -0.24417922474927201, 0.86030671986479335], [-0.67263248203825943, -0.2483151853416059, -0.0092308857864205063, -0.27123064976135214, -0.81563649857126075], [-0.85690968837383741, -0.067784923047385481, 0.18914087842449856, 0.30419871937760035, 0.74914171038862865]], [[0.20587774316035268, 0.450619024816582, 0.34467783615050362, 0.27735548251050846, -0.72246936529842753], [0.3211573003128565, 0.91144856458654777, 0.41540125250241267, 0.25481920034176331, -0.66326985735203725], [0.83398199294768705, 0.15763273908912367, 0.86219814538120798, -0.35538255215022141, 0.073891808078063503], [0.80962804332580207, -0.084079329886502574, -0.17568296590268018, -0.21938332631256596, 0.48005623047788193]]], [[[-0.74666255256748792, -0.43156374213987281, 0.62897284922345165, 0.16886597738567222, -0.62818588314662449], [0.77583442363108501, -0.41619548664379713, 0.6808789336151162, -0.82039996336200494, 0.96663698437680234], [0.84816088102778453, 0.57914746190234911, 0.9080686099429458, 0.54011108914090711, -0.5342931551205985], [-0.14675849544344555, -0.41508711808093213, 0.92668050598478491, 0.58532432668039336, -0.68447282021523592]], [[-0.50892577819528895, 0.49050230953278406, 0.66588777272999145, 0.69832917328993682, -0.94387968812427459], [-0.74594948153098017, 0.98654549368671129, 0.89775124891782832, 0.15327688814022356, 0.55436001391885603], [-0.70037355161374371, 0.64043700360416356, 0.26649516076660862, -0.77287041653467936, -0.75067270809771247], [0.58388579979978839, -0.95930079777754029, 0.45509662598276468, 0.066258199403117501, 0.085791938753821517]], [[-0.25187405801218121, -0.34643313833975053, -0.30185340525829507, -0.57470259088422959, -0.4718693333845505], [-0.44866959613698842, 0.50051300676940769, -0.30695990654524352, 0.78203730328499366, 0.64089954182796105], [-0.43350108608521531, -0.073580561924833532, -0.88360765618067827, -0.3918977387159448, 0.51412103057562297], [-0.67672207271504026, 0.52053729602280319, -0.9349073508126462, -0.63997953029688448, -0.9911100939502282]]]]))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       ref=Data(numarray.array([[[0.46444348853685213, -0.17657131733551781, 1.1290966157468236, -0.47093425211196371, 1.0905133860659175], [-0.18249834133340231, 0.69983203326615262, -0.19452839255356902, -0.90684524297154878, -1.1882253217971495], [0.32180782608519387, 0.72780585135122511, 0.62115745309338255, -0.64023859547872464, -0.39569210998181453], [1.0997906035617753, 0.29739117005037208, 1.0031552175183163, 1.9211781112531385, 0.1021910673041633]], [[0.50379614801032724, -0.46712423191675478, 0.07807971602267233, 0.11824944722197427, 0.1669192939872933], [0.10819567253849852, 0.15295384847211146, 0.52375526109549997, 0.47000699364308296, -0.15199014889647866], [-0.49388947793373128, -0.33556245440258531, 0.56987697829734318, -0.1543623314775518, -0.33433835759949337], [-0.28467490255074918, 0.0036204649399823319, 0.26292636507314826, 0.37062730952423484, -0.29781721487390689]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[-0.19282871464665902, -0.34603897168095399, 0.37275034003870544, 0.21102159079714616, 0.24632963607627767], [1.4979297877072959, -1.1972955902382447, 0.090043110229474116, -1.3680827494324976, -0.31692578477597388], [1.7017141840622438, 0.3510831821100141, 1.2920464575412998, 0.99561184267869152, -0.29780305641158689], [0.45453576429916204, -0.17510440551511242, 1.2985604703804141, 0.64763589538471023, 0.07882464049468374]], [[-0.33648653906175718, -0.34546761608930665, 0.21458972125298689, -0.096052068402981222, -0.60576908991865108], [0.49610433899196588, 0.022423535684276047, 0.31467662369795313, -0.12663076589092154, 0.69589598402722785], [0.51777238478008136, 0.35256485521113712, 0.37646843112549744, 0.25774639167828101, -0.019543442891586327], [-0.18186398291752573, -0.094844383161166557, 0.14412509702426224, 0.15060974075746128, -0.85340511365081695]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2, 4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_taggedData_rank3_offset0(self):  
       arg0=numarray.array([-0.28830826619867556, 0.51785028715795067])  
       arg1=Data(numarray.array([[[-0.067702749520540229, 0.92793411828539685], [0.10341905614488822, 0.67457913821200655]], [[0.24335712711469193, -0.32655548077163732], [0.92163595348050764, -0.56461270504568173]], [[0.70281949062250915, 0.4949031338984724], [0.89164031858407156, -0.52816005485009465]], [[0.18585167940247938, 0.060040974202638875], [0.470063328222045, 0.46847177881613322]], [[-0.4827557519357013, -0.25037842031504165], [0.37508441154911787, 0.8391653125014622]], [[-0.61493161328444579, -0.4726227710794515], [0.29819516122237832, -0.56382300584954215]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[0.77370685669720074, -0.78659228154590344], [0.48346687966119717, 0.69606325210085473]], [[-0.37494320050678631, 0.92152158030255271], [-0.34260824402042056, 0.21082430573726385]], [[0.96433276722036099, -0.3026491443454391], [0.96957176973519044, -0.12076341653246758]], [[-0.52649849414921435, -0.58994693520606911], [-0.8681962354972832, 0.35048228962873695]], [[-0.38978379796424067, -0.3764469265569601], [0.0031439409462998835, 0.51192267060998753]], [[0.24085097843900827, -0.31908467461996626], [0.7834775485254053, -0.33643091832834005]]]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[[[0.019519262331150165, -0.26753107678945948], [-0.029816568769036208, -0.19448674175170033]], [[-0.070161871385527527, 0.094148644478945692], [-0.26571526381432836, 0.16278251006546468]], [[-0.20262866879201191, -0.14268466447055955], [-0.25706727432380838, 0.15227290968922816]], [[-0.053582575458640931, -0.017310309173242222], [-0.13552314316327674, -0.1350642863134888]], [[0.13918247383801996, 0.072186168254592897], [-0.10813993637187665, -0.24193829630136632]], [[0.17728986725679302, 0.1362610516959302], [-0.085972129920858426, 0.1625548332594072]]], [[[-0.035059888280594566, 0.4805309496177525], [0.053555587922234589, 0.34933100043385046]], [[0.12602255815827712, -0.16910684949059501], [0.47726944316497255, -0.29238485144093357]], [[0.36395527503907099, 0.25628573000469362], [0.46173619502036806, -0.27350783606948048]], [[0.096243345547361331, 0.03109223573207965], [0.24342242950220802, 0.24259824518533055]], [[-0.24999520476705533, -0.1296585368582984], [0.19423757022918164, 0.43456199805187362]], [[-0.31844251252185213, -0.24474783772088035], [0.15442044986812001, -0.29197590548544428]]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[[-0.22306608240039708, 0.22678105689775988], [-0.13938749783960347, -0.20068078937780903]], [[0.10809922406109393, -0.26568228908169256], [0.098776788818900202, -0.060782390059650027]], [[-0.27802510815587328, 0.087256250072746233], [-0.27953555588753426, 0.034817091240704201]], [[0.15179386800437353, 0.17008657803848418], [0.25030815137643875, -0.1010469412562032]], [[0.11237789098340507, 0.10853276071145732], [-0.00090642416325874275, -0.14759153759136118]], [[-0.069439328006005066, 0.091994749310251006], [-0.22588305362094829, 0.096995814758871937]]], [[[0.4006643179167208, -0.40733703887477368], [0.25036346246390934, 0.36045655498052465]], [[-0.19416444405036037, 0.4772102149819254], [-0.17741977754865601, 0.10917542726591767]], [[0.49938000042088515, -0.1567269463073937], [0.50209301937761075, -0.062537369929513545]], [[-0.27264739638339924, -0.30550418980441579], [-0.44959566986171989, 0.18149735432801747]], [[-0.20184965170529867, -0.19494314901724977], [0.0016280907218490339, 0.26509930197804704]], [[0.12472474834691381, -0.16523809037965079], [0.40572407348568834, -0.17422084766514395]]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2, 6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_taggedData_rank4_offset1(self):  
       arg0=numarray.array([[-0.96461849532995259, -0.8659993297919848, 0.53640564380180988], [-0.040321483021674265, 0.88194098878283489, -0.88833259283583987]])  
       arg1=Data(numarray.array([[[[0.92355522878680851, 0.68800685011804252], [-0.35435914027371251, 0.84468321698284088]], [[0.34292454898307456, 0.71245359372014505], [0.21721341674729833, -0.26026400634808988]], [[-0.16202493099652537, -0.98136614038307357], [-0.85725738434172749, -0.63737518099150758]], [[-0.31756275107870024, 0.89925117118555442], [0.21115762924963133, 0.34273345404821409]], [[0.28908545866110558, -0.27873486262640812], [-0.9384364179156679, -0.30958792208457164]], [[0.42004254816485531, 0.92940824714251646], [-0.28416393637051929, -0.96144721859954885]]], [[[-0.82305589374618493, 0.33583911012139156], [-0.48452231851359673, 0.95034864436654276]], [[0.1609191448435161, 0.51422308908261494], [0.019477384643793005, -0.51688718250406729]], [[-0.96969459013710391, -0.46031324755998315], [0.20452219128743643, 0.72259889640138586]], [[-0.45466164329288428, 0.46621685835597071], [0.87788999980684723, 0.16467875822998312]], [[0.25986390952809013, 0.61356373498147176], [0.19048624667810699, -0.70470806447934531]], [[-0.3028087578316494, 0.16494292761644203], [0.39118785501856768, -0.83358745752163088]]], [[[-0.98235167763796549, -0.06749602767659324], [0.98493944933424382, 0.57417485666836221]], [[-0.099336772784693217, -0.28240932688051301], [0.16982108069221269, 0.026640475470107283]], [[0.49095487107432834, -0.85832427716922366], [0.89619644536847809, -0.93168603448021692]], [[-0.85379375008844782, -0.44036784129967055], [0.43363915877017645, 0.75900554579177215]], [[0.88465779450791793, 0.61958511392629756], [-0.029005739141984233, 0.74591302319697816]], [[0.76976798260645296, -0.27177624454159655], [0.30922548958859397, 0.112855687934027]]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[[-0.33244902563807899, -0.80768241532344276], [-0.055910392338577974, 0.2148013390726462]], [[-0.55893702924428257, 0.16033477262861395], [0.63132322565968746, 0.49660959731787258]], [[0.31414658833325682, -0.27747064620635542], [-0.12154885398577431, -0.054951326438927639]], [[0.44498909088933436, -0.6367413650432272], [-0.14950359408316749, 0.49597754652117265]], [[-0.97246357881926371, -0.12334010237544635], [-0.74148984795187567, -0.049510683398589439]], [[0.01933628939617682, -0.21458882283421277], [0.27729032138144194, -0.54981647257490862]]], [[[0.13768120625938352, 0.23674808881347809], [0.3635202879867252, -0.54523319840137763]], [[0.91444740650717016, -0.45178034921952848], [-0.67169605241794583, 0.53488299134002104]], [[-0.87214268257116045, -0.11387034478271785], [-0.26448544548312647, 0.45984120545759355]], [[-0.0092187880136218592, 0.37652331297852282], [0.45543376079636144, 0.43657609655352103]], [[-0.65895078552003494, 0.69745935933719516], [-0.39944235686314844, 0.5954872482838609]], [[0.48928184230489524, 0.25361189307894727], [0.64923116558548433, -0.061233367000464556]]], [[[-0.71571172030753072, -0.79162794768463796], [0.14156455957950032, -0.85495728506607893]], [[0.3549375107231747, 0.49591429321842417], [-0.24258541933596511, 0.35893544355848128]], [[-0.31092340781198891, 0.44238778634629727], [-0.75284335775883959, -0.76433343023166955]], [[-0.3114967813177052, 0.66916433308351042], [-0.43777633266033855, 0.043431747176143842]], [[0.081514927013966343, -0.10927509160380522], [-0.87129957803214952, -0.68305315607494554]], [[0.21511490285304102, 0.99674941737047296], [-0.57160380130876587, 0.17625050969603095]]]]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=Data(numarray.array([[[[-0.70505158686408298, -0.99070582700055587], [1.2897444632252126, -1.3298077092405944]], [[-0.52343203959570772, -1.2840487208768299], [-0.1353024951560568, 0.71296952921435841]], [[1.2593980740017128, 0.88486490709972032], [1.1305350788624722, -0.5107079190898598]], [[0.24208379530198088, -1.5073935939686656], [-0.73133221393024306, -0.066083864561787775]], [[-0.029363717836586922, 0.069875972429718769], [0.72471332127640742, 1.3090229025397953]], [[0.26995926084004479, -1.1851471610990028], [0.10121166628262254, 1.7098523768243497]]], [[[0.10952916764161502, 0.32840774159864489], [-1.2879856214325047, 0.29403430394343555]], [[0.21633805626961372, 0.67566064374635793], [-0.14243806415330332, -0.46903536476243329]], [[-1.2848115337254624, 0.39607844809629722], [-0.58117811932442964, 1.4906365684431619]], [[0.37027267759168703, 0.76610972247777065], [0.38051718744406438, -0.5428319387534708]], [[-0.56834207346269405, 0.0019683594051507214], [0.23160352029584694, -1.2716467329726946]], [[-0.96780618163916099, 0.34942250580224316], [0.081767434053480137, -0.79666135470130539]]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[[-0.18245715956872749, 0.14944801100247218], [-0.1849400985105854, -0.19363367301409917]], [[-0.062359361082538201, 0.5025908182395652], [-0.15742191682067722, -0.7497121168634947]], [[0.2854622984981019, 0.60356426485196324], [-0.057536934831586839, -0.75520787563377545]], [[-0.58834987457553756, 0.64708708566874851], [-0.48501709520523129, -0.8332066873557884]], [[1.5524323596944551, -0.54363896963915359], [0.59380162366921063, -0.83432620492603105]], [[-0.32698104194178218, 0.52203063089700663], [-1.1363246318982145, 0.677932961390036]]], [[[0.7706215851518402, 0.94459370366498341], [0.19710141990012719, 0.26996180714485102]], [[0.51372326062427454, -0.84544537363472982], [-0.40235563481274833, 0.1328571455818976]], [[-0.50564183911934035, -0.48222638580460375], [0.44041576674138405, 1.086750824269197]], [[0.25063969631873806, -0.23669478795348503], [0.79658489262665555, 0.32645396747180311]], [[-0.61435690012734878, 0.71716387831029382], [0.45161719643137688, 1.1339593379198454]], [[0.23964446452220456, -0.65312173101464088], [1.0691771060308763, -0.18840387294183944]]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2, 6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_taggedData_rank0_offset0(self):  
       arg0=numarray.array([[-0.3892584490959401, -0.33577445592520094, 0.55394562403743186, -0.72254584494657714, 0.67372719753051968], [0.014677243288410136, 0.4280444513920163, 0.0070366694707448829, 0.027462227985203036, 0.87722162869312093], [0.27276707326054117, -0.93879042125255463, 0.99546427933437398, -0.061260432860653635, 0.016977506928772756], [0.50407957563580386, -0.04030245615703465, -0.23999141800007728, -0.54091629978512157, -0.25122928009656742]])  
       arg1=Data(-0.945239857493,self.functionspace)  
       arg1.setTaggedValue(1,-0.286469622324)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[0.3679426009514663, 0.31738739886859013, -0.52361148272411795, 0.68297913150959866, -0.63683380018303426], [-0.013873515354329666, -0.40460467623453988, -0.006651340447753569, -0.025958392467178792, -0.82918484729582898], [-0.25783030945762825, 0.88738212400073591, -0.94095251353758402, 0.057905802827175334, -0.016047816229942793], [-0.47647610623921455, 0.038095487914500945, 0.22684945374998147, 0.51129564612463152, 0.23747192891659594]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[0.11151072089904668, 0.096189181575030966, -0.15868859370618749, 0.20698743531381955, -0.19300237582615964], [-0.0042045843415923394, -0.12262173232827206, -0.0020157920457050372, -0.0078670940791042265, -0.25129734866640302], [-0.078139480459444854, 0.26893493741786562, -0.28517027613822393, 0.017549253065013003, -0.0048635399978932802], [-0.14440348565376915, 0.011545429394046335, 0.06875025087554916, 0.15495608810848766, 0.071969556986062971]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank3_taggedData_rank1_offset1(self):  
       arg0=numarray.array([[[-0.32172363035345031, 0.14499624949202183, -0.45611378928770696], [0.56406557247396893, -0.14353446769287914, 0.3925299170507961], [0.91800570446354079, -0.8242550750499964, -0.18953471105491149], [0.033358006966433873, 0.26074211199858421, 0.476071556546799], [0.39683919195503581, 0.96976017580404839, -0.66744478808777208]], [[-0.08032318878323963, -0.060702805719327735, -0.96465904355518695], [0.48031114267932895, -0.050099798155710529, -0.075567260700116101], [0.21151748581138952, -0.27607101910529419, -0.64806739705491623], [0.54237082457705887, 0.37723009166313926, -0.079221030456413155], [0.4691460968199419, -0.23642008788996471, 0.20046866106345407]], [[-0.79899416232988663, -0.37072171768814655, 0.51481993615742017], [0.29449526313966978, -0.41927604915786043, -0.84624291379545036], [0.80170474982347284, 0.25841996076897167, 0.079542409118780411], [0.080543009159201429, -0.31569641023103601, 0.3146334686490142], [-0.22736254847266713, 0.61404600670169107, -0.91025061278305319]], [[-0.080364959730342855, 0.68095888792923254, -0.9188976511741378], [-0.92344259901949965, -0.80745521132215958, 0.57707834414708925], [0.477510166859765, 0.17356017984827488, 0.54469285528980405], [-0.15673711707838667, 0.17897824162100751, -0.1828288701177998], [0.095795110018410234, -0.15108268926816915, -0.68843761318710617]]])  
       arg1=Data(numarray.array([0.096764415194981357, -0.53029956611873641, -0.21595031634951312]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([0.709317644235822, 0.34185637918602718, 0.81199180756327682]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=Data(numarray.array([[-0.0095249300519657243, 0.045930781428916004, 0.56686247461977279, -0.23785136406684149, -0.33172857499875019], [0.23273667077110455, 0.089363701911464283, 0.30681806687736146, -0.13045495168827814, 0.12747884695477538], [0.0081038351025302796, 0.43358499381045501, -0.076640710208902424, 0.10726216946119593, -0.15106002718320918], [-0.1704524326801645, 0.21421651418718118, -0.16345949043633964, -0.070596707009989157, 0.23805696272109167]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[-0.54899701494867004, 0.66976456651662353, 0.21548015557736513, 0.49936398095688467, 0.071044043229091969], [-0.86102153687351701, 0.26220623602156268, -0.47056897139656301, 0.44934488112988524, 0.41473079944255037], [-0.27544467054642907, -0.62158381896607184, 0.7215936211736268, 0.204687544721077, -0.69047276317469775], [-0.57035150885553998, -0.46246495605138044, 0.84032517744300006, -0.19844709373841976, -0.54270512126968018]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank4_taggedData_rank2_offset2(self):  
       arg0=numarray.array([[[[0.34394142670491901, 0.42181785763440138, -0.78053682698696836], [-0.21339997592323345, -0.25562372239682252, 0.37851419787675078]], [[-0.90903384152478717, -0.78901523864928036, -0.85972464421312922], [-0.60874105736015882, 0.87895662304292199, -0.91924490466595921]], [[-0.26010492366888904, -0.33304325039617821, -0.56061112482850928], [-0.8831997202589954, 0.59692575176610174, 0.4297534428119838]], [[-0.98297094637089777, -0.61755457981928341, 0.76652377626228785], [0.48310116073776732, -0.41977320248746142, -0.26493812422923946]], [[0.59948677069099898, 0.83106531027612962, -0.55831956801788296], [-0.80926577711085401, 0.16423627369625726, 0.64943473539690921]]], [[[0.60106824562496053, -0.067641295547717251, -0.88618637595206273], [0.92444262005463251, -0.026049792677669936, 0.79344758817061778]], [[-0.98368629659098095, -0.057525167303634328, 0.61260839864426941], [-0.45575307302007362, -0.91573103026900915, -0.0005366725202806677]], [[0.26291472884239275, -0.52596042952849364, -0.64751584546129037], [-0.074417820048855443, 0.28672617905052689, -0.14303430832454711]], [[-0.54100510321841155, 0.26684883293285244, -0.7446117628259743], [-0.25415023481085242, 0.3069962355525897, 0.7058869685782212]], [[-0.66608658382621733, 0.37518004777645664, -0.30208329639878961], [0.90585453729478815, -0.79849785406077722, 0.38714006068582885]]], [[[0.68982021045953235, -0.069134518433657144, -0.092494954721243028], [-0.047968254539919597, -0.89840935363937979, 0.74913248541370669]], [[0.50330424341259161, -0.88835387914840469, -0.093176844280321136], [0.71037947004371027, -0.14024272069589827, -0.19419207191705956]], [[-0.48595552662549535, 0.59180666107469526, -0.48390535342607732], [0.47499108984307958, -0.33346753162158604, -0.72265698339587536]], [[0.47409543906098328, -0.59901741170413847, -0.28700914492164875], [0.24931557956873718, -0.47221932344089157, 0.41262174310096777]], [[-0.64994446871361622, 0.88638041231936837, -0.0030157682651761331], [0.48189478968277877, 0.23056139766060935, 0.88323073629279136]]], [[[-0.6065224118758521, -0.5004568738888262, 0.60805360921696017], [0.43243425271086489, 0.46744736881152971, 0.57125340750980924]], [[-0.11513469999721182, -0.2303049507029491, 0.30451179750693202], [0.51880307538501502, 0.99649402950333421, 0.30571594821796322]], [[0.84479162813785269, 0.48016393111996392, 0.19160227116354855], [0.73826679933103456, 0.62800508822190859, -0.48618883903375498]], [[-0.88938478603580773, -0.4496096452212639, 0.42508575884863764], [-0.1489201846211381, -0.18500101610795916, -0.33969169544003575]], [[-0.21543886054319206, 0.93365614743230707, -0.67477086868569769], [0.15609116682528024, -0.32562832877017756, -0.37696736348528348]]]])  
       arg1=Data(numarray.array([[0.416301626002056, 0.95180601572720858, 0.82466132418882032], [0.80681126538239512, -0.72771350887478303, 0.38703615287081283]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[0.2628734536927313, -0.33499940834651487, -0.47506070215672391], [-0.21931025455150177, 0.43880363489548091, 0.5729696203998329]]))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       ref=Data(numarray.array([[0.061339626626125493, -3.3249521430293214, -1.8682252824890153, 0.22782340152160929, 0.059068745757442365], [0.52694107383205868, 0.33940686420283583, -1.2491968441202654, -0.74053830565874701, 1.292457807730655], [1.050118263026993, -0.11281420208299336, 0.30812564579608959, 0.095023515762209826, 1.1334600096952978], [0.0024249479137856689, -0.20428017476318658, 0.91717955564578513, -0.56463742381595772, 0.45951479912270909]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[0.47141603181717784, 0.42627327909139301, 1.0113825389280993, -0.85761041414978756, 0.76607258789768329], [0.84210787498585871, -0.83252257239257232, 0.61310183500593496, 0.71702631096523306, -0.4845011282464296], [0.29396095796712501, 0.14556932996626556, -0.76067295123865319, 0.43617505456861494, 0.035193702160263407], [0.15694292753133937, 0.4008768962315078, -0.19471404815638724, -0.52827064082611574, -0.44196042662507129]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_taggedData_rank1_offset0(self):  
       arg0=numarray.array([[-0.20638740454294613, -0.46982967124083563, 0.61274231631602594, 0.59055732442665998, -0.62101753905962465], [-0.92022976426769731, -0.83164439946045299, -0.31845096911905091, 0.42772928890422524, -0.49576097264016106], [0.010195000771948015, -0.95999569921397554, 0.40243901535163817, -0.087677977862951284, 0.72857983178155061], [-0.052645968656485964, -0.19822425590114379, -0.42613204525544024, 0.98161872665017036, -0.50009635161373756]])  
       arg1=Data(numarray.array([0.82859455535615578, -0.63395112558791578]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([-0.19989299907040969, 0.43791619466699894]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[[-0.17101147969837349, 0.13083952741716923], [-0.38929830753492906, 0.29784904891772818], [0.50771494713577847, -0.38844868112389136], [0.48933258364562937, -0.37438448054446904], [-0.51457175164548374, 0.3936947678966865]], [[-0.7624973723488927, 0.58338069485700916], [-0.68909602138537129, 0.52722190312684047], [-0.26386673915993686, 0.20188235031758492], [0.35441415995240122, -0.27115946414775238], [-0.41078484268770954, 0.31428822662779005]], [[0.0084475221314879306, -0.006463132214746114], [-0.79544720953402592, 0.60859035407625806], [0.33345877698325976, -0.25512666676266355], [-0.072649495081878984, 0.055583552755490331], [0.60369728175649673, -0.46188400443856836]], [[-0.043622162990215103, 0.033374971087445408], [-0.16424753917921309, 0.12566449014735717], [-0.35309069256144077, 0.27014688973876699], [0.81336393233797377, -0.62229829665805214], [-0.41437711410062061, 0.31703664500793904]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[0.041255397264447401, -0.090380386824645456], [0.093915662036595252, -0.20574602177143389], [-0.12248289926576006, 0.26832978347255665], [-0.11804827470264198, 0.2586146162456473], [0.12413705835795366, -0.27195363752645518]], [[0.18394748741332614, -0.40298351658741949], [0.16623989316825977, -0.36419055072784318], [0.063656119274085515, -0.13945483658463276], [-0.085500090349319297, 0.18730958254455973], [0.099099147643105123, -0.2171017586029895]], [[-0.0020379092798298308, 0.0044645559426785917], [0.19189641941057653, -0.42039766349646907], [-0.0804447417215816, 0.17623456218832337], [0.017526213947454322, -0.038395606421840998], [-0.14563800763702875, 0.31905690744489884]], [[0.010523560563711766, -0.023054522258606432], [0.039623641000579989, -0.0868056118349263], [0.085180812526117491, -0.18661012368392776], [-0.19621871121377926, 0.42986673738850761], [0.099965759548240121, -0.21900029126553744]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank3_taggedData_rank2_offset1(self):  
       arg0=numarray.array([[[0.42755025064893437, -0.28215544807457271, 0.30981263016541205], [-0.72628827469501189, 0.18289260582950018, 0.12961604333074539], [0.22884007759478453, -0.14789371345617308, 0.87255923698023485], [-0.84973208273614453, 0.76887809306454225, -0.48984860182559653], [0.78555581135814867, -0.32758380456486935, 0.052588360850076787]], [[-0.40981427009095772, 0.36768280837279388, 0.52107289203710594], [-0.69467790563691323, 0.21709929167288577, 0.6842873048643725], [0.7537219893748075, -0.18136604297427361, -0.5074278384153903], [0.12775029577949648, -0.49553225168880832, 0.42637231271498632], [0.92563798043710843, -0.32028382833624458, 0.42405325823388251]], [[-0.61424144461332775, -0.26841376712118969, 0.46903796892346539], [-0.74867582255602305, 0.36399532336283857, 0.98443512517672316], [-0.51827247943733923, 0.8632431190107035, -0.1426266789655839], [-0.74220887454679074, 0.38296298321562072, 0.16038704163831774], [0.92931648050543325, 0.32730270971029629, 0.20311810123090357]], [[0.55637022912337919, -0.59716175984911546, 0.76585232270996739], [-0.92236850733908815, 0.14133291962252259, -0.14108294052082559], [-0.2574358002206949, 0.52547314126271072, -0.53118509022417459], [-0.070006870815329414, -0.88913284281045457, -0.73060433594114205], [-0.93492520324576889, 0.11497007562327499, -0.66300948139030802]]])  
       arg1=Data(numarray.array([[0.15176526988904859, -0.29595753284131221], [-0.70585048133843342, 0.85795688884304377], [-0.10600582704861039, 0.37407844797358725]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[-0.093552243615000252, 0.84278948392042397], [-0.92637043494223814, -0.62544883433330911], [-0.76373622773095295, 0.42906183258782926]]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=Data(numarray.array([[[0.23120489392577459, -0.25271969989302634], [-0.25306022575637721, 0.42035102532182655], [0.046624461402577186, 0.13179223007811403], [-0.61974598478489051, 0.72790706269497529], [0.34487060316942514, -0.4938717692302842]], [[-0.37696142344754585, 0.63166575738622754], [-0.33120606105149697, 0.64783412489706171], [0.2961964375493284, -0.56849176464861673], [0.32396178685066335, -0.30345727833963465], [0.32160007596490536, -0.3901100652022117]], [[0.046518710288640769, 0.12695893741028041], [-0.47490512209027946, 0.90212450828421198], [-0.67285707472072653, 0.84065845834834052], [-0.39995809719393882, 0.60822537259665688], [-0.11152051102566365, 0.081755505797582603]], [[0.42475978474157627, -0.3905121577175833], [-0.22478780100563928, 0.34146337238746338], [-0.35366656858519557, 0.32831847160891314], [0.69441855030493438, -1.0154219228890191], [-0.15275799059902262, 0.12731996714531524]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[-0.015232949518136141, 0.66973742605112441], [-0.20047287318784265, -0.67088479024763337], [-0.55080923915148827, 0.65974582684298366], [-0.25865646736058256, -1.407214509321334], [0.18980980653924268, 0.88950874403591618]], [[-0.70023368361791327, -0.35178145112506409], [-0.65874069349185671, -0.42765016745235435], [0.48504078010289758, 0.53094622835398531], [0.12145911901035028, 0.60053676090221142], [-0.11375887628490222, 1.1623841710111176]], [[-0.052107045590758572, -0.14855086184366645], [-1.0190029720284706, -0.436253021943599], [-0.64226818859659884, -1.0379046622595376], [-0.40782367404119113, -0.79623362777678797], [-0.54527184774974335, 0.6656572834873723]], [[-0.083765847958285344, 1.1709951059512218], [0.063113157869583644, -0.92629229312233707], [-0.057013788689795508, -0.77353199714178134], [1.3882046776445547, 0.18363161030240444], [0.48732383168226578, -1.1443250924379207]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank4_taggedData_rank3_offset2(self):  
       arg0=numarray.array([[[[0.6446513576364028, 0.80028804838252299, -0.14360652937626761], [0.32302010953836713, -0.60604301917287318, 0.5134766598938918]], [[-0.19580528894333993, 0.99422108250674168, 0.038214245374039724], [0.19589109134359961, 0.7505908134810837, 0.29158432744876039]], [[-0.36723230223067849, -0.93326043575299278, -0.62645429881920012], [0.94644308742651662, 0.74368884950369196, -0.60826123233240215]], [[-0.81573856941822442, 0.8841849749987456, 0.36237815646150251], [-0.74159572037253185, 0.60984108812104543, 0.589596356918068]], [[-0.78843485947541514, 0.4111284112397513, -0.55161605208043873], [-0.51028668061112259, -0.98732626866358797, 0.47705400586186664]]], [[[-0.1766026414717401, -0.38285517652364454, 0.71825911131865916], [0.72938956683799638, 0.15483132795919108, 0.97641123799618801]], [[-0.011286708295776604, 0.19452785900201608, -0.70912898541553271], [-0.91778721168094557, 0.26311626496118157, -0.76995304223547545]], [[0.048559305085811744, -0.12641830968371126, 0.66981820192244035], [-0.49053403582962662, -0.9819926749063701, 0.00010572712329492973]], [[0.36888442432725776, 0.0052647747818306279, -0.86247272133228803], [0.59292352989852137, -0.13388840094145849, -0.45354959536044626]], [[0.5902506282477884, -0.46413945778632071, -0.15279521399471552], [-0.27418596263846706, 0.91315283309755779, -0.25385906672411296]]], [[[0.87973752850541231, -0.24753415270333012, -0.3321949064471732], [0.81408819781812136, 0.34502077804447984, -0.10291635981290703]], [[0.29441983963832752, -0.60375817169409229, -0.7152568662238592], [-0.887307545278464, 0.69906752840147113, 0.05848532257691641]], [[-0.84967154412476509, 0.35087886838912419, 0.036102452676464614], [0.83726275694075913, 0.96944086593539303, 0.28282705297688482]], [[-0.89782755121886271, 0.11540215173671209, -0.1192345607042582], [0.44248313300899444, 0.44386524392427029, 0.1103615588836353]], [[-0.35875597823354233, -0.36467473494987779, 0.9650274689160292], [0.10968307586687986, 0.22941547717903199, 0.43273310992979908]]], [[[-0.90154945908529971, -0.46451295367949852, -0.81398919952822912], [0.18275229132820936, -0.12197220442451617, -0.22848150824543878]], [[0.82893248829801891, -0.71227718889552416, 0.35266254481389758], [0.49074642871667318, -0.27459280301816746, 0.73348581034901317]], [[-0.94431103927943738, 0.74129811715390326, 0.392460128373191], [0.76150054683136537, 0.59849843819543813, -0.1206193839256422]], [[0.30923022856451166, -0.96914430247262828, 0.96234737367655687], [0.54252606723144203, -0.63943874596282768, 0.36440143174735939]], [[0.96775783223731193, 0.48070358857609086, -0.75690885877994374], [-0.6745342962753158, 0.22436230260793111, -0.80538877647492479]]]])  
       arg1=Data(numarray.array([[[0.25844500961342676, -0.24057576647031964], [-0.4557699928422243, -0.44332305123307236], [-0.4003119865366993, -0.73083691857074462]], [[0.51899190049650712, -0.15001177493549744], [0.10509905236496708, -0.22779166263021811], [-0.27868125954458356, -0.1192892142667259]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[-0.24234882833461246, -0.99048408132677723], [-0.88689279477074456, -0.95029799025034922], [0.31361448341549303, 0.96572893160361706]], [[-0.67081795212362727, 0.19415851959805575], [0.26462840562762802, -0.91137043638672455], [-0.54215522435513841, 0.67875609105144941]]]))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       ref=Data(numarray.array([[[-0.17979898549265788, -0.37657818083974842], [-0.41974547056010975, -0.65673066274350334], [1.3200882074285079, 0.72109426347490846], [-1.2439707690626269, -0.55857309587630433], [-0.67187625087518588, 0.65510330010716189]], [[-0.035963512306954631, -0.57387707332754134], [-0.041803497008610052, 0.60432455767420346], [-0.55578782810394323, -0.14790289857194006], [0.85824171870762056, 0.53490498206578274], [0.4496708903376449, 0.038837276126462969]], [[0.96061141449142351, -0.047564493043498787], [0.23425923504379673, 0.68645391741405648], [0.063635632142889961, -0.35769534869071135], [0.0086344162995526837, 0.071324710494647586], [-0.35238158492590838, -0.57763406961539476]], [[0.4502610508330297, 1.0453382456638425], [0.41911821913206471, -0.23995571722824288], [-0.24729181023606536, -0.62445895341993318], [0.24919709077631394, -0.32726392283973205], [0.23197078768452847, 0.25340529353670216]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[-1.5664852326111789, -0.57414180429287098], [-0.91319336825572539, -1.1620773870970198], [0.61191731867845811, -0.26124883367810792], [-0.13363270658959539, 0.018109785362887876], [-0.52414777626370923, 0.98207287199569615]], [[-0.37007390097060877, 1.8956457928337405], [0.71054708343665918, -1.7991094147993127], [0.37955444762292662, 1.5186901568244755], [-0.55183207534405954, -1.2739985800010647], [0.7838826641440928, -1.3488862405035746]], [[-0.49685427392356929, -1.1831797258155898], [0.98830838918575459, -1.1783027653772415], [-0.5523982466355849, 0.014024375697666014], [-0.16135493999032618, 0.4207639887839465], [0.46554203630743651, 1.7397803540127461]], [[0.34418546003658312, 0.53986475417900315], [-0.25810696283901607, 1.0398038938617242], [-0.59257222524953734, 0.13040793630310121], [0.35567956862079175, 2.479496283450457], [0.05026297986769801, -3.028435452767507]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_taggedData_rank2_offset0(self):  
       arg0=numarray.array([[-0.86736935003086435, 0.84535952205984666, 0.18654935911191228, -0.97290443815535044, -0.041146078452910961], [0.7715753639040086, -0.9016974914949285, -0.37705471864412687, 0.036699168751018529, -0.18786439329735716], [-0.078656941195251573, -0.78154725219550381, -0.13304107060699821, -0.92478925432589887, -0.99685724223988914], [0.14499199361245219, 0.46757568422600482, -0.69195411677140495, -0.88566041750293123, -0.62741454349407322]])  
       arg1=Data(numarray.array([[-0.59222744720075426, 0.41594254787990481, -0.47337739967064918, -0.95528482283443772, -0.19737685412720185], [0.046286272318936117, 0.38529318753412012, 0.35544746009379469, -0.92311602992588226, -0.81148384650552652], [0.53414350723379234, -0.90813290473925878, 0.37531695853840685, 0.71460321617606404, 0.52658026888255094], [-0.46003086980639218, 0.05069994221038443, 0.92651004111077029, -0.13634797345474858, 0.26561273167238997]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[-0.22932975435162972, -0.46088679837245783, 0.27362719346863673, -0.3475766380511458, 0.83715896373429], [0.0060625596157315442, -0.58774624531312769, 0.73802945018602162, -0.43159817378079657, 0.36762242847379323], [-0.40298914046960577, 0.36413753237448954, 0.75352858501328335, 0.99216000271882598, -0.09067551717619815], [0.046971777975209905, 0.2331976311861359, -0.68597585256510385, 0.95860115472180629, -0.080016842972410851]]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[[[0.51367993594895622, -0.36077581740477471, 0.41059304747163167, 0.82858477587625567, 0.1711986336754478], [-0.040147293936627207, -0.33419150164278971, -0.30830423243167632, 0.80068255087988438, 0.70385621650404417], [-0.46329970669258075, 0.78768664732533178, -0.32553842638301883, -0.61982492714459791, -0.45673958555973598], [0.39901667653810358, -0.04397557592162353, -0.80362641215531827, 0.11826405311347082, -0.23038434243060327]], [[-0.50064511171635273, 0.35162099348011122, -0.40017409233951301, -0.80755912126234553, -0.16685440307064742], [0.039128541045467743, 0.32571126486675867, 0.3004808949822767, -0.78036492586392692, -0.68599559664119791], [0.45154329998652892, -0.7676987983172, 0.3172777646909829, 0.60409663328902674, 0.44514964442869881], [-0.38889147623230724, 0.04285967891543243, 0.78323408553704965, -0.11526305767353492, 0.22453825189958188]], [[-0.11047965072378457, 0.077593815734372129, -0.088308250526623167, -0.17820777146910102, -0.036820525640954907], [0.0086346744367769793, 0.071876197204675946, 0.066308495878454415, -0.17220670376860617, -0.15138179149527536], [0.099644128948253044, -0.16941161136754801, 0.070015138079171951, 0.13330877199695607, 0.098233211681018326], [-0.085818463934078021, 0.0094580417263582049, 0.17283985437996571, -0.025435627064191377, 0.049549884865448673]], [[0.5761807117790273, -0.40467235085000375, 0.4605509730620137, 0.92940084383807209, 0.19202881736949587], [-0.045032119764760091, -0.37485345214296723, -0.34581641145629965, 0.89810368244723815, 0.78949623575660188], [-0.51967058879962114, 0.88352653345573495, -0.36514753467698369, -0.69524064053778001, -0.51231228064087153], [0.44756607492310513, -0.049326198790702797, -0.90140573099216459, 0.1326535485076128, -0.25841580547463444]], [[0.024367837004489419, -0.017114404706970236, 0.01947762362468352, 0.039306224265220922, 0.0081212835247066097], [-0.0019044985921277465, -0.015853303721651044, -0.014625269078907214, 0.037982604588470054, 0.033389378011586347], [-0.021977910653754634, 0.03736610774407146, -0.015442821020729219, -0.029403119995482823, -0.02166671305519639], [0.018928466259814682, -0.0020861037997465296, -0.038122254838953512, 0.0056101844126645066, -0.010928922295484146]]], [[[-0.45694810808786401, 0.32093102274359808, -0.36524633941481444, -0.73707423481045764, -0.15229111804942419], [0.035713347408243175, 0.29728273138137418, 0.27425450337062524, -0.71225358671568628, -0.6261209441697263], [0.41213197097087678, -0.70069297644739803, 0.28958531886361699, 0.55137023656802153, 0.40629636258772495], [-0.35494848577794463, 0.039118826360889571, 0.71487232213076057, -0.10520273723592174, 0.20494024009766207]], [[0.53401000353536532, -0.37505435202931936, 0.42684321381341656, 0.86137792841298966, 0.17797421424565835], [-0.041736215640635843, -0.34741790068960116, -0.32050608312481838, 0.83237140854292535, 0.73171294878268889], [-0.48163586057101376, 0.81886116214739246, -0.33842236002958753, -0.64435592744016501, -0.47481610752212117], [0.41480868131465387, -0.045716010710041478, -0.83543177991444462, 0.1229446256345639, -0.23950233385810957]], [[0.2233021534776099, -0.15683310036297879, 0.17848918224530502, 0.36019465009884349, 0.074421874199794971], [-0.017452457386301894, -0.14527661442117648, -0.13402314205843527, 0.34806525493958695, 0.30597381342839514], [-0.20140132983562473, 0.34241579688793489, -0.14151503020406841, -0.269444514617454, -0.19854957512705892], [0.17345681018246217, -0.019116652445409991, -0.3493449828719799, 0.051410646768677105, -0.10015053380903097]], [[-0.021734255023805396, 0.015264745755373231, -0.017372557073431497, -0.035058158918487868, -0.0072435664771593484], [0.0016986677186882342, 0.014139939707932503, 0.013044626320103095, -0.033877590959020223, -0.029780782621631936], [0.019602622709233831, -0.033327722719378693, 0.013773820396520017, 0.02622534402046595, 0.019325058148677448], [-0.016882750521702621, 0.0018606457348457855, 0.034002148348237275, -0.0050038572866752135, 0.009747766462064043]], [[0.11125845006241232, -0.078140794404015251, 0.088930757989807069, 0.17946400366796497, 0.037080082951547744], [-0.0086955424671931909, -0.072382870917702333, -0.066775921439607311, 0.17342063290509085, 0.15244892049436645], [-0.1003465459201989, 0.17060583718220748, -0.07050869271002716, -0.13424849965525643, -0.098925682735979639], [0.086423420254233371, -0.0095247138835649406, -0.17405824675718429, 0.025614929310400502, -0.049899174687687266]]], [[[0.046582799488683685, -0.032716768529192787, 0.037234418289055354, 0.075139782134404684, 0.015525059608387064], [-0.003640736599937959, -0.030305983594802324, -0.027958409966599138, 0.072609483282274206, 0.063828837195481755], [-0.042014094438313838, 0.071430956485548883, -0.029521283937336142, -0.056208503152698319, -0.041419193244074573], [0.036184621074361822, -0.0039879023730448613, -0.072876445820459976, 0.010724714530121882, -0.020892285015865313]], [[0.4628537340345073, -0.32507875536673636, 0.36996680596404863, 0.74660022835032347, 0.15425933799010738], [-0.036174908945237332, -0.30112483200693851, -0.27779898573617623, 0.72145879664619572, 0.63421297043743219], [-0.41745839035663962, 0.70974877632728894, -0.2933279376480657, -0.55849618001247248, -0.41154736220552723], [0.35953586222229339, -0.039624400520996791, -0.72411137676166581, 0.10656238399598425, -0.20758890058669804]], [[0.078790573618437859, -0.055337441880945151, 0.062978636053340045, 0.12709211556451019, 0.026259227986124248], [-0.0061579752237183264, -0.05125981816712228, -0.047289110635416721, 0.12281234491582117, 0.10796067971938025], [-0.071063024060160629, 0.12081897389995411, -0.049932569980912007, -0.095071576939267738, -0.070056802732655563], [0.061202999431311023, -0.0067451745913824843, -0.12326388779751081, 0.018139880363514323, -0.035337402188544101]], [[0.54768557928811623, -0.38465919869627163, 0.43777433245615266, 0.8834371389779081, 0.18253199374948673], [-0.042805047263354427, -0.35631499959652768, -0.32871399157217507, 0.85368778497144082, 0.75045154130735803], [-0.4939701757577592, 0.83983155180263169, -0.3470890902225976, -0.66085737542635137, -0.48697577420262561], [0.4254316050551481, -0.046886761751107585, -0.85682653004428722, 0.12609314070006439, -0.24563580006277458]], [[0.59036621979531345, -0.41463534120979495, 0.47188968917437313, 0.95228259404435867, 0.19675654648722732], [-0.046140805777419178, -0.38408230437907942, -0.35433037483027324, 0.92021489985935001, 0.80893354934971662], [-0.53246482358142055, 0.9052788630056775, -0.37413742825445906, -0.71235739137302656, -0.52492535465619905], [0.45858510422041759, -0.050540604573565573, -0.92359824448924877, 0.13591946480309827, -0.2647779751987423]]], [[[-0.08586823824165063, 0.060308339245350243, -0.068635932909325986, -0.13850865093048331, -0.028618063572857157], [0.0067111389004114079, 0.055864427385868484, 0.05153703586348183, -0.13384443351456574, -0.11765866068913743], [0.077446531988974832, -0.13167200032321225, 0.054417954055045667, 0.10361174495523767, 0.076349922982262175], [-0.066700792936499234, 0.0073510856971197545, 0.13433653796260561, -0.019769364496221707, 0.038511719494029144]], [[-0.2769111538423128, 0.19448462142365427, -0.22133976154813073, -0.44666795466753001, -0.092288617618902752], [0.021642335449797743, 0.18015372578888461, 0.1661985893597516, -0.43162660931258756, -0.37943011476817184], [0.24975251586971842, -0.42462086430160817, 0.17548908369021868, 0.33413108775362677, 0.24621612952267236], [-0.21509924871480796, 0.023706060169239401, 0.43321356641463227, -0.063752996980933216, 0.12419405475085596]], [[0.40979422015558176, -0.28781315834588733, 0.32755544048864843, 0.66101326584953135, 0.13657572676870638], [-0.03202797668109017, -0.26660520727821135, -0.24595333330784092, 0.63875393716488971, 0.56150958828299391], [-0.36960279877713931, 0.6283863020099042, -0.25970211455477332, -0.49447263729111374, -0.36436938486387449], [0.3183202542044633, -0.035082033732547833, -0.64110243717664117, 0.094346541545451523, -0.18379182314760878]], [[0.52451240814451516, -0.36838385061254947, 0.4192516254287591, 0.84605795502576175, 0.17480886703171275], [-0.040993919266643329, -0.341238925332504, -0.3148057459070267, 0.81756732846780522, 0.71869912229296917], [-0.4730697616231605, 0.80429736755952164, -0.33240337419505572, -0.63289578278743031, -0.46637130078732586], [0.40743113221696592, -0.044902931985423562, -0.82057326983082279, 0.12075800309561122, -0.23524268282706295]], [[0.37157211343012159, -0.26096840379783215, 0.29700386511477178, 0.59935959102548531, 0.12383710882851463], [-0.029040680417027662, -0.24173854936809633, -0.223012905910876, 0.5791764225080086, 0.50913676710807954], [-0.33512940475141301, 0.56977579185892868, -0.23547931820695855, -0.44835245065650176, -0.33038411901393205], [0.288630058172759, -0.03180988109710424, -0.58130587448618898, 0.085546701521453092, -0.16664929078844631]]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[[0.19891359997471086, 0.39975908274212479, -0.23733584094966101, 0.30147732263233534, -0.72612602624672307], [-0.0052584783934204364, 0.50979307878032853, -0.64014412451148572, 0.37435502746675758, -0.31886442684208194], [0.34954042883861863, -0.31584173477750382, -0.65358759901264851, -0.86056917668484867, 0.078649164396831464], [-0.040741880532151886, -0.20226847779065593, 0.59499442937626212, -0.83146126050988911, 0.069404157080501738]], [[-0.19386609153279574, -0.38961504359583388, 0.23131335349322393, -0.29382722062208494, 0.70770030147053586], [0.0051250424992141455, -0.49685688503037501, 0.62390022327534667, -0.36485562590923681, 0.31077312043308603], [-0.34067070718269432, 0.30782713033215042, 0.63700256448526171, 0.83873190570528289, -0.076653411862600287], [0.039708039779424678, 0.19713583804500023, -0.57989621886903198, 0.81036261400164333, -0.067643000131895031]], [[-0.042781318699588802, -0.085978136859523144, 0.051044977577165411, -0.064840199070714352, 0.15617146815942443], [0.0011309666108924809, -0.10964368538359674, 0.13767892093791934, -0.080514362712679338, 0.068579728426950939], [-0.075177365883665345, 0.067929623293054228, 0.14057027460673413, 0.18508681264367013, -0.01691545961636096], [0.0087625550776224449, 0.043502868644189743, -0.12796835566226775, 0.17882643105729204, -0.014927090774661766]], [[0.22311593580977684, 0.44839881162377437, -0.26621311092562938, 0.33815885375907562, -0.81447567125862486], [-0.0058982911567266151, 0.57182093057428529, -0.71803212757533352, 0.4199037787710812, -0.3576614922276013], [0.39206992329128937, -0.35427102134607846, -0.73311130463634466, -0.96527687000537032, 0.088218613092754888], [-0.045699051260129457, -0.22687901034830618, 0.66738895142798982, -0.93262731784968911, 0.077848741655038287]], [[0.0094360200641389561, 0.018963684363744106, -0.011258685969310372, 0.014301415617651482, -0.034445808399368741], [-0.00024945055357433987, 0.024183453120057805, -0.030367017657912786, 0.017758572318517754, -0.015126221283032345], [0.016581422789433555, -0.014982831474730151, -0.031004746275467544, -0.040823493309709163, 0.0037309419434901243], [-0.0019327044616407019, -0.009595168027817744, 0.028225216246446246, -0.039442678317234484, 0.0032923792984970741]]], [[[-0.17694518866787559, -0.3556088991727826, 0.21112400137459594, -0.26818157098884471, 0.64593123208878755], [0.0046777216416978131, -0.45349052311069121, 0.56944534159915505, -0.33301051799522363, 0.28364840902894239], [-0.3109364927071997, 0.2809595490529545, 0.58140409219369682, 0.76552621514878028, -0.069962995162409267], [0.036242266684440881, 0.17992954714399559, -0.52928206807228251, 0.73963303479328057, -0.061739024734887814]], [[0.20678606422401269, 0.41558046995557413, -0.24672895395546723, 0.31340898263295891, -0.75486413758170312], [-0.005466594797543591, 0.52996931503441014, -0.66547930388211696, 0.3891709906319365, -0.33148422157209312], [0.36337429706114088, -0.32834189950123055, -0.67945483487620062, -0.89462818561316682, 0.081761886377783172], [-0.042354334371303502, -0.21027371906309825, 0.6185427054840491, -0.86436825655679461, 0.072150986585566457]], [[0.086469866003780482, 0.17377954208711952, -0.1031724244466989, 0.13105541146764629, -0.31565473753124151], [-0.0022859167101729034, 0.22161249516068335, -0.27827748669097002, 0.16273612798223722, -0.13861377133545677], [0.15194895697640573, -0.1372997748172298, -0.28412150861249058, -0.37409861067510308, 0.034189631616782089], [-0.017710930528657166, -0.087928267215365341, 0.25865043208560029, -0.3614450886855658, 0.030170728213753654]], [[-0.0084162113545800856, -0.016914162388587482, 0.010041890547973095, -0.012755773693750689, 0.03072303808151251], [0.00022249089840084199, -0.021569798639524008, 0.027085067335598231, -0.015839294212212873, 0.013491437539218977], [-0.014789366470921973, 0.013363544749190864, 0.027653872700118699, 0.036411447367789194, -0.003327716106435175], [0.0017238252064476038, 0.0085581592192377834, -0.025174743572410552, 0.035179865542056793, -0.0029365516231682569]], [[0.043082895166300872, 0.086584218755003162, -0.051404806690644012, 0.065297274231813612, -0.15727236081538662], [-0.0011389390840384653, 0.11041659178855039, -0.13864945489477903, 0.081081929065576666, -0.069063164487730241], [0.075707310379745929, -0.068408476596330231, -0.14156119045573648, -0.18639153696467647, 0.017034701021230555], [-0.0088243245714109721, -0.043809531501164276, 0.12887043735878057, -0.18008702434595814, 0.015032315658581862]]], [[[0.018038377002357629, 0.036251945797250183, -0.021522678066084284, 0.027339315180032214, -0.06584836338152579], [-0.00047686239518730306, 0.046230321855324587, -0.05805113906364575, 0.033948192175054084, -0.028916055738518732], [0.03169789312424276, -0.028641944470964239, -0.059270253600330954, -0.07804027099013533, 0.0071322588223772417], [-0.0036946563780324987, -0.018342612363079856, 0.053956762296575936, -0.075400634656653379, 0.0062938801123105991]], [[0.17923203936018609, 0.36020481084117761, -0.21385258118138054, 0.27164756639622417, -0.65427928775736977], [-0.0047381768089464179, 0.45935146301269947, -0.57680488883224368, 0.33731436677097909, -0.28731429881913123], [0.31495505539864826, -0.28459068784853359, -0.58891819506789767, -0.77541992386318204, 0.07086720129046388], [-0.036710664007262583, -0.18225496787202503, 0.53612254264472492, -0.74919209842426471, 0.062536943754446808]], [[0.030510276040980725, 0.06131687308410351, -0.036403654766255657, 0.046241968044305554, -0.11137652480345513], [-0.00080656942189567631, 0.07819438972170191, -0.098188228192242571, 0.057420283111822443, -0.048908881463298075], [0.053614106691070341, -0.04844524715529256, -0.10025024968314368, -0.13199802897515486, 0.012063567882964657], [-0.0062491756301361447, -0.031024862516019436, 0.091262961835809772, -0.12753332390929384, 0.010645526455641601]], [[0.21208169252158521, 0.42622315859551618, -0.25304748821114903, 0.32143513992442196, -0.77419561382407631], [-0.005606589986338683, 0.54354141193597416, -0.68252170490808406, 0.39913735329916256, -0.33997327150175533], [0.37268002671632161, -0.33675047703667704, -0.69685513824768397, -0.91753890908632485, 0.083855743914991523], [-0.043438995528056051, -0.21565866345519261, 0.63438309717925512, -0.88650404707112485, 0.073998716545968374]], [[0.22860902648651682, 0.45943834281034013, -0.27276724948298581, 0.3464842888746773, -0.83452797590456773], [-0.006043506459453069, 0.5858991012396938, -0.7357100024042591, 0.4302417652708973, -0.36646708023391644], [0.40172264322115453, -0.36299313631887198, -0.75116042720526754, -0.9890418841710098, 0.090390545990940582], [-0.046824157055472111, -0.2324647475210862, 0.68381999663120618, -0.95558850350395308, 0.079765369418219739]]], [[[-0.033250978278096727, -0.06682489572568294, 0.039673752287597792, -0.050395829684149338, 0.12138134712236927], [0.00087902260507925864, -0.085218499846183765, 0.10700836132717324, -0.062578279655971278, 0.053302308801066386], [-0.058430198880856675, 0.052797026768096091, 0.10925561178504611, 0.14385525677673855, -0.01314722400721712], [0.006810531732147157, 0.0338117894513792, -0.099461006433415974, 0.13898949250231343, -0.011601801585144384]], [[-0.10722901680434488, -0.2154994600997347, 0.12794142220893923, -0.16251838435773891, 0.3914351752739938], [0.0028347054604866218, -0.27481585280355098, 0.3450846251496712, -0.20180481141625009, 0.17189130853045939], [-0.18842792309072548, 0.17026185585237091, 0.35233164372143921, 0.46390989213292988, -0.042397666986207699], [0.021962861226070756, 0.10903754196174101, -0.32074562862564543, 0.44821859081888688, -0.037413930102429792]], [[0.15868566762178521, 0.31891251749941463, -0.18933746298122889, 0.24050708559305489, -0.57927559134802531], [-0.0041950130842775086, 0.40669343406135477, -0.51068251635475415, 0.29864613313864241, -0.25437785279994257], [0.2788499947621137, -0.25196646459750877, -0.52140720650487304, -0.68652919837721993, 0.062743297400446554], [-0.0325023151420189, -0.1613620609205865, 0.47466381518819795, -0.66330801535157635, 0.055367983905810748]], [[0.20310828598490904, 0.40818919426814027, -0.24234077440758814, 0.307834870370643, -0.74143855733723252], [-0.00536936908040521, 0.52054358500980491, -0.65364347098121067, 0.38224941878420293, -0.32558863348554118], [0.35691153039745843, -0.32250219895127752, -0.6673704412032575, -0.87871684223766477, 0.080307716399565868], [-0.041601044492379391, -0.20653391139700769, 0.60754165997973908, -0.84899509890970692, 0.070867750554211878]], [[0.14388482313613571, 0.28916708020330062, -0.17167768067768915, 0.21807463769206437, -0.52524570906332091], [-0.0038037380737098109, 0.36876054219349158, -0.4630504105736446, 0.27079097117555417, -0.23065165813906757], [0.25284124760080667, -0.22846518364379867, -0.47277479317584409, -0.62249561517891061, 0.056891138215193357], [-0.029470776635421286, -0.14631158531454871, 0.43039122638509231, -0.6014403058826735, 0.050203731005372093]]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5, 4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank3_taggedData_rank3_offset1(self):  
       arg0=numarray.array([[[-0.42968821070122565, -0.83374541198634078, 0.8180517380411263], [0.4127367793558312, 0.67706145652552485, -0.10954772861839124], [-0.31600498783913777, 0.93953932632353809, -0.65512725277830897], [0.1938593357262639, -0.82489459737761561, -0.83309972270078969], [-0.63947596278675967, -0.84091472907262421, -0.54829662970565041]], [[-0.022576215107380726, 0.034985935016746961, -0.50174860162054236], [0.43216583525662289, 0.22715297905752618, -0.23575606496128443], [0.37569069115540055, -0.058249639476874782, -0.43053065733867468], [0.56335713850872371, 0.13086344165573927, 0.78487741378766596], [0.12286952981818144, 0.086273954040547718, -0.37256737261195561]], [[0.022025573296951872, -0.84334403517116607, 0.90027253814442121], [-0.89645525423054218, 0.13559938837843388, -0.10285619911413035], [0.86981784095304748, -0.57762876314464084, -0.31009363368501885], [0.1653595785969284, -0.84429993630952227, 0.31109981806634668], [-0.30411067189018137, -0.80605311138183655, 0.69552605006501911]], [[-0.092108334609104059, -0.70362190241263756, 0.033367789574625384], [-0.071623885021385059, -0.84965491357802425, 0.15214272840821597], [-0.59701980560933521, 0.19395368649287548, 0.84514896608958079], [-0.58214093158961955, 0.87895849382572, 0.71039035504350689], [0.80553437635252911, 0.38777013343842359, -0.77270431489354463]]])  
       arg1=Data(numarray.array([[[0.77403238851807066, 0.70296753122563782, -0.75386369060124636, -0.80579617722296915, -0.9618133994511604], [-0.34498860729233605, -0.98058941499024499, 0.89345126752310899, 0.6394562141116833, -0.84059506330536427], [0.69310205109384904, 0.48750817635799715, 0.57501556145761512, 0.620615386904392, -0.91998069662511539], [-0.071426656659054233, 0.047995785009673497, -0.58048370729409049, -0.4585784298071558, 0.94365855674721977]], [[0.93153984797621692, 0.26781040393137534, -0.049679753157566342, -0.87549619804124434, -0.27646634568328032], [-0.22303685233366921, 0.35619062350746544, -0.31646489833116709, 0.034909682620052562, -0.37962010535389323], [0.022545982462432113, 0.30252089211916688, -0.021817360092728499, 0.71065108612848316, -0.6964014602416646], [-0.96644651532705805, 0.12929236310612691, -0.84759224195965155, 0.19330387536996896, 0.71955306457964774]], [[-0.91728052250968162, -0.79166682565260627, -0.3497725720023559, -0.28397144874865909, 0.034883139753032477], [-0.63499436911936424, -0.57864964958269649, 0.44241438550054313, -0.25160360132570414, 0.060722569967385231], [-0.46820611179689076, 0.10247994249724535, 0.57340187810386811, -0.66361132944864387, 0.96953620914722349], [-0.7182160939222344, 0.019061836373879482, 0.25998281659517919, -0.13574557328924874, -0.52438000113221817]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[0.49853649221077445, -0.1940857985371891, 0.0069489947090366488, -0.37068216541438059, -0.41599851687627654], [0.35046575405175973, 0.6223480987364578, -0.49909147714515734, -0.017436973483088147, -0.21424653086323864], [-0.88756498804568129, 0.51563279706762621, 0.85959818041996572, -0.91310658962114322, -0.17275956054323416], [0.92229669926294178, 0.25038482131697903, -0.18712082639030858, 0.66332130401746192, 0.012252590305697142]], [[-0.48332507911860079, 0.32236748673253057, -0.39241561612975029, 0.44816629632140836, 0.82104880598604191], [0.97596006059032403, 0.53950651148422391, -0.120331294282777, -0.17018973904244694, 0.33568634797261532], [-0.79726752448487925, -0.27722145393612529, -0.25404852632081032, 0.40709336256049933, -0.69364884627254253], [0.41373083939385458, -0.31478102230563954, -0.25978247503936092, 0.47535298871345621, 0.99849895883978257]], [[0.79240723161997395, 0.33940229495872054, -0.71593019979163275, 0.13170920320488699, -0.086900131719012563], [-0.81819207508585046, -0.89432541313797254, -0.49206721218418581, 0.45681575482362624, 0.97354790378483358], [0.36865562581280642, -0.68395164642352047, 0.10515883131149528, 0.77066022872421724, 0.91648287343592116], [0.96893807077186977, 0.77959117164407932, 0.90634099521087874, 0.96048707363846542, 0.79386641447240458]]]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=Data(numarray.array([[[[-1.8596425920900677, -1.1729669789080108, 0.079214546145164544, 0.84387871870630027, 0.67231863902399669], [-0.18526475758760108, -0.348989938540197, 0.24186353754070372, -0.50969734754369611, 0.72737451371268869], [-0.69963221312156709, -0.37786802676162923, 0.24018511912979831, -1.4020415991545754, 1.7690571627762801], [0.24892361645812855, -0.11282656915070499, 1.1687825434740013, -0.075167376399535704, -1.4343729943558252]], [[1.0506673591832201, 0.55818995956103057, -0.30646672696887878, -0.89423802282972364, -0.58798184024638922], [-0.22383695196570025, -0.10017261988318051, 0.1060285226258852, 0.31512570195054374, -0.61062266024414558], [0.35262464013080713, 0.39481134553772207, 0.15974350398177806, 0.81000236929171876, -0.95742694631767178], [-0.6051451518046147, 0.10526032053175491, -0.84193954073584631, -0.043522961566801299, 0.93410887753206462]], [[1.2315556944291739, 0.5481196729413691, 0.4206941487603415, -0.38189006183613616, 0.021333931907998108], [0.31546834323602224, 1.0236153998643878, -0.86950399527418853, -0.0044399573473734022, -0.13081679572998825], [0.10889371570237338, 0.063037856645849252, -0.57785725044951874, 0.90631695209499297, -0.99874766312463714], [-0.41492039165673889, 0.093820423776667689, -0.78323232554910827, 0.41546028848113314, 0.72138322035363278]], [[0.14581736577283122, 0.57489887623862601, 0.18623247843412738, 0.80255750734910714, 0.012537954145464283], [0.64611626509323683, -0.0018432709698336103, 0.065678752239511806, 0.30477863879923806, 0.099601417173685175], [0.50582862599453848, -0.24041584994992157, -0.34823178839847285, 0.086954259623630903, -0.41160939155842557], [1.3817154136204988, -0.11322855140603998, 0.37005046286333193, -0.13526543276051883, 0.026242418998253692]], [[-0.77537886677030599, -0.240668299748034, 0.71563326791647042, 1.4072055227010347, 0.8284148638530523], [0.75633216852232144, 0.6448090712309511, -0.54779493176448601, -0.30031953785281007, 0.82347449500500236], [-0.20546551706096705, -0.62233344156181392, -0.663756407560262, -0.63060973224668548, 0.64232635113146341], [1.2521702033330409, -0.14986754396111404, 0.94141047599495553, 0.20512664726070212, -0.92101394716642304]]], [[[0.47536029034653576, 0.39071697391086635, 0.19077919511244151, 0.13004405204741004, -0.0054608939964402425], [0.31859292092830149, 0.32493631207878199, -0.25322336763336839, 0.11302660197392823, -0.024771373937518805], [0.2200629331447391, -0.051841281025321997, -0.30144856625320809, 0.343817702815574, -0.49005801129203708], [0.32816442936959106, -0.0061243986977469987, -0.1469946967276991, 0.085226033671169737, 0.26697693047930793]], [[0.76236685173069707, 0.55127273694227485, -0.25461803024024876, -0.48016115619642574, -0.48668695692759706], [-0.05005200133556334, -0.20644731795414131, 0.20993129425927831, 0.34359804226534701, -0.46382401963707237], [0.41503884441923017, 0.25524263212158682, 0.10836323163947412, 0.58608567403373912, -0.78434793399689862], [-0.081075565695984314, 0.045617340432005257, -0.50469085480082476, -0.12226953680003994, 0.69489137619428665]], [[0.63145228903611827, 0.58933533703024521, -0.12973792790500172, -0.12947437035682394, -0.36025853692670162], [0.1567673510674133, -0.14001987645807604, 0.16362233423866718, 0.34652733448389716, -0.31983393400332449], [0.4606557783484857, 0.12140979381231223, -0.029568240430428244, 0.47746927597187017, -0.72247811121227135], [0.33867487811187841, 0.0022936311606565774, -0.28064095560570296, -0.12510089739395661, 0.53837169538553475]], [[-0.16199158217095289, -0.19029304267421793, -0.70572434676861995, -0.79140425053717656, -0.55064479347809936], [-0.72193190293890419, -0.95997875645676323, 0.80915952242408651, 0.16733264029016767, -0.47557384934205232], [0.025930030912579394, 0.39466432858047296, 0.77113420961832668, -0.078227188589741092, 0.15155588781367635], [-0.73042282441894757, 0.058919616554575033, -0.23388383747722111, -0.33959065607806627, 0.21420595561258415]], [[0.51722141589205206, 0.40442758173693655, 0.03340090221080802, -0.06874181962006029, -0.15502572469087128], [0.17494732460796586, 0.12583139272547414, -0.082353906149717271, 0.17532077340677293, -0.1586580960689786], [0.26154457510170842, 0.04781889103299769, -0.14486120942341033, 0.38480532937859357, -0.53433646130492718], [0.17542856111407162, 0.0099499646348296181, -0.24131000921341339, 0.010906145188442372, 0.3733924504717992]]], [[[-1.5943625313977099, -0.92308894632292726, -0.2895977976489022, 0.46494467674378553, 0.24337608479387124], [-0.39116976521208413, -0.84293167047919648, 0.68486108247490241, -0.24186829566500037, 0.3563026254885574], [-0.42526115444024809, -0.15213166487123342, 0.54728255207050402, -1.1830850007850122, 1.4398897391458916], [0.16688346513989116, -0.090819960724055224, 0.93608176524141296, -0.29533013489383392, -1.0581310788649234]], [[-0.47322117992915713, -0.51243616929484392, 0.70504479958069333, 0.63285169180359901, 0.82114606097729459], [0.34433629616108807, 0.98687146757940358, -0.88935659195297778, -0.54263116126323585, 0.69583391433091746], [-0.57011985292731615, -0.40654831560412041, -0.57741207976427811, -0.39173353278110851, 0.6305671078292352], [0.0068542228387506038, -0.027454736331200821, 0.37870383544501102, 0.45126920386386626, -0.69444098212490402]], [[0.41962582113558966, 0.70224955052513227, -0.51856538554637077, -0.10712636670263194, -0.68772458076252763], [0.025662966890502514, -0.87924454463890123, 0.82274919592105267, 0.61406626173236556, -0.53071477352753393], [0.73503705619955717, 0.21752016291766027, 0.33495285696386845, 0.33511147649490319, -0.69860111520908486], [0.71883336334754999, -0.038846351798964583, -0.095940442906484819, -0.46844374008560069, 0.56778340169950159]], [[-0.94387116839894525, -0.35615729768118104, -0.19152815328507233, 0.51759180190310083, 0.085227598060748241], [-0.066283803208797454, -0.64289937389012963, 0.55256705343887025, -0.0020078673132650354, 0.20040356580264737], [-0.050083344661085716, -0.14292273187705432, 0.2918899466230549, -0.70382733176553069, 0.73746662649109473], [0.58072275333993695, -0.095294837324257822, 0.70051414162558201, -0.28126720872339822, -0.61461014826267601]], [[-1.6242546011971206, -0.98027423780099165, 0.026026577641813736, 0.7532381112165345, 0.53960640967673901], [-0.15696085943262461, -0.39136675962790585, 0.29109018071452236, -0.39760137622330227, 0.60386202579218229], [-0.5546025373140091, -0.32082687579885161, 0.24153352562014346, -1.2231172481274362, 1.5154502015184896], [0.30119082631210475, -0.10555453822668216, 1.040560475572416, -0.11076917818481445, -1.2316945751566584]]], [[[-0.75735429770211682, -0.27960260653714586, 0.092721753910120636, 0.68076334479215506, 0.28428277979788835], [0.16752158193410716, -0.17961132592850537, 0.15513971562482037, -0.09185792026026661, 0.34656101002198597], [-0.095327325728379209, -0.25434436270824523, -0.0184794001158478, -0.57933676209425855, 0.60709249034864621], [0.66262664259494408, -0.0947576989766266, 0.6585269052215863, -0.098303474799560461, -0.610709515822914]], [[-0.98648417723510173, -0.39834204208293944, 0.042989939246292679, 0.75837970823005707, 0.30909701744054863], [0.11760400599499843, -0.32044282640105909, 0.27220363668185699, -0.11374118010834805, 0.39199126944146673], [-0.14003312170246257, -0.27636401396085986, 0.064591304953858231, -0.74922271054768808, 0.80510139830442973], [0.71699052898598403, -0.11039141639388576, 0.80129190645569415, -0.15204912068153686, -0.75874089296309122]], [[-1.0566757637115558, -1.0368191229060888, 0.1448260551554415, 0.071272385656916876, 0.55008143133253362], [-0.37395862300471283, 0.16547063337060242, -0.22088157524604224, -0.58763968653101706, 0.47954279961677188], [-0.80512668669925369, -0.14576617696812047, 0.13708276829001259, -0.79353670865189074, 1.233579590917762], [-0.7518023249792366, 0.01253238752641905, 0.40189083876374121, 0.19654717334482114, -0.86700209440328968]], [[-0.2834383100767785, -0.73622442158608936, 0.14671340851995604, -0.50216846059932185, 0.34168915161078944], [-0.44630202188719825, 0.47285087948945453, -0.48398715119961561, -0.52030624581408313, 0.19881120525268581], [-0.71627519691638208, 0.054905606480731367, 0.053422515176998253, -0.20807589913018709, 0.61219961302939807], [-1.3180997789865296, 0.099243654450444446, -0.22238578884818239, 0.34043101147617144, -0.28939948863876513]], [[1.6935196462255453, 1.2818377600704332, -0.35625666675675499, -0.76916183487118239, -0.90893350125543815], [0.12627567633656456, -0.20465331621086597, 0.25513456908390469, 0.72305608331420168, -0.87125415081891266], [0.92884506994948701, 0.43082646775659456, 0.011664575678406675, 1.2882716328182244, -1.7602845761304908], [0.12267295326342753, 0.07406880842365797, -0.99716038208528801, -0.18955202970875162, 1.4443612843859226]]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[[0.83698492696883231, 0.092272603745276738, -0.26147912581840177, -0.10663389437135447, -0.57688482042553579], [-1.633616674645106, -1.4488311782579726, -0.087757049842947021, 0.52308629822782216, 0.60859481076442989], [1.3476737276941848, -0.54993705172028018, -0.071522046100075357, 0.68337885293591683, 1.4022896970598842], [0.051395265265320123, 0.79260574019421526, 1.0384298861452932, 0.10438340229887599, -0.1883349192790893]], [[-0.20828284822168153, 0.10097550219605872, -0.18439285568771707, 0.13601351818601229, 0.39372232443359267], [0.89506613013508352, 0.72011633203619319, -0.23356024483117371, -0.17246892121692509, 0.032202902996595686], [-0.94651521245338766, 0.10005000796031992, 0.17126140815339952, -0.18566952560499989, -0.64134573989864241], [0.55464200916888695, -0.19518551480345409, -0.35240794554377708, 0.49040110831595202, 0.59413599154094499]], [[-1.1307705101216519, 0.14185731863682777, 0.09813956436461313, 0.45192098483945009, 0.95979589288060807], [1.3422238578945289, 0.89611943197303123, 0.36702605390029991, -0.45366223265709649, -0.25470426604442453], [-0.71010557696035048, 0.0246723693142476, -0.57921831008557556, 0.1661459418903416, -1.1975303939958901], [-0.53751169952837863, -0.88560342462126074, -0.77871342339408511, -0.39224127170960321, 0.41417363628626092]], [[-0.16481604517137582, -0.58630049996830724, 0.92148990008982867, -0.55127705558220352, -0.68552744474820249], [-0.055487532092004743, 0.42067423612768623, 0.41244815034411453, -0.24356480250020213, -1.1295020336899166], [0.17847201497904247, 0.89843863812346614, 0.28859659587635528, -1.1548601751623444, -0.22482549559932496], [-0.96971054679713975, -0.34127658912329262, -0.57705439073376152, -1.063706599573027, -1.4826510073749528]], [[-0.34684113983141246, -0.33306349932493218, 0.71808647208989973, -0.2120430172528128, -0.37676393280132137], [-0.59620165821160698, -0.36130001168201481, 0.69014415462606937, -0.096204955062232089, -0.67907112226350275], [1.0358778424617459, 0.27839320709621257, -0.39371745914331857, -0.1809714952175846, 0.19127064725594989], [-1.468964405051804, -0.32285828855024334, -0.15882953280925322, -1.3505411845931869, -1.2827619979261489]]], [[[-0.42575386727636411, -0.15463457620294119, 0.34533106735856378, -0.04203679130594621, 0.081718851743811008], [0.43675941453884581, 0.45355140063884675, 0.2539517293207651, -0.2347672524674673, -0.47189512281169299], [-0.19282773644181314, 0.32183189345339253, -0.081057895218627676, -0.35182065937539897, -0.48021169661510205], [-0.4925105304806216, -0.40782443018470249, -0.45961957970098738, -0.48026766174436797, -0.36366456076114878]], [[-0.081153102786418629, -0.090666665771988231, 0.082649628559878771, -0.089445101775223843, 0.027210568818693558], [0.56604530453762469, 0.60235073741167078, -0.12701606741906624, -0.15389185520771817, -0.24585769983804395], [-0.65158975736332292, 0.32111294809479074, 0.28898925378139567, -0.48382882486796963, -0.44829157747702164], [0.26413228933132604, -0.1470890284328325, -0.35355297788701662, 0.1682019999571949, 0.044948342028875488]], [[-0.12570657537562155, -0.23781711082795323, 0.33369864031462715, -0.22207221394327051, -0.16669939643467147], [0.42707417160879446, 0.58741883555713992, 0.031355252827790142, -0.19331060488451249, -0.5191862549715438], [-0.44572690684914018, 0.5043286435823503, 0.29246716881621526, -0.6985515422133064, -0.4190733374252697], [-0.094758932368598003, -0.22323477194449015, -0.44537490152381998, -0.19200463223126049, -0.39534284951196197]], [[0.8395470470225751, 0.19923569420343748, -0.60935553597634506, -0.046802281249851571, -0.19511641221404946], [-0.31702560307965094, -0.28072989439929513, -0.68312615463615212, 0.32644950975215647, 0.68734751917105108], [-0.31499976991415823, -0.28261093588633085, 0.53355189824348748, 0.14374233024752264, 0.53122810048165592], [1.3342222780228452, 0.7117462511280247, 0.571954694254725, 1.1897577301813793, 0.76065741274137177]], [[-0.27566850159074596, -0.12248553436736001, 0.23373080639175811, -0.055951016711953537, 0.052097738533222818], [0.4320931675371531, 0.45620944768427002, 0.11162359670627273, -0.18702006000002575, -0.36007556658030632], [-0.31518717243737593, 0.29425663626022613, 0.044521903888227382, -0.36419427988118691, -0.42252233085901569], [-0.21197835403685161, -0.28684297271331749, -0.38307699254607447, -0.23533358680891875, -0.20811880095046359]]], [[[1.1319723442282057, 0.02941301748395081, -0.31343787333730888, -0.26754868130537734, -0.77982302108537815], [-1.5519467426373905, -1.2464186343440666, -0.35250669468464479, 0.55440312099068179, 0.58864046042530949], [0.98471221946171139, -0.37059271712912373, 0.32785506001854769, 0.33037278496971095, 1.4062638512778647], [0.54370501426053575, 0.97282808959190259, 1.0309184654722399, 0.47842406000819521, -0.12711213883161188]], [[-0.59395823897943378, 0.18279243787415073, 0.014197078825710731, 0.37952394247828208, 0.49319598937753656], [-0.097681152361107998, -0.39276355732269636, 0.48170849027488061, -0.054432490262258722, 0.13744585472625598], [0.6496347918573353, -0.42948412305500833, -0.81585636784402049, 0.79449362897952969, -0.033453088451236776], [-0.87035736037522038, -0.34732868752520574, 0.039296313398070923, -0.6289723433888097, 0.042757867160706758]], [[0.46709796512782054, -0.46027451380740825, 0.45472030367650718, -0.62214188963934858, -0.80915716045963892], [-0.0051850835444171017, 0.50701961768387716, -0.21202494456086241, -0.058516159502640386, -0.68214855194217816], [-0.4258129701305392, 0.82072674312854721, 0.86183048530201967, -1.2683620685060975, -0.033793327260429384], [0.26278576345574689, 0.15786949805728764, -0.29375377602716635, 0.0045502188189245341, -0.8122771180742967]], [[0.73702686337522527, -0.19868080216133577, 0.10973980763858851, -0.39870791295185459, -0.78903540921635917], [-1.0205895532969289, -0.63081856725637619, -0.13401587242996535, 0.28292311346237387, -0.015977102526319231], [0.64105424586311166, 0.10654564516722642, 0.38935084075819593, -0.2549475640086164, 0.84219788378589922], [0.10463412971662711, 0.54970379728874375, 0.47035462484762802, 0.0071533870753847095, -0.59403482707253374]], [[0.78911528807602482, 0.035241384504029222, -0.18375353909705511, -0.15691025332216468, -0.59574066155348215], [-1.4623299215413792, -1.2461602227215607, -0.093473105854459726, 0.46021199596204732, 0.47170155928777213], [1.1689675448313332, -0.40906040795025678, 0.016504331451304408, 0.48556085178901237, 1.2490935496897846], [0.059952369858593313, 0.71981149447077331, 0.89668768493717477, 0.083160937465312945, -0.25641456441732091]]], [[[0.32059962337587616, -0.19762280025685777, 0.25158315377101864, -0.27680186011169794, -0.5422906575613996], [-0.74628895244763904, -0.46677370709312027, 0.11421902378772621, 0.13659825052563562, -0.18397723402654134], [0.65502824856372543, 0.12474305398332208, 0.10308686831859187, -0.17661985058817167, 0.53456012389961338], [-0.34372997162930541, 0.22443752702483924, 0.23026662260120245, -0.36351686429756674, -0.67720473519511348]], [[0.4955114061606013, -0.20836234897835196, 0.22399656846519772, -0.33419840144236812, -0.68103394549036123], [-0.97881295447415262, -0.63903445549670335, 0.063122497796836097, 0.21535264712057556, -0.12175415176529195], [0.79706139502175499, 0.094552676729480103, 0.1702849689486913, -0.16323828452343242, 0.74117206633782973], [-0.2701700315875355, 0.368130836546881, 0.37202096881274033, -0.30526452737138987, -0.72847612241055271]], [[0.27832331198717825, 0.46524292684421631, -0.68532681100231285, 0.41954199658502928, 0.334161239915441], [-0.71143813105690235, -1.022753062400898, -0.14124129708417288, 0.36347865411136449, 1.0158100312254947], [0.68682982213259414, -0.93965214206704317, -0.47359590924637085, 1.2754226725642397, 0.74316968130976324], [0.34851223412581567, 0.44833303562319271, 0.82732222570394864, 0.50793516579330134, 0.85728289434835103]], [[-0.15212272696772799, 0.63744104498386889, -0.85755224197697399, 0.70327378152331854, 0.90210457059595606], [0.072572165622558749, -0.52341061899164343, -0.16478443729796033, 0.18507856555283039, 1.1113750829000062], [0.077812247399798473, -1.0297097613863779, -0.64900157608467057, 1.4368444830266041, 0.14194246020342671], [0.51506983584271238, 0.13137534282496915, 0.5244485805901008, 0.71398981838789577, 1.4344614506475879]], [[-0.39812723510757514, -0.29359591713642952, 0.40663295283085843, -0.22658399204252838, 0.050425205945255749], [1.2929809223792248, 1.401576405189654, -0.068473765753479743, -0.43302408424208272, -0.79467847168792005], [-1.3089824362486766, 0.83635413179797369, 0.51266677052355558, -1.1731725837439195, -1.1163103413696143], [0.15467153110206533, -0.52276256031792312, -0.95180174096421943, -0.023516701383092919, -0.21636604671386178]]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5, 4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank4_taggedData_rank4_offset2(self):  
       arg0=numarray.array([[[[0.69079744014592626, 0.3566915419398673, -0.87284341892512707], [-0.82266517844895848, 0.4522542675018415, 0.096784466025259919]], [[-0.5076306659088905, -0.095699566381052481, 0.79389811289557977], [0.52110375542735543, -0.86904451842104646, 0.54119699476144434]], [[-0.36728391510877234, 0.65596888208732973, 0.96020034816796751], [-0.56696571703700993, -0.37518784509413838, 0.98458655365938075]], [[-0.087191266011665602, 0.92588903696292735, -0.089924194546759928], [-0.14135322359620006, -0.85690345236800303, -0.39809990654327287]], [[-0.54541146022392217, -0.44915501106538147, 0.29841991629153464], [0.89676382950072586, 0.78991739329160771, 0.61497395664161369]]], [[[-0.5224030514706679, 0.42228857186801561, -0.25273782914847631], [-0.27152963135360575, -0.21754031172712485, -0.36349385210428897]], [[-0.46058716047680726, -0.77674388918985171, 0.79919989860937313], [-0.69629334087003736, -0.6911303475196271, 0.47538728799862695]], [[-0.49948429762299718, -0.14874034016946269, -0.61373944557310578], [-0.85592623206203089, 0.41753617449607261, 0.72460840065374565]], [[0.97895485083493017, -0.55102889424699586, -0.66686223729991356], [0.63977770419395008, -0.080069788166967637, -0.69382801188463072]], [[0.82106162988944176, 0.46461366926673242, 0.56354185127934797], [-0.5418147089553389, -0.97839638723236866, -0.3860093272049514]]], [[[-0.087625109154173098, -0.3321346162392409, 0.90467938600602094], [-0.45005907171369564, 0.8893167115455618, -0.49608708139283797]], [[-0.75570596151623382, -0.2830899957777635, 0.81801509682235563], [-0.28799530220433667, -0.034182925800529507, 0.22457434383830854]], [[0.47387919038353576, -0.60708122430973499, 0.28874590541356193], [-0.89623930481337899, -0.74274953532093124, -0.98655593240747352]], [[0.24583976827970155, 0.91040980395649007, 0.1444370141600908], [-0.34055882788069702, -0.61574685627833392, 0.26490482514144009]], [[-0.61471539328545965, -0.69751490639700986, 0.5172956246422149], [-0.88303860098763498, -0.0060546728220165491, -0.54578401763454365]]], [[[0.38356471800371739, -0.29957239541481306, -0.3323322590095743], [-0.77170064621748158, -0.32358037600638978, -0.90164962915282465]], [[0.35805061062780807, 0.49075216568092772, -0.07312351896115965], [-0.37712492321527002, -0.0070333690181851871, 0.83057683707673968]], [[0.857725389389844, 0.93752836826431341, 0.14298284891321367], [-0.29256910971361272, 0.38614812186350567, 0.60427646276043601]], [[0.1889368283091486, 0.12166067055497898, -0.88614960998223702], [-0.66068851760713598, 0.54891822191137618, 0.59071202554706215]], [[-0.41250689103182836, 0.45145305258558621, -0.1031842485266028], [0.6759124358059212, 0.97585570452437209, 0.045263343498228581]]]])  
       arg1=Data(numarray.array([[[[-0.21753877321921866, 0.63824271192960258, -0.080955748034408304, -0.62553507864495184, 0.6539449769219905], [0.30734183227923895, 0.30497292281566879, -0.33280855158561162, 0.23389286795940634, -0.65303153710420347], [0.87022311976255384, 0.22800230044733794, -0.83879236861499096, 0.76256843627832382, 0.24775200803958697], [0.14887968439780219, 0.48897438283198613, 0.63461940155293206, 0.9554122286565716, 0.71762652406248284]], [[-0.52829365851207277, -0.24991629964834527, -0.2060106581668355, 0.023433714453521493, -0.66517231356470807], [0.12257237472906368, -0.6849248945756865, 0.43887920799977187, -0.15299674676778774, 0.68122004655971158], [0.02807056245299, 0.22219509846757091, -0.19416266662234793, 0.21634347210883043, 0.23476279186248816], [0.23716968039483954, -0.75091942849231086, -0.96991537824118512, 0.93446835286330576, -0.1720444756589834]], [[0.67952158084580727, 0.24853221705642503, 0.75905525192373635, 0.022827843118645275, -0.87324431931910085], [-0.42179692548829761, -0.85341875393915134, 0.27981350834166152, -0.15436613689488432, -0.052444876987625788], [0.48932535247830389, 0.25258392481260783, 0.21150502497094537, 0.44674362340375429, 0.51014876606492976], [0.051036586192672928, -0.39156491539108651, -0.086581243470585489, -0.91030814052316833, -0.6178547506116836]]], [[[0.17514937660246255, -0.34398510632595936, 0.13318660224414169, -0.30730004426004043, 0.066427711079595886], [0.5272830871618297, -0.61268747244639044, 0.62627341218291543, -0.082686582431648281, 0.87721472485761764], [-0.40405750376567462, -0.43591876591064604, 0.79086580502160508, 0.81038985983551792, 0.46060363858354569], [-0.21081267109498292, 0.48748222535218044, -0.97658402554891577, -0.03283186813873451, -0.44848378765053232]], [[0.80961539786241499, 0.2728319683096998, 0.8108019846216703, -0.90150422123961116, -0.19534770140315683], [-0.57470165704514997, 0.70854278123111292, -0.94450804802256627, -0.21181929812474776, -0.56823427146417971], [0.79892890869754596, 0.18904003645212297, -0.4585664704635124, 0.96761582115315092, 0.5583066341524916], [0.12368083697219756, -0.856184770515382, -0.19570713299020315, -0.2843913377572389, -0.31306125047319733]], [[0.61135590532021178, 0.89915834638147651, 0.79271873470706677, 0.42171687555508219, 0.84240685921972336], [0.46738261759305821, -0.69122689219396038, -0.075519537264111758, -0.87657308278125412, 0.6994531335810692], [-0.89680304878880657, -0.39885437074149643, 0.69012603936788097, 0.28150270468803718, -0.51265812541046629], [-0.55715252339839028, 0.559640736575582, 0.80406736601630935, -0.62945344058074415, -0.66848147994929419]]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[[0.69625845341408232, 0.32323604103306702, -0.92628333399331653, -0.15877517454042378, -0.93623730416005269], [-0.80497714559859168, -0.78769680322806401, -0.7012831553271921, -0.0045967348927868912, 0.35125105929897216], [0.30605575383774397, 0.49362908144276862, -0.98516859591775341, -0.41797026075460764, -0.14508816580149775], [0.15411569983660289, -0.94150214911997088, 0.61038885276948252, 0.092038357819816508, 0.78253730971853575]], [[-0.82071408524668543, -0.097565178092365423, -0.80932739490215821, -0.84661495842900059, -0.57655214463390903], [0.25178025972569884, -0.29326845562940607, -0.72128053784396107, 0.41190067132482588, 0.91941907304369441], [-0.076081169386111647, -0.81025509238089377, 0.7928484572947172, 0.68855087875995569, 0.98064177826800969], [-0.41355809878711036, -0.45372924375725665, 0.45206998685278088, 0.5680028563259194, -0.4333141166676806]], [[-0.43950016121661517, 0.28622705287677541, 0.062585252679246528, 0.13342518208055143, -0.15090811677465776], [0.058938775412302968, -0.93842378130725024, -0.058452716729163079, 0.38824701438887677, -0.21660885254575923], [-0.036224211793492556, -0.88890143857454573, -0.70765257282460903, -0.73663131997041442, 0.3508463422507162], [-0.002706809358857587, -0.12405575875958363, 0.45748308337858767, 0.37164796408621958, -0.73409411753887466]]], [[[-0.78318500180645745, -0.61447471560798683, 0.48128973816662457, -0.12027201673192667, -0.36414344139682542], [-0.65875389508748605, 0.93343609877458888, 0.14849504694511606, 0.98517096077227295, -0.72711467278624276], [0.42806894651730887, 0.83037007107459648, -0.23507194561828215, -0.41592854077681984, 0.14720643612891471], [-0.34961038737412542, 0.99308726643053236, 0.43857603578198656, 0.36766600576912611, 0.41914109616228767]], [[0.011256521932447638, 0.61885749256573797, -0.62401938336487106, -0.9598719193551668, 0.59938460046867781], [0.26546804133755586, -0.61106721903584638, 0.1367413866428433, -0.2334805835046565, -0.51560748116746646], [-0.37689536238314236, 0.58480388090117064, -0.037792704440944958, 0.14745618388985116, 0.48940235742429139], [-0.34353004888437089, -0.32838784225202056, -0.92334943693126403, -0.69529854123459089, 0.64967008094341439]], [[-0.40045341631111664, 0.13396325611790583, -0.6353862943650519, 0.83614067132619563, 0.68064056681912377], [0.91565402513512173, -0.68409755407926776, -0.30239605853942031, -0.019087163356744652, -0.63377630695569809], [0.39700490215997464, 0.26503974267776509, 0.31073900169113267, 0.54283993131963815, -0.82343577033017512], [0.13385251309770041, -0.94521960740420918, -0.4156731201840973, -0.68314085122263801, -0.10649689685252217]]]]))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       ref=Data(numarray.array([[[[-0.65059656677451205, 0.62822224255182246, -0.45809912687826232, -0.55777299880551279, 0.91522503675441513], [-0.024259183994010163, 1.4688466603084065, -1.2672724152375159, 0.12912594845816122, -1.0732951039536072], [0.79098246468957867, 0.42179874654856897, -1.6245154927206507, 0.01218493345943554, -0.36643899754913067], [0.3183348960332687, -0.32237283567343444, 0.9607182310507788, 1.625340872552038, 1.1363282950195326]], [[0.41900088011270559, -0.03249869559634605, 0.45722129828225633, 1.1849651741687919, -0.30128319995535235], [0.52454654445728632, -2.0759130103850807, 1.4553887151357587, -0.5600470615534836, 1.5541531822073023], [-1.4461715947347209, -0.54378093313458753, 1.7964234088711917, -0.31939378820658404, -0.26584714252120684], [-0.57662377872733206, 0.81374900940719708, -0.20173302407756383, -1.4077350639360784, -1.1617609594605325]], [[0.5847024057492205, 0.81825086527871105, 1.0242272003058863, 1.194718844278607, -0.64995299517166549], [-0.060639319139596248, -1.9797906018618292, 0.60374022346612333, -1.0711981986879238, 1.0408656094750397], [-0.78499705156477995, 0.088061486802727129, 0.78694106271061814, -0.25453833745847543, -0.42252585065427833], [-0.32554470777129452, -0.45229381812422864, 0.4663353716885521, -1.1064402534934483, -1.2561390167015882]], [[-1.4931801437893317, -0.85251511709107808, -1.2811284374560357, 0.72223992196967468, -0.77172599448280677], [0.35648633682998843, -0.82938247712856483, 1.1611002040315803, 0.39399018988349538, 0.77686143537265928], [-0.36436071715450291, 0.22154814114672886, -0.119240485952606, -0.96212307603651037, -0.18954577243762574], [0.34764125684193814, -0.26072362554896794, -0.95993526119962702, 1.3626912932656146, 0.43147554189828419]], [[1.7312815276217748, 0.29831351414818114, 1.6106070113586064, -0.3908836200137657, 0.10482259722836107], [-0.042244653827850254, -0.52820766579378597, -0.16301181414197408, -0.88545422594948242, 0.80248865338074937], [-0.6239800982072452, -0.63565425537905473, 1.3792131750576477, 1.2844135890947159, 0.45046429134745941], [-0.60648212837215454, 0.058741885976065222, -0.47220111890514754, -1.8536535700856487, -1.5590825214367934]]], [[[-0.72709660956189626, -0.79455856386960044, -0.73724100540062276, 0.45717084963401666, -0.68356645053793863], [-0.19023427139087137, 0.030619373912106396, 0.35134209217623635, 0.2393790566011314, 0.27324906843720276], [-0.30452762684676721, 0.13310598547557517, -0.063103683191163801, -0.9527825255266188, -0.21939631118209202], [0.24233780416863535, -0.62312027024145022, -0.70375678934789498, 0.42515820697348689, 0.14148155424191236]], [[0.66274372527689684, 0.57718201643928779, 0.52768318612809006, 1.325662183011276, 0.0068001624099237601], [-0.32162729631870951, -0.68219325694349298, 0.21682467133420352, -0.32500100345170346, -0.1558332010199987], [-0.72869869582014224, -0.092472839824858738, 0.80051821137612345, -1.2614301564378734, -0.83904017607882719], [-0.41555908441031952, 0.56346885683760828, 1.5893740710562292, -1.9732334306090589, -0.47982971407466579]], [[0.40130897639788998, 0.62572718121641813, 0.40416797768188434, 0.48714419884920829, 0.78024032766733475], [-0.26547525110129094, 0.79271223777057986, -1.0559111947305093, -0.65216926349043314, -0.22421825471885315], [-0.70956216521061832, -0.13892152863949345, -0.050285291343271421, -0.77289425142042367, -1.004371261048485], [-0.31259900977621746, -0.26144073986764221, 1.2172244873739388, -0.60426379809270547, -0.18488404886167836]], [[-0.75194776818852027, -0.26899569655350192, -1.0016408688269678, -1.057525726038826, 1.062700373483993], [0.5736903494289014, 1.2759567945311259, -0.22553683729598564, 0.98846738702492365, -0.85826616856729476], [0.80987887988143803, -0.084961810457874598, -0.79132848139002565, 0.57507022163912846, 0.3786550134078781], [0.2228164529237151, 1.1457223744341842, 0.046441982577314578, 1.4659349820255105, 1.4112974415140633]], [[-1.1641387157003311, 0.12033524785116773, -0.90587064242995596, 0.39589072757764165, -0.4342696716170239], [0.16777740908177982, -0.64321367306335531, 0.70226993101042523, 0.62437372948045333, -0.43855479192446811], [0.78673357749008321, 0.6379730508839293, -0.9059569610669862, -0.51606509316375937, 0.0020676475902739466], [0.46947151671965237, 0.18946395745469799, 0.43186278166718867, 1.2446335027767679, 0.96842757405087998]]], [[[1.1471668074536943, 0.20330854723695541, 1.0300790590460269, -0.804946579902864, -1.2479109130596882], [-1.4294951769703101, 0.67746684986448935, -0.94782563373379669, 0.17436475288871151, -1.463608940189365], [1.6943489400547858, 0.69690221916889961, -0.77677811650692474, 0.62162820526260221, 0.90537457302212065], [0.43561964758208338, -1.4061265667432497, 0.054793054623489434, -1.1434983672128001, -0.30964201130942232]], [[0.92898653966009381, 0.083395882878392932, 0.85236854300820375, 0.69878406987365405, -0.84348387163299454], [-0.63924324403074495, -0.73768467228403034, 0.19111726484687136, -0.42551809094006854, 0.18162196309150208], [-0.37764579020986255, 0.00092171312615552115, 0.8047543149619778, -0.4753252848226166, -0.10324337541074877], [-0.20653780718649764, -0.46269382959522543, 0.1926772661195145, -1.8533775022878165, -1.0092863024056382]], [[-0.94761487389785914, -0.25549075311806435, -1.1977751813556066, 0.22489615562170001, -0.28396337853314835], [-0.55737215666624995, 1.0186829585012822, -0.12860505536333822, 1.2553698507020248, -1.7923454119481594], [1.1901047165419705, 0.68985792529585099, -1.2675954539260288, -1.363694964132397, -0.19953935776892262], [0.58804317446645071, 0.22143432564411758, 1.0919073042099749, 0.48425180404674978, 1.5600794838882659]], [[-0.83251101271282968, 0.15261956475532742, -0.43243221952269084, 0.64231703830541254, -0.25012268477458743], [0.4243365870643091, -1.0825893245841169, 0.70644721647878195, -0.17770748037403386, 0.68850706367094239], [-0.2817322106286243, 0.22121982514535452, -0.15658471370597316, -0.3482632152285482, -0.28812179305056712], [0.10793935930423371, -0.1105632909154137, -0.073419631070122254, 0.97369428215111131, 0.098966689958354281]], [[0.36049677588808055, -0.2780986828837223, 0.030944942582675328, 0.42663920373415171, -0.90699557201696845], [-1.2098391697418758, 0.7628012702481719, -0.46288350049321919, 0.4358045574668814, -1.2537864364506417], [0.54002857149913508, 0.43699650459896849, -0.31178776752965209, -1.263670633625769, -0.18246034051803323], [0.25894480337407755, -0.71008207592861783, 0.66633123768488223, -1.3357512966089846, 0.12202444390686076]]], [[[-1.0993723107319824, -0.39647519438876222, -1.3014895601435186, -0.10592785551966077, -0.007302715798295889], [-0.42101497623894168, 1.4725652767195745, -0.46169993400718762, 1.1095591530943878, -1.5608648234137841], [1.024654976567402, 0.57180437659662964, -1.4180357552664979, -1.1130801815653788, -0.21870560216370233], [0.59411434979163191, -0.061107914841919797, 0.65472169413552839, 1.073952551022469, 1.5822608404165792]], [[0.049190378292509718, 0.96232920142334111, 0.41689193988843298, 0.25835706311641843, 0.64757137410552024], [0.39442753584453061, -0.51256842433233385, -0.2165073489391599, -0.67543852970958784, 0.35845346342981771], [-0.30852442945678438, 0.003996304342906154, -0.13290909643943449, 0.26792746919197474, -0.43681961939960912], [-0.21815913980280463, 0.12219964460326577, 0.79507930283844264, 0.35881573158399105, -0.16619381428799618]], [[0.046097263022764123, 1.0980023959170888, 0.5990978965934497, -0.51467763646289477, 0.22660712844187336], [0.22446185120940387, -0.46741399337509909, -0.42757104648859051, -0.55218921528201681, 0.017637208954356831], [0.72749721344097595, 0.39950825116971034, -0.86267549184309444, 1.227432578199207, 0.27658591179565678], [0.13011078757601574, -0.47564824777383374, 0.31865171937390319, 1.084837975521818, -0.027735854751685829]], [[-0.017702682630575894, 0.77811893885412164, 0.11234218185859157, -0.17827379031675783, 1.1629560163837893], [0.059010049124651964, 1.11596047470589, -1.2342817141566669, -0.41707487635438578, -0.47233447725585842], [-0.090032746912934447, 0.002449260393818431, -0.73609152268447176, -0.06347022028987423, -0.67738142275006674], [-0.1101874925890135, -0.11344981273534943, 1.091389259905841, 0.59462814028929867, 0.3917497941861674]], [[0.71724599313171677, -0.32730986859510114, 0.77919744073714281, -0.80209636398233819, -0.58754752366615548], [-0.21119554685517783, -0.10093030106557022, -0.19526901337357228, -0.45189570261743628, 0.65239563737446149], [0.069148375727866071, -0.14802514641810391, 0.35482705513186807, 1.2417550375695097, 0.78409547165332216], [-0.0066239331137739124, -0.9809931223401156, -1.505394746274562, -0.20652362077519423, -0.94883909525855759]]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[[1.182478777359629, 0.73701201224005319, -1.7228327790021096, -0.78235831446060322, -0.084164643522646992], [0.23290144640090404, -0.94012144003427556, -0.78028627631134306, -1.1130385539713825, 1.0633044877691626], [-0.26828295830776017, 0.4348735763696247, 0.42628858623880478, 1.0612273768166958, -0.036136922151299017], [0.10651688083046412, -1.7609230967567664, -0.63502715790023723, -0.74124397819572097, 0.96546054592926012]], [[-1.2584457586446638, -0.71303174627656229, 1.0465817818909475, 1.491559881091244, 0.06834510025483187], [0.35289373723028261, 0.33014198093922037, 0.17350470434825283, 0.97709469321913944, -0.7120733391436509], [0.58862435967405402, -0.81081030534790499, -0.059059822498073511, -0.48963428699422296, -0.5359031153187479], [0.14799474247881411, 0.71420456933385246, 0.81609429765744057, 0.62009524402158189, -1.3423799210508744]], [[-1.1705609526823157, 0.34021290570639801, -0.79493333122660237, 0.88265265532696646, 0.47248719118245991], [1.6928393388444762, -1.7776559837927088, -0.70492428422205577, 0.15492520050907144, 0.24780466337964979], [0.092493094121191721, -1.9955757234098055, 0.65583878864387768, 0.61283440670732803, -0.044380785174831017], [0.12841024665262341, -1.4414418750467095, 0.20013899631604204, 0.07544673922042866, -1.8627737332482184]], [[-0.5205956922545284, -0.64103052538537564, 0.045428258266913601, -0.27537497640165204, -1.1717261334506315], [-0.20087773958824043, 0.54555381661338054, -0.61920424017387821, 0.41527413589405021, 1.6370445143244405], [0.01053572101627942, -1.4373209534516425, 0.82553058799270174, 0.4565386454016469, 0.77669734706713633], [-0.10559907795941864, 0.19045587266511943, 1.2189138842394629, 1.3002537871862327, -0.9769734623390629]], [[-1.0819837778942947, -0.02686738742536951, 0.43532912723795775, 0.15480550069965887, 1.2900517291195559], [0.52559843582011978, 0.21497444001558502, 0.7442248689602331, 0.62065770405605258, -2.1182718117824963], [0.18674411767502008, 1.1990184252243214, -0.07952797607434281, -0.22380481039942657, -0.2444225961951873], [-0.40167504323751552, 0.73016014618312508, -0.99113931032605995, -0.83404561818145928, 0.37231553829385827]]], [[[-0.24345586057497662, -0.29887373673828832, 0.36232982725410456, -0.37075651751356925, 0.0048387927038891776], [0.30023697840713365, 0.65296793431751787, 0.11638868372806327, -0.13155601535664269, 0.79948317568371796], [-0.36140974925065106, -0.82440459920148745, 0.98741521722292935, 0.57883098900998553, 0.55411436308950979], [-0.13346060975085786, 0.47695899486264182, -0.010714332804649701, 0.39759124232336696, -0.62267781630724672]], [[0.31272477615047717, 0.21948530494228241, 0.89939777280060396, 1.9819980579117733, 0.9213121242818636], [0.93280043742373175, -0.71222019737021358, 0.49487938549946298, -0.54121341540940215, -0.48770076500924214], [0.040333196051934556, -1.1647688007428216, -0.39011996592198256, -0.48527559576884227, -1.2466759815660753], [0.79256894160987434, -0.2269367636499702, -0.1314879076562207, -0.28678136399240822, -1.4020196234691917]], [[0.42891839610820465, 0.5588030369095226, -0.58827285059247869, 0.43138048563029341, 1.7011532077161715], [1.6666283597628089, -0.53678722083984431, 0.2043131199078517, -1.25180373338538, -0.23142558648711137], [-0.35541127760593633, 0.14500279227531201, 1.2190505071116882, 1.3693728021858373, -0.80704310935234413], [0.23899081044150852, -1.0581460191310454, -1.7150168651895203, -1.4585685396445289, -0.040532937660146456]], [[1.2028090140435952, -0.35630576115198609, 0.29616982778527035, -0.35812907148227113, -1.2514131795360353], [-2.044096959536589, 1.1370448416054115, 0.043767602402647265, 0.17185192496668991, -0.0024947019914756119], [0.39428802409887242, 1.8230244905791311, -1.2923783662552073, -0.95189997617969779, -0.2900470390787242], [0.091522666969651015, 0.72852680570546602, 0.68629052850527494, 0.29415659681325312, 1.7844056521795186]], [[0.51058595075715485, 0.057099956463172299, -0.50625737853158759, 0.23301985608767101, -1.773496636068286], [-0.76700224708606513, -0.95566064150222463, -1.0413704201953291, 0.10841818597017236, 1.7365787700653965], [0.179099839507602, -1.5964733910933875, -0.79491421280776686, -0.56684744404384046, 0.29347562312043252], [0.4067326321013563, -0.90566293489264915, 1.795244132938479, 1.2936797082707621, -0.79412793634731249]]], [[[0.37512099325970916, 1.0234776836213584, -0.049761836477284827, -0.79848937377174989, 0.49627916761878038], [0.11855116461975379, -1.3067077408513241, 0.45292091521495415, -0.4267190290612668, -0.3489964336875373], [-0.75910493670567469, -0.56343385715144478, -0.89917263386226309, -0.80945027809656878, 0.78188969031227451], [-0.093160428763678998, -0.14910976375885598, -0.60208310986144964, -0.3054107123260757, -0.14681517280129669]], [[-0.51811122678762245, 0.20338255505089431, 0.72033617243525261, 0.72402413320856762, 0.98452842839315624], [0.9715383178381678, -0.49092418967017382, 0.57098546784970727, -0.075569306573225636, -0.61820948857247426], [-0.26062363593528332, -1.0704099862104905, 0.079955315369506397, -0.24498188471112439, -0.12501479474645297], [0.14088264802684802, 0.25141422977535932, -0.40311748769643196, -0.1618708689758114, -1.2360360507992569]], [[1.7899087305406631, 0.25394974259168029, 0.72943574958998747, 0.47308716043157029, -0.92754645241120925], [-1.0274136981939679, -0.17401310162404715, 0.15235332195146045, -0.8308315130153503, 1.2056353331850758], [-0.31461959171846188, -0.97090508424842037, -1.2203162663945015, -1.1010664571063502, -0.24584815251658765], [0.75975236372892163, 0.07984972331665019, 0.8497368078612344, 0.66697562338416683, -0.33120938939889194]], [[-0.48579086760144263, -0.10432549402804236, -0.9034836388357228, 0.062967236615095096, -0.84161175419612144], [0.34328527458672575, -0.71903273331247353, -1.0523824504271877, 0.23314557466524788, 1.2893318856957841], [0.19220150614902159, -1.3173714931085969, 0.5630549906793173, 0.61236630184699448, 0.33818012300914524], [0.027038084786639625, -1.0488505541692572, 0.93677904995852534, 0.71537045910865715, -0.87913104378885931]], [[0.8271835170859001, 0.48316190751679539, 1.0918581240562772, 0.41281268916345992, 0.84604998357794303], [0.43004859216653424, -0.24386482973726364, 0.93704429574032733, -0.94175556237127089, 0.021818383696371457], [-0.74620641568461432, -1.0795452925483682, -0.27528085260192425, -0.5342831081602859, -0.096867105081235638], [0.43007029192979357, 0.47200491905844189, -0.60870822563804827, -0.20812210055268249, -0.8744653523788174]]], [[[1.6207941999340507, 0.21123976674687642, 0.26976808359389165, -0.20211579273162472, -0.66287553516371867], [-0.80691305804294489, 0.19180335251369629, 0.080328727216194551, -0.92168162175005952, 1.2306805463184392], [-0.41412198117311694, -0.34152178435412217, -0.46675920389488956, -0.33797615718587926, 0.0044687907812067662], [0.44416957076629976, 0.0081761653477622209, 0.28177941519247218, 0.29884464735877392, 0.2362767505505933]], [[-0.15866157148707402, 0.38557246447411408, -1.4382664747031015, 0.2645035912599259, 0.091306543956205799], [0.8381157400103596, -1.2732563404948136, -0.90891667731373582, -0.21363842875784866, 0.34425136144784541], [0.24585374426061496, -0.25302116572646771, 0.43510784312021855, 0.84880858058134989, -0.33923599003462757], [0.097862380304470559, -1.7079884328622836, -0.09720050829596788, -0.41663987533791946, -0.12987411334006066]], [[-0.24358731961718197, 0.72640101788909162, -2.310038913088786, -0.74103826107225002, -0.61586233577934046], [0.40257823602763726, -2.007194627196943, -1.4594605238012293, 0.047815888969561626, 0.76294139113235793], [0.15512762611726341, -0.32029903259589432, 0.039085094788766372, 0.68835979733231989, 0.49342958285634053], [-0.20540488845195282, -2.2391991476403361, 0.27674175417271923, -0.12426016689761904, 0.22388254976254712]], [[0.70823073354903121, 0.62037360589345369, -1.3647807850079199, -0.20474339168821998, 0.85835482902261817], [0.94815257716201584, -0.7091614003959994, -0.37012995875230803, -1.0851292263521159, 0.1931599397351883], [-0.17452021148267063, 0.71134389664998254, 0.85553139277599555, 1.3339678158037578, -0.53403845293388796], [0.10268496806957612, -1.5178854849613734, -1.277222977145001, -1.2709569178765574, 0.76243508579895103]], [[-1.148881396848932, -0.012269177672930495, -0.30213574074980065, -1.31062174835718, 0.5110813234522017], [0.29488814861468371, 0.2930070655993906, 0.18981328762241739, 0.58497101946947794, -0.73077949970658984], [-0.21734801138930501, 0.66624133989557721, 0.65563809847377363, 0.44660819345114128, 1.0061750633080804], [-0.81547970834212957, 0.50433635682632971, -0.71833785449056931, -0.28081031066030587, 0.46979046459671908]]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5, 4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank3_taggedData_rank0_offset0(self):  
       arg0=numarray.array([[[-0.65590950908765722, -0.46988154727868836], [-0.56002222895730047, 0.18275989657489777]], [[0.28710912532944843, 0.31189706769489933], [-0.78555221112349671, -0.16965858921661914]], [[-0.89400426039850012, 0.18690490149727879], [-0.89830085160412732, -0.27093063385147098]], [[0.28913151430735495, -0.22822318441708522], [-0.47244075715807643, -0.33915573165506507]], [[-0.34901448804707647, 0.43942461967929081], [-0.73123884683499285, 0.026663240237298158]], [[-0.83509468944898413, 0.91738526705431234], [-0.66522592342333553, -0.079832586935975058]]])  
       arg1=Data(-0.322663700561,self.functionspace)  
       arg1.setTaggedValue(1,-0.843936317446)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[[0.21163818943517851, 0.1516137188701312], [0.18069884479161669, -0.058969984542948134]], [[-0.092639692843546922, -0.10063786205646877], [0.25346918342475128, 0.054742668228542762]], [[0.2884627229772157, -0.060307427170045926], [0.28984907699541995, 0.087419480913772898]], [[-0.093292244355131421, 0.073639337237764821], [0.15243948300032609, 0.10943324344219656]], [[0.11261430626256945, -0.14178637390320015], [0.23594423231352099, -0.0086032597639056994]], [[0.26945474281620152, -0.29600692510761456], [0.21464425816068528, 0.025759077926095865]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[0.55354585567745385, 0.39655010264634999], [0.47262309759429788, -0.15423771409228754]], [[-0.24230181793576552, -0.26322126273273549], [0.66295604021736931, 0.14318104500660964]], [[0.75448266330202129, -0.15773583428227858], [0.75810871266167057, 0.22864820141600473]], [[-0.24400858544222395, 0.19260583381282476], [0.39870991280753298, 0.28622583921378419]], [[0.29454600177785856, -0.37084639532738556], [0.61711901957160953, -0.022502076777051658]], [[0.70476673693254477, -0.77421474395731515], [0.56140831608371011, 0.067373619430959111]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank4_taggedData_rank1_offset1(self):  
       arg0=numarray.array([[[[0.68965020543072919, -0.094139047419195876, -0.46166224871606376], [0.15793774243892189, -0.82152500574941345, 0.33184214763585174]], [[-0.76600140804105554, 0.84953547557526665, 0.36112585321477431], [0.62880894911077245, 0.73264056989712412, -0.092343222566488858]]], [[[0.43177254075985649, -0.89710320727681503, 0.87685335462556946], [0.9377044313675158, -0.9141659776883122, -0.13428782570132602]], [[-0.030314881784600622, -0.94799535670875668, 0.59929003441477247], [0.11006622394486132, -0.89565878319483949, -0.73000744027758557]]], [[[-0.28707232956824313, 0.43039543826290338, -0.71379819559912905], [-0.33793069144070009, -0.32045614125497779, 0.81065065001309544]], [[0.66944057472219187, 0.75139552448607771, -0.10979925865985596], [-0.38500613248348636, 0.46265740756604634, 0.22267963158655246]]], [[[0.7896479076065166, -0.14678484206764142, -0.05607593286453838], [-0.89028632652983419, 0.36552158111930066, 0.04787257209062723]], [[0.25566692772403599, -0.49270585612275819, -0.24530870374434466], [0.31094196313533051, 0.067242185088332684, 0.28356651675093758]]], [[[-0.29133422634503514, 0.021108073872341038, -0.55482430118110426], [0.60553005605455823, -0.71864499164781748, -0.70957499933337909]], [[-0.54387465680309544, -0.29800894824108171, -0.82287899226862593], [0.85871706099972411, 0.79871348615582605, -0.46444526770665862]]], [[[0.16660006897236546, -0.034708852612158392, -0.20574623779807899], [-0.16213598027542608, 0.35573079816432096, -0.2473294696115611]], [[0.42069947492940596, 0.35990759267564787, 0.84817564311353077], [0.64841022050128028, -0.21764105808290246, 0.42544198057290061]]]])  
       arg1=Data(numarray.array([-0.27228979651819207, 0.38945841128763004, -0.28307131109442474]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([-0.98313351326312581, 0.48992129032425114, -0.38851144512181368]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=Data(numarray.array([[[-0.093764619926616916, -0.45688965113113456], [0.43720873543857319, 0.14025448867738766]], [[-0.71516367586411445, -0.57334394724966709], [-0.5305921483068532, -0.17214759325228501]], [[0.44784378090053401, -0.26226120278964238], [0.14143648944889745, 0.22198484512608166]], [[-0.25630617163915603, 0.37121998522064648], [-0.19206407929230468, -0.13874783497424256]], [[0.24460289648832159, -0.24390166709459107], [0.26496286331438607, 0.20871692244726262]], [[-0.00064029619010236294, 0.25270220181186365], [-0.21447732650452894, -0.38174804694791542]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[-0.54477788556239348, -0.68668095078154545], [1.0289856447186452, -0.22339053911616216]], [[-1.2046675797563555, -1.3175856701468476], [-0.66747056946468675, -0.26339585461966109]], [[0.77040908489005067, -0.13971435382596173], [-0.24736653059218355, 0.51866456028228414]], [[-0.82645619915813551, 1.0357480865100985], [-0.39743657466782345, -0.38292292376653847]], [[0.51231732730875723, -0.67171836457517387], [0.70839838011382583, -0.27248447720609992]], [[-0.10085994880079562, 0.42977173721927969], [-0.56680330543731239, -0.9093898848085169]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank3_taggedData_rank1_offset0(self):  
       arg0=numarray.array([[[0.62589245777823987, 0.8301479093180546], [0.67651428666337998, -0.28985020239866821]], [[0.53549468750700191, -0.02054906142579993], [-0.39407483689239431, 0.53006101674119188]], [[0.42853734777667807, 0.61236009553921966], [-0.0034079816261691764, 0.94706672745249088]], [[-0.72146223543335575, 0.33150359968843546], [-0.94844082018950737, 0.38989527543494029]], [[-0.79653750960766545, 0.87584891107449292], [-0.37533385704590394, -0.39611594341595624]], [[-0.35376180070975582, 0.30775706129022407], [-0.088232531469656594, 0.37511453253578764]]])  
       arg1=Data(numarray.array([0.20183985169116592, -0.99186803419920611]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([0.35804070734088111, 0.90962704264589256]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[[[0.12633004085257926, -0.62080272171661244], [0.16755693089848758, -0.82339717490987963]], [[0.13654754328709151, -0.67101289562048494], [-0.058503321864801616, 0.28749315046540908]]], [[[0.1080841683078205, -0.53114006302168815], [-0.0041476195105761161, 0.020381957161046911]], [[-0.079540006633581267, 0.39087023379583191], [0.10698743700631079, -0.52575057868071851]]], [[[0.086495914719370293, -0.42505249672019518], [0.12359867086522429, -0.60738040418452388]], [[-0.00068786650599220503, 0.0033802680361354346], [0.19115580781064861, -0.93936521321377742]]], [[[-0.14561983060064554, 0.71559532920824742], [0.066910637396201442, -0.32880782375292905]], [[-0.19143315448489792, 0.94072813187564941], [0.078696404568874639, -0.38672466038921222]]], [[[-0.16077301280566184, 0.79006009382048636], [0.17678121431514482, -0.86872653768297259]], [[-0.075757330040818527, 0.3722816549565266], [-0.079951983271582872, 0.39289474211094849]]], [[[-0.071403229389256903, 0.35088502184475684], [0.062117639607727884, -0.30525439139285915]], [[-0.017808841066171616, 0.087515027541227877], [0.075713061614224406, -0.37206411398582584]]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[[0.22409497830224356, 0.56932870538318947], [0.29722674464978988, 0.7551249877116526]], [[0.24221965372316817, 0.61537568988530589], [-0.10377817148971673, -0.26365558241821396]]], [[[0.19172889669229107, 0.48710044894958054], [-0.0073574004880846222, -0.01869198197389918]], [[-0.14109483334619521, -0.35846112846359113], [0.18978342136784296, 0.4821578350801653]]], [[[0.15343381511994697, 0.38980916032141405], [0.21924984175419174, 0.55701930273969658]], [[-0.0012201961520383383, -0.0030999922480038078], [0.3390884409961033, 0.8614775064809328]]], [[[-0.25831284909429197, -0.65626155959793808], [0.11869178331849572, 0.30154463901105938]], [[-0.33958042213161665, -0.86272741839362632], [0.1395983802055937, 0.35465928633549043]]], [[[-0.28519285336347244, -0.7245520592209449], [0.31358956364485191, 0.79669585478531635]], [[-0.13438479966569661, -0.34141382638954182], [-0.14182563256964942, -0.36031777415434402]]], [[[-0.1266611253563048, -0.32179130058070082], [0.11018955591350273, 0.27994414551481722]], [[-0.031590837977872398, -0.080258696665904378], [0.13430627256295738, 0.34121432288402498]]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(6, 2, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank4_taggedData_rank2_offset1(self):  
       arg0=numarray.array([[[[0.6809077681853386, -0.78537506508661004, -0.98746396631714961], [0.64118138172840511, 0.50773530821417356, 0.58062405787449323]], [[-0.46881572060841714, -0.22729222687793715, -0.42362144226351983], [0.1715374591413128, -0.51403200198225818, -0.93489892518219264]]], [[[0.69692267629515658, -0.89745882802967336, -0.44171402140210225], [-0.15863386560102288, -0.72221244799160256, 0.77027516144143338]], [[0.3205087143828782, -0.68331579974575707, 0.55924865682280367], [0.24532277173791583, 0.028573542338105939, 0.32923664829465049]]], [[[-0.99465676613247744, -0.22803937585115031, -0.061528796537834385], [-0.27749729416656943, -0.21946188718968873, -0.42001900758175159]], [[-0.0093003374032845088, 0.91334655352400862, 0.28136441403867929], [0.93927325016175067, 0.61343305369157686, -0.8527350550779571]]], [[[0.716871273478767, 0.16418580511913805, -0.10984383791417418], [-0.15212146625373291, 0.16158669270434145, -0.57126567841025988]], [[0.66122223136475733, -0.43713955417871864, -0.91316383492301778], [-0.86258625561646363, 0.12885297969100118, -0.89410138655347571]]], [[[0.49932232623255812, -0.45798749151718998, 0.23836904068094422], [0.47983871977895487, -0.20110252712904919, 0.05283684026889035]], [[-0.58529188572426105, 0.6386139162688742, -0.98910387220867357], [-0.77606364027197117, -0.27301767017896905, 0.77637893135663938]]], [[[0.54693529643968342, 0.78019293949918334, 0.095065467419950922], [-0.76720278110163731, -0.26547621238494434, 0.29951860247754936]], [[0.32164845805958131, -0.62662174363575662, -0.64404855380835602], [0.21622141809489204, 0.74226726622085692, -0.48364764667492821]]]])  
       arg1=Data(numarray.array([[-0.042209530010759222, -0.17963061651045953], [0.75137285674644483, -0.43173041879407825], [0.18106341740506693, -0.32861523401628157]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[0.94593827152453103, 0.12443000210954058], [-0.36500923568442434, -0.52469437798074536], [-0.0096993146174519929, -0.22328769328810893]]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=Data(numarray.array([[[[-0.79764390345307434, 0.54125412594833089], [0.45956434037586813, -0.52518249480065693]], [[-0.22769506461929617, 0.32155108460507703], [-0.56274620363991001, 0.49833190102948338]]], [[[-0.78372123228003054, 0.40742558218399977], [-0.39648631624165892, 0.087172429273054408]], [[-0.42569399372987471, 0.053657410196158245], [0.070727137913173477, -0.16459572635748013]]], [[[-0.14049921683344285, 0.29734164322745482], [-0.22923475164649079, 0.2826200269646319]], [[0.73760117433360561, -0.48510949747871546], [0.26687154032041671, -0.15333821249240348]]], [[[0.073217257224199986, -0.16355967671634469], [0.02439751452540298, 0.14529038685109513]], [[-0.52170523984058104, 0.37003023303499438], [-0.028663060661950318, 0.39313248638152565]]], [[[-0.32203561746030523, 0.029701856130969553], [-0.16178992828674624, -0.016734637431153693]], [[0.32545153076982392, 0.15446188918499448], [-0.031806962757584822, 0.002144879024882862]]], [[[0.5803427943641597, -0.46631930982403103], [-0.11285648954367922, 0.15400088926525446]], [[-0.60101683198574929, 0.42439792321204012], [0.461021976126813, -0.20036535974431202]]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[[0.94034359322044092, 0.71729578753299372], [0.41555827577284066, -0.31626986759161135]], [[-0.3563981327589143, 0.15551366716768972], [0.3589581545735816, 0.49980553240656111]]], [[[0.9911109159427598, 0.65623899654984097], [0.10608522787847649, 0.18720903494214211]], [[0.54717370841626756, 0.2735395159623662], [0.2184372219783374, -0.057981355762552693]]], [[[-0.85705063667450021, 0.0096244580089301507], [-0.17831579859184399, 0.17440650483102627]], [[-0.34490651447857562, -0.54321025376890453], [0.67285673026024129, -0.014585858606203872]]], [[[0.61925204804604372, 0.027579702370746886], [-0.19733726650556571, 0.02384449200156491]], [[0.79389245252117346, 0.51553879640825917], [-0.85431370866324563, 0.024701792533272621]]], [[[0.63718574612112555, 0.24920926684608438], [0.5267896077826687, 0.15342588211239427]], [[-0.77715634254818766, -0.1870502800941003], [-0.64198467086912525, -0.12667062446398375]]], [[[0.23166733053916871, -0.36253463793727797], [-0.63173032844828081, -0.023047985389009595]], [[0.53922913971544195, 0.51261574026646795], [-0.061711242328486612, -0.25456646264527849]]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(6, 2, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank4_taggedData_rank0_offset0(self):  
       arg0=numarray.array([[[[0.16992284518875045, 0.42497736497777039, -0.074963218142345633, 0.97051998593000821], [0.81693189585072234, -0.63930099715264865, -0.9931787666195806, 0.40602348957161172], [-0.42831467221506303, -0.79207734334941238, 0.1485277136291494, 0.051447066660140983]], [[-0.67343740545494946, -0.67790610273855445, -0.67654514153315626, 0.28771164156543128], [0.064054802746138062, 0.35149736436897916, 0.10847423144672375, 0.42368673297321013], [-0.95771239186921786, 0.14722577091748601, -0.0009995572991936541, 0.063408872479891576]]], [[[0.12784763234468977, 0.95493904501362792, 0.67978190938023864, 0.35617240624013236], [-0.99685884977636419, -0.40141336064735023, 0.10779272763182468, 0.91497666469124583], [0.13094617326647007, 0.8381927121985524, 0.8706382906307859, 0.93951718023900344]], [[-0.12540967012050319, 0.0054633136930497539, 0.88220321896824005, 0.89557268474210838], [-0.023691013748486256, -0.64494980770820209, 0.69053546080581119, -0.40368092749650741], [0.20600107892128561, 0.37543465009484334, -0.018722743929924235, 0.69517897873875367]]], [[[0.075487907440475732, 0.30861398900694503, -0.4005243908970173, -0.86375140685204066], [0.67716402915219165, -0.89838919173531528, 0.77418695015852435, 0.22798804476379453], [-0.69654217111037253, -0.1531317258266347, 0.11155192386356028, 0.12876961872860271]], [[-0.35332410430278216, 0.43728334948685199, -0.72270457504499075, -0.88541837356764641], [-0.25178433700068892, 0.64293972365899466, 0.60059338858797284, -0.34182315985696765], [-0.21217506051739021, -0.05910483575713954, -0.068049735526407584, 0.84531835454571769]]]])  
       arg1=Data(-0.508619867477,self.functionspace)  
       arg1.setTaggedValue(1,-0.387813583798)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[[[-0.086426135001248419, -0.21615193105579672, 0.038127782077223123, -0.49362574662767994], [-0.41550779260547965, 0.32516118844981218, 0.50515045265920477, -0.20651161345853722], [0.21784935182055915, 0.40286627340605863, -0.075544146022747213, -0.026167000226770792]], [[0.3425236439166755, 0.3447965121368583, 0.34410430022892707, -0.1463358570046529], [-0.032579545284017949, -0.17877854288392989, -0.055172149223122094, -0.21549548997667548], [0.48711154983377913, -0.074881952093278081, 0.00050839470105172894, -0.032251012317600157]]], [[[-0.065025845820427933, -0.48570097052362071, -0.34575058466236452, -0.18115636206088612], [0.50702221606671316, 0.20416681029602662, -0.054825522843102936, -0.46537530993997789], [-0.066601825293436473, -0.42632146619876971, -0.44282393200119291, -0.47785710370570017]], [[0.063785849797047781, -0.0027787498865452544, -0.44870608431957199, -0.45550606022971768], [0.01204972027315524, 0.32803428572598148, -0.35122005456334832, 0.20532013984634059], [-0.10477624146110134, -0.19095352197758242, 0.009522759536447328, -0.35358184003902948]]], [[[-0.038394649478504753, -0.1569672061903177, 0.20371466261942106, 0.43932112608631674], [-0.34441907876770417, 0.4569385916433511, -0.39376686399219446, -0.11595924911414363], [0.3542751867624282, 0.077885838096495519, -0.056737524732309023, -0.065494786412829506]], [[0.17970765910697603, -0.2224109992659821, 0.36758190518453826, 0.45034137582584072], [0.12806251611812119, -0.32701191704325561, -0.30547372971128806, 0.1738580502670834], [0.10791645116231866, 0.03006189373005708, 0.034611447465298893, -0.42994570946507477]]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[[-0.065898387561759586, -0.16481199494495358, 0.029071754280795579, -0.37638083389085847], [-0.31681728624855898, 0.2479296108312439, 0.38516821683456881, -0.15746142459683515], [0.16610624802488222, 0.30717835316933662, -0.057601064915806362, -0.019951871297351022]], [[0.26116817367294243, 0.26290119518140459, 0.26237339593892939, -0.11157848281582362], [-0.024841322612437766, -0.13631545257139741, -0.04206778044706054, -0.16431147032190099], [0.37141387493831662, -0.05709615384689682, 0.00038764189841149096, -0.024590822081001284]]], [[[-0.049581048479651293, -0.37033833335513605, -0.26362865847762773, -0.13812849731385385], [0.3865954030722748, 0.15567355397694765, -0.041803484010232692, -0.35484037942522434], [-0.050782704739070893, -0.32506251963087673, -0.33764535568107218, -0.36435752470804467]], [[0.048635573612325962, -0.0021187472627129463, -0.34213039198598444, -0.3473152524212097], [0.0091876969456022237, 0.25012029629698768, -0.26779903179453246, 0.15655294720322027], [-0.079890016682666931, -0.14559865713513551, 0.0072609344219914896, -0.26959985112553597]]], [[[-0.029275235917883738, -0.11968469708690281, 0.15532879943218325, 0.3349745286016384], [-0.26261340896443558, 0.34840753209203668, -0.30024021567042747, -0.088416860702889025], [0.27012851564457924, 0.05938656338596169, -0.043261351373061072, -0.049938607323409295]], [[0.137023887131792, -0.16958442289958012, 0.28027465127522788, 0.34337727261364404], [0.097645386076377627, -0.24934075839812983, -0.23291827443353649, 0.13256366464920186], [0.082284370611753616, 0.022921658174753692, 0.0263906118109852, -0.32782594052639191]]]]))  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank0_taggedData_rank0_offset0(self):  
       arg0=Symbol(shape=())  
       arg1=Data(-0.167809933918,self.functionspace)  
       arg1.setTaggedValue(1,0.40615815881)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s0=numarray.array(0.915122477631)  
       sub=res.substitute({arg0:s0})  
       ref=Data(-0.15356664249772489,self.functionspace)  
       ref.setTaggedValue(1,0.37168446059989751)  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank1_taggedData_rank1_offset1(self):  
       arg0=Symbol(shape=(3,))  
       arg1=Data(numarray.array([-0.70595359985013251, 0.2438999137740876, -0.99846126486433207]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([-0.87349595301467287, 0.87823531156670054, 0.45898540029030532]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       s0=numarray.array([-0.0031254981919577318, -0.49148490455195581, 0.80154351471610763])  
       sub=res.substitute({arg0:s0})  
       ref=Data(-0.91797682068879727,self.functionspace)  
       ref.setTaggedValue(1,-0.061012517305616298)  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank2_taggedData_rank2_offset2(self):  
       arg0=Symbol(shape=(2, 3))  
       arg1=Data(numarray.array([[-0.93074172873498373, -0.64051633155646925, 0.18923282981434042], [0.14381211673174188, 0.17256013000469084, -0.26321858552082955]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[0.28816893408260258, 0.063101374125867249, -0.20878877378723515], [-0.81182382338976589, -0.11904129955094844, -0.54509430483885968]]))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       s0=numarray.array([[-0.30071377941136923, -0.67483970932541149, 0.3333757368181578], [-0.62868570493317621, -0.7594387531566924, 0.45815298708807317]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(0.43316249880484375,self.functionspace)  
       ref.setTaggedValue(1,0.152205231237107)  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank3_taggedData_rank3_offset3(self):  
       arg0=Symbol(shape=(2, 4, 3))  
       arg1=Data(numarray.array([[[0.338763458023154, -0.99171534740386225, 0.83965976831207301], [-0.88676822185898496, -0.22516535066263677, -0.23055962847069944], [-0.21863716675324829, 0.85117245923828233, -0.8094179946330029], [-0.91642537436470262, 0.73127043092393351, -0.48119910407205468]], [[-0.29567851515334542, 0.46079889844225441, -0.8599054065534546], [-0.5407248731177452, 0.89489625288626873, 0.51137695424642815], [-0.9111870671491531, -0.51812695483698623, 0.034999963460251582], [-0.40263342388187628, -0.10112434670170845, 0.92816835792758456]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[0.65304071202653668, -0.26899219838924449, 0.95536095752490335], [0.39235741128201274, 0.13449560449636522, 0.93385225132171801], [0.27926780526419859, -0.96019697686038885, 0.52421149520737864], [0.50089402219921531, -0.84797143792164253, 0.59792551111964909]], [[-0.22237286202330586, -0.58739228623859097, -0.88956882067764598], [-0.68586543238655673, 0.47476373167683739, -0.042095220082579043], [-0.93703162370675797, -0.1567908399718323, 0.8790435650941808], [0.75189154976346995, -0.87842233148061566, -0.29801159649978093]]]))  
       res=generalTensorProduct(arg0,arg1,offset=3)  
       s0=numarray.array([[[-0.65595025284840558, -0.53971855931246049, 0.47979976444242878], [0.69227206459202617, 0.88281924161707903, -0.36735231753544251], [0.035340701387385431, 0.64520906787846077, -0.019888621792771843], [-0.10956597460369877, 0.37892372931031626, 0.87313482417823085]], [[0.91914032356442665, -0.17973444306632569, 0.86368169796714978], [0.88650019814183767, 0.72137146505017857, 0.19482387226402698], [-0.89968498159075216, -0.95734140282817792, -0.79390329750247868], [0.065462492474112732, 0.00030927061150465285, -0.43687898324532215]]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(0.52752939272015253,self.functionspace)  
       ref.setTaggedValue(1,-0.91816900824285219)  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank4_taggedData_rank4_offset4(self):  
       arg0=Symbol(shape=(4, 2, 3, 2))  
       arg1=Data(numarray.array([[[[0.18277127255586367, 0.36613822209614932], [-0.46324145456981114, 0.97170929935368], [0.77171337682793961, -0.88027109611283216]], [[-0.72318804822595606, -0.72555507250023177], [0.71702514365294134, 0.5012884781452831], [0.56025949138680042, 0.13660616065195441]]], [[[0.92841341907928276, 0.11013000105001391], [-0.81943390991928733, -0.82165717971247121], [0.17867872242553529, 0.1004921728478898]], [[0.34615164735316317, 0.35670016488623313], [0.90457920335512609, -0.21233780010749381], [-0.71726631760078097, -0.29543663001474574]]], [[[-0.46496532672005286, -0.78116397361492007], [0.57767196344266125, 0.97103796085770178], [0.76883595661676418, 0.70591842900658563]], [[0.20589462703207273, 0.79787555511809716], [0.93841289115569859, -0.40005740246926669], [0.45997016976806915, 0.57745884326129793]]], [[[0.98749860853231164, -0.17879245564403945], [0.39777173253183906, 0.82223615109719583], [-0.52495355463362525, -0.22616044597492269]], [[0.9126604179102249, -0.79924398400106189], [-0.71021207410430676, 0.23883656788179497], [-0.42232418523553217, 0.23617328007704286]]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[[0.2900796263966956, 0.7001214339766737], [0.06102986364713936, 0.41616548935691977], [0.81111398675538315, 0.71498696017103569]], [[0.38932379950953733, 0.42819850642932944], [0.85299183068860329, -0.25786174287691077], [0.63437747881104034, 0.65618827321264606]]], [[[-0.028493296771181509, -0.50880204351211744], [-0.22173677406728354, -0.9811948831436228], [0.74505135342714102, 0.65634056862456691]], [[-0.17273772499006035, -0.1048731049297269], [0.9530459236812534, -0.93600888406176463], [-0.47436919193551597, 0.79731250652611108]]], [[[-0.54234349656447245, 0.84331223671560651], [0.37140994774826952, 0.091564165437392209], [0.99645194722587482, 0.17326898921423495]], [[0.50948075965188666, 0.071530667260559788], [0.56968723586063064, 0.77233124482637439], [-0.027086287653206087, 0.8126994122958684]]], [[[-0.12253727602072173, -0.40736419156677983], [0.016231428664967629, -0.45348486047398096], [-0.14107885356515437, 0.93633917339456141]], [[0.40556372823313991, 0.99277660127674627], [0.87884594695894491, -0.64055121428508377], [0.36809903127275834, -0.080164354202874488]]]]))  
       res=generalTensorProduct(arg0,arg1,offset=4)  
       s0=numarray.array([[[[-0.41354698038544146, -0.30054069872569111], [0.25458756705083663, 0.68388991922674869], [0.91645308897366706, 0.37529094468558233]], [[0.23266243370999717, -0.089549440298144711], [0.41771345019814965, -0.7610883670438322], [0.040473784113955302, 0.40546969846349712]]], [[[0.90256117085447118, 0.99331644564316868], [-0.42629137025658781, -0.72774267994145148], [0.33467696232402022, 0.30605220732219229]], [[0.6976481718401053, 0.69854386939839808], [0.64907101060191952, -0.44442655759051508], [0.52746909752027693, 0.66023853945534849]]], [[[0.31999319202424359, -0.80359430646849694], [-0.79384942794740332, 0.49362744512371837], [0.42956711824723981, -0.59719910431169265]], [[-0.94464463085895467, -0.62550309866010378], [-0.98593037109551496, -0.27051002644324318], [0.50588836505468837, -0.15434037803005562]]], [[[-0.27259569645007731, 0.19895229046523832], [-0.39141519932954738, -0.72204296583465744], [0.58215225131898141, -0.8813091097381589]], [[-0.76537468434523315, 0.6178434289556638], [0.7734315901108253, 0.22048189992798184], [-0.78578446335942531, -0.45830764498826015]]]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(-0.36981406321933746,self.functionspace)  
       ref.setTaggedValue(1,1.4657025816529778)  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank0_taggedData_rank1_offset0(self):  
       arg0=Symbol(shape=())  
       arg1=Data(numarray.array([0.28138237725660642, 0.19716248503489986]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([0.2251704384541191, -0.77629093481779443]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s0=numarray.array(0.855950990257)  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([0.24084952445378083, 0.16876142430723742]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([0.19273485977150201, -0.664466994385154]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank1_taggedData_rank2_offset1(self):  
       arg0=Symbol(shape=(3,))  
       arg1=Data(numarray.array([[0.44577229612815805, -0.11439167324795663], [0.56029144170168355, -0.63873596744636418], [0.47184604620641135, 0.93227983697187433]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[-0.26602274335170928, 0.33664142669925279], [-0.096827128766988402, -0.91625774483800071], [-0.67099066361764104, -0.53488685466413211]]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       s0=numarray.array([-0.39283591937188311, -0.4370939277733672, -0.1069694501011067])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([-0.47048846882629292, 0.22439930944887121]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([0.21860134129633552, 0.3254624048976788]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank2_taggedData_rank3_offset2(self):  
       arg0=Symbol(shape=(2, 3))  
       arg1=Data(numarray.array([[[0.48748575379055015, 0.53922382201059627], [-0.5461912866930394, 0.29786698947171297], [-0.68212863255680745, -0.48367269355243847]], [[-0.27912031235522772, -0.067523361045184638], [0.26812683418528871, -0.084419112598145718], [0.54087173050106041, 0.045578991720064854]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[-0.3033353855794958, -0.19098806051859318], [0.67076932487858998, -0.51246050158819934], [-0.21476337901362075, -0.50418244612200858]], [[0.32316361890289902, 0.34275172090119455], [-0.027240426583106547, -0.50232236443509071], [0.59432220061991026, -0.70554618638328037]]]))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       s0=numarray.array([[0.048335264526378152, -0.69693997521695894, -0.35753012589910971], [-0.011034693633192427, 0.2865390131917982, -0.59459060747678927]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([0.40641838535698244, -0.059149437155990005]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([-0.77011322960568751, 0.79997718501089743]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank3_taggedData_rank4_offset3(self):  
       arg0=Symbol(shape=(2, 4, 3))  
       arg1=Data(numarray.array([[[[-0.036806182949287392, 0.3588620396258293], [0.60382800793994829, -0.83114799758347169], [0.13455967654205647, 0.77315772887346967]], [[-0.25248012468754344, -0.74575171654228489], [0.56620954335080054, 0.24979784840523167], [0.65866378850217489, -0.2360823464400188]], [[-0.20206335952576882, -0.86131297427387676], [-0.51179990993312341, -0.02823131378193211], [0.8136428634606383, 0.85051841892711533]], [[0.65078494752592109, 0.17332258987598959], [0.9921406434394151, 0.61736183509425779], [-0.9448085875211969, 0.39955760323828393]]], [[[-0.0052904814975156533, -0.54290559300635777], [0.24729749573869753, -0.73604871032772734], [-0.47627728383915935, 0.64889240137708515]], [[-0.92551942815095822, 0.30881466964716098], [-0.78943794939284961, -0.70452042584007391], [0.38194023466788085, 0.87556968092905074]], [[0.51130821924921754, 0.98075564315162844], [-0.48542269521623771, 0.17115154173386915], [0.71050968704210882, -0.40949724594856951]], [[0.96023113091117507, 0.48630935089896155], [0.77646686005574495, -0.092768987372596978], [-0.68798489936228546, -0.99191392196581507]]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[[0.095312325889383764, -0.69037255617432303], [0.028230158133491834, -0.37462235159427304], [0.01811388441846784, -0.10902084133002643]], [[-0.55561459241054334, -0.3962736770112314], [-0.16371959487362919, 0.26418728785990231], [0.93030812021133213, 0.69416468925862662]], [[-0.30646013674203543, -0.72275899449227965], [-0.83905662638681577, 0.70228322937336185], [-0.60987395821236268, -0.27075247060184116]], [[0.25244655936316907, -0.076444296594003758], [0.18703204511739724, -0.94036028644460279], [-0.72987860381405856, -0.1148766364079874]]], [[[0.40137498756944168, -0.061083231009979144], [-0.95727920651358867, 0.57368791065782454], [-0.92247079704626289, 0.57293216252151691]], [[-0.86404795466396989, -0.39410396517585622], [0.65446139567582162, -0.37293588347152062], [0.18340987025489031, 0.20094559856738381]], [[-0.46970973445923048, 0.15028418272336896], [-0.21400435037119347, -0.67576536535541631], [-0.69009375807966622, 0.57121507339578015]], [[0.66515649940144828, -0.81018622007830521], [-0.14538578476566566, -0.29488917587085117], [0.19687425335497988, 0.75086905609185428]]]]))  
       res=generalTensorProduct(arg0,arg1,offset=3)  
       s0=numarray.array([[[-0.49853801091014716, 0.060460383247491922, -0.73321921420642178], [-0.90329519922371948, -0.57921441581767819, -0.013620829544860991], [0.53098072083157954, 0.23592231826088383, -0.30240001259970328], [0.75741886442810857, -0.63324338093302157, 0.73961497735830672]], [[-0.54263874305269066, -0.13866484377034327, 0.55513283528798829], [-0.1066522224455162, 0.64052261707004399, 0.16552311090728633], [0.36093716879763593, -0.38915318316290781, -0.87222679737207498], [0.16870017186486619, 0.7677796606440821, 0.50092271794631915]]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([-1.9331899783448643, -0.37310967166496833]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([0.44106448543702037, 0.85343786530973487]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank0_taggedData_rank2_offset0(self):  
       arg0=Symbol(shape=())  
       arg1=Data(numarray.array([[0.96541525508569892, -0.20650686853630895, -0.48763896957938879, -0.8104297616673195, -0.42132709781723676], [-0.021156033231873206, 0.12656458056491204, -0.49355873426137675, 0.41110080826654594, 0.17286851537255687], [-0.22623928477888366, -0.36090330096799406, 0.27673576413418366, -0.90984744619519198, -0.33293232304086673], [0.22563792818349548, -0.71485160842341267, 0.15043900244238584, 0.25666644923042137, -0.42353203248171623]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[-0.35560944761073765, -0.41872814713152362, 0.56471375879078201, -0.80781183568053083, 0.25404603802263126], [-0.91908712869599429, 0.98539720891027205, -0.10218832145119006, 0.63064091551821999, -0.98598359223603227], [0.019346565065388566, -0.086583298571799361, 0.64441947468352145, -0.18441950916748695, 0.8052302653511989], [-0.19346796771248709, -0.99970607126853617, 0.63336324244368947, -0.57823062772004219, -0.15006923970790553]]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s0=numarray.array(0.77467869957)  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[0.74788663435451319, -0.15997647236991322, -0.37776352281325615, -0.62782267386099899, -0.3263931282305213], [-0.016389128312120319, 0.098046884683607144, -0.38234943841885705, 0.31847103953996919, 0.13391755668535235], [-0.17526275492407847, -0.27958409986428789, 0.2143813018838891, -0.70483943642527924, -0.25791557905800888], [0.17479689677878552, -0.55378031439873832, 0.1165418907766263, 0.19883403111298828, -0.32810124414903635]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[-0.27548306442977594, -0.32437977649306737, 0.43747172028914488, -0.62579462236198391, 0.19680405436619963], [-0.71199722164943735, 0.76336622835819479, -0.079163115973015619, 0.48854408432908258, -0.76382048703044403], [0.014987371865995277, -0.067074237142054238, 0.49921804062520209, -0.14286586553714614, 0.62379473481640935], [-0.14987551363589696, -0.77445099924221628, 0.49065301301150877, -0.44794295073351792, -0.11625544346232977]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank1_taggedData_rank3_offset1(self):  
       arg0=Symbol(shape=(3,))  
       arg1=Data(numarray.array([[[-0.46969319757533445, 0.31741733885211709, 0.89160593117172393, -0.73296587057481388, -0.68123650605634767], [-0.40087112758962018, -0.785669163134739, -0.098530479474193911, 0.61389289600537955, -0.88969078415468705], [0.28884729417843369, 0.38068005484844503, 0.81683833385617288, 0.16671895078033439, -0.25793638946192599], [0.83517021532658742, -0.75150118475354399, 0.81650415661993447, -0.83295081227032575, 0.60624083565135178]], [[0.17761092478171636, -0.72983225192512236, -0.24131387922551739, -0.24564107075664476, 0.23034554942942997], [-0.8777815205858448, -0.75307763715135967, 0.38055491373991956, 0.75929330953955776, 0.99468974085861328], [-0.56418194068141281, -0.71932111214903283, 0.088703198989380949, -0.99974975808785671, -0.27396665144620114], [0.93209099404596274, -0.9987875168592284, -0.83551964385737554, -0.36511084117990311, 0.29829241174313315]], [[-0.96015043699245028, -0.23994553624337489, -0.15171900856196108, 0.18849909781007135, 0.51386047279648528], [-0.95368762778309013, -0.14276396574660222, 0.57643259567835381, -0.041226815520055693, 0.96843930154676561], [0.64094544073717663, 0.040454660622616156, 0.53717915175424968, 0.93223198969685916, 0.13089946216661463], [-0.026294728813930579, 0.070012595024297353, -0.2335859123348496, -0.62987472346802553, -0.73986293550244309]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[0.52397275570150859, -0.19452026281363266, 0.750779482504776, 0.34121465788292715, -0.56383141418793548], [0.21390723793137245, 0.82890325495706763, -0.41833947444046449, 0.65296352492447585, -0.57679961245000588], [0.65584950662155128, 0.69274815905694265, 0.90764618890502091, -0.23490028557772402, 0.064406219113518626], [-0.5538309997965436, 0.23720805103493992, -0.97051838622617526, -0.29952566307093598, 0.01319689239740951]], [[-0.89952948189768112, 0.98694148208147636, 0.90262801291098849, 0.0059895175507025389, 0.48579122787765239], [-0.60246545240467797, 0.075296722142718764, -0.90011787056343362, 0.023517562350129362, 0.81832781681840894], [0.4999377444357529, 0.71906643294314199, 0.3753375948771942, -0.49248646606323865, 0.92701607943236741], [-0.43784605394358223, -0.70113096439614142, 0.89232866632495922, -0.17951823344850237, 0.11029858632855571]], [[-0.75417724270741049, -0.25038914685886349, 0.84919964975308404, -0.84258665249792664, -0.56826073428102153], [0.69893431498583314, -0.64691255600587261, -0.67384222356321644, -0.21561639379588038, -0.00038413167707651574], [0.27131261135302154, -0.39264118719173879, -0.46859208057346513, 0.0087898863425512896, 0.42425692667826365], [0.6017244774840329, -0.21679156583281745, 0.03167184890280117, -0.093447699960699238, -0.56744098661025788]]]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       s0=numarray.array([0.26546413279143044, -0.37027387618261609, -0.16758675846063209])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[-0.029542883573551254, 0.39471243010086887, 0.35146771758945344, -0.13521163055389118, -0.35225100869177256], [0.37842807794626809, 0.094203342966405035, -0.2636683214787453, -0.11127086324319053, -0.76678622172705346], [0.17816646174330203, 0.3606230516083801, 0.093972689853203201, 0.25820938254202014, 0.011032817483150673], [-0.1190145600088736, 0.15859513119640545, 0.56526957088576535, 0.01963110450501207, 0.17447654123296955]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[0.5985583606115441, -0.37511489553810623, -0.27722916543885834, 0.22956885718497602, -0.23431984395112204], [0.16272978151787731, 0.30057765284204835, 0.3351630411208682, 0.20076490942598552, -0.45606064625230075], [-0.056477767031384851, -0.016550262272155419, 0.18049963011050946, 0.11852420359397838, -0.3972521390081698], [-0.085740365177014013, 0.35891210523727735, -0.5933515983587524, 0.0026181888705438632, 0.057758212062198958]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank2_taggedData_rank4_offset2(self):  
       arg0=Symbol(shape=(2, 3))  
       arg1=Data(numarray.array([[[[0.65206519402992469, -0.084496441996423144, 0.1265613032025743, -0.82643907452689769, -0.25157847987724025], [0.78585186169490062, -0.57362518202386825, -0.13572412135205836, 0.52670045722978798, -0.90374131312767081], [-0.7870380409680291, -0.9030447273069766, -0.47252916627647035, -0.32051925002090265, 0.0012403388742363575], [-0.31140499409550659, -0.29723168867551619, 0.68712584451280856, 0.90430205234318484, -0.92200358530334858]], [[-0.49389963631288847, 0.1422761172629381, -0.70918224407775998, -0.7150134559394683, 0.76843800986365118], [0.7646658725966724, -0.10427300712857979, -0.37145318399321448, -0.5241160785963479, 0.99705113285563018], [-0.42544130322230789, 0.81563521758816226, 0.60971212619617332, 0.3095741798143663, -0.63028912537404502], [-0.30682669045306232, -0.65156161433635607, -0.31303855358837351, -0.63650047468578386, -0.5474917376758206]], [[0.77932335635551331, -0.7242040345373757, -0.57444565021579397, -0.45015378470060052, 0.64486273072563738], [-0.97023539368526257, 0.69561036202187099, -0.094524717512552092, 0.00031769334701170493, 0.69782809474330487], [-0.71610930023436503, -0.2749361962735779, 0.032323525998753544, 0.73386963331248301, 0.74311443804909971], [-0.29630874540012453, 0.78348025580615643, -0.39496044899816884, -0.11008081498596622, -0.13331207304660397]]], [[[-0.64521910105640057, 0.43403776783968584, -0.8199504454244535, 0.57969375595057859, 0.41008067869949327], [0.86604691212566332, 0.84468575301976423, -0.44534740478769241, 0.45318746902110618, -0.51933456340806394], [-0.13423995759008855, 0.46263642048193421, -0.23612645344781469, 0.84608860365803373, 0.077331957567117637], [0.68255739326807841, -0.1565272122774104, 0.1089760576278882, 0.2468473938342941, -0.84158183722444191]], [[0.32399882204442187, -0.49428383616166016, 0.16209968446167866, -0.93559632821071093, -0.2850658783088682], [-0.089379404662826456, 0.53581715314306821, -0.47166418398061039, 0.72678215882685815, 0.085883841674558647], [-0.84577392535695828, 0.31731197965785451, 0.86850228299858778, -0.23002591369425529, 0.30514861237095636], [-0.88004243378404334, -0.40543754791133235, -0.9420018919286719, 0.12173171685507822, 0.65382403270217582]], [[0.62448241434559226, -0.20800521049327125, 0.067823535063860296, 0.50825165565253516, 0.92081759475023861], [0.3556940492192493, 0.85742521810918837, 0.57402744341358747, 0.91821623051129464, 0.71924074598813559], [0.2575053376401506, 0.024331353668862743, -0.59681521278592164, -0.31812748832888582, -0.96740840516471915], [-0.89470588678054708, -0.67741295523314982, -0.40438755274067217, -0.15337443255935712, 0.46667263137137027]]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[[0.5555201769204432, 0.2137586583858424, -0.074674558163822402, -0.90217021309394196, -0.092735040035575977], [0.088816651131417901, 0.95537035153650951, 0.36547901464690891, -0.10409150538975886, 0.67832851309630104], [0.78376193218939738, 0.73172977519974181, -0.92075716316977796, -0.22557053824067985, 0.032868622167917527], [-0.85935510892535527, -0.64834503094857121, 0.11909293346484517, 0.11132593426528326, -0.19796899985352012]], [[-0.92508230679029446, -0.63323157898543303, -0.40138959741621227, 0.089098911652681467, -0.89574583957038878], [-0.030375770612454778, 0.73455399354541906, 0.38078806485591254, -0.61547028421327221, 0.053136658674380888], [-0.69539110686167827, 0.16306554375091209, 0.43537061649521425, -0.15072994650208416, 0.58357039754604401], [-0.73855576137305889, -0.95673383605013673, -0.85442392267229672, -0.53301351259829977, 0.54170562225600927]], [[0.14184612247223094, 0.71130466015714777, 0.20222916639765476, 0.91130520315606955, -0.80046968406361518], [0.59313937149107643, 0.029552405001408877, -0.24448563132027323, 0.68882175304121374, 0.030973118196141902], [-0.1620226004693488, 0.47770458471962463, -0.36817477483769401, -0.80008491667028037, 0.34999862033091333], [0.9569250464153034, -0.47124438702930749, -0.13772907068493034, 0.97703359922633859, -0.92370358485600157]]], [[[0.43547016541417305, 0.37098072863055065, -0.14661001231210236, -0.67845888980854707, 0.99596986428514467], [0.55943239401005229, -0.082956422825952281, -0.36240528227607371, -0.63481108186174384, -0.66735489443001628], [-0.28682192125624151, -0.43744084953124696, -0.23672560233565831, 0.0063826170018141948, 0.39365476631870333], [0.7204188286906783, 0.9915093763736702, -0.56172521043278767, -0.95450696043400995, -0.92594883605422762]], [[-0.31712213365546305, 0.62801436625720219, -0.09648806135059429, 0.27930320147078991, -0.43898236986193573], [0.32932831427924114, -0.91682084122371266, -0.71528166755263833, -0.084035728288651246, 0.41954657017123376], [-0.1931553176037788, 0.062693110307928901, -0.60716673331098603, -0.61796689778932934, -0.98476103953648542], [-0.74840071470011882, 0.74346740075672191, -0.95978376966767764, 0.24047831105555351, 0.25779721684021206]], [[0.39705799887473248, -0.06715627229080634, 0.53527103266814824, -0.48636466118823973, 0.63727113177539119], [-0.33349746831295302, 0.67782443017311, 0.36122168404487809, 0.60173350373944934, -0.27683729057472339], [-0.96690462154553414, 0.034469853285622687, 0.42746215180997305, -0.70042482612232004, 0.8165905769042705], [0.28502574957139482, 0.79910876802051267, 0.14739330996653055, 0.96924795436903977, 0.029998734076815525]]]]))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       s0=numarray.array([[-0.43891274835281902, 0.18003313903237661, 0.72241188305328707], [-0.32305174453889274, 0.19260742829293265, 0.26837850990104428]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[0.62631582097442584, -0.75171614379214069, -0.28390163439753036, -0.32225797450188132, 0.77436637831031296], [-1.109697244996342, 0.79595566006604246, 0.13149224568299839, -0.085294158857436603, 1.4576276989932211], [-0.29890536111440902, 0.26277319049212178, 0.42390703873539148, 0.3235560595990542, 0.19697740966330379], [-0.7627402084384145, 0.36982456764843696, -0.96844012422056747, -0.68848501638547999, 0.7328569973667729]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[-0.40309667590093712, 0.28912182998667746, 0.27903848429081479, 1.2127958485701626, -0.93410134651558441], [0.17724143972969358, -0.23360493366956603, -0.19222701997851954, 0.78287832419409176, -0.043684554597730602], [-0.79028484793508991, 0.21593329979852446, 0.2907908145046274, -0.81518735342555071, 0.24579092752090026], [0.63512611487598591, -0.19075731059479234, -0.26943112241718359, 1.1757965841459233, -0.1260443033500947]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank0_taggedData_rank3_offset0(self):  
       arg0=Symbol(shape=())  
       arg1=Data(numarray.array([[[0.21417192563810494, -0.48597810108817985], [0.72280139021776324, -0.91479987450310629]], [[-0.80183266849887147, 0.71571618379819046], [-0.40326029235487471, -0.00907546705161133]], [[0.073736673252838614, -0.06278229370323607], [0.87945152927928993, -0.9056699897623286]], [[0.18037238754633123, -0.66136611056107619], [-0.13119247994422811, 0.38008748576918006]], [[0.73471764522594918, 0.34531166342792297], [0.66429153247276607, 0.058504913266755221]], [[-0.42756928737326905, -0.44310186437079713], [0.5582879988821825, 0.52268289820653835]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[-0.67966421272013933, -0.5494549558100561], [0.36392105539243902, -0.98341641061496476]], [[0.87163349279672309, 0.51529910406370427], [0.45158194725139422, -0.43170764903577497]], [[0.57256079785977931, -0.4811147538578624], [-0.22394340849531025, -0.43062058731879382]], [[0.22453334616903642, 0.9636493841567082], [0.92559807691233287, -0.6971407902308826]], [[-0.01154201672925792, -0.3261767534917468], [-0.46599299361341529, -0.11365072288173939]], [[0.15572712373352848, 0.37661181183071069], [0.40410121030067025, -0.97124125351070822]]]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s0=numarray.array(-0.225987122939)  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[[-0.048400097289301169, 0.1098247928763679], [-0.16334380663175804, 0.20673299170408774]], [[0.18120385783271209, -0.16174264121756854], [0.09113163326489418, 0.0020509386883230448]], [[-0.016663538643516017, 0.014187989925517452], [-0.19874472086629627, 0.20466975531875298]], [[-0.040761836919267713, 0.14946022453517888], [0.029647811093853307, -0.085894877374166775]], [[-0.16603672681726769, -0.078035989335421718], [-0.15012133221638493, -0.013221357026960775]], [[0.096625153110644194, 0.10013531549814698], [-0.12616589863886132, -0.11811960437521235]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[0.15359535999735291, 0.12416974464819355], [-0.08224147228513036, 0.22223944528605957]], [[-0.19697794529456739, -0.11645096198049805], [-0.10205170503061899, 0.097560369556435739]], [[-0.12939136741609783, 0.10872573902793418], [0.050608326587050598, 0.097314707606557832]], [[-0.050741644904649413, -0.21777235184769533], [-0.20917324639946386, 0.15754484146782952]], [[0.0026083471535609803, 0.073711746091244784], [0.10530841593651538, 0.025683599884003289]], [[-0.035192324656135129, -0.085109419820537352], [-0.09132166989209245, 0.21948801656073602]]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank1_taggedData_rank4_offset1(self):  
       arg0=Symbol(shape=(3,))  
       arg1=Data(numarray.array([[[[-0.52720010860745536, -0.43582412739616982], [0.55603792789365669, -0.13018372552516499]], [[0.30212091134987307, 0.57810929262132182], [-0.89131866944614258, -0.90520915179819039]], [[0.55463359346312879, 0.060934115849946124], [-0.65176368868408296, -0.004133900756547515]], [[0.57037626582711964, 0.47420884642764416], [0.49542054574174066, 0.63954429342544028]], [[-0.52052905739577637, -0.070045473711700001], [-0.68824095024287568, 0.62381192807304209]], [[-0.95909587074617697, 0.057851504558286582], [-0.10115725221495508, -0.43702150878017787]]], [[[-0.40227402449963923, 0.74786820883631644], [-0.72869176270591351, 0.0006267164799997893]], [[-0.19228402267274936, 0.34352178018874446], [0.13450232523559791, -0.88582881402028013]], [[0.11266257586021, -0.022385185652000983], [0.63974491071253281, 0.30009785135666189]], [[-0.03873825730749525, 0.73996354997196323], [0.97307767897398079, 0.70021560435554453]], [[-0.38030486374970129, -0.60496968355677971], [0.47021961606538265, 0.86367706719230308]], [[-0.2932506491264486, 0.17599307943727704], [-0.47054282914449952, 0.48558775492097772]]], [[[0.29994496052748731, 0.72722523440744435], [-0.56839464223024883, 0.14168746190617809]], [[-0.26995286119658712, -0.14048506023338492], [-0.80651706885193919, -0.94270854011254879]], [[-0.50365113088964164, -0.72683091361471464], [0.60581607091017275, 0.74728325942009177]], [[0.69493327361610202, 0.33137199979913623], [-0.036916665708520924, -0.42245292599936768]], [[-0.96024284812193517, 0.20795206175424008], [0.67887305036044387, -0.042704376359294915]], [[0.73601900251191377, -0.55815380624156563], [-0.44566284067718254, -0.35692839692754874]]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[[-0.19775388904889946, 0.46642448288048932], [-0.7253900790210599, 0.24177601480065514]], [[0.81364883295460455, -0.48538370580475032], [-0.027115535996981466, 0.21022282689211269]], [[0.95134604608249029, -0.8749470190530162], [-0.43210870255718881, 0.075333254430226981]], [[-0.1169113804017361, 0.43003885977005285], [-0.091183202753062353, 0.57730929892895277]], [[-0.30924098523996468, -0.81739915277948838], [-0.1102058120784517, 0.85905074495882605]], [[0.71812044375996953, 0.32821978550659647], [0.41972981457384106, -0.12992679767431747]]], [[[0.87806757327605522, -0.40912891945383256], [0.85102528877749317, 0.99503432133000547]], [[0.93267849734130626, 0.18395636083785694], [-0.89664644340459443, -0.85204946245960844]], [[-0.48972878527703689, -0.83039291662715686], [-0.71119947999399913, 0.23396242554689262]], [[0.04085526525206018, -0.36422308003909087], [-0.55729141586280595, -0.35272810493440576]], [[0.14295653160616673, 0.62240417485974531], [0.096336399538830886, 0.87054226796753431]], [[-0.062004736897307788, 0.45597068558472054], [-0.51120181356639072, -0.62977734494831572]]], [[[0.099672906477919598, 0.30544508944065596], [0.91827340792157064, 0.93026667538507701]], [[-0.39849518474515744, -0.71221820698867866], [0.89941963036301176, -0.54654339892239068]], [[-0.47509745553746185, -0.6499550117282582], [-0.27097458309822575, 0.93280164920136976]], [[0.68324322390143566, -0.21780101590731449], [-0.29413465350200196, 0.89236105698159696]], [[0.19825445666237163, -0.12876579902034657], [0.11362320627639888, -0.1100515242962381]], [[0.18722105562871549, -0.58594261555280447], [-0.76711133566699563, -0.84802558040919207]]]]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       s0=numarray.array([0.95777129851918019, -0.6045100367976044, -0.84364551499680251])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[[-0.51480566794232563, -1.4830339862659572], [1.4525822431778463, -0.24459908401311559]], [[0.63334487980391629, 0.46455371488720248], [-0.25457293710204865, 0.46382089602571441]], [[0.88800949683268526, 0.68508065709601573], [-1.5220667850908702, -0.81581366490399809]], [[-0.016569657392079717, -0.2726922716362129], [-0.082591064661710775, 0.54565032393603119]], [[0.54145488808654862, 0.12318487712279522], [-1.5161581102076203, 0.11139506029885943]], [[-1.3622606672561952, 0.41990288302941753], [0.56354380689048011, -0.41098828829802364]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[-0.80429226065026627, 0.43636314099917728], [-1.983908368685368, -1.1547574149952715]], [[0.55166466188749397, 0.024769647377149262], [-0.24273004488075678, 1.1775067290476517]], [[1.6080317414567549, 0.21231334060709861], [0.24467240238091914, -0.85623453328965093]], [[-0.71308686401634169, 0.81580223488459191], [0.49770098103837818, 0.013321553095497096]], [[-0.54985728136167111, -1.0504983297850405], [-0.25964599254354725, 0.38936708394124264]], [[0.56732943180244055, 0.53304849389951059], [1.3582018345002909, 0.97169954576280926]]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank0_taggedData_rank4_offset0(self):  
       arg0=Symbol(shape=())  
       arg1=Data(numarray.array([[[[-0.94388637562013988, -0.87340524767109917, 0.31932331878035725, -0.93660547221612167], [-0.28298509395638782, -0.61059996871422606, -0.74198306696054317, -0.28271834302624077], [-0.54700932120894374, -0.84297532191002955, -0.40502641654066629, 0.023785736053669959]], [[-0.84105667414994856, 0.84872930515742095, -0.79866971162953315, 0.87056966561179627], [0.12350788416860836, 0.24616008035556258, -0.29425290735985632, 0.48122897806422205], [-0.79649977631284585, -0.57392842383024245, -0.50328573946407951, -0.9002932502642822]]], [[[0.15110951257186622, 0.80281415753278185, 0.41833516623396627, 0.73239706274731042], [0.30887491865797179, 0.60021735335437865, -0.19086252853848484, 0.22485091970316962], [0.50892397461551675, 0.24663504303752459, 0.76920321129387537, 0.13236805457657952]], [[0.72542249651132029, 0.19461964645025742, 0.41843216150713158, -0.27659965537199671], [0.26611899619532586, -0.92028487126210456, -0.09647002601906407, 0.060919222498406311], [-0.47583468968846421, 0.072001087900416705, 0.59645481122894783, -0.24710921356050863]]], [[[-0.74416365638424242, -0.77874792408186067, 0.41060304001323855, 0.5887659324185408], [-0.6146940472420841, 0.11956317752524015, 0.076800675342375779, 0.26669320345368774], [-0.27258722294330284, 0.00070962542748786994, 0.85009407388262703, -0.052445836811541247]], [[-0.94846471850847824, -0.012847166544237565, 0.13867172194895905, -0.50999171249124653], [0.17351169703453984, -0.047719015849063684, -0.75367947687132553, 0.23830489099343088], [-0.13000624971462749, 0.14720959984068216, -0.023049583913567373, 0.95169515900465584]]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[[-0.38232379176539166, -0.047392979775825683, 0.71973214757751891, 0.58909318917226838], [-0.31488001512273023, -0.81418131935772542, -0.61712155580920069, -0.51894040765221972], [0.65007616830143777, -0.31244290346844505, -0.8534372608833658, -0.70624245191406754]], [[-0.72550781722850766, -0.70009477274141618, -0.69693580611189332, 0.90681359133506323], [-0.78356288325102441, 0.41830022132112066, -0.35639486650084296, -0.078223007794027799], [-0.017984408983787947, -0.089482877895976198, -0.64307128346017661, -0.73276722763994351]]], [[[0.99546982369172587, -0.25159938469968002, 0.5063085184917504, -0.46879884658015114], [-0.00010552860679213794, 0.81642299012183495, 0.41311420025220547, 0.70854408573626926], [0.23691182023228485, -0.62685048696403278, 0.37645931375363073, -0.65847370090902402]], [[-0.44724356112764974, -0.53271246711955356, -0.37538581801198445, -0.12380101797247622], [0.022127263403553865, 0.56379943467285587, 0.063902232694374339, -0.96732417034432006], [-0.35327573618934305, -0.13654085968330643, -0.3022300688214572, 0.52210806003351418]]], [[[-0.67850462804637823, -0.6031824595469728, 0.89831532714762963, -0.41740496329721521], [-0.95231422950473221, -0.16284788102220515, 0.015299389381570494, 0.099184180228980123], [0.19006093243843569, -0.8318706856506668, -0.62601164880979487, 0.30083766151275015]], [[-0.36613744209104415, 0.99523134946627212, 0.13596454712010186, -0.16438154096209412], [-0.066653406362238599, 0.38925662501114999, -0.1096159498880751, 0.17852867868671463], [0.72875814043845022, 0.97443944150322537, 0.11725849058665427, -0.38916729188624299]]]]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s0=numarray.array(0.727835895248)  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[[[-0.68699438521193523, -0.63569569035305185, 0.23241497359808436, -0.68169508236465703], [-0.20596670920160515, -0.44441657486755881, -0.54004190980013145, -0.20577255829955329], [-0.39813301901114756, -0.61354769809441156, -0.29479276448199127, 0.017312112494757035]], [[-0.61215123738428734, 0.61773565364251903, -0.5813004845713946, 0.63363185194636973], [0.089893471444053297, 0.17916414245992635, -0.21416782825760677, 0.35025572406868416], [-0.57972112775754314, -0.41772570816679505, -0.36630942674842237, -0.65526574379189351]]], [[[0.10998292736324289, 0.58431696106569286, 0.30447935022964667, 0.53306487184174145], [0.22481025294109797, 0.43685973472210798, -0.13891659932811734, 0.1636545704395071], [0.37041313667748782, 0.17950983734876158, 0.55985370791976374, 0.096342221504989403]], [[0.52798853218140263, 0.14165116460698488, 0.30454994687112574, -0.20131915779298329], [0.19369095783834123, -0.66981636315830351, -0.070214347752189557, 0.044339196844943585], [-0.34632956735948822, 0.052404976270834368, 0.43412122150583649, -0.17985495567585794]]], [[[-0.54162902105549804, -0.56680069249669274, 0.29885163121961228, 0.42852497951341001], [-0.44739639217809823, 0.087022372352786412, 0.05589828829347402, 0.194108886492289], [-0.19839876544412252, 0.00051649085830642418, 0.61872898130943599, -0.038171962587762009]], [[-0.69032666750682159, -0.0093506289631261289, 0.10093025689031127, -0.37119027463015986], [0.12628804134714522, -0.034731612620859838, -0.54855497677873399, 0.17344685367819615], [-0.094623215148889314, 0.10714443088915221, -0.01677631454282669, 0.69267789805740265]]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[[-0.27826897925419836, -0.034494311863611495, 0.5238468919708954, 0.42876316872573528], [-0.22918097770257639, -0.59259038946898024, -0.4491632200492679, -0.37770345618394879], [0.47314876993510829, -0.22740716035986025, -0.62116227281310044, -0.51402860725106336]], [[-0.52805063166197996, -0.50955410567673876, -0.50725489637188126, 0.66001148207246807], [-0.5703051926141639, 0.30445391606772132, -0.2593969767214554, -0.056933512906762539], [-0.013089698413222632, -0.065128850542791064, -0.46805036330555938, -0.53333429113776043]]], [[[0.72453867031910013, -0.18312306340675374, 0.36850951382816433, -0.34120862819192427], [-7.680750799883668e-05, 0.59422195791642729, 0.30067934378025207, 0.51570381896457884], [0.17243292677361352, -0.45624428536615191, 0.27400060165034579, -0.47926079559842566]], [[-0.32551991770727534, -0.3877272554157653, -0.27321927291617965, -0.090106824748618933], [0.016105016568715359, 0.41035346627547065, 0.046510338741460072, -0.70405325351764925], [-0.25712676171878951, -0.099379338845539664, -0.21997389271154941, 0.38000898729072291]]], [[[-0.49384002338409061, -0.43901784544230033, 0.65382614034955278, -0.30380231514241407], [-0.69312847978904735, -0.11852653327304696, 0.01113544476728409, 0.072189806611405116], [0.13833316891301073, -0.60546534522117423, -0.45563374884719393, 0.21896044869146666]], [[-0.26648797294817145, 0.72436510021772338, 0.098959877875156976, -0.11964278602840213], [-0.048512741690992962, 0.28331494414623043, -0.079782423020254109, 0.12993958067939895], [0.53041633356533402, 0.70923200327152391, 0.085344938471574247, -0.28324992429128842]]]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank1_taggedData_rank0_offset0(self):  
       arg0=Symbol(shape=(2,))  
       arg1=Data(0.363357642396,self.functionspace)  
       arg1.setTaggedValue(1,-0.354225708992)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s0=numarray.array([0.97101040830607976, 0.4645088154062762])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([0.35282405270406575, 0.16878282803817909]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([-0.34395685032066908, -0.16454096447024405]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank2_taggedData_rank1_offset1(self):  
       arg0=Symbol(shape=(2, 3))  
       arg1=Data(numarray.array([-0.55108445415083862, 0.71294288546312079, -0.82071588233446202]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([-0.040215664686230834, -0.47728968658172843, 0.036717397135321628]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       s0=numarray.array([[0.69200608286042531, -0.3796562551520406, 0.44140291267963838], [-0.87117794862889997, 0.5282176103735492, -0.21743086004379553]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([-1.014293401419287, 1.0351305717281418]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([0.16958369648270921, -0.22506131267574514]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank3_taggedData_rank2_offset2(self):  
       arg0=Symbol(shape=(2, 2, 3))  
       arg1=Data(numarray.array([[0.15814298245943426, 0.98142395353051226, 0.67900156424941005], [-0.12516556697134518, 0.40383089237577452, 0.083359923338467645]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[0.71096660585325311, 0.23226806775857178, -0.72749271916024805], [0.85320437925522263, -0.78769082412249114, -0.79678572764970168]]))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       s0=numarray.array([[[0.23793370998659125, 0.24191362835018526, -0.92426800442359625], [-0.90113808206765134, 0.2475162500826773, 0.074006471903230731]], [[-0.66018383669805569, 0.15777611279342496, 0.51500027725401987], [0.10680299716902342, -0.15148688030229951, 0.67348617215975137]]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([-0.13361670378177018, 0.38172642525797124]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([-0.12503856051176798, -1.1335558200822786]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank4_taggedData_rank3_offset3(self):  
       arg0=Symbol(shape=(2, 2, 4, 3))  
       arg1=Data(numarray.array([[[-0.36510061199868704, -0.70329946518178255, -0.99928901922175317], [-0.23966160152903559, -0.94007906129141561, 0.29149473710434526], [0.60704835425197912, 0.0052234638279098355, -0.76500561586875793], [-0.77511588975672652, -0.98112756710815585, 0.21644714824974476]], [[0.17249876458884827, -0.23987052092438099, 0.03559468175775593], [-0.48868446684056743, -0.8670798136394946, 0.77290844323827557], [0.26944707598438478, -0.94555504940269386, -0.12078554454547774], [-0.16331974101896218, 0.2763217186261091, 0.41718874970512188]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[-0.43768975440259239, 0.15673244145311993, -0.88043900860784552], [-0.59999346829644362, -0.99857397002992965, 0.18155238201136514], [0.73436315472611557, -0.97599224317962019, -0.25013889403080047], [-0.15998695057909185, 0.42489531424848992, -0.15719471980263311]], [[0.046315724148287218, 0.84868175903614862, -0.32880771958633059], [0.45266700945423088, 0.23718632651728488, -0.332759414330559], [0.024662226358104888, -0.5787957692527117, -0.99161958817620222], [-0.033645369224803545, 0.14649993451573295, -0.1029075913532258]]]))  
       res=generalTensorProduct(arg0,arg1,offset=3)  
       s0=numarray.array([[[[-0.53780694826662079, 0.52779721661353629, 0.23555444164262918], [0.33563551557834814, -0.13516869655645958, -0.058084577574881058], [0.40748951616784246, -0.759855976748258, 0.25647000642062356], [0.82110371877144916, 0.27961418358470946, 0.55030771710621185]], [[-0.77581583222442174, 0.40121727083612302, 0.30702753859141696], [-0.77938106031552268, 0.37896029097115758, 0.91034872102889031], [-0.65782432741940422, 0.97756333152953623, 0.17333138754380251], [-0.7248631213906922, 0.10446516646810666, -0.038500351621914231]]], [[[-0.76599252603266321, 0.42210458508827542, 0.045569179264311144], [-0.34549493925414132, 0.93683966957377085, -0.07364438303272336], [-0.85840211353407581, -0.8538797503262312, 0.27226842629495285], [0.77356574298250158, -0.39198958068925127, 0.79087922589406423]], [[-0.62725106772394867, -0.76103897835583534, -0.07529815032601106], [-0.27171956440490797, 0.89256684966444899, -0.13058476891643234], [0.026709197950465002, 0.91775278702854668, 0.6476145997957734], [-0.29063594996582442, -0.44941149178840623, 0.074754920455710083]]]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([-1.5795895585059447, -3.3145145180530711]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([-0.16106328480761281, -2.4145029137807197]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank1_taggedData_rank1_offset0(self):  
       arg0=Symbol(shape=(2,))  
       arg1=Data(numarray.array([0.56615354028150966, 0.75174540511110455]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([-0.92404779635643308, -0.98655984258257834]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s0=numarray.array([-0.82965982076257383, 0.59652466496008416])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[-0.46971484475405395, -0.6236929580635675], [0.33772455093239306, 0.4484346759191844]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[0.76664532910112959, 0.81850906216861496], [-0.5512173021286253, -0.58850727955964588]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank2_taggedData_rank2_offset1(self):  
       arg0=Symbol(shape=(2, 3))  
       arg1=Data(numarray.array([[-0.22252911117681085, -0.62190939907192311], [-0.62588365404022017, 0.35076925387805713], [0.57948410821676322, 0.13190553964243734]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[-0.0806230555964218, -0.41818850437652699], [0.75183075825482315, -0.12091813894991121], [-0.59043340624533824, -0.99231929450506762]]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       s0=numarray.array([[0.62644409384395838, 0.26259804270315668, 0.35445935188059985], [-0.59366723673319832, 0.79891498579741183, 0.71236583072370507]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[-0.098354308492298981, -0.25072499835470796], [0.04488509008767716, 0.7434070472500327]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[-0.062361193950662336, -0.64546143928454902], [0.2279075422591369, -0.55523285800827948]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank3_taggedData_rank3_offset2(self):  
       arg0=Symbol(shape=(2, 2, 3))  
       arg1=Data(numarray.array([[[-0.68511042797993826, 0.88461426286446287], [-0.36260706188793335, 0.66688054990059253], [-0.58242006898765464, 0.23873790834149422]], [[-0.31385279465390248, -0.36454605018889619], [0.64495094877017145, -0.63402630941336602], [-0.85542377281489346, 0.044327320735303877]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[-0.84290796235387133, 0.89984921252679162], [0.50034384639755491, 0.019545751777773956], [-0.37641007418666961, 0.51835187454003084]], [[-0.22616675265883979, 0.58844196329297649], [-0.82349371263519688, -0.066098611292759291], [0.55730405273437067, 0.91453787369920647]]]))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       s0=numarray.array([[[-0.81885580916066769, 0.34618581026602491, 0.7000091135902371], [0.87869941106263494, 0.44600046950983163, 0.88760800005759632]], [[0.84860913355606016, 0.81331502284617563, -0.63644791303574699], [-0.46803389024928643, 0.63926242399450284, -0.16880169404990109]]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[-0.71963694593953575, -0.89014537967680707], [0.19795893321304497, 0.89895965307258285]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[0.5285978998947447, 0.93210547106547637], [-0.58344557256899643, -0.022427536738860332]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank4_taggedData_rank4_offset3(self):  
       arg0=Symbol(shape=(2, 2, 4, 3))  
       arg1=Data(numarray.array([[[[0.34932755635774959, -0.74424381395219852], [-0.54819955297529877, 0.63959217816188008], [-0.010273910321024982, 0.56247673691958355]], [[0.24073673367288562, 0.60191231882953367], [0.51632416596746467, -0.54846172027982121], [-0.83255202008750051, -0.49428556138934887]], [[0.85733282024950674, 0.97678795162853338], [0.32177177547802849, 0.44150861125260565], [-0.89510922530581594, -0.11022500618668296]], [[0.45158215644196642, -0.076728054320795103], [0.83360254719630578, 0.74581624954887737], [-0.69144973303714763, 0.54400223421006766]]], [[[-0.11958079621533146, -0.41206554888449887], [-0.48300873711771808, 0.69228409638818333], [0.48665261214791089, 0.59667696702594464]], [[0.90087159794983762, 0.40381245716119363], [-0.17900820678654727, -0.06792846734150082], [-0.37901740156232555, 0.34417332717469895]], [[0.58984616432424208, 0.0025128073736202516], [-0.057522073977472443, -0.44542225640177358], [-0.9717040071260048, -0.42151480864750024]], [[-0.47729057350045023, -0.5988290686489135], [-0.45221438509529799, 0.10663682085616077], [-0.63083796560409988, -0.33017190918157757]]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[[-0.45815459525227897, 0.04060064355699966], [-0.5130880268380924, -0.90690884973826003], [0.71844818991326154, -0.0096396319053368984]], [[0.086788012504435574, -0.19917758264625562], [0.84632245345713586, -0.030065029762226025], [0.73607845867824007, 0.30411044790082586]], [[-0.73253659802084603, -0.15031960596651084], [-0.74245391214729195, 0.43025275600296298], [-0.13510673730238243, -0.0047682348791997509]], [[-0.32613739486356796, -0.54692619763357286], [-0.98144937685579481, -0.62849319586058106], [0.36562622305234904, 0.75356016560724037]]], [[[0.13054528604012217, -0.55809697479008413], [-0.249719623622086, 0.11198803939996549], [-0.68047360552236413, 0.82892725166976144]], [[0.81959327370496071, -0.97885845309807507], [0.90211428047374254, 0.43159208421499984], [-0.50782383836067968, -0.998151071663961]], [[-0.81033945755080894, 0.060298287371805204], [0.33664923513654532, 0.37499963037950379], [0.8363055645171138, -0.93789499130129839]], [[-0.32514294725877524, 0.63360023194222115], [-0.71724675255467418, -0.22083402911426142], [0.65280483731320582, -0.74647746534758697]]]]))  
       res=generalTensorProduct(arg0,arg1,offset=3)  
       s0=numarray.array([[[[0.62493138805864845, 0.17352331207873917, -0.24927644147127981], [0.32185652576798329, 0.82568239660989229, -0.75343909420944244], [0.9662902160521103, 0.76903550182249703, -0.27446928115940628], [-0.30910412594164871, 0.15103130723873992, 0.61332089752936292]], [[-0.30936266204328744, -0.29369343709938645, 0.10145037474368723], [0.65561968627401246, -0.17325803571712428, 0.5039962673274454], [0.59880610068707685, -0.53875524346089243, -0.19192422287685118], [0.28188510996907379, -0.86050788005977163, 0.73225853462137525]]], [[[-0.25586242673816262, -0.92353650239934471, -0.85386183356723211], [0.69804864781019282, -0.52495634449993767, -0.27821219104784345], [-0.95811949825113141, 0.080275165184550801, -0.53138104040206269], [0.47231483693545795, 0.31641265912120797, -0.43508479310832682]], [[-0.47536332423886996, -0.44561854739579387, 0.041228711613561897], [-0.54594004675046515, -0.076824499185028428, 0.14349037219468186], [0.059475793819251832, 0.57725401036676449, 0.8866737242306586], [-0.41859531683489259, -0.76840411755167604, -0.59739879490718417]]]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[3.1628065415254367, 1.6573284996617701], [0.83635727248193825, -1.4323625157000262]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[-1.1817373700859699, -0.88405330085228306], [0.095995353961629282, 0.37004400299691059]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank1_taggedData_rank2_offset0(self):  
       arg0=Symbol(shape=(2,))  
       arg1=Data(numarray.array([[-0.23298424464823353, -0.62904372007593223, -0.79684710354776112, -0.80918221755065201, 0.86469780711665467], [-0.23079237051661305, -0.80735689580739223, -0.70676775229230704, -0.82847030763543539, 0.56161385054186352], [-0.95330520243206007, -0.35878150602871806, 0.39862211333973829, -0.36782386272916545, 0.49114367147188198], [-0.097061222513623813, -0.51201676761443649, 0.40136034768912143, 0.83366790627140319, -0.71676629357597399]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[0.052561221926250568, 0.017185109654445752, 0.16615656970089598, 0.76782162394430009, 0.80794852769199133], [0.76320728242019453, -0.069800210255412942, 0.2544651649572236, 0.43968820617083093, -0.72839650091806329], [0.94055165624606185, -0.57243124514878341, -0.24667196317941409, -0.43535223287784719, 0.838355791834138], [-0.17773250019532139, -0.4446233347654398, -0.040147021816919759, -0.95764454974412883, 0.10212397304303678]]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s0=numarray.array([0.083504074965395025, 0.51158396499375458])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[[-0.019455133830862028, -0.052527713957731606, -0.06653998027061013, -0.067570012555014228, 0.072205790507881826], [-0.019272103409060482, -0.067417590751329096, -0.059017987370540551, -0.069180646675393281, 0.046897045077251932], [-0.079604869088787819, -0.029959717775619399, 0.0332865708351857, -0.030714791407397402, 0.041012497961367377], [-0.0081050076010105304, -0.042755486546415152, 0.033515224561569405, 0.06961466734153117, -0.059852906311436471]], [[-0.11919100365821826, -0.32180868047086686, -0.40765420072675257, -0.41396464725700144, 0.44236553268614304], [-0.11806967599919661, -0.4130308419221953, -0.36157104904742221, -0.42383212485973165, 0.28731264045561644], [-0.48769565530936715, -0.18354686542060225, 0.20392868127653316, -0.18817279011430496, 0.25126122683317537], [-0.04965496506066075, -0.26193956811947927, 0.20532951806207267, 0.42649113297836622, -0.36668614244147429]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[0.0043890762160023918, 0.0014350266848733718, 0.013874750652296501, 0.064116234445896189, 0.067466994424572588], [0.063730918125351338, -0.0058286019897683368, 0.021248878210669609, 0.036715756929489127, -0.060824076017193383], [0.078539896011997595, -0.047800341607438429, -0.020598114105194954, -0.036353685490583862, 0.070006124888990967], [-0.014841388020097202, -0.037127860277617213, -0.0033524399194374173, -0.079967222272035704, 0.0085277679007497234]], [[0.026889478317947937, 0.0087916265358738092, 0.085003036737345508, 0.39280523078536861, 0.41333351130753526], [0.39044460765263139, -0.035708668319861886, 0.13018029804160627, 0.22493743587386511, -0.3726359700272398], [0.48117114558380319, -0.29284664607952654, -0.1261934209761181, -0.22271922146453346, 0.42888938006198707], [-0.090925097158175774, -0.22746216852804918, -0.020538572603790578, -0.48991559581276029, 0.052244987050272064]]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2, 4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank2_taggedData_rank3_offset1(self):  
       arg0=Symbol(shape=(2, 3))  
       arg1=Data(numarray.array([[[0.02481087041232799, -0.68134580421745472, -0.85402651508985072, 0.58190795716363941, 0.82109679443344863], [0.11141292556583537, -0.055411836391080049, 0.48537099380271886, -0.13885020730308861, 0.44734988461600733], [0.9797241013591893, -0.79781119043448889, 0.92461518184500568, 0.75091465809136615, 0.95205276730783384], [0.18082181892302929, -0.366853287679757, 0.56144803732337611, 0.88407887606157587, 0.70391653730603432]], [[0.057545924469279974, -0.81438196960055254, 0.75984057537050842, 0.29396183697228495, -0.19857104972233497], [0.54654878846180877, -0.044207857496574743, -0.90175833254050031, -0.94920930397933678, 0.54227073045811203], [-0.30689091060060014, -0.041394150877339886, 0.86891804451317478, 0.93762315337986202, 0.38746692741885025], [0.25256128559004876, -0.24410999682127699, 0.55735348587034528, 0.13029734864664544, -0.85837239261892373]], [[-0.84358563091087269, 0.92198846333735474, -0.87216015328120178, -0.0049659222308380269, 0.23631603068963747], [-0.70920392461490622, -0.17344351922870294, 0.14310338195314931, 0.18960962890592237, -0.26497519306866879], [0.73429152187103752, -0.41180790613027085, 0.37283988422024295, 0.51769466407775355, -0.2946268762605242], [-0.44293967816095248, -0.41224486670574856, -0.0051708370991814245, 0.98355632355129186, 0.30145938032746855]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[-0.16174908496583451, 0.80220858650460602, 0.85441040790978118, -0.84461957444753177, 0.63276963609075443], [0.53106075511124251, 0.7896185214688487, 0.750700071981242, -0.64368352551345609, -0.44116882653564615], [0.92685259519578778, 0.77717823754290949, -0.80267913291766835, -0.39339442481714593, -0.068131332104359066], [0.50434289450602243, -0.3337289950019533, -0.24656523015635146, 0.058770138194863097, -0.43916126934244804]], [[0.48035369585330789, 0.56795700367103086, 0.13102455981567407, 0.30999847209392195, -0.69020973614369208], [0.79188162650155136, -0.67962979040532634, -0.55528124820000402, 0.61899500721642076, -0.43875739823597026], [0.91497757608030428, -0.61087986591892918, -0.24509093340712962, -0.897735064831509, -0.804222050658145], [0.88271163483519199, -0.61325650409760701, 0.73054108832169318, 0.83006137917673306, 0.043143058402431267]], [[-0.43689924550007975, -0.65262618875978617, -0.83277307660194277, 0.24519270343801614, -0.73973180361634583], [0.30401281884499487, 0.91534284483358075, -0.96296047113040806, 0.53961842974989005, 0.039942280519574824], [0.13330500695419767, 0.60527568776917495, -0.93970850767631742, 0.45151050829829908, 0.4322543195268187], [0.44516553747012977, -0.81425265414017201, -0.22766145679809702, -0.56800009855324962, -0.99936019064194404]]]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       s0=numarray.array([[0.63159154774570192, 0.69403078468270163, -0.22127949369185029], [0.21515325220870274, -0.22193729721133804, -0.7463990005418335]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[[0.24227718045302415, -1.1995555487860747, 0.18094797941295346, 0.57264556844811898, 0.32849148216892571], [0.60662143198359131, -0.02729976741810259, -0.35095766982470372, -0.78843381808767155, 0.71752856314192581], [0.24331006586325249, -0.44149497462322679, 1.1045331852207148, 1.0104554708516573, 0.93541734252157371], [0.38750430741780928, -0.30989995302230727, 0.7425705122313625, 0.43116627149147058, -0.21785590896588755]], [[0.62221802430042861, -0.65402329997144926, 0.29859592091821652, 0.063664853278836558, 0.044345918661531702], [0.43202039288114225, 0.12734740500065853, 0.19775073364227977, 0.039266436233428903, 0.17367590155046425], [-0.26917309211878243, 0.14490824324645754, -0.27219867582604329, -0.43293859749783048, 0.33875309250407215], [0.31346136638716293, 0.28294659147670009, 0.00095935257372901841, -0.57283085287406155, 0.11694580092317233]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[0.32789774137689365, 1.045260600307985, 0.81484907475403545, -0.37256221871754974, 0.084312628025581343], [0.817731908254544, -0.17551421388479838, 0.30183694544460604, -0.096349976486213615, -0.59198805096212426], [1.1909172057805046, -0.067045324500124459, -0.46912778593727433, -0.97143038179977714, -0.69683505134218215], [0.83266175316837399, -0.45622189018615145, 0.40166630132956632, 0.73889364709334016, -0.026290018136272464]], [[0.18469191754339934, 0.5336664790269442, 0.77633093336279557, -0.43353446014397184, 0.84146080734077333], [-0.28840348345228894, -0.36248679285178675, 1.0035059145507481, -0.6786393394355803, -0.027355154965443575], [-0.10315102402762945, -0.14898771668712663, 0.5830932843343456, -0.2224061881276162, -0.1588060014734434], [-0.41966673271437566, 0.67205897962444416, -0.045257341977674892, 0.25237771321918834, 0.64185941835804694]]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2, 4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank3_taggedData_rank4_offset2(self):  
       arg0=Symbol(shape=(2, 2, 3))  
       arg1=Data(numarray.array([[[[0.49525303017452438, -0.72252067135385656, -0.75095045535043803, -0.96844393670492068, -0.69466924001935948], [-0.99530790860740082, 0.66187525664595026, -0.49504656706145611, -0.073374708225051766, 0.0375301262329093], [0.79275110020525141, 0.30869146647175927, 0.4653951051867653, 0.57319645947711484, 0.46294885093814608], [-0.26795299063665179, -0.98272576036504078, -0.30468776701833367, 0.94313731509948751, -0.89348816247694263]], [[-0.92123077624021565, -0.21062184129868, -0.43560859641117, -0.20089824000459555, 0.61741780913852917], [0.90938483221151611, -0.17426274357134064, -0.86432819150694118, 0.57681673767815655, 0.96991602061244153], [0.033258624055275465, -0.56971083196212846, -0.22067726093817353, -0.96822186845868208, 0.0041068334591567446], [0.92165812550792769, -0.39616524258061414, -0.72571258351599455, -0.94807535871578796, -0.049208825657581112]], [[-0.45830872978692438, -0.7629183693331083, 0.81507538938468316, 0.29255150755387227, -0.15897434426637802], [0.20682766192322299, -0.11431402391520584, -0.17713715377949235, 0.1604238489140497, -0.78001798654820109], [0.97659847377248954, 0.95595193664312261, 0.26953314946967377, 0.75287562607651437, 0.32374130717399408], [0.27025639041943816, 0.42820310111724025, 0.41052301542183334, 0.44387605997638779, 0.14491533418496161]]], [[[0.22195086258567454, -0.62627758131156819, 0.62203104399283982, 0.68365085969144279, -0.57752792529940766], [0.28231384040369689, -0.42100027107755089, -0.35584905086965479, 0.27222925038196011, 0.30555568042403003], [0.82224210261114794, -0.90073685289988514, 0.39182316666311245, -0.37159535489084461, -0.19196804273720169], [-0.77364694236546527, -0.6889408212832806, 0.89514448012370695, -0.75523905434077832, -0.042091403912800862]], [[0.75286188342006199, 0.43681763776796667, -0.26926979596892742, 0.089099505011855928, 0.50189201932808336], [-0.52656955864311472, 0.43219600714830375, -0.84312042806482279, 0.93344399762780017, -0.71312845373246914], [-0.93768387266673159, 0.76265021219977114, 0.7417560658230431, 0.0036000913732225914, -0.61971026795082573], [-0.19142043873982173, 0.36185705910037624, -0.28251341169327371, 0.068751588400508545, 0.81711972443528325]], [[0.055568625844194752, -0.74782084026103934, 0.70147035585515671, 0.58829585144601526, 0.61130551658966792], [-0.73323758007244, -0.66590177734916001, 0.48736525604216463, 0.6600996248470552, 0.39802305888059464], [0.45701505150362065, 0.17032380753266052, 0.84444536056339903, 0.52396318114128726, -0.54828108683957311], [-0.83898192418872775, -0.92964687326264506, -0.95306146574096595, 0.70870456850412356, 0.90782611660239687]]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[[0.85782802051811746, 0.71668841808922057, 0.51579272308283497, 0.61780642258045826, -0.55894189879695144], [-0.93862053619730634, 0.37739489916269009, -0.93902944548930889, -0.13178895080183617, -0.91747602790497029], [-0.66079995974613714, -0.94720221961453577, 0.68478394066358805, 0.39479057097783632, -0.13071749535800503], [-0.26715812139617312, -0.73588716947805555, 0.75579255118211619, 0.4052889839316669, 0.46336103923704686]], [[-0.67234299226121985, -0.17843115521793873, -0.9679593903642405, 0.70703076268189791, -0.98780993040308518], [-0.37696782163336517, 0.95782797355043936, -0.4506263333572067, -0.38149198377259164, 0.41721164105183051], [-0.15759811541513624, -0.48163390222838598, -0.80758125277032344, -0.19782844926561549, 0.54948096580900407], [-0.98576737050544039, -0.35754639155094159, -0.56148941837813826, -0.95569540655423868, -0.14382751572534458]], [[-0.90345957045831615, 0.30804927053578557, 0.51802911218669245, 0.17029819069157992, 0.21593736141123787], [0.012970539888272903, -0.86420455471101287, -0.17733141163599297, 0.087641288032835662, -0.50020201454750191], [-0.83551576539434991, 0.0085811905321793169, 0.77761913969803076, -0.5995245434845129, -0.5751334558190333], [0.51916808994031172, -0.21781999673497476, -0.30594453944221023, -0.99245928836504538, -0.66560706205159303]]], [[[0.35351965181670009, -0.98029303694812331, -0.10876461349671529, -0.72368114885359591, 0.74871114493681845], [-0.80536646090872499, 0.6925175429434538, -0.36194540300838041, -0.30808172933560263, -0.73571225278514829], [-0.073595890975787226, -0.18209460613663064, 0.79591551140844863, 0.64959352771251777, 0.91497138400339684], [-0.58068192481766867, -0.55242569224477966, 0.78042584637022938, -0.15130503208211077, -0.2353984398818012]], [[0.015127859558093926, -0.24977012187443082, -0.85785424685122735, -0.42450436736760699, -0.51481529935742332], [-0.35886370313341809, 0.76372579430133802, 0.80844024130859449, 0.22356301669460876, 0.0050601121116178316], [-0.3658337798757183, -0.66096412965911266, 0.29441275812045653, -0.011316848605614549, 0.19309299044382766], [-0.074265146364622669, 0.98813398338080516, -0.44587687621194205, 0.10362184214907577, 0.60583843642841018]], [[0.83100858421474344, -0.54482957720040193, 0.67856991158795665, 0.64968982151909893, 0.58608964154879173], [-0.62389573405162069, -0.47504073832295513, 0.69267341151352468, -0.73483711442783339, 0.99945327212297896], [0.26529231017322319, -0.43872831022788139, -0.36160275704042255, 0.79254197879426558, -0.15969695021457975], [-0.94070846860745694, 0.63932716245513066, -0.60259006496458523, 0.62687035340762431, -0.83575149514064262]]]]))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       s0=numarray.array([[[-0.3893265660982439, -0.61475543860190007, -0.74591976266188742], [0.10225570341250068, 0.47401286492223083, -0.64748812440509784]], [[-0.4857713037071627, 0.33407886034122125, -0.33088702206502929], [0.45090826302193032, 0.5282805582575314, 0.69026909549022775]]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[[1.0589599417658322, 1.6070751418933766, -0.56604797567915066, 0.013551220635456274, -0.207490973775939], [-0.071796220884501327, 0.52769271964282061, 0.10461460006263557, -0.40280303364525655, -0.59354424667448558], [-1.7138561782234807, -0.3238945090884956, -0.40167850604481992, -0.56507695036442018, -0.38262299784176396], [-0.29047744042033941, 1.0097529109187129, 0.83325618712356264, -0.61896600975929206, 0.065229405589933509]], [[0.13946405190301001, -0.034773794735462049, 0.57199693742471514, 1.0679407246633632, 1.0230121562766452], [0.061851621402662982, -0.76307564869758915, -0.2591082089715212, 1.246780541966559, 0.5996839094776627], [-0.50626952820366911, -0.54228104048914572, 0.76244193126395732, -0.65499959029430022, -1.1230394105830417], [-0.68044475158823547, -0.55785087410778589, -0.63376057315219325, -0.73678034732634079, 1.4089740924898853]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[0.25851163309635772, -0.26497848048030165, -0.84928337316531932, -1.4980957458674424, 0.11684533883800724], [0.7390036993804503, 0.64928039712589436, 0.67259138823947473, 0.77072677976021131, -0.24614110626499802], [0.62466986117653245, 0.61060282673219879, 0.10489472934895755, -0.036990345127395741, 0.43059027515873849], [0.83727675627035592, 0.66672305110105712, 0.53776016261459925, 0.79777935167048231, 1.2087529949309708]], [[0.39863546033635022, -1.4597361993815838, -0.7791759280800441, -0.22236846963142759, 0.34025334349504388], [-0.65765689543809569, 0.81043396779817978, 1.1062956270345057, -0.62047643401707342, 1.1114016017806498], [0.50148399680156153, -0.43774250847285423, -0.59493408465743203, 0.77450251061196251, 0.84171454034584658], [-1.3217413688189965, 1.0243244339412303, -0.75308792170188354, 0.23146245534215659, -0.41588035286905511]]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2, 4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank1_taggedData_rank3_offset0(self):  
       arg0=Symbol(shape=(2,))  
       arg1=Data(numarray.array([[[-0.48938767041804687, -0.17946858197962912], [-0.87490456944922124, -0.65741406313135586]], [[-0.44585118815096836, -0.057276939847211494], [0.35084658697862192, 0.30038348583731045]], [[-0.13488388654510763, 0.71934667088244386], [0.89713758879513916, -0.06869414472947688]], [[-0.86210103041803543, 0.069238859297329425], [0.31120179009040094, 0.67072421447610209]], [[0.50858025936959739, 0.16359134037891043], [-0.92818541713598801, 0.22174540585464042]], [[0.78969663544121049, 0.96885468345121395], [-0.58454506174656329, 0.56730621124916514]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[-0.027128178836059336, -0.8466632278144528], [-0.82444364026575334, -0.78484978039149134]], [[-0.20694437633631391, -0.25922875302662884], [0.15360299181084058, -0.23262907299653435]], [[0.66268962529174291, 0.4699109016855878], [-0.95006416238010827, -0.41887342355179213]], [[-0.43574358017636561, -0.15674162932145141], [0.85759270685276845, 0.39560550568810693]], [[-0.39825098413245064, -0.021778642704622042], [0.4619331010879939, -0.1122359682222891]], [[-0.84142180679198453, -0.8095654460980477], [0.49359900947042679, 0.98789655480278227]]]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s0=numarray.array([-0.57577157070941287, 0.89544705286965876])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[[[0.28177550768241932, 0.10333290733940209], [0.50374517817262066, 0.37852032773559791]], [[0.25670843890434103, 0.032978433621257519], [-0.20200749046271779, -0.1729522714557169]], [[0.077662307219466861, -0.4141793625785718], [-0.51654631864303269, 0.03955213560943064]], [[0.49637326439399559, -0.039865766771751396], [-0.17918114348793115, -0.38618393448174243]], [[-0.29282605476903367, -0.094191243004423456], [0.53442277553395945, -0.12767470062652256]], [[-0.45468487217192438, -0.55783898287987643], [0.33656442835224948, -0.32663878832413779]]], [[[-0.43822074718658793, -0.16070461281635565], [-0.78343071825550281, -0.58867948534604042]], [[-0.39923613244822032, -0.051288466983578258], [0.3141645423193854, 0.26897750712373453]], [[-0.12078137868642205, 0.64413685643328478], [0.80333920990519914, -0.061511969447411871]], [[-0.77196582696372584, 0.061999732501850605], [0.2786647257842117, 0.60059802114094252]], [[0.45540669440019266, 0.14648738361729255], [-0.83114089629101529, 0.19856127015992414]], [[0.70713152486691722, 0.86755807095535564], [-0.52342915281047275, 0.50799267493771694]]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[[0.015619634138923736, 0.48748461654062897], [0.47469120971719897, 0.45189419082694671]], [[0.11915268861263931, 0.14925654630318455], [-0.08844023586059277, 0.13394120675188925]], [[-0.38155784644705909, -0.27056133795698739], [0.54701993504831758, 0.24117540900684453]], [[0.25088876558468903, 0.09024737410996464], [-0.49377749985355557, -0.2277784033913329]], [[0.22930159467051056, 0.012539523317959329], [-0.26596794717610422, 0.064622279713439146]], [[0.48446675532577305, 0.46612476849193946], [-0.284200276983398, -0.56880275105721556]]], [[[-0.024291847788470381, -0.75814209211956429], [-0.738245627933102, -0.70279142279695983]], [[-0.18530773189830183, -0.23212562291677144], [0.13754334632897952, -0.2083070178265474]], [[0.59340347193478971, 0.42078033202568355], [-0.85073215424034887, -0.37507897264487655]], [[-0.39018530467580043, -0.14035383003788215], [0.7679288619138247, 0.35424378416742636]], [[-0.35661267004384417, -0.019501621425355102], [0.41363663399218631, -0.10050136697062144]], [[-0.75344867711214591, -0.72492299281360739], [0.44199177832967645, 0.88460905853824068]]]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2, 6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank2_taggedData_rank4_offset1(self):  
       arg0=Symbol(shape=(2, 3))  
       arg1=Data(numarray.array([[[[-0.79412473195678968, 0.078872739876912012], [0.14117394911957137, 0.35030172814355365]], [[-0.25200338921931276, -0.36341265289108771], [0.76045730076854778, 0.039422275079277203]], [[0.91748185572883889, 0.96293458406186105], [0.47102786084695669, -0.13532591079822431]], [[0.21088255840178638, 0.61718786785299495], [0.44668833934965058, 0.85669855767971237]], [[-0.51690330184871636, 0.66784287119072183], [0.47994360090736077, 0.017872538534659865]], [[0.21021269812291443, 0.53001029897497109], [0.67818705460357398, 0.7386705602995014]]], [[[-0.4348693150236953, -0.89665441145061453], [0.03680706197322503, 0.89963230828883245]], [[-0.63514990637761226, -0.73443340265484958], [0.98729892653933238, -0.42012150703872142]], [[0.59528300259904277, -0.39520336898366915], [-0.95457824551701553, 0.65904699083903706]], [[0.7772086971749288, 0.42980346183676432], [-0.033697323425560644, 0.30070444978931254]], [[-0.51625321429876969, 0.12464939571463174], [0.82618315361111239, -0.43234683257975237]], [[0.32914788025082165, 0.18699526780010078], [0.19940193458618549, -0.3699909883731709]]], [[[-0.64109459555283599, 0.80614245400495887], [-0.52584653946633853, -0.85808963384420855]], [[0.62555197509288818, -0.8724782084610152], [0.50983746797752461, -0.58251076099132737]], [[-0.31204161316464596, 0.41733410914284175], [0.75396091484277927, 0.3292927152165428]], [[0.25182592840146745, -0.35674033234050695], [-0.49407691159411149, 0.44630036598976153]], [[-0.09779198656534227, -0.28457633059430343], [0.37303106717386258, -0.77082995491430584]], [[0.27092814019890032, -0.058268848979110555], [0.13294234415524531, -0.79394137806681497]]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[[-0.18757426106239694, -0.20957632807740678], [0.41259263866108342, 0.48080263722904504]], [[-0.043273824886633117, -0.52973034975840472], [-0.11951874141908569, -0.77180655449488711]], [[-0.80384260512604233, 0.63062538636276932], [0.83067944871530908, 0.99471428178686194]], [[-0.77892223795746385, -0.23458646594236021], [0.011880572557519731, -0.52299568314230283]], [[-0.50758804175202732, -0.90329623799437986], [0.1358789829747824, 0.91841351530836213]], [[0.082980586056692118, -0.55989170071407623], [-0.64510151934509508, -0.60760187097822249]]], [[[0.02077070479234755, 0.80728811819445201], [-0.0015691508614950056, 0.075931510652821332]], [[-0.48702371723274562, 0.36728600133298772], [-0.46978445406324498, -0.029625286278367913]], [[-0.79457577695954851, -0.19875550673676989], [0.269677449127258, -0.61783090948341823]], [[0.54960640372695346, -0.53198578193862889], [-0.42319854782643462, -0.68387286709915496]], [[0.89342895975519454, 0.5874303704502748], [0.26583738910986177, 0.65296055959206267]], [[0.10345829937163242, -0.68545995586490394], [-0.31362066119921805, -0.81991939399693425]]], [[[-0.70500933383342423, 0.22846759035347453], [-0.69865586742726848, 0.074886817165394026]], [[-0.46782382275200329, -0.61477034782693729], [-0.92488599246656111, 0.35824215296214135]], [[-0.12042793780080907, -0.68906253231698855], [-0.83719396219928366, -0.37349323191521777]], [[-0.99630471598125059, 0.70281240177048332], [0.51713683902730745, 0.20116638531933706]], [[0.99127990749181416, -0.74915482906575592], [-0.39750856467171092, 0.64628329886312885]], [[0.62618531630120078, 0.88691249921889037], [-0.33105486130409378, -0.2965959453555147]]]]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       s0=numarray.array([[-0.4261279881465212, -0.30651338408481799, -0.78842419830608956], [0.89994041854893037, 0.58524791770562867, 0.19929691944017724]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[[[0.97714653228581327, -0.39435552197440721], [0.34315010827012432, 0.25151591773467774]], [[-0.19113267000231354, 1.0678569023215441], [-1.0286406716813006, 0.5712395098208185]], [[-0.32740574625999619, -0.61823456542081368], [-0.50256817613554861, -0.40396291032308457]], [[-0.52663348397079812, -0.11347882748658211], [0.20952447018732809, -0.80910717960555978]], [[0.45560705245100797, -0.098426381897415594], [-0.75186031544547727, 0.73264509109715714]], [[-0.40407204650887107, -0.23722820419782248], [-0.45492880803983871, 0.42460158466801756]]], [[[-1.0969394827123677, -0.29312265295297601], [0.043789803821645559, 0.67074399834197029]], [[-0.47383761412246883, -0.93075757377095814], [1.363789939235484, -0.32649013864909143]], [[1.1118782107314473, 0.71846520617740883], [0.015494167469355558, 0.3295476459911863]], [[0.69482964128267966, 0.73587663990605512], [0.28380359626096552, 1.0359105997393403]], [[-0.78680793416065853, 0.61725440627651662], [0.9897865579180567, -0.39056989911114232]], [[0.4358071587983478, 0.57480347929473297], [0.75352250843074198, 0.28999296682565506]]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[[0.62941056230478809, -0.33826765075584764], [0.37550088687217409, -0.28720006357414379]], [[0.53656309803866054, 0.59785467163495587], [0.92412800076706358, 0.055522138808244914]], [[0.68103624273077212, 0.33546767043527631], [0.22342846865459565, 0.059968949125022125]], [[0.94896959442845852, -0.29108968334003305], [-0.28306982317255364, 0.27387483897356169]], [[-0.83909952921608766, 0.79551633334925853], [0.17402081602232233, -1.1010482461441833]], [[-0.56077135963943603, -0.25057510143229877], [0.63203640639089376, 0.74407585144254407]]], [[[-0.29715583569007309, 0.3293903687032369], [0.23115048752554757, 0.49205719705288559]], [[-0.41720932717961073, -0.38429422168216704], [-0.56682704882007973, -0.64052149329781294]], [[-1.2124351864477354, 0.31387598770824654], [0.7385399986705099, 0.45916328326606326]], [[-0.57788806222441491, -0.38238906685745577], [-0.13392048250427832, -0.83080828454246669]], [[0.26363747543594457, -0.61842464300780464], [0.19864153484501779, 1.3374635217618156]], [[0.26002314216141081, -0.72827425441591198], [-0.83007698426588161, -1.0857722583302225]]]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2, 6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank2_taggedData_rank0_offset0(self):  
       arg0=Symbol(shape=(4, 5))  
       arg1=Data(0.534603257087,self.functionspace)  
       arg1.setTaggedValue(1,-0.981117351887)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s0=numarray.array([[-0.57186484566737983, 0.9727812008214678, -0.5572419712245178, -0.91272257242384125, -0.67323119467258663], [-0.7637546905646635, 0.93063887136043233, -0.75952665408943676, -0.98819953256794668, 0.98659845572265503], [-0.08433762128919442, -0.56035891207066579, -0.25253982630212679, 0.86342593947330748, 0.60083346105569357], [0.7182742556331001, -0.95065323078659647, 0.8893530179391631, -0.014976934734816982, -0.4065612085688759]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[-0.30572080910761196, 0.52005199839262939, -0.29790337280247658, -0.48794446003505143, -0.35991158944486201], [-0.40830574519171164, 0.49752257180150605, -0.40604542312097075, -0.52829468876315233, 0.52743874786681211], [-0.045087167036213967, -0.29956969953097629, -0.13500861368542413, 0.46159031949624996, 0.32120752524751905], [0.38399175654354256, -0.50822231353925296, 0.4754510200908591, -0.0080067180904198135, -0.21734894630634446]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[0.56106652301852444, -0.95441251571554508, 0.54671976716816562, 0.89548795326409236, 0.66051880692498], [0.74933297949818034, -0.91306594503237881, 0.74518477954792373, 0.96953970852916782, -0.96796886425454742], [0.082745103663714431, 0.54977785191712714, 0.24777120562757951, -0.84712217128671252, -0.58948813423614377], [-0.70471133561544974, 0.93270238035229425, -0.8725596778533028, 0.014694130546410078, 0.39888425633112845]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank3_taggedData_rank1_offset1(self):  
       arg0=Symbol(shape=(4, 5, 3))  
       arg1=Data(numarray.array([0.77000447834650387, -0.30459229698740642, -0.33042213174562263]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([0.47725553244593666, -0.19804999504718968, -0.27627135670469816]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       s0=numarray.array([[[0.8671101855281016, -0.070877228936592429, 0.60040671934273071], [0.25215256888677295, 0.59476713639706191, -0.56655117243373887], [0.97178772493884891, -0.47045287774625222, 0.39419023583537993], [-0.88038969536301304, -0.18598390712099566, 0.48801709450679431], [-0.0064999202971329773, -0.9958568560976726, 0.85116384168065351]], [[0.47639005985199456, -0.14342463168480113, 0.23192726068880321], [-0.31385320396188465, 0.6576930299019077, -0.57054441268631018], [0.54953839231690127, -0.7664786464036768, 0.96386427250940176], [-0.55900143583437933, 0.53866177913516533, 0.92531496881963338], [-0.68690296982403343, 0.40852142389633816, 0.68052013438293901]], [[-0.83798891884883053, -0.06182415902392413, 0.73583746087591639], [-0.58398683974005561, 0.20113429654599724, -0.753940277413919], [-0.4270252447720555, -0.93313952361173569, -0.96946021546492633], [0.8571508865889812, 0.383323961773266, -0.80799214039312384], [-0.97098007392855123, -0.33838722330006155, -0.33670498158875373]], [[0.3945722656559485, -0.61202307948727874, -0.72952487905698393], [0.97234512779090809, 0.19280079958938057, -0.23011399651129594], [-0.16839442682929895, 0.69647226132384854, -0.065505934555669665], [0.5696845567258102, 0.22299463722326496, -0.87844657522035252], [-0.015529859502507293, 0.78752345069168084, -0.22109491952562199]]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[0.49087971592278412, 0.20019816516012517, 0.76132804482410465, -0.78250639134219768, 0.017081988498844236], [0.33387461764852405, -0.25347610218911409, 0.33812842697124568, -0.90025038213421849, -0.87820975532579904], [-0.8695610401528393, -0.26181788561116315, 0.2757468711016296, 0.81023098074776434, -0.53333408590812115], [0.73129109287621918, 0.76601922176123205, -0.3201599381139234, 0.66099540116495947, -0.17877698351486729]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[0.26199518919592657, 0.15906944115490468, 0.44806078694371176, -0.51816188573069755, -0.041024866823507478], [0.19169018029413532, -0.1224192003282043, 0.14778323990335224, -0.62910651240197524, -0.59674412937224286], [-0.59098138689083823, -0.11025349326085498, 0.24884220646582161, 0.55638777886800772, -0.30336608220580075], [0.51106979268215436, 0.48944680029420701, -0.20020608633113457, 0.47041064677750893, -0.10229853349685317]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank4_taggedData_rank2_offset2(self):  
       arg0=Symbol(shape=(4, 5, 2, 3))  
       arg1=Data(numarray.array([[-0.83366785662866527, -0.8212715491846847, 0.72712171256208302], [-0.94070455409205733, 0.68289289969514422, 0.19256860284029953]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[-0.58677121731508031, -0.611485698544181, 0.52884730670453295], [0.33807509347654929, -0.016520163711764679, 0.83516212814968682]]))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       s0=numarray.array([[[[-0.38877225820887462, -0.046865346339239444, 0.70324292436831892], [-0.62475974967659198, 0.40707326194201277, -0.33982211968722509]], [[0.99840132864776709, -0.71815861333499509, -0.9944258981363201], [-0.59222566286017431, 0.90611774958207492, -0.51798741567420103]], [[-0.7698853017615761, -0.43838184858452478, 0.63618499594256361], [0.56344947067266138, 0.9476531959526191, -0.40999809733775927]], [[0.16180623882821799, 0.26495916036166856, 0.12946713393457943], [-0.31567990142785285, -0.50539161073833938, -0.4454026196193337]], [[0.28748581058530531, 0.81406087206205768, -0.11238863877523686], [-0.10623460031761423, 0.19092160239523515, -0.76057401501120436]]], [[[-0.31516183298405598, 0.26525864558622336, 0.45173474279243542], [0.14084219780601703, -0.67591014703808572, 0.73120574845941455]], [[0.12874600437028105, 0.74469373309718256, -0.29328227245217708], [-0.39815920007741878, -0.11244821862939336, 0.1247949351276223]], [[0.91453844037574283, 0.42817273894237506, 0.91891133476994225], [-0.69399341722872099, 0.19822157745209368, 0.9819020505968139]], [[-0.88286373062973511, -0.4983467344703314, 0.23470934722940862], [-0.99060581070092013, 0.10377836720397826, 0.98466703671658418]], [[0.027635286963112682, -0.16870607028613338, 0.41758918807197531], [0.81354566826410801, -0.44653130296961718, -0.75871730396927584]]], [[[-0.43507530803394179, 0.59251147589059516, -0.24715130859281276], [-0.5086954385435829, 0.99530835927973649, -0.99705234347980709]], [[0.3258233422805592, 0.19598031161021812, -0.63534763371263758], [0.48848628481993051, -0.89338520432256407, -0.27590003410776287]], [[-0.93063540922278531, 0.39492215773819361, 0.46319307797043319], [-0.71243499437025726, 0.12420621922075803, 0.72195904976159775]], [[-0.075674316500414562, -0.58211033151791747, 0.77030338664199105], [0.75474721648629517, -0.94313810784168917, -0.040538030340477871]], [[-0.46644793732717016, -0.57627758387684769, -0.51555487613000328], [-0.47309694099372268, 0.92785128402896633, 0.33138586943106407]]], [[[0.51729048454564897, 0.97471079414114814, -0.25192254696553906], [-0.34953838040724228, -0.3524565618927602, -0.65147279352116971]], [[-0.051546350010283515, 0.5623722400219231, 0.21070894705007515], [-0.70961682638053802, -0.99400975846698536, -0.072087964585704656]], [[0.44664572235769273, -0.73012523645532967, -0.57103208224637325], [0.52124063719398905, -0.63454681573737082, -0.50810266533281045]], [[0.95873390557475036, -0.25926273145066259, 0.16850066162321498], [-0.3151716904323465, -0.92157817587826352, 0.7151562691110982]], [[0.80689757319146094, -0.42507749013552076, -0.32147786392489031], [-0.15860591701227467, 0.065717747622027201, 0.2258576517427846]]]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[1.6742020214903701, 0.11054212181084896, 1.5025964881024132, -0.39229509805864698, -0.90610122898190881], [-0.079900816956261167, -0.6103874205910822, 0.5313833753230347, 2.5083082342360048, -0.79719129173440639], [0.66260654954098108, -2.017293930579759, 1.6823372731402451, -0.2606005961901609, 1.6297539063935471], [-1.4522599901248068, -0.29082103989009295, -1.2094385000986883, -0.65895915014153983, -0.31976147237079411]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[0.12693879438993982, -1.3203783319107216, 0.88867345130641695, -0.65885139561845285, -1.4001833505213899], [0.9310814607416491, -0.71454159938410633, 0.26966830808144238, 1.432639363366389, -0.04344898448749801], [-1.2588482015423379, -0.69754214524196179, 0.90958365426248922, 1.0446147289004191, 0.4549242975226474], [-1.6892144238120106, -0.48589151722954071, -0.35525330159163376, 0.19103346797464799, -0.24962678886196418]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank2_taggedData_rank1_offset0(self):  
       arg0=Symbol(shape=(4, 5))  
       arg1=Data(numarray.array([0.041512455680745575, -0.49181972327797818]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([-0.032051080013596911, -0.88147919316825241]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s0=numarray.array([[0.99675886761085719, 0.86004350022644682, -0.52008358146487899, 0.58783718314393685, -0.27452865335287191], [-0.265034364238663, 0.42779030177850186, 0.10466019521277459, -0.16162022726520964, -0.38932038784819811], [-0.6162248855167467, 0.88684947232669953, -0.096505574095581581, -0.94919211954284055, 0.79254031063022379], [-0.43482032502233547, 0.48052961188924037, -0.49761875963164925, 0.47040768157734014, -0.66087566638036965]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[[0.041377908316085857, -0.49022567044324267], [0.035702517686663673, -0.42298635628839482], [-0.021589946625844219, 0.25578736311747663], [0.024402565012756998, -0.28910992074635722], [-0.011396358555405861, 0.13501860632388546]], [[-0.011002227299332078, 0.1303491276790141], [0.017758625943232832, -0.21039570784170555], [0.0043447017153084855, -0.051473948247765973], [-0.0067092525214590424, 0.079488015449699342], [-0.016161645346159003, 0.19147544541797593]], [[-0.025581008249386462, 0.30307155267185015], [0.036815299415454715, -0.43617006206893832], [-0.0040061833675877389, 0.047463344746471355], [-0.039403295795035126, 0.4668314055711974], [0.032900294520241499, -0.38978695626079951]], [[-0.018050459471577088, 0.21385321192812556], [0.019947964216837963, -0.23633394074624045], [-0.020657376705116425, 0.24473872065996849], [0.019527778033361608, -0.2313557757812027], [-0.027434571811098294, 0.32503168736034282]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[-0.031947198220057836, -0.87862220240491928], [-0.027565323040931799, -0.75811045066920801], [0.016669240483288883, 0.45844285576971661], [-0.01884081659191374, -0.51816624591201565], [0.0087989398346379078, 0.24199129585905638]], [[0.0084946376145661751, 0.23362227755095738], [-0.013711141191343533, -0.37708825005691704], [-0.0033544722910033107, -0.092255784432988333], [0.005180102835892951, 0.14246486752940657], [0.01247813890184718, 0.3431778213643808]], [[0.019750673112066845, 0.54318941489550054], [-0.028424483397559246, -0.78173935732822952], [0.0030931078770955905, 0.085067655590012253], [0.030422632571743227, 0.83669310369628647], [-0.025401772910010254, -0.6986077935676458]], [[0.013936461028829089, 0.38328506927384554], [-0.015401493039564713, -0.42357685458158106], [0.015949218681220838, 0.43864058274549272], [-0.015077074241245946, -0.41465458361694196], [0.021181778862196406, 0.58254814918549935]]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5, 2),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank3_taggedData_rank2_offset1(self):  
       arg0=Symbol(shape=(4, 5, 3))  
       arg1=Data(numarray.array([[0.016065970725355205, -0.29443813429062993], [-0.12315085992541119, -0.56157249218351546], [-0.082799124550330339, -0.52262592831423049]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[-0.64307127204165138, -0.28571601050843953], [-0.31396957519294788, -0.83270438078672981], [-0.19163027934994115, 0.44925818243720905]]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       s0=numarray.array([[[0.013840411962372068, -0.49339519668540177, 0.45107171731207041], [-0.59259859610546783, -0.83523377225139939, -0.49821129851078805], [-0.83860658786483322, 0.75573684801275975, 0.058689785929783911], [0.0048224906161957737, -0.75193134037801967, -0.22280929986745468], [0.93515954147020941, -0.58589909552083297, -0.77023961104073857]], [[-0.075061395318757995, -0.99948890810131119, -0.3753168420801527], [0.6798623026432089, 0.88496430996660469, 0.056825910830342163], [0.9787130499175376, 0.16412389896589041, -0.56530367879825016], [0.0480631768208577, -0.33164913968497611, -0.52208873887202678], [-0.69231880371335763, 0.38994564522220321, -0.24518781330096662]], [[-0.17775788115294344, 0.68139261003203933, -0.92941760272324103], [0.57444648400267062, -0.46541054677072635, 0.64090954074733131], [0.16039858261023898, 0.53233742660561423, 0.35391902514097207], [0.83402729837796041, -0.10362230677600293, -0.95347993409300025], [0.79560981838597544, 0.96692583461715564, -0.30810772117203555]], [[-0.23558681240791457, -0.80721582012854731, 0.76261433545760959], [-0.33224594684834807, -0.8749846449222709, 0.91941599520236195], [-0.10159916307227213, 0.3704172208323635, -0.21788283886563153], [0.7615629001169113, 0.46155393053605764, 0.59222464350647974], [0.36966931691834026, 0.3321634858065059, 0.52121354303322875]]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[[0.023636059105435432, 0.03726025016146739], [0.13459054495236439, 0.90390607844043636], [-0.11140213449584997, -0.20815606989280422], [0.11112688413618056, 0.5372899488075813], [0.15095338874786829, 0.45622537632969012]], [[0.1529578902920225, 0.77953672723124579], [-0.1027666035926746, -0.72684769540621852], [0.042318625626113812, -0.084895551481377451], [0.08484354885368893, 0.44495051360759574], [-0.038843578874625501, 0.11300381763389417]], [[-0.0098149749399192993, 0.15542509012582606], [0.013478000558607595, -0.2427331340595503], [-0.092285038367736133, -0.53114077381046232], [0.10510793816601402, 0.31093533106448912], [-0.080784454385962573, -0.61623173745313808]], [[0.032480592217379312, 0.12411391633413849], [0.026290418287698472, 0.10868254638737296], [-0.029208980143711236, -0.064230232904142148], [-0.093641198208142096, -0.79294110458675404], [-0.078123147556148478, -0.56777833229234131]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[0.059571709783963728, 0.60954557431783341], [0.7387934959771344, 0.64099222540828393], [0.29075868799981075, -0.36333518883690114], [0.27567936671314991, 0.52465975731548098], [-0.26981851393839984, -0.12534575753589466]], [[0.43400100614804438, 0.68511087242637703], [-0.72594134940180299, -0.90563169714041769], [-0.5725828549259081, -0.67026798097765139], [0.17326770211895176, 0.027880634469631099], [0.36976467433961363, -0.23705551180762663]], [[0.078478993279685938, -0.93415880169452192], [-0.34610295385898254, 0.51135469888330032], [-0.33810707789853939, -0.3301071323410531], [-0.32108911792159689, -0.58036686572904994], [-0.75617634281806045, -1.1709017564207747]], [[0.25880032112617113, 1.0820938040792294], [0.31218843693761505, 1.2365866922973161], [-0.0092112851562571457, -0.37730518313498151], [-0.74814128829001858, -0.33586692656310513], [-0.44189324325115309, -0.14805498320099]]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5, 2),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank4_taggedData_rank3_offset2(self):  
       arg0=Symbol(shape=(4, 5, 2, 3))  
       arg1=Data(numarray.array([[[-0.20250273440407751, 0.21362420193910614], [0.093557688243805615, 0.68664266023733256], [0.32270540757636379, -0.40408852527959493]], [[0.046222372395351874, -0.22743534848221847], [0.92091907229150727, -0.65499140301338188], [0.66430762226474527, 0.92091712324457831]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[-0.12644889934058035, -0.59693610679182929], [-0.32390945586632092, -0.5124513765137777], [0.21700725808854759, -0.19999121974959011]], [[-0.25557526927246865, 0.57323714725296804], [-0.90759880121687964, 0.52206839132514604], [0.82721007715169614, 0.65642730758897638]]]))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       s0=numarray.array([[[[-0.78616747682728527, -0.77287251896247433, 0.84378720460345757], [-0.052020391531933718, -0.3042480918289665, 0.11413094764585563]], [[-0.077758629053176875, 0.98956793042352187, 0.24625081255961812], [-0.43692794479450314, -0.94574418745957511, -0.5302761741362414]], [[0.40895644267795328, 0.65752170693815848, 0.95355876905765569], [-0.4340684994848627, 0.13641288874133362, -0.42162571612635924]], [[0.58955391452197814, -0.5043013842840276, 0.99328244654473563], [-0.55565115506324281, -0.38205342058232117, 0.3480984569486405]], [[0.62083136227537716, -0.49847807722356041, 0.6322739124910195], [-0.7582604727629243, 0.14230878401363189, -0.15384209754562339]]], [[[-0.44402928570422384, -0.32085752923597299, 0.51282177383405658], [0.98606884228941993, 0.36200655480812016, 0.99531969222567307]], [[0.089452734100162301, 0.10305928863678271, -0.05309436675205248], [0.046618255497360872, 0.48565710917995952, -0.21768057683498965]], [[-0.67900894777302723, 0.25004888995056906, -0.24288857088994131], [0.25778866437015746, -0.31259716821961914, -0.66542272259198554]], [[0.51007169874544345, 0.37042976465279853, 0.81358193230657294], [-0.028397204104971374, -0.20702510989647394, -0.57625321808221885]], [[0.95784526923537294, -0.46001630769083524, 0.31494245300374812], [0.82947492933933709, -0.40410005448490582, -0.32750486642402521]]], [[[-0.48801238142776437, 0.54496808409037278, -0.26748652864107347], [0.33581571302027147, 0.25771230730265082, -0.88493861368929161]], [[-0.98787482179237984, 0.81476887852646285, -0.81159829797195537], [-0.12637368201951005, -0.88487409914955051, -0.27345488236041082]], [[0.04030222981736431, 0.043215022009002402, 0.33411672314931695], [-0.82498815702169703, 0.82060775742668834, 0.79408138157885233]], [[-0.65413898538829729, -0.044887206435541227, -0.60657262938433099], [-0.64660412990657923, -0.54585866992281851, -0.091197073347304647]], [[-0.63972089595200998, 0.35575313301825418, 0.017001807874047259], [0.54033510709087373, 0.65223113006205602, -0.51540339901088594]]], [[[-0.43460348033789797, -0.58394768615901227, -0.98548183892582752], [0.61483912218774495, -0.96545471593993937, 0.083548106858432725]], [[-0.23918743282406552, -0.098782292076166067, -0.39250206712239932], [0.17023995277205528, -0.42872193622235777, -0.57815683300586396]], [[0.74738591537055843, -0.19995366501775136, 0.50794710035926327], [0.37525628398437627, 0.60972578782988918, 0.6890786749536475]], [[-0.025758421467011905, 0.97420298924563631, 0.93106231829236741], [0.1016173917468266, 0.44931747529766342, 0.10508191925806298]], [[-0.55651712971288858, 0.35489989356316132, 0.24503711471617362], [0.73852586496848893, 0.32384664577411892, 0.79798815538814338]]]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[[0.15241327341936933, -0.72338006504378938], [-1.0556217185282022, 0.79384806627124371], [0.11189236234799221, -0.2253857995665145], [0.0076907272794429771, 0.075480351051959937], [0.025489503003779598, -0.52757795872590318]], [[1.2655444553476196, -0.067166407882009671], [0.27919256067230885, -0.41784064370834262], [-0.63549276772406182, -0.34189100153088997], [-0.38086243565535555, -0.3540658452664619], [-0.6867378431054374, -0.46408721882857462]], [[-0.27152664187748388, -0.68209551544126024], [-0.98802880271788651, 1.0328761456565023], [1.3487977984882886, 0.28469365959795723], [-0.66064102537989378, 0.49515607497431202], [0.45155649798645409, -0.92399572556333109]], [[-1.0898294151740973, 0.4738859598152747], [-0.85849157756296113, -0.25066270670511087], [1.0304759405704291, -0.033019933379419331], [0.88510792460255439, 0.06655637911623373], [1.087457240331648, 0.38058449311366049]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[0.91669927589198663, 0.58286164482798897], [0.27411476982811922, -1.6022307516191434], [-0.41940445828965789, -1.2261461164974947], [1.0810615151420353, -0.58162041277409615], [0.15753995778128899, -0.70295441673628656]], [[0.51412880351634227, 1.7345196391932436], [-0.68897879087712699, 0.041786032558701308], [-0.38045782245111698, -0.12646206692204376], [-0.28945962837544653, -1.1596446466338732], [-0.01991792915825813, -0.34948732201453858]], [[-1.2246139165943688, -0.18831485721591135], [0.29408564358159778, -0.37942888827687071], [0.17634790149485113, 0.36373235281826471], [0.55086144318547714, -0.1807064238630032], [-1.1870576525638972, 0.50809065271215781]], [[0.81846430177925511, 0.65902151295676992], [-0.15559305612441793, -0.2338545362968926], [0.0012091678971866138, 0.54049939435441963], [-0.45709522697215438, -0.30825586309929592], [0.18602244879786434, 1.2175727320684708]]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5, 2),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank2_taggedData_rank2_offset0(self):  
       arg0=Symbol(shape=(4, 5))  
       arg1=Data(numarray.array([[-0.0059470173977480556, 0.4833492877384844, -0.10726294373506073, 0.74803182985675476, -0.36927935185428074], [-0.91544753559503667, -0.83188374182886915, -0.51755114828956295, -0.88945856130612833, 0.61251346547919416], [-0.43905018566273757, -0.52844236135091482, 0.64602272473381461, -0.55619830234677003, -0.72018370430454182], [0.34301010174370172, -0.66646984138423049, 0.31633717567291497, 0.35697076367429315, 0.79089575924017219]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[-0.67916597973087267, -0.050218651828837002, 0.80939874251156252, 0.75676633802949156, 0.80557832107940786], [0.66818277325294773, -0.70787258100919948, 0.83604108553184053, -0.58228274768370336, 0.90389133244690378], [-0.48712326805463668, 0.77055366196718067, 0.57829366342298405, -0.75110972386950214, -0.56383764452914309], [-0.26123848753706347, -0.5342334189539848, -0.83147873895199398, 0.79128790279036298, 0.83143565515202789]]))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s0=numarray.array([[-0.8216551880107823, -0.23082917025743477, -0.64129384706752313, -0.24174040832667432, 0.067253891482346839], [-0.33090157331948511, -0.28905628045203868, -0.26462388415087945, -0.21417534818463579, -0.8456359006740426], [0.24024833547264657, 0.49050269904712485, -0.54801791800866129, -0.10425275210230289, -0.62884075397116712], [-0.49539671495703175, 0.31059177803063664, -0.39042284638690106, -0.89579879881371771, 0.40892776536053543]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[[[0.0048863976980500715, -0.39714644989164211, 0.088133154201221295, -0.61462423379900133, 0.30342029527632886], [0.7521822169733472, 0.68352159229551257, 0.4252485860530571, 0.73082824141778679, -0.50327486663744314], [0.36074786284688554, 0.43419740776864768, -0.53080792335040028, 0.45700322068601329, 0.59174267696264993], [-0.28183602963781879, 0.54760840282607615, -0.25992008155232882, -0.2933068799411539, -0.64984360375541406]], [[0.0013727450914287126, -0.11157111503319644, 0.024759416301733981, -0.17266756661198532, 0.085240446381726925], [0.21131199505561579, 0.19202303387700795, 0.11946590212546239, 0.20531298168466527, -0.14138597500806829], [0.10134559005790239, 0.12197991179951119, -0.1491208895177536, 0.12838679262929875, 0.16623940689754313], [-0.079176737175416942, 0.15384068048832608, -0.073019847782159336, -0.082399265185099921, -0.18256181186553283]], [[0.0038137856655793409, -0.30996892421115985, 0.068787065835644381, -0.47970820989779717, 0.23681657619323318], [0.58707087189022433, 0.53348192511036174, 0.33190236694082798, 0.57040430258715136, -0.39280111665781292], [0.28156018261936727, 0.33888683486417437, -0.41429039843759152, 0.35668654904438551, 0.46184937832879913], [-0.219970267730241, 0.42740300853577512, -0.20286508435775852, -0.22892315432731908, -0.50719658407251955]], [[0.001437634414057451, -0.11684505418230841, 0.025929787816834676, -0.18082951999092126, 0.089269741303863462], [0.22130066105639187, 0.20109991543003256, 0.12511302591745813, 0.21501807579979973, -0.14806925525052672], [0.10613617115801235, 0.12774587221008213, -0.15616979726546307, 0.13445560471991125, 0.17409750274879682], [-0.082919402055696562, 0.16111269159363775, -0.076471478016077371, -0.086294258171308383, -0.19119146378255433]], [[-0.0003999600627117764, 0.032507120545633671, -0.007213850378034849, 0.050308051510527516, -0.024835473456279171], [-0.06156740921669044, -0.055947418898887401, -0.034807328763630262, -0.059819549560126695, 0.041193914138813924], [-0.029527833541865986, -0.035539805224969544, 0.043447542224377994, -0.037406500268695207, -0.048435156696652222], [0.023068764160019663, -0.04482269038871195, 0.021274906084538314, 0.02400767300252139, 0.053190817565786856]]], [[[0.0019678774134731817, -0.15994103977551699, 0.035493476840811007, -0.24752490939265354, 0.12219511852298122], [0.30292302981984298, 0.27527163899007318, 0.17125848924232254, 0.29432323733868354, -0.20268166940643548], [0.14528239720201191, 0.17486240877968159, -0.2137699360145599, 0.18404689332417287, 0.23830992083342772], [-0.11350258233146757, 0.22053591908402956, -0.10467646912960991, -0.1181221873288817, -0.26170865106428171]], [[0.0017190227287766152, -0.13971514727282849, 0.03100502754639296, -0.21622329839812579, 0.10674251589473804], [0.26461585958808659, 0.24046122018157695, 0.14960140986826256, 0.25710358334737105, -0.17705086405820405], [0.12691021359944793, 0.15274958340538761, -0.1867369258990477, 0.16077261247009578, 0.20817362280844173], [-0.099149224167509764, 0.19264729338398587, -0.091439247368715934, -0.1031846411778149, -0.22861338639125528]], [[0.001573722842904946, -0.1279057659229188, 0.028384336796629012, -0.19794708828518423, 0.097720136424399043], [0.24224928260550907, 0.22013630692472277, 0.13695639510713192, 0.23537197928408082, -0.16208569232981998], [0.11618316546723838, 0.13983847021054166, -0.17095304266879643, 0.14718335512512751, 0.19057780913523631], [-0.0907686654264067, 0.17636383809651562, -0.08371037212788586, -0.094462990011797116, -0.20928990776859319]], [[0.0012737045218227765, -0.10352150199618561, 0.022973078321765632, -0.16020997761276068, 0.079090533760787202], [0.19606629468083375, 0.17816899005533574, 0.11084669738827521, 0.19050009706354526, -0.13118528473678431], [0.094033726384845806, 0.11317932673784331, -0.13836214200505187, 0.1191239650648228, 0.15424559562632603], [-0.073464307971804671, 0.14274141033302656, -0.067751624743490863, -0.07645433760167708, -0.16939037461301576]], [[0.005029011413468878, -0.4087375102768902, 0.090705396034347241, -0.63256257017376905, 0.3122758773056214], [0.77413530128274155, 0.70347075727754849, 0.43765983142872955, 0.75215809160234592, -0.51796337605547749], [0.37127659919401473, 0.44686983219529874, -0.54630000868617845, 0.47034125235838437, 0.60901319544033961], [-0.2900616563283302, 0.56359082459104004, -0.26750607246684827, -0.30186729325401168, -0.66880984770434371]]], [[[-0.0014287610308358406, 0.11612386183106017, -0.025769743690244484, 0.1797134020036433, -0.088718749607408734], [-0.21993474663924392, -0.19985868428114267, -0.12434080189852437, -0.21369093882569229, 0.14715534053595877], [-0.10548107629442914, -0.1269573977077921, 0.1552058842948027, -0.13362571633152331, -0.17302293619369086], [0.082407605994227487, -0.16011827003528015, 0.075999479903536005, 0.085761631785148423, 0.19001138968982639]], [[-0.0029170280848756299, 0.23708413021823196, -0.052612763409787183, 0.36691163151789785, -0.18113251878689759], [-0.44902948704540435, -0.40804122066048193, -0.25386023513096939, -0.43628182501122853, 0.30043950802025265], [-0.21535530108471404, -0.25920240453345977, 0.31687589012771383, -0.27281676850651948, -0.35325205077113425], [0.1682473807057146, -0.32690525603247422, 0.15516423847650929, 0.17509512306315414, 0.3879365045722295]], [[0.0032590720926751761, -0.26488407033741357, 0.058782015105168159, -0.4099348460023079, 0.20237170156677081], [0.50168165250295182, 0.45588719622231155, 0.28362730274863823, 0.48743922892196367, -0.335668354104178], [0.24060736864820964, 0.28959588265510899, -0.35403202859490757, 0.30480663565202881, 0.39467357421674037], [-0.1879756818135225, 0.36523741489094874, -0.173358440401011, -0.195626374698748, -0.4334250473406786]], [[0.00061999293051551044, -0.050390493473424884, 0.011182457082974551, -0.077984376922688267, 0.038498388725363417], [0.095437924991053455, 0.086726169514821233, 0.053956131562894007, 0.092728502897118772, -0.063856214475924891], [0.045772190166367438, 0.055091570498272492, -0.067349646974128638, 0.057985203734279532, 0.075081133192979613], [-0.035759747105671827, 0.069481315157491313, -0.032979021156171046, -0.037215184533105836, -0.082453059526828298]], [[0.0037397269042795354, -0.30394973053289515, 0.067451310411522469, -0.47039289988155347, 0.23221790604602982], [0.5756707185046297, 0.52312239942802186, 0.32545725430905209, 0.55932779231785534, -0.38517342944942889], [0.27609264978333681, 0.33230609294221325, -0.40624541730411973, 0.34976015980522607, 0.45288086361261615], [-0.21569873100023615, 0.41910339755510367, -0.1989257080592654, -0.22447776417460583, -0.49734748555318853]]], [[[0.0029461328826367022, -0.23944964932246629, 0.053137709962970014, -0.3705725111943336, 0.18293977781007253], [0.45350970184929157, 0.41211247292818526, 0.25639313868488911, 0.44063484936146358, -0.30343715866534005], [0.21750401967859506, 0.26178860985737989, -0.32003753562072257, 0.27553881184726781, 0.35677664127805636], [-0.16992607760090706, 0.33016697003968182, -0.15671239764714753, -0.17684214365994774, -0.3918071610010288]], [[-0.0018470947075456985, 0.15012431468853768, -0.033314988411472651, 0.23233253605872012, -0.11469513048242214], [-0.28433047777422699, -0.25837625048940754, -0.16074713136905305, -0.27625851604064244, 0.19024164631088988], [-0.13636537780967078, -0.16412985259868881, 0.20064934672327203, -0.17275061966350494, -0.22368313722863792], [0.1065361173830459, -0.20700005303932453, 0.098251725849440516, 0.11087218419455291, 0.24564572009929539]], [[0.0023218514599412173, -0.18871060471794032, 0.041877903804880427, -0.29204871620067629, 0.14417509566285824], [0.35741163256488812, 0.32478641834781302, 0.20206379246602027, 0.34726494324833657, -0.23913925064269184], [0.17141522319314337, 0.20631597087003947, -0.25222203102119739, 0.21715252435778815, 0.28117617175604148], [-0.13391898026223656, 0.26020505250425774, -0.12350526054421261, -0.13936954163062332, -0.30878377351787722]], [[0.0053273310414269897, -0.43298371136360037, 0.096086016155090798, -0.6700860146601082, 0.33079999981777292], [0.82005680276301196, 0.74520045668296186, 0.46362169696245076, 0.79677591081260724, -0.54868882663348972], [0.39330062893562007, 0.47337803254043409, -0.57870638082291614, 0.49824177114446561, 0.64513969724122222], [-0.30726803712297912, 0.59702288335756259, -0.28337446198792121, -0.31977398131104728, -0.70848347111420951]], [[-0.0024319005350213387, 0.19765494412350487, -0.043862795887571228, 0.30589098460187497, -0.15100858014755791], [-0.37435191503568754, -0.34018035958584003, -0.21164103452983007, -0.36372430185571186, 0.25047376269164434], [-0.17953981130419147, -0.21609475394907418, 0.26417662919752311, -0.22744492887598813, -0.29450311285032893], [0.14026635440214186, -0.27253802291744389, 0.12935905434838826, 0.1459752566883725, 0.32341923545920764]]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[[0.55804025076629737, 0.041262415810071083, -0.66504667595402867, -0.62180098775385306, -0.66190760686391126], [-0.54901584218271671, 0.58162717863679148, -0.686937495317403, 0.47843564052348819, -0.74268700270297727], [0.40024736039785919, -0.63312941399604061, -0.475157988745256, 0.61715320138272256, 0.4632801258231497], [0.2146479585929183, 0.43895566029227939, 0.68318881958056876, -0.65016581053787337, -0.68315341955280739]], [[0.15677131956835511, 0.011591929733097455, -0.18683284014135507, -0.17468374588610494, -0.18595097543213709], [-0.15423607513028961, 0.16339764052234229, -0.19298267007443981, 0.13440784350304849, -0.20864448627160592], [0.11244225977814176, -0.17786626243071219, -0.13348704649305967, 0.17337803433308813, 0.13015017564656856], [0.060301463317487577, 0.12331665682094084, 0.19192954739898699, -0.18265233003584519, -0.19191960240118927]], [[0.43554496393899478, 0.032204912425859385, -0.51906243339685554, -0.48530959624613429, -0.51661242063920987], [-0.42850150120362934, 0.45395433070900643, -0.53614800404722218, 0.37341434334313001, -0.57965994991586445], [0.31238915456686223, -0.49415132225490105, -0.37085616815129685, 0.48168204439009804, 0.36158561218158475], [0.16753063467474463, 0.34260060447303675, 0.53322219925737702, -0.50744806331842418, -0.53319456988155045]], [[0.16418186126172699, 0.012139877398718147, -0.19566438251384186, -0.18294100356313134, -0.19474083227685279], [-0.16152677644301722, 0.17112140677642074, -0.20210491339434317, 0.14076126918663631, -0.21850705978865625], [0.1177573777249519, -0.18627395688156043, -0.13979694632860054, 0.18157357134634905, 0.13630234241842529], [0.063151898647852547, 0.12914580483969154, 0.20100200986920327, -0.19128626072450011, -0.20099159477380721]], [[-0.045676555099321885, -0.0033773997604863624, 0.05443521519482062, 0.050895481175328432, 0.054178276986405656], [0.044937891722727309, -0.047607185746521473, 0.056227016441141857, -0.039160780724762534, 0.060790209584217957], [-0.032760935408272684, 0.05182273236326574, 0.038892499284778177, -0.050515051860454997, -0.037920275758825041], [-0.017569304891830083, -0.035929276384574431, -0.055920180879355998, 0.053217190745556885, 0.055917283326148433]]], [[[0.2247370912380153, 0.016617430900145603, -0.26783131733988885, -0.25041517188918405, -0.2665671338772454], [-0.22110273093437718, 0.23423615076566878, -0.27664731056221625, 0.19267827732533022, -0.29909906401652619], [0.16118985579980855, -0.25497741907203075, -0.1913582830673542, 0.24854338936398229, 0.18657476367144601], [0.086444226537617005, 0.17677867885172122, 0.27513762290091626, -0.26183841198200691, -0.27512336640372287]], [[0.19631719191057076, 0.014516016706959593, -0.23396178991294966, -0.21874806284211501, -0.23285747310401178], [-0.19314242709862503, 0.20461501530050363, -0.24166292648891854, 0.16831248521684425, -0.26127546648993916], [0.14080603998551466, -0.22273337541693078, -0.16715941535803094, 0.21711298299307616, 0.16298081230643288], [0.075512625518379825, 0.1544235249760145, 0.24034415155641503, -0.22872673794727669, -0.2403316979134491]], [[0.179723539539521, 0.013289054703767513, -0.21418623907024723, -0.20025844776400145, -0.21317526431177719], [-0.17681712078090139, 0.18731999187056242, -0.22123643936315326, 0.1540859223661081, -0.23919123524241354], [0.12890445125288796, -0.20390690297643915, -0.15303031539483142, 0.19876157255384219, 0.14920490752578472], [0.06912994326175885, 0.14137092236680751, 0.2200291334903518, -0.20939367831798938, -0.22001773248786077]], [[0.14546061018401896, 0.010755597240804162, -0.17335325749762029, -0.16208069394187813, -0.1725350174071765], [-0.14310827811242563, 0.1516088565080021, -0.17905939059044282, 0.1247106102270636, -0.19359124084789001], [0.10432979554443948, -0.16503359884676708, -0.1238562467165862, 0.16086918663461627, 0.12076012383663413], [0.055950844027478207, 0.11441962851633811, 0.1780822484231652, -0.16947436209441624, -0.17807302093530636]], [[0.57432713497688503, 0.042466694869914737, -0.68445663462820261, -0.63994878385936604, -0.6812259491094681], [-0.56503934127463606, 0.59860246760417357, -0.70698635636422225, 0.49239919578446478, -0.76436296102519796], [0.41192892352066579, -0.65160783995529858, -0.48902588292278676, 0.63516534784941792, 0.47680135436533261], [0.22091264369912933, 0.45176695840732606, 0.70312827230498653, -0.66914145836860284, -0.70309183909699779]]], [[[-0.16316849613999138, -0.012064947511558469, 0.19445670062205614, 0.18181185305331554, 0.19353885073217697], [0.16052979906551751, -0.17006520931418634, 0.20085747918576924, -0.13989246090544877, 0.21715838806852125], [-0.1170305543201223, 0.18512423467996753, 0.13893409005175084, -0.18045286091696708, -0.13546105557494442], [-0.062762111792171227, -0.12834868965755589, -0.19976138301411178, 0.19010560152502606, 0.19975103220288409]], [[-0.33313274615897792, -0.02463238426455238, 0.39701226780727022, 0.37119593135147444, 0.3951383407833009], [0.32774545373736386, -0.34721341156646685, 0.41008040896765596, -0.28561125934743248, 0.44336113821050832], [-0.23893527774945539, 0.37795865095554798, 0.28365460275082327, -0.36842134683853145, -0.27656388646591801], [-0.12813818323191831, -0.26204293391810296, -0.40784256565625276, 0.38812885204201197, 0.40782143293608419]], [[0.37219512619442552, 0.027520721020441105, -0.443565013710015, -0.41472151298596077, -0.44147135431084994], [-0.36617613224733381, 0.38792685806007893, -0.45816549506286036, 0.31910137907798575, -0.49534864611362694], [0.26695227917287701, -0.42227721354520414, -0.31691528942666525, 0.41162158707102503, 0.30899313204976864], [0.14316337204379312, 0.29276948598581165, 0.45566524738893893, -0.43363994903261466, -0.45564163669458158]], [[0.070804922521200339, 0.0052354326600236034, -0.084382046454973617, -0.078894973437956137, -0.083983757006480877], [-0.069659893018968827, 0.07379766470796939, -0.087159584037291182, 0.060704578947716907, -0.094233159009007306], [0.050783941307763682, -0.080332339902586189, -0.06028870593516894, 0.078305255844196384, 0.058781626181043135], [0.02723483128078202, 0.0556953041909755, 0.08668394685029765, -0.082493941571154861, -0.086679455245580156]], [[0.42708724676552839, 0.031579534879461392, -0.50898291550428554, -0.47588551458646461, -0.5065804788104018], [-0.42018055892292905, 0.44513912755734109, -0.52573670657671567, 0.36616312207782287, -0.56840370700391385], [0.30632296316037666, -0.48455554576668575, -0.36365462332365767, 0.47232840507317286, 0.35456408950303325], [0.16427740746909433, 0.33594774597161819, 0.52286771711356717, -0.49759408139895545, -0.52284062426431255]]], [[[0.33645659526924832, 0.024878155145576786, -0.40097347813058049, -0.37489955784987278, -0.39908085390333964], [-0.33101555086038953, 0.35067775124011275, -0.4141720073415846, 0.28846096037866081, -0.44778479677233041], [0.24131926677340063, -0.38172975283665239, -0.2864847811402137, 0.37209728977723455, 0.27932331686884809], [0.12941668854620472, 0.26465748077006773, 0.41191183583343316, -0.39200142762758489, -0.41189049226046209]], [[-0.21094336922253107, -0.015597500361819967, 0.25139259457242763, 0.23504540248231359, 0.25020600308698837], [0.20753207559407474, -0.21985940355478314, 0.2596674872619979, -0.180852233919646, 0.28074121609116515], [-0.15129648194518402, 0.23932763193840481, 0.17961325714639517, -0.23328850463272918, -0.17512333653491263], [-0.08113852633417086, -0.16592850747630417, -0.25825045992577139, 0.24576751666179242, 0.2582370784517356]], [[0.26516191497567565, 0.019606508988727296, -0.31600776091334265, -0.2954588677432658, -0.31451618110340329], [-0.26087382024010913, 0.27636962795685388, -0.32640954030973579, 0.22733648775265719, -0.35289982683836885], [0.19018405285518064, -0.30084175399907664, -0.22577905812110996, 0.29325039634201033, 0.22013509807715376], [0.1019934738900293, 0.20857693206302055, 0.32462829597182857, -0.30893687531893499, -0.3246114750720126]], [[0.60839606883805752, 0.044985807986316496, -0.72505842130319131, -0.67791037658947439, -0.72163609237330495], [-0.59855732566800923, 0.634111407781207, -0.74892460017833939, 0.52160818594501257, -0.80970476986406714], [0.43636443839755618, -0.69026104481171191, -0.51803476905589352, 0.67284318841960322, 0.50508508469516233], [0.23401712333961383, 0.47856565498512521, 0.74483765559234094, -0.70883475283543296, -0.74479906117608297]], [[-0.27772982640024446, -0.020535801071785081, 0.3309856190608807, 0.30946276751047558, 0.32942334266189416], [0.27323848831873326, -0.28946875271208655, 0.3418804128561318, -0.23811158281828931, 0.36962626270626919], [-0.19919822946070367, 0.31510078707861661, 0.23648033550571848, -0.30714962092252435, -0.23056886800345042], [-0.10682767093469744, -0.21846287819377172, -0.34001474266443488, 0.32357959384488771, 0.3399971245023915]]]]))  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5, 4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_Symbol_rank3_taggedData_rank3_offset1(self):  
       arg0=Symbol(shape=(4, 5, 3))  
       arg1=Data(numarray.array([[[-0.39873691198559769, 0.82203444300814055, 0.28675720142965599, -0.93462201913300702, -0.95781986092276927], [-0.045745598871428594, 0.13256933289495332, -0.082332459256467372, 0.67872449665454271, 0.53838146072917481], [0.48501165149153236, -0.90199998879464816, 0.59287248489307465, 0.32531990979428138, 0.83871572235303971], [0.85799958906321305, 0.89643666360638763, -0.92139485938184396, 0.015051055404468272, -0.33892305916074839]], [[-0.11006641495369074, -0.79559820393827074, -0.78666008610988647, 0.53572079303286269, 0.55220559491529531], [-0.28956207109261012, -0.42356182831369926, 0.96389334483532529, 0.43923833724494754, 0.444118652264619], [0.66005263046389162, 0.84835688414274757, -0.15037642263476991, -0.43738537801262978, 0.59916056368837367], [0.77404680457764297, -0.21544175769392071, -0.37763991442199063, -0.98390223238449126, -0.24991433168028232]], [[0.95988045061583493, 0.88586657126437784, 0.94886851801295191, -0.4840612431388569, -0.39645228683696199], [0.6968505523987798, 0.3381786638442057, 0.7179793347559591, -0.95819236434609389, 0.84416491656637627], [0.23510173320485062, -0.056266742052958785, 0.81083225788382429, 0.40689910312441557, -0.03569218529718432], [0.093176739798073616, -0.66687459133671823, 0.75432666633720036, -0.75498614650675533, -0.86514342446904213]]]),self.functionspace)  
       arg1.setTaggedValue(1,numarray.array([[[-0.067045478629749855, 0.57496891696761021, 0.11110058613690166, -0.24506032952444068, -0.3836580023569407], [0.1856551997234217, 0.67867634168805702, -0.33741646546662252, -0.42151657861776815, -0.32461370613084894], [0.47365269976270885, -0.91785888632418366, 0.18571308448729651, -0.23186479551911532, 0.69271343355572412], [0.3199937790834344, -0.83617680434872055, 0.67909787071976391, 0.94443934036789656, 0.80916041998200749]], [[0.12504618913761667, -0.26557196521361681, -0.54829546772810533, -0.68524098995503602, -0.3696535527994782], [0.65324981429802276, -0.82868880809096135, 0.17725848123152188, 0.69307249567939877, -0.41875225343822353], [0.78465264501784238, -0.95054046999448394, 0.38478827738616661, -0.2364131244546086, -0.066376506987678052], [-0.5748226171537798, 0.24499964583918699, -0.32513095509594558, -0.24487939486062671, 0.6434427451806799]], [[-0.13193390081940293, 0.82859639376057537, 0.36515704269397276, 0.9161016658389689, 0.5740735476659069], [-0.93087656462110857, 0.028395674890503875, -0.84122050086883937, 0.22102960221661361, -0.26635342607791213], [0.41466706949027698, -0.087098592095985028, -0.36230651756720555, 0.36868841901877425, -0.31213561783138899], [0.18212750808963807, 0.79668794047428748, 0.53795409322166887, 0.016737554398564614, 0.35304865204523894]]]))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       s0=numarray.array([[[-0.9182048398495084, -0.69910146255269723, 0.66383750940216091], [-0.0005150163296845367, 0.9016198126774797, -0.19930817476841045], [-0.17471607861051308, 0.7444792841434289, 0.20512112467920884], [-0.96277870438741675, 0.31533791902739794, -0.37159406295034136], [0.94215643465922327, 0.089642857560435774, -0.47578907712820917]], [[0.27167905812116944, -0.59218682321163474, 0.88988006867561054], [-0.85986542917393072, 0.58890900595779017, 0.70490683853189728], [0.72590827490806631, -0.90755454506022581, 0.88781094202769539], [0.075734922525497739, 0.50272948297617548, -0.72950794284634224], [-0.6406846476205974, -0.43438719627032096, -0.02652777790255656]], [[0.33752615374402928, 0.715859865565456, 0.58474429872752243], [0.050966794903708923, -0.56728423656257698, -0.17187865720919904], [0.67886038740745724, -0.48516344499384179, -0.24807186478906051], [-0.3189776443982133, 0.47173618897274516, 0.52442983188385428], [0.35252158852890836, 0.34711820086529999, 0.862991708404095]], [[0.42517611191332771, -0.88726598789252864, -0.051551951210816238], [0.13199948423997587, 0.72594279671972428, -0.62068216745184213], [-0.98748670209376743, 0.67726173808963663, -0.37738030482380691], [-0.49381832565550843, -0.74893961812235821, 0.48015473107403617], [-0.84888831931468856, -0.71808450070717478, -0.16693535590556086]]])  
       sub=res.substitute({arg0:s0})  
       ref=Data(numarray.array([[[[1.0802744017445203, 0.38947932221525106, 0.91654788026467937, 0.1623132614252692, 0.23024719427756463], [0.70703263281611783, 0.39888257251512294, -0.1216395711665702, -1.5663643144054593, -0.24444012653379799], [-0.7507144560751503, 0.19778124287799431, 0.099010858571513038, 0.27718132899136422, -1.2126806732936815], [-1.2671024135494371, -1.1151932030397378, 1.6107881712444772, 0.17283941462145636, -0.088398388126619709]], [[-0.29034472501982922, -0.89431091417012853, -0.8985332565410048, 0.5799751895097901, 0.57738897958849345], [-0.39993935225155153, -0.44936178390919312, 0.72600858884082775, 0.58665200436327103, 0.23189993209315363], [0.5480090427855776, 0.77657434134677905, -0.29749319838038546, -0.47562118521616198, 0.54689682720854738], [0.6788831652076408, -0.06179467913643405, -0.49035656654883281, -0.73663858715907438, -0.052723005161202291]], [[0.18461534143433747, -0.55421906828545753, -0.44112025393090004, 0.46283534005755628, 0.49713141716058662], [-0.06464170271224387, -0.26912741285064712, 0.87925616041884058, 0.011874264934391532, 0.40972929579833217], [0.45488050792474616, 0.77763652934173233, -0.049217662488459518, -0.29899937038698687, 0.29220428427276968], [0.4454680049762389, -0.45380389032554724, 0.034565737704816413, -0.88998809850063365, -0.30429992713518728]], [[-0.0074985833243123579, -1.3715022964610573, -0.87674138921611289, 1.2486415407822791, 1.2436192439433358], [-0.30621254054979896, -0.38686521978697536, 0.11642320186035093, -0.1588943945458271, -0.69198142476769786], [-0.34618167474503275, 1.1568538622957547, -0.91952484413498481, -0.60233656711953554, -0.6052965870494843], [-0.61660134745192829, -0.68320044622198262, 0.48771185345333579, -0.044204148456847059, 0.56898259863184508]], [[-0.84223984907317839, 0.28167970512004403, -0.25180959203720116, -0.60222555441177927, -0.66428719004419556], [-0.40061056305001397, -0.073969956992987307, -0.33277062753593734, 1.1347366923281761, 0.14540717601498609], [0.40426701559973122, -0.74700485690541329, 0.15931332265538994, 0.07369562243537503, 0.86089383163455857], [0.83342512618039888, 1.1425624024560264, -1.2608512051159753, 0.28519480291772659, 0.069904215631849342]]], [[[0.81102989324172414, 1.482787321436871, 1.3881348457081666, -1.0019204766995169, -0.94002346291490557], [0.77916013921359906, 0.58778249764576207, 0.045742556943837442, -0.92839221057972277, 0.63447128827481203], [-0.049894615241795115, -0.79751092783348976, 0.97166543961778018, 0.70948786603789271, -0.15871525762746125], [-0.14236367438442804, -0.22231356862697793, 0.64456995932891781, -0.08510412999994299, -0.71395621331629644]], [[0.95466727674444929, -0.5509205424449739, -0.040979906198712723, 0.77792188273627927, 0.8693331056265845], [0.36002406737680154, -0.12504670880954527, 1.1445488499638663, -1.0003766682978528, 0.3936674907796377], [0.13739100610899244, 1.2355408055627035, -0.026787379756762708, -0.25048557165507807, -0.3934912680833233], [-0.21624012955650301, -1.3677749477208958, 1.1016100651768446, -1.1245656655175418, -0.46559409514137384]], [[0.66263721832328537, 2.1052524056100541, 1.7645122148112646, -1.594400566470384, -1.5484207386339508], [0.84825781031343617, 0.78087735626879717, -0.29712168998029775, -0.75663468646085408, 0.73721250579514863], [-0.038233902282989701, -1.4746536311367666, 1.2867115992795546, 0.9943529783253735, 0.033371877703616992], [0.0030626351201197277, 0.25419737928475084, 0.34358013608423849, 0.23358566661162872, -0.78729996427674109]], [[-0.78577235392717337, -0.98396065890756734, -1.0659668045413992, 0.55166563278520586, 0.49428471247510897], [-0.65739394262807971, -0.44960091217604464, -0.045429467033887783, 0.97123014992194856, -0.35177919305683514], [0.19705165574997158, 0.3992281537207199, -0.62220608193439186, -0.4920845744516707, 0.39077348332793371], [0.38614351049806894, 0.44607294907284673, -0.80991978181300062, 0.057271620544854407, 0.47982138546984204]], [[0.27781256393713449, -0.20456724593801681, 0.13282275936783944, 0.37892879486664677, 0.3843064381534459], [0.13660466241597199, 0.090083570231375615, -0.385000181251203, -0.60022916055155473, -0.56024601204111835], [-0.60369465712876091, 0.21087480827176963, -0.33603228450755951, -0.029226992762406923, -0.79667313004152918], [-0.88841495745911303, -0.46305736580479179, 0.73435487415744993, 0.43777965681551728, 0.34865271919343982]]], [[[0.34790835568732359, 0.22592672745842785, 0.088495127918727379, -0.21501041260172143, -0.15981064514174934], [0.18475318625730972, -0.060717250804667472, 1.0820575245548576, -0.016777156276600702, 0.99326516454025537], [0.77368370267147912, 0.26995440151550154, 0.56659106381701452, 0.034629270694145287, 0.69113269056289384], [0.89819091004772778, -0.24160640380815376, -0.14024390381813501, -1.1407298397519425, -0.79918672149309256]], [[-0.12286636316873453, 0.34096522385682138, 0.29778471511137594, -0.26834085337026575, -0.29393285103440348], [0.042158754660031675, 0.18891088777382159, -0.67440304577930688, -0.049887755663986399, -0.36959586542673617], [-0.39012693340715648, -0.51756048371597074, -0.023841775254000247, 0.19476507190545511, -0.29101296586493697], [-0.41139015443490295, 0.28252672590117589, 0.037615973217860171, 0.68868533587746394, 0.27319832890001916]], [[-0.45540582684597564, 0.72428321360853876, 0.34093923956753402, -0.77430803623326261, -0.81978727253103378], [-0.063438959034053943, 0.21160017270827575, -0.70164853342691758, 0.48535735652068301, -0.059397853357246955], [-0.049300335815704047, -1.0099656147029112, 0.27429011778470469, 0.3321099774877761, 0.28753430398287555], [0.18380819153485439, 0.8785126295537341, -0.62940861212543031, 0.67486178315739742, 0.10578560148618221]], [[0.57865579314069748, -0.17294821788463061, 0.035049789716709301, 0.2969862589637276, 0.35810707973386058], [0.24344413352397393, -0.064745116382784212, 0.85749536880209742, -0.51179798242198693, 0.48048045561711439], [0.27995720073823832, 0.65841051701173869, 0.16517355550323048, -0.096710261592872271, -0.0036038912737730924], [0.14032786385175922, -0.73730385885180794, 0.51134935458554631, -0.86488049751263718, -0.46349177600291691]], [[0.64959944438795891, 0.77811377626551304, 0.6468897337979399, -0.56125684020377653, -0.48810660260042288], [0.48473767237810111, 0.19155291487960346, 0.92517116706057356, -0.43517940637711938, 1.0724600788379965], [0.60298420578907685, -0.072052085438240071, 0.85654347235235784, 0.31400841803366153, 0.47284287569871908], [0.65155986614610362, -0.33427772152085045, 0.19508039131636129, -0.98777133516772619, -0.95283911028484547]]], [[[-0.12135893367505163, 1.0097484844587361, 0.77098302685883502, -0.84775149327908617, -0.87675747812437277], [0.20154463552039834, 0.41474354757250431, -0.92724881137498938, -0.051747108650654676, -0.20866278713672967], [-0.39154683409553004, -1.1333263967348104, 0.34369911817343124, 0.50541898117445538, -0.17317289782151782], [-0.32678791618156078, 0.60667628557864239, -0.09557504361165528, 0.91830334441291217, 0.12223832946365557]], [[-0.72831566640882284, -1.0188922462530732, -1.1221641886746729, 0.56598120784116202, 0.52050881098568269], [-0.64876660642309047, -0.49988404072238457, 0.24322661864926276, 1.0031861040036942, -0.13048729846023371], [0.39725828705115795, 0.53171879919854392, -0.53417494184543646, -0.52712972151443449, 0.56781984099401361], [0.61733606452755074, 0.3758479519087457, -0.86396573207716176, -0.24366356891539365, 0.31081791796957559]], [[-0.043036350324938022, -1.684884900250794, -1.1740279909113758, 1.468425190287199, 1.4694353815123191], [-0.41391381486905443, -0.54539464061780252, 0.46315903051524637, -0.011149168576758295, -0.5494311763084978], [-0.12063692821126495, 1.4865066123656561, -0.99329001687169849, -0.77102917374564872, -0.40896257013496146], [-0.3581939668383417, -0.77946440729558031, 0.36943607892461, -0.3963051509729123, 0.49191268854931958]], [[0.74022783266596071, 0.61527236805184993, 0.90315865149471586, -0.17211334156790847, -0.13093808855030512], [0.57405061157344561, 0.41413515333810763, -0.33649946201805897, -1.1242101841000482, -0.19315090683326352], [-0.62096199718123168, -0.21696069903233306, 0.2091765074559333, 0.36230083425903947, -0.88004604910888995], [-0.95867098627342229, -0.6015269746068117, 1.1000246776396132, 0.36694070507201981, -0.060865546583664998]], [[0.25728210904048809, -0.27439114906428619, 0.16306387262540248, 0.48950385273633745, 0.48273371663520193], [0.13043394480860634, 0.13516265020089491, -0.74212194407809939, -0.73161535596666449, -0.91686142480475463], [-0.92494108077637527, 0.16589823354887442, -0.53065612045253108, -0.030006457275783271, -1.1362656064950394], [-1.2997313345419965, -0.4949442784866076, 0.9274149124866069, 0.81978215923115383, 0.6115904596252586]]]]),self.functionspace)  
       ref.setTaggedValue(1,numarray.array([[[[-0.11344116287055006, 0.20777587330477626, 0.5237060092613387, 1.3122112071127923, 0.9917935281072513], [-1.2451081837362148, -0.024976229794784536, -0.37253795399726813, 0.049238307818751992, 0.41399679388843758], [-0.70819045841620309, 1.4494873920609836, -0.68004135675540223, 0.62292534033608149, -0.79685624534230559], [0.22894256704827998, 1.1253733161670103, -0.03913731998068154, -0.68488221374856983, -0.95843984019537432]], [[0.13907415610500815, -0.40488709876969808, -0.56719005920418974, -0.80028719385139246, -0.44750692786252033], [0.77441866876875476, -0.75317126745118002, 0.32765565623901549, 0.58105197506001272, -0.32430173174884541], [0.62456789518622624, -0.83919394676843795, 0.41904774002927736, -0.28651795868217339, 0.0020080477436954999], [-0.55473576363505972, 0.062540760220385405, -0.40071290575133733, -0.22461044722276371, 0.50935851410527855]], [[0.077745790369400394, -0.1282065168530058, -0.352704252