/[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 554 by gross, Wed Feb 22 04:02:54 2006 UTC
# Line 412  class Test_util_overloaded_binary_with_t Line 412  class Test_util_overloaded_binary_with_t
412        arg1.setTaggedValue(1,-4.7660123087)        arg1.setTaggedValue(1,-4.7660123087)
413        arg1.expand()        arg1.expand()
414        res=arg0+arg1        res=arg0+arg1
415        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
416        ref=msk_ref*(-9.29432298077)+(1.-msk_ref)*(-3.62245175268)        ref=msk_ref*(-9.29432298077)+(1.-msk_ref)*(-3.62245175268)
417        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
418        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
# Line 425  class Test_util_overloaded_binary_with_t Line 425  class Test_util_overloaded_binary_with_t
425        arg1.setTaggedValue(1,numarray.array([2.9957636820561273, 0.014275220903869013]))        arg1.setTaggedValue(1,numarray.array([2.9957636820561273, 0.014275220903869013]))
426        arg1.expand()        arg1.expand()
427        res=arg0+arg1        res=arg0+arg1
428        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
429        ref=msk_ref*numarray.array([-5.5090733655635802, 0.14914274525609272])+(1.-msk_ref)*numarray.array([-1.8037170206697795, -4.7852054818220378])        ref=msk_ref*numarray.array([-5.5090733655635802, 0.14914274525609272])+(1.-msk_ref)*numarray.array([-1.8037170206697795, -4.7852054818220378])
430        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
431        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 438  class Test_util_overloaded_binary_with_t Line 438  class Test_util_overloaded_binary_with_t
438        arg1.setTaggedValue(1,numarray.array([[-1.6273366897325858, 1.6242521101541367, -0.80676284755454475, -1.6069618658885654, -1.0788495762977179], [-1.2440133192838223, -1.2245262816512206, 1.136458628155613, 3.3710510861186389, -2.5234305665624279], [-1.5268581953041673, -4.8285404364668754, -4.1367972745599779, 2.6562968470356179, -1.4664095591971824], [-0.80564004575783876, 4.5332607444869986, -1.5579578106602341, 3.4148196223228453, 0.4401427283465642]]))        arg1.setTaggedValue(1,numarray.array([[-1.6273366897325858, 1.6242521101541367, -0.80676284755454475, -1.6069618658885654, -1.0788495762977179], [-1.2440133192838223, -1.2245262816512206, 1.136458628155613, 3.3710510861186389, -2.5234305665624279], [-1.5268581953041673, -4.8285404364668754, -4.1367972745599779, 2.6562968470356179, -1.4664095591971824], [-0.80564004575783876, 4.5332607444869986, -1.5579578106602341, 3.4148196223228453, 0.4401427283465642]]))
439        arg1.expand()        arg1.expand()
440        res=arg0+arg1        res=arg0+arg1
441        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
442        ref=msk_ref*numarray.array([[-6.9316703437696958, -2.2015999860975999, -5.9212828482069764, -7.8260829928706386, -7.1548915220884153], [-1.3159420749209749, -5.8421191943130371, -7.949915566110576, 0.48085117923711795, -6.3684828002580058], [-2.7371437638286711, -6.8244946316006789, -3.4111321366403935, -2.170411162042865, -1.8196929053353017], [-2.9517781207473091, 0.30947531361514979, -2.4281397457198253, -6.1205070198831439, -1.5765983312717555]])+(1.-msk_ref)*numarray.array([[-5.7006025360634585, -2.4490137361767363, -4.8800286938854178, -5.6802277122194385, -5.152115422628591], [-5.3172791656146954, -5.2977921279820936, -2.93680721817526, -0.70221476021223417, -6.5966964128933014], [-5.6001240416350404, -8.9018062827977484, -8.210063120890851, -1.4169689992952552, -5.5396754055280555], [-4.8789058920887118, 0.45999489815612549, -5.6312236569911072, -0.65844622400802777, -3.6331231179843089]])        ref=msk_ref*numarray.array([[-6.9316703437696958, -2.2015999860975999, -5.9212828482069764, -7.8260829928706386, -7.1548915220884153], [-1.3159420749209749, -5.8421191943130371, -7.949915566110576, 0.48085117923711795, -6.3684828002580058], [-2.7371437638286711, -6.8244946316006789, -3.4111321366403935, -2.170411162042865, -1.8196929053353017], [-2.9517781207473091, 0.30947531361514979, -2.4281397457198253, -6.1205070198831439, -1.5765983312717555]])+(1.-msk_ref)*numarray.array([[-5.7006025360634585, -2.4490137361767363, -4.8800286938854178, -5.6802277122194385, -5.152115422628591], [-5.3172791656146954, -5.2977921279820936, -2.93680721817526, -0.70221476021223417, -6.5966964128933014], [-5.6001240416350404, -8.9018062827977484, -8.210063120890851, -1.4169689992952552, -5.5396754055280555], [-4.8789058920887118, 0.45999489815612549, -5.6312236569911072, -0.65844622400802777, -3.6331231179843089]])
443        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
444        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 451  class Test_util_overloaded_binary_with_t Line 451  class Test_util_overloaded_binary_with_t
451        arg1.setTaggedValue(1,numarray.array([[[1.6886237093282404, -0.23175646823888929], [0.85841863308994881, -2.5932811961296665]], [[1.6386382570817055, -4.1684829457584982], [0.63215378656443022, -2.5684567044235562]], [[-4.6521563239928696, 3.4268278211702281], [2.7498874453882038, 1.5931865656880086]], [[1.0738958310620896, -3.6839761141127028], [-3.1756281291393695, -1.7426866362281879]], [[-2.3556188316851721, -3.7576159053131231], [-3.7150188217025484, 3.7066885523068436]], [[4.6360179917754412, -3.4602983191359549], [-1.2433685887379262, -0.30651291778588963]]]))        arg1.setTaggedValue(1,numarray.array([[[1.6886237093282404, -0.23175646823888929], [0.85841863308994881, -2.5932811961296665]], [[1.6386382570817055, -4.1684829457584982], [0.63215378656443022, -2.5684567044235562]], [[-4.6521563239928696, 3.4268278211702281], [2.7498874453882038, 1.5931865656880086]], [[1.0738958310620896, -3.6839761141127028], [-3.1756281291393695, -1.7426866362281879]], [[-2.3556188316851721, -3.7576159053131231], [-3.7150188217025484, 3.7066885523068436]], [[4.6360179917754412, -3.4602983191359549], [-1.2433685887379262, -0.30651291778588963]]]))
452        arg1.expand()        arg1.expand()
453        res=arg0+arg1        res=arg0+arg1
454        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
455        ref=msk_ref*numarray.array([[[5.1651159852439346, 2.9765034430651616], [-0.083382077532194732, 3.9237219749498395]], [[-1.3545635716886628, 3.6690687186536577], [4.1607038812446913, -2.7492064215188865]], [[3.2419974582927811, 2.3788720887563786], [4.5332463647443886, -0.81320404346079123]], [[4.3794221239530202, -1.8102111332090076], [-0.20287389994095184, 0.12166422988868941]], [[-2.9758315052334119, -3.017342030190199], [1.4669069524531642, 4.2812968235100932]], [[-3.0330538383255004, 3.4019064692899512], [3.2029552768363718, 0.88085771901567433]]])+(1.-msk_ref)*numarray.array([[[4.3317605250229523, 2.4113803474558226], [3.5015554487846607, 0.049855619565045473]], [[4.2817750727764174, -1.5253461300637863], [3.2752906022591421, 0.074680111271155702]], [[-2.0090195082981577, 6.06996463686494], [5.3930242610829158, 4.2363233813827206]], [[3.7170326467568016, -1.0408392984179908], [-0.53249131344465761, 0.90045017946652406]], [[0.28751798400953987, -1.1144790896184111], [-1.0718820060078365, 6.3498253680015555]], [[7.2791548074701531, -0.81716150344124294], [1.3997682269567857, 2.3366238979088223]]])        ref=msk_ref*numarray.array([[[5.1651159852439346, 2.9765034430651616], [-0.083382077532194732, 3.9237219749498395]], [[-1.3545635716886628, 3.6690687186536577], [4.1607038812446913, -2.7492064215188865]], [[3.2419974582927811, 2.3788720887563786], [4.5332463647443886, -0.81320404346079123]], [[4.3794221239530202, -1.8102111332090076], [-0.20287389994095184, 0.12166422988868941]], [[-2.9758315052334119, -3.017342030190199], [1.4669069524531642, 4.2812968235100932]], [[-3.0330538383255004, 3.4019064692899512], [3.2029552768363718, 0.88085771901567433]]])+(1.-msk_ref)*numarray.array([[[4.3317605250229523, 2.4113803474558226], [3.5015554487846607, 0.049855619565045473]], [[4.2817750727764174, -1.5253461300637863], [3.2752906022591421, 0.074680111271155702]], [[-2.0090195082981577, 6.06996463686494], [5.3930242610829158, 4.2363233813827206]], [[3.7170326467568016, -1.0408392984179908], [-0.53249131344465761, 0.90045017946652406]], [[0.28751798400953987, -1.1144790896184111], [-1.0718820060078365, 6.3498253680015555]], [[7.2791548074701531, -0.81716150344124294], [1.3997682269567857, 2.3366238979088223]]])
456        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
457        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 464  class Test_util_overloaded_binary_with_t Line 464  class Test_util_overloaded_binary_with_t
464        arg1.setTaggedValue(1,numarray.array([[[[2.0789104434484473, -4.508777400348567, 1.5331083546332334, 4.49336212858152], [1.8802207328030187, -4.9436312011442958, 0.95995390941115755, 1.0409397140712962], [4.4029806285991455, -3.0508353519497589, -1.4319920162676967, 4.9324859166792496]], [[-0.80321564842726545, -0.31379127954498109, 4.8077178833583769, -0.44518932196249672], [3.1138068395754708, 3.9312599291722865, -2.1753619070696049, -4.3496776617454689], [-1.9317238107094825, 3.7498607559317403, -4.8409100962982947, -3.4067761660017215]]], [[[-1.6530285997714733, -3.3014759260717632, 0.77334729141762182, -1.6425686289050088], [3.3938981157540375, -2.9780304165754012, 0.16193154805455467, -3.9008003597439656], [1.2224442501270545, -2.341507950209909, -3.2027558874601425, 1.1725104185480788]], [[2.0639107295459134, 1.6561771765853468, 2.4027523947915554, -3.5099301386055703], [-0.88931997894950499, -2.5704542848111291, -0.9665448709263309, 1.7051997753467312], [4.6367791768868933, -2.4669021358046725, -1.6153774579581026, -4.1453553191414851]]], [[[2.4407751157254607, 2.79182158971678, -2.7425933984344186, -2.9283084218787003], [-1.6452839946246556, -2.7502841719075741, -0.082291147475465287, 1.3415023360316187], [-4.2509674661666601, 1.9941709432672905, 0.38029069702154583, 1.4827772847029141]], [[2.4884780660954249, 3.8913177374430621, -0.48481698674975604, 0.063994223713578435], [4.2954488325747491, -4.04061057745737, 3.2654677239706196, 2.3177058434320053], [-1.4208522341319494, 1.3867401579820982, -0.23356359719482889, 0.82529852322257735]]]]))        arg1.setTaggedValue(1,numarray.array([[[[2.0789104434484473, -4.508777400348567, 1.5331083546332334, 4.49336212858152], [1.8802207328030187, -4.9436312011442958, 0.95995390941115755, 1.0409397140712962], [4.4029806285991455, -3.0508353519497589, -1.4319920162676967, 4.9324859166792496]], [[-0.80321564842726545, -0.31379127954498109, 4.8077178833583769, -0.44518932196249672], [3.1138068395754708, 3.9312599291722865, -2.1753619070696049, -4.3496776617454689], [-1.9317238107094825, 3.7498607559317403, -4.8409100962982947, -3.4067761660017215]]], [[[-1.6530285997714733, -3.3014759260717632, 0.77334729141762182, -1.6425686289050088], [3.3938981157540375, -2.9780304165754012, 0.16193154805455467, -3.9008003597439656], [1.2224442501270545, -2.341507950209909, -3.2027558874601425, 1.1725104185480788]], [[2.0639107295459134, 1.6561771765853468, 2.4027523947915554, -3.5099301386055703], [-0.88931997894950499, -2.5704542848111291, -0.9665448709263309, 1.7051997753467312], [4.6367791768868933, -2.4669021358046725, -1.6153774579581026, -4.1453553191414851]]], [[[2.4407751157254607, 2.79182158971678, -2.7425933984344186, -2.9283084218787003], [-1.6452839946246556, -2.7502841719075741, -0.082291147475465287, 1.3415023360316187], [-4.2509674661666601, 1.9941709432672905, 0.38029069702154583, 1.4827772847029141]], [[2.4884780660954249, 3.8913177374430621, -0.48481698674975604, 0.063994223713578435], [4.2954488325747491, -4.04061057745737, 3.2654677239706196, 2.3177058434320053], [-1.4208522341319494, 1.3867401579820982, -0.23356359719482889, 0.82529852322257735]]]]))
465        arg1.expand()        arg1.expand()
466        res=arg0+arg1        res=arg0+arg1
467        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
468        ref=msk_ref*numarray.array([[[[-2.760329840783089, 4.0646740423199681, 4.8367853818322697, -1.5047955269702804], [-3.4803363336007926, 1.8206637760592539, 0.59521927648199746, 1.9284243873008649], [0.4108315602056134, 5.9865947154572012, 3.6690593917427154, 2.1176037542153017]], [[-1.4691062227777274, 5.3653531782074015, 1.6462502877530225, -3.1520998206992745], [3.8967582990845031, 0.59791372423092781, -2.6450964403442234, 1.4289020992068036], [-3.1186118838015178, -2.6585443272254059, -1.6297843536915577, 2.204467215917651]]], [[[-1.8350734667959934, -2.4018357667931745, 1.4558602366622111, 4.6388160972094177], [3.0608175287968784, 2.6282549907580961, 2.9426108817153533, 2.7511100569136975], [-3.6131085621711465, -1.709720469559568, 5.5085277782592019, 0.34095278022909525]], [[-0.66522705908630408, 1.7340108485915051, -2.5264143829845698, -2.1655744331860283], [1.2726237136485397, -2.3918256936724749, 0.026902721475754454, -0.10526475919449219], [-0.61624200975206822, -3.237724837834949, 3.0567210633522093, 4.7740342818543073]]], [[[1.7805839090750233, 2.1637889546145681, 1.476211507224674, 1.3205025916961475], [-3.2677696856559146, 3.674037489861977, -1.7568294964866773, 2.5037915320486093], [5.031167190301133, -1.7735267053939898, -2.8974287588114169, -1.855376159698209]], [[-3.4277150185096614, 5.3295459872932476, -0.19063285506405236, -1.7608724410970513], [3.6684335832452906, 2.9222876005704244, -0.78525062757914155, 4.4271705044632395], [5.1621777741880042, -2.3507294871497542, 1.9428540731124304, 0.33801062491477385]]]])+(1.-msk_ref)*numarray.array([[[[1.0418590794461204, -5.5458287643508939, 0.49605699063090647, 3.4563107645791931], [0.84316936880069182, -5.9806825651466227, -0.077097454591169345, 0.0038883500689692596], [3.3659292645968186, -4.0878867159520862, -2.4690433802700236, 3.8954345526769227]], [[-1.8402670124295923, -1.350842643547308, 3.77066651935605, -1.4822406859648236], [2.0767554755731439, 2.8942085651699596, -3.2124132710719318, -5.3867290257477958], [-2.9687751747118094, 2.7128093919294134, -5.8779614603006216, -4.4438275300040484]]], [[[-2.6900799637738002, -4.3385272900740901, -0.26370407258470507, -2.6796199929073357], [2.3568467517517107, -4.0150817805777281, -0.87511981594777222, -4.9378517237462924], [0.1853928861247276, -3.3785593142122359, -4.2398072514624694, 0.13545905454575191]], [[1.0268593655435865, 0.61912581258301991, 1.3657010307892286, -4.5469815026078972], [-1.9263713429518319, -3.607505648813456, -2.0035962349286578, 0.66814841134440428], [3.5997278128845664, -3.5039534998069994, -2.6524288219604295, -5.182406683143812]]], [[[1.4037237517231338, 1.7547702257144531, -3.7796447624367455, -3.9653597858810272], [-2.6823353586269825, -3.787335535909901, -1.1193425114777922, 0.30445097202929183], [-5.288018830168987, 0.9571195792649636, -0.65676066698078106, 0.44572592070058725]], [[1.451426702093098, 2.8542663734407352, -1.5218683507520829, -0.97305714028874846], [3.2583974685724222, -5.0776619414596968, 2.2284163599682927, 1.2806544794296784], [-2.4579035981342763, 0.34968879397977126, -1.2706149611971558, -0.21175284077974954]]]])        ref=msk_ref*numarray.array([[[[-2.760329840783089, 4.0646740423199681, 4.8367853818322697, -1.5047955269702804], [-3.4803363336007926, 1.8206637760592539, 0.59521927648199746, 1.9284243873008649], [0.4108315602056134, 5.9865947154572012, 3.6690593917427154, 2.1176037542153017]], [[-1.4691062227777274, 5.3653531782074015, 1.6462502877530225, -3.1520998206992745], [3.8967582990845031, 0.59791372423092781, -2.6450964403442234, 1.4289020992068036], [-3.1186118838015178, -2.6585443272254059, -1.6297843536915577, 2.204467215917651]]], [[[-1.8350734667959934, -2.4018357667931745, 1.4558602366622111, 4.6388160972094177], [3.0608175287968784, 2.6282549907580961, 2.9426108817153533, 2.7511100569136975], [-3.6131085621711465, -1.709720469559568, 5.5085277782592019, 0.34095278022909525]], [[-0.66522705908630408, 1.7340108485915051, -2.5264143829845698, -2.1655744331860283], [1.2726237136485397, -2.3918256936724749, 0.026902721475754454, -0.10526475919449219], [-0.61624200975206822, -3.237724837834949, 3.0567210633522093, 4.7740342818543073]]], [[[1.7805839090750233, 2.1637889546145681, 1.476211507224674, 1.3205025916961475], [-3.2677696856559146, 3.674037489861977, -1.7568294964866773, 2.5037915320486093], [5.031167190301133, -1.7735267053939898, -2.8974287588114169, -1.855376159698209]], [[-3.4277150185096614, 5.3295459872932476, -0.19063285506405236, -1.7608724410970513], [3.6684335832452906, 2.9222876005704244, -0.78525062757914155, 4.4271705044632395], [5.1621777741880042, -2.3507294871497542, 1.9428540731124304, 0.33801062491477385]]]])+(1.-msk_ref)*numarray.array([[[[1.0418590794461204, -5.5458287643508939, 0.49605699063090647, 3.4563107645791931], [0.84316936880069182, -5.9806825651466227, -0.077097454591169345, 0.0038883500689692596], [3.3659292645968186, -4.0878867159520862, -2.4690433802700236, 3.8954345526769227]], [[-1.8402670124295923, -1.350842643547308, 3.77066651935605, -1.4822406859648236], [2.0767554755731439, 2.8942085651699596, -3.2124132710719318, -5.3867290257477958], [-2.9687751747118094, 2.7128093919294134, -5.8779614603006216, -4.4438275300040484]]], [[[-2.6900799637738002, -4.3385272900740901, -0.26370407258470507, -2.6796199929073357], [2.3568467517517107, -4.0150817805777281, -0.87511981594777222, -4.9378517237462924], [0.1853928861247276, -3.3785593142122359, -4.2398072514624694, 0.13545905454575191]], [[1.0268593655435865, 0.61912581258301991, 1.3657010307892286, -4.5469815026078972], [-1.9263713429518319, -3.607505648813456, -2.0035962349286578, 0.66814841134440428], [3.5997278128845664, -3.5039534998069994, -2.6524288219604295, -5.182406683143812]]], [[[1.4037237517231338, 1.7547702257144531, -3.7796447624367455, -3.9653597858810272], [-2.6823353586269825, -3.787335535909901, -1.1193425114777922, 0.30445097202929183], [-5.288018830168987, 0.9571195792649636, -0.65676066698078106, 0.44572592070058725]], [[1.451426702093098, 2.8542663734407352, -1.5218683507520829, -0.97305714028874846], [3.2583974685724222, -5.0776619414596968, 2.2284163599682927, 1.2806544794296784], [-2.4579035981342763, 0.34968879397977126, -1.2706149611971558, -0.21175284077974954]]]])
469        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
470        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 556  class Test_util_overloaded_binary_with_t Line 556  class Test_util_overloaded_binary_with_t
556        arg1.setTaggedValue(1,-0.696765436453)        arg1.setTaggedValue(1,-0.696765436453)
557        arg1.expand()        arg1.expand()
558        res=arg0+arg1        res=arg0+arg1
559        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
560        ref=msk_ref*numarray.array([1.4849018580868396, -1.4500776279682857])+(1.-msk_ref)*numarray.array([0.80291016345810284, 1.6335687206063048])        ref=msk_ref*numarray.array([1.4849018580868396, -1.4500776279682857])+(1.-msk_ref)*numarray.array([0.80291016345810284, 1.6335687206063048])
561        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
562        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 569  class Test_util_overloaded_binary_with_t Line 569  class Test_util_overloaded_binary_with_t
569        arg1.setTaggedValue(1,numarray.array([1.1775322453437855, 4.813387928423996]))        arg1.setTaggedValue(1,numarray.array([1.1775322453437855, 4.813387928423996]))
570        arg1.expand()        arg1.expand()
571        res=arg0+arg1        res=arg0+arg1
572        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
573        ref=msk_ref*numarray.array([2.0787315508676816, 6.4714264857830539])+(1.-msk_ref)*numarray.array([5.1448665629143804, 8.4540150405982626])        ref=msk_ref*numarray.array([2.0787315508676816, 6.4714264857830539])+(1.-msk_ref)*numarray.array([5.1448665629143804, 8.4540150405982626])
574        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
575        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 661  class Test_util_overloaded_binary_with_t Line 661  class Test_util_overloaded_binary_with_t
661        arg1.setTaggedValue(1,3.46900141878)        arg1.setTaggedValue(1,3.46900141878)
662        arg1.expand()        arg1.expand()
663        res=arg0+arg1        res=arg0+arg1
664        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
665        ref=msk_ref*numarray.array([[5.4540407275500078, 2.1761143817815096, -0.52719112152366376, -0.3843246013430095, -2.740608807403647], [1.5565402705686617, 3.9772425187757792, 5.2327969946388313, -0.81348444438004508, -2.5313802021810412], [-0.93740628946473326, 5.2209837423348402, 0.63698797353806569, 0.63713976698338115, 3.2816720537686352], [7.0151845150902785, 6.0918637969578322, 2.9716681017841307, 2.1734232606291588, -1.7309191145514649]])+(1.-msk_ref)*numarray.array([[4.3764400920563293, 3.0981704655709894, -0.98320730437982551, 3.3862952818342178, 4.007658779521579], [2.2219992635955546, 1.5830486201403122, 2.014777654228161, -0.75963037017003998, 7.3816889370686489], [6.7925724716388043, 6.3577894545093159, 0.67456361550215105, 1.6210134310825479, 2.8702854628531593], [7.4059236502263417, 3.3312149458118707, 7.7289199680504783, 1.3728563608631346, 2.1526353193843724]])        ref=msk_ref*numarray.array([[5.4540407275500078, 2.1761143817815096, -0.52719112152366376, -0.3843246013430095, -2.740608807403647], [1.5565402705686617, 3.9772425187757792, 5.2327969946388313, -0.81348444438004508, -2.5313802021810412], [-0.93740628946473326, 5.2209837423348402, 0.63698797353806569, 0.63713976698338115, 3.2816720537686352], [7.0151845150902785, 6.0918637969578322, 2.9716681017841307, 2.1734232606291588, -1.7309191145514649]])+(1.-msk_ref)*numarray.array([[4.3764400920563293, 3.0981704655709894, -0.98320730437982551, 3.3862952818342178, 4.007658779521579], [2.2219992635955546, 1.5830486201403122, 2.014777654228161, -0.75963037017003998, 7.3816889370686489], [6.7925724716388043, 6.3577894545093159, 0.67456361550215105, 1.6210134310825479, 2.8702854628531593], [7.4059236502263417, 3.3312149458118707, 7.7289199680504783, 1.3728563608631346, 2.1526353193843724]])
666        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
667        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 674  class Test_util_overloaded_binary_with_t Line 674  class Test_util_overloaded_binary_with_t
674        arg1.setTaggedValue(1,numarray.array([[-4.5533463764192907, -2.5680501286088098, -2.1595429923626455, -2.7191228050860241, -2.7088788101250261], [3.7258720533049789, 1.284927684183641, -1.1675681000724514, 0.69945198751573212, -4.9965536747752903], [-2.522137040044564, -3.5846235768258961, 4.2167459240643232, -3.2345633958568532, -3.1123818128654279], [-1.5173196493114371, 4.2228271484661324, -0.97650304976789037, 4.2862261537218433, 2.4227338308583484]]))        arg1.setTaggedValue(1,numarray.array([[-4.5533463764192907, -2.5680501286088098, -2.1595429923626455, -2.7191228050860241, -2.7088788101250261], [3.7258720533049789, 1.284927684183641, -1.1675681000724514, 0.69945198751573212, -4.9965536747752903], [-2.522137040044564, -3.5846235768258961, 4.2167459240643232, -3.2345633958568532, -3.1123818128654279], [-1.5173196493114371, 4.2228271484661324, -0.97650304976789037, 4.2862261537218433, 2.4227338308583484]]))
675        arg1.expand()        arg1.expand()
676        res=arg0+arg1        res=arg0+arg1
677        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
678        ref=msk_ref*numarray.array([[-1.6457295232929816, -3.5739167580616451, -3.7809993104690509, -0.89550873345150217, 7.0629309931031248], [6.6903041706795401, -0.086869453915903172, 3.2693519600153635, 6.7861627001845912, -5.8098204516469449], [3.2667599119006088, -7.2463400586830469, -0.81532508859052921, 1.3154220757638764, 0.81304481200656298], [2.2964458188780448, -0.68543089723564776, -7.5307568372887967, 0.55715982016390253, 2.4788825076364223]])+(1.-msk_ref)*numarray.array([[-4.961592127666786, -3.70776649851113, 2.159548150706966, 1.934303293296705, -7.0634674656701568], [2.1343089601834828, 3.1779823124777362, -0.89876296900961927, 0.22774901638147327, -9.3372929168185319], [1.1088069828510552, -6.5203467094980949, 4.0384107077617371, -3.8089194649120324, -3.5433915386344084], [0.83143664629669178, 1.118246670755962, 2.474023802989505, 3.6726700781588324, 5.5908903322329664]])        ref=msk_ref*numarray.array([[-1.6457295232929816, -3.5739167580616451, -3.7809993104690509, -0.89550873345150217, 7.0629309931031248], [6.6903041706795401, -0.086869453915903172, 3.2693519600153635, 6.7861627001845912, -5.8098204516469449], [3.2667599119006088, -7.2463400586830469, -0.81532508859052921, 1.3154220757638764, 0.81304481200656298], [2.2964458188780448, -0.68543089723564776, -7.5307568372887967, 0.55715982016390253, 2.4788825076364223]])+(1.-msk_ref)*numarray.array([[-4.961592127666786, -3.70776649851113, 2.159548150706966, 1.934303293296705, -7.0634674656701568], [2.1343089601834828, 3.1779823124777362, -0.89876296900961927, 0.22774901638147327, -9.3372929168185319], [1.1088069828510552, -6.5203467094980949, 4.0384107077617371, -3.8089194649120324, -3.5433915386344084], [0.83143664629669178, 1.118246670755962, 2.474023802989505, 3.6726700781588324, 5.5908903322329664]])
679        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
680        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 766  class Test_util_overloaded_binary_with_t Line 766  class Test_util_overloaded_binary_with_t
766        arg1.setTaggedValue(1,-1.20958161923)        arg1.setTaggedValue(1,-1.20958161923)
767        arg1.expand()        arg1.expand()
768        res=arg0+arg1        res=arg0+arg1
769        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
770        ref=msk_ref*numarray.array([[[-4.3041682388437552, -7.0698248786941784], [-6.5629178729755155, 1.6222715553081777]], [[1.7656447465786975, 1.9004759125729898], [-0.0078685679522720875, -6.8122629111432964]], [[1.1144558478398707, 1.7292663543559499], [-7.8231880191989465, -0.35535361553145961]], [[1.0916126484626947, -4.8288824306469476], [-7.4720713766991116, 0.6540141796271044]], [[-2.399416948235789, -2.8804251628516981], [-4.3767872948760518, -4.3026989931766551]], [[-6.0976672036676849, 0.51408358510390251], [-4.5359916107165645, -0.484910644736952]]])+(1.-msk_ref)*numarray.array([[[-3.1000188236147102, -5.7286772603874132], [3.3639152047639191, -0.20132257243517504]], [[2.6540934677069865, 2.7657238887519044], [2.4721500263905787, -3.4948769497788459]], [[-4.4153584674833706, -4.2858381168777502], [2.2733585398788074, -0.86709178779319629]], [[1.6055318190338319, -2.6274608602802343], [-4.0400151357873408, -5.9477665281221395]], [[-1.890946116443244, 1.1406044666179573], [-4.4444319001520984, 3.3520270758077748]], [[-0.87338776313692978, -3.9080027288692856], [-2.9609712027923507, 2.2517950716091741]]])        ref=msk_ref*numarray.array([[[-4.3041682388437552, -7.0698248786941784], [-6.5629178729755155, 1.6222715553081777]], [[1.7656447465786975, 1.9004759125729898], [-0.0078685679522720875, -6.8122629111432964]], [[1.1144558478398707, 1.7292663543559499], [-7.8231880191989465, -0.35535361553145961]], [[1.0916126484626947, -4.8288824306469476], [-7.4720713766991116, 0.6540141796271044]], [[-2.399416948235789, -2.8804251628516981], [-4.3767872948760518, -4.3026989931766551]], [[-6.0976672036676849, 0.51408358510390251], [-4.5359916107165645, -0.484910644736952]]])+(1.-msk_ref)*numarray.array([[[-3.1000188236147102, -5.7286772603874132], [3.3639152047639191, -0.20132257243517504]], [[2.6540934677069865, 2.7657238887519044], [2.4721500263905787, -3.4948769497788459]], [[-4.4153584674833706, -4.2858381168777502], [2.2733585398788074, -0.86709178779319629]], [[1.6055318190338319, -2.6274608602802343], [-4.0400151357873408, -5.9477665281221395]], [[-1.890946116443244, 1.1406044666179573], [-4.4444319001520984, 3.3520270758077748]], [[-0.87338776313692978, -3.9080027288692856], [-2.9609712027923507, 2.2517950716091741]]])
771        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
772        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 779  class Test_util_overloaded_binary_with_t Line 779  class Test_util_overloaded_binary_with_t
779        arg1.setTaggedValue(1,numarray.array([[[2.4170980236834101, -1.4418678544662491], [3.2265265882639937, 3.7842533566507583]], [[-1.8863396046980343, -3.6268725404156674], [-1.1549271336130018, 0.44272481604552549]], [[-0.33548547307548304, -0.10639012269721082], [-0.63541902485729196, 1.1408369737290194]], [[-1.9207718677721619, -1.1024972053357009], [-3.0868443868761175, 2.3061615690186024]], [[-3.564701225801775, -1.2916378277150353], [-1.5425736650453423, 3.879975564160695]], [[-0.74759224895991316, 2.2399027760878099], [4.7240453344637139, -2.0896612148746141]]]))        arg1.setTaggedValue(1,numarray.array([[[2.4170980236834101, -1.4418678544662491], [3.2265265882639937, 3.7842533566507583]], [[-1.8863396046980343, -3.6268725404156674], [-1.1549271336130018, 0.44272481604552549]], [[-0.33548547307548304, -0.10639012269721082], [-0.63541902485729196, 1.1408369737290194]], [[-1.9207718677721619, -1.1024972053357009], [-3.0868443868761175, 2.3061615690186024]], [[-3.564701225801775, -1.2916378277150353], [-1.5425736650453423, 3.879975564160695]], [[-0.74759224895991316, 2.2399027760878099], [4.7240453344637139, -2.0896612148746141]]]))
780        arg1.expand()        arg1.expand()
781        res=arg0+arg1        res=arg0+arg1
782        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
783        ref=msk_ref*numarray.array([[[2.7350103534579757, -6.3123579952770026], [-1.2230548476283527, 3.6132284569033777]], [[-1.6285543659867461, 0.35283357280828476], [-5.4487317929991761, -2.5091448800595417]], [[-2.6640049654786973, 1.7662599587822632], [-4.4232436813684179, -0.49878067389935676]], [[1.7431005251466916, 3.2314590270201675], [9.1589527010845782, 0.19034816344491867]], [[1.8764929899348379, 8.1396034919558886], [5.0354190374073378, 1.0478074224445608]], [[3.524448683942941, -7.3313117292956917], [-2.0430428215422065, 0.42967756991137618]]])+(1.-msk_ref)*numarray.array([[[-0.49357118782630405, -0.29701693879590785], [-0.34822223879072656, 8.1310013530086671]], [[0.034601532326465012, -8.0466873539788999], [-3.69882866489889, 1.7582700866635861]], [[4.547154845526908, 0.2342396340033126], [-0.36788089084630116, 5.369131050506514]], [[2.4238377305002299, 0.10359166596352676], [-5.9470523547998724, -2.2492595494722165]], [[0.95508194126639623, -5.5888057347041489], [2.1114883538694862, 8.5239298554241003]], [[0.8756022380967412, 6.9378336143869568], [4.5292308654603701, -0.14044854190821043]]])        ref=msk_ref*numarray.array([[[2.7350103534579757, -6.3123579952770026], [-1.2230548476283527, 3.6132284569033777]], [[-1.6285543659867461, 0.35283357280828476], [-5.4487317929991761, -2.5091448800595417]], [[-2.6640049654786973, 1.7662599587822632], [-4.4232436813684179, -0.49878067389935676]], [[1.7431005251466916, 3.2314590270201675], [9.1589527010845782, 0.19034816344491867]], [[1.8764929899348379, 8.1396034919558886], [5.0354190374073378, 1.0478074224445608]], [[3.524448683942941, -7.3313117292956917], [-2.0430428215422065, 0.42967756991137618]]])+(1.-msk_ref)*numarray.array([[[-0.49357118782630405, -0.29701693879590785], [-0.34822223879072656, 8.1310013530086671]], [[0.034601532326465012, -8.0466873539788999], [-3.69882866489889, 1.7582700866635861]], [[4.547154845526908, 0.2342396340033126], [-0.36788089084630116, 5.369131050506514]], [[2.4238377305002299, 0.10359166596352676], [-5.9470523547998724, -2.2492595494722165]], [[0.95508194126639623, -5.5888057347041489], [2.1114883538694862, 8.5239298554241003]], [[0.8756022380967412, 6.9378336143869568], [4.5292308654603701, -0.14044854190821043]]])
784        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
785        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 871  class Test_util_overloaded_binary_with_t Line 871  class Test_util_overloaded_binary_with_t
871        arg1.setTaggedValue(1,0.99139756726)        arg1.setTaggedValue(1,0.99139756726)
872        arg1.expand()        arg1.expand()
873        res=arg0+arg1        res=arg0+arg1
874        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
875        ref=msk_ref*numarray.array([[[[-3.1121716544045164, 3.622028088090238, 0.82266414255656395, -0.23184262676943534], [-2.6058480584037915, -1.1487973163221832, -1.1715634478354251, 0.085995842591148008], [-5.0414864822328749, -2.1409045358762238, 2.4960417338003968, -0.47922702097300229]], [[3.706558633438727, -0.56645600824878661, -0.48211147132158905, -4.7048443563493265], [-0.17119342611599775, -4.0707950877389241, 0.5412502804871111, -2.8158081217601993], [-3.0315727347371468, -5.1842156334953824, 0.61101536065834017, 0.66936664179673722]]], [[[3.7449021611056019, -4.3408573468294476, 1.3833714577699063, -5.651975963819293], [-4.7245834211884237, 1.8251947857448099, 1.2067620805898032, -2.9601871341549879], [0.72758575148675453, 1.7135000690893079, 3.2802332618224121, 0.10885150594929316]], [[-0.73612480102036892, -0.02892425206617899, -2.4464725906443854, -4.4482769400965338], [1.9071866035282317, 2.5721095836464909, 3.5599039241313464, 2.7410603939776039], [2.388832454785192, -3.123707266650908, -0.26566048085187832, -0.30368300292464268]]], [[[1.3136736896689851, 0.65120655953809203, 3.1805556258761656, -1.5933897707302687], [0.12200936897565517, -3.5102739541092833, 2.1564396603554923, -2.0826796975797834], [-4.8678794173009869, -1.0160361274112364, -0.68797803150453651, 0.42923707066652428]], [[2.0074697968944819, -5.7310706871192725, -1.1169682615794998, 0.74557194215036349], [-0.41824817909724521, -6.009483110406368, 0.6671898413372177, 0.68778553613414184], [-0.99612013755582796, -5.2763580430045494, -1.4390963648175066, 2.0636994772705024]]]])+(1.-msk_ref)*numarray.array([[[[-1.5838569703103769, 1.2090330555610196, 0.75052507956130032, -2.2200582207003849], [1.5683934727265321, -1.0642388635943147, -0.069635228862712673, -3.001739748256214], [2.9079339546017371, 2.1219134220329767, -3.6813035604470086, 4.2382585891393498]], [[2.2513850317439674, 0.55866307014110994, 5.3777125372841921, 2.7953982420030794], [-1.8697270802481292, 2.2602465088676977, -2.7989998397358797, 1.7154862488366236], [2.5163705502677667, 1.5037607512903337, -2.8357445938306283, -3.1445964573933098]]], [[[-3.6298723151817303, -2.8844246731291414, 0.67683964508164784, 5.2526849517605116], [-2.3400527002158036, 3.8533185635636791, -1.561206827803411, -0.92830185708563073], [3.9118715356975668, 1.6818147326693085, 1.0434099018345107, -1.385790243292603]], [[-2.5375442082650839, -2.0718661858753231, 1.2338317678076907, 4.2903962380188458], [5.5141738605180732, 4.5067669290896157, 4.9692590610285814, -3.2893280061473442], [3.9334246695996464, 5.1321994841296776, 5.0138698095974314, 3.5816466685635895]]], [[[0.25741506642330059, 4.5787487955252368, 1.7521004583682505, 2.070552369994874], [-3.9541454762143333, 2.8891199902809124, -0.80247381516459093, 1.7137381542448784], [0.37584018319435497, 3.2424961113758615, -1.5523960445923026, 4.430834279819817]], [[2.0755376290456358, -0.62040045865049764, 4.7784201535887005, 1.8717838964987976], [2.0894989368492176, -2.0490469598711591, 4.3391931819096117, 0.21256024156972497], [-0.94350043319726229, -1.8921475383358191, 3.1134676372364405, -1.5809863700036511]]]])        ref=msk_ref*numarray.array([[[[-3.1121716544045164, 3.622028088090238, 0.82266414255656395, -0.23184262676943534], [-2.6058480584037915, -1.1487973163221832, -1.1715634478354251, 0.085995842591148008], [-5.0414864822328749, -2.1409045358762238, 2.4960417338003968, -0.47922702097300229]], [[3.706558633438727, -0.56645600824878661, -0.48211147132158905, -4.7048443563493265], [-0.17119342611599775, -4.0707950877389241, 0.5412502804871111, -2.8158081217601993], [-3.0315727347371468, -5.1842156334953824, 0.61101536065834017, 0.66936664179673722]]], [[[3.7449021611056019, -4.3408573468294476, 1.3833714577699063, -5.651975963819293], [-4.7245834211884237, 1.8251947857448099, 1.2067620805898032, -2.9601871341549879], [0.72758575148675453, 1.7135000690893079, 3.2802332618224121, 0.10885150594929316]], [[-0.73612480102036892, -0.02892425206617899, -2.4464725906443854, -4.4482769400965338], [1.9071866035282317, 2.5721095836464909, 3.5599039241313464, 2.7410603939776039], [2.388832454785192, -3.123707266650908, -0.26566048085187832, -0.30368300292464268]]], [[[1.3136736896689851, 0.65120655953809203, 3.1805556258761656, -1.5933897707302687], [0.12200936897565517, -3.5102739541092833, 2.1564396603554923, -2.0826796975797834], [-4.8678794173009869, -1.0160361274112364, -0.68797803150453651, 0.42923707066652428]], [[2.0074697968944819, -5.7310706871192725, -1.1169682615794998, 0.74557194215036349], [-0.41824817909724521, -6.009483110406368, 0.6671898413372177, 0.68778553613414184], [-0.99612013755582796, -5.2763580430045494, -1.4390963648175066, 2.0636994772705024]]]])+(1.-msk_ref)*numarray.array([[[[-1.5838569703103769, 1.2090330555610196, 0.75052507956130032, -2.2200582207003849], [1.5683934727265321, -1.0642388635943147, -0.069635228862712673, -3.001739748256214], [2.9079339546017371, 2.1219134220329767, -3.6813035604470086, 4.2382585891393498]], [[2.2513850317439674, 0.55866307014110994, 5.3777125372841921, 2.7953982420030794], [-1.8697270802481292, 2.2602465088676977, -2.7989998397358797, 1.7154862488366236], [2.5163705502677667, 1.5037607512903337, -2.8357445938306283, -3.1445964573933098]]], [[[-3.6298723151817303, -2.8844246731291414, 0.67683964508164784, 5.2526849517605116], [-2.3400527002158036, 3.8533185635636791, -1.561206827803411, -0.92830185708563073], [3.9118715356975668, 1.6818147326693085, 1.0434099018345107, -1.385790243292603]], [[-2.5375442082650839, -2.0718661858753231, 1.2338317678076907, 4.2903962380188458], [5.5141738605180732, 4.5067669290896157, 4.9692590610285814, -3.2893280061473442], [3.9334246695996464, 5.1321994841296776, 5.0138698095974314, 3.5816466685635895]]], [[[0.25741506642330059, 4.5787487955252368, 1.7521004583682505, 2.070552369994874], [-3.9541454762143333, 2.8891199902809124, -0.80247381516459093, 1.7137381542448784], [0.37584018319435497, 3.2424961113758615, -1.5523960445923026, 4.430834279819817]], [[2.0755376290456358, -0.62040045865049764, 4.7784201535887005, 1.8717838964987976], [2.0894989368492176, -2.0490469598711591, 4.3391931819096117, 0.21256024156972497], [-0.94350043319726229, -1.8921475383358191, 3.1134676372364405, -1.5809863700036511]]]])
876        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
877        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 884  class Test_util_overloaded_binary_with_t Line 884  class Test_util_overloaded_binary_with_t
884        arg1.setTaggedValue(1,numarray.array([[[[0.17685229581819506, -2.6418260019332296, 1.8152859574414713, -0.17422650860980582], [-3.0656107510341979, 4.9320158007392347, -2.3739933036036778, -1.727158988720876], [-4.3033749993411243, 3.0297371725772884, 3.6973630604953485, 3.4610253682100343]], [[2.9051779182260384, -2.3439490391761355, 1.6412219506533612, -2.0607558121035821], [4.1058694903700648, -0.24894078631454342, -3.1119594376409321, 2.8885272366579118], [-0.37125406663187199, 3.0534547182012197, 2.2894748907295739, 0.21522805657280308]]], [[[2.2981218187940646, -3.6656246871999132, 4.2545411655242074, 2.2897154559086328], [3.6767534010233476, -3.5560546299506091, -0.9901205486583855, 4.4152870211386563], [4.9020505922163053, -1.6219020776727042, -1.5742379804728932, 1.3916514850663706]], [[-0.70973150607027691, -2.1567765158018579, 0.22119552262824005, -0.34821322131399857], [-3.4877804383375932, -1.7497272583616477, 1.5421358963340595, 1.7443065416113832], [2.5285541017248381, -0.19955258681344645, 2.848375269287347, 2.0512786837871353]]], [[[-3.3843072498095439, -1.5940503647429551, 3.5750742741926658, 4.0691219718682294], [-2.7474692989588947, 4.4842033510677819, -1.7884429081284372, -1.9908286216121973], [-1.1356650955168979, 3.1646135578769279, -4.2652795322719284, -1.0145055587718597]], [[3.5491986069707764, -3.8496376856759418, -2.3580124339985629, 4.8646784843044237], [-3.4700320591409142, -0.37857516050742213, 0.68417599483544844, -0.61110575699124325], [1.1825308970273287, 4.5923941948064968, -3.976110142790886, 0.84623620521280429]]]]))        arg1.setTaggedValue(1,numarray.array([[[[0.17685229581819506, -2.6418260019332296, 1.8152859574414713, -0.17422650860980582], [-3.0656107510341979, 4.9320158007392347, -2.3739933036036778, -1.727158988720876], [-4.3033749993411243, 3.0297371725772884, 3.6973630604953485, 3.4610253682100343]], [[2.9051779182260384, -2.3439490391761355, 1.6412219506533612, -2.0607558121035821], [4.1058694903700648, -0.24894078631454342, -3.1119594376409321, 2.8885272366579118], [-0.37125406663187199, 3.0534547182012197, 2.2894748907295739, 0.21522805657280308]]], [[[2.2981218187940646, -3.6656246871999132, 4.2545411655242074, 2.2897154559086328], [3.6767534010233476, -3.5560546299506091, -0.9901205486583855, 4.4152870211386563], [4.9020505922163053, -1.6219020776727042, -1.5742379804728932, 1.3916514850663706]], [[-0.70973150607027691, -2.1567765158018579, 0.22119552262824005, -0.34821322131399857], [-3.4877804383375932, -1.7497272583616477, 1.5421358963340595, 1.7443065416113832], [2.5285541017248381, -0.19955258681344645, 2.848375269287347, 2.0512786837871353]]], [[[-3.3843072498095439, -1.5940503647429551, 3.5750742741926658, 4.0691219718682294], [-2.7474692989588947, 4.4842033510677819, -1.7884429081284372, -1.9908286216121973], [-1.1356650955168979, 3.1646135578769279, -4.2652795322719284, -1.0145055587718597]], [[3.5491986069707764, -3.8496376856759418, -2.3580124339985629, 4.8646784843044237], [-3.4700320591409142, -0.37857516050742213, 0.68417599483544844, -0.61110575699124325], [1.1825308970273287, 4.5923941948064968, -3.976110142790886, 0.84623620521280429]]]]))
885        arg1.expand()        arg1.expand()
886        res=arg0+arg1        res=arg0+arg1
887        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
888        ref=msk_ref*numarray.array([[[[-1.2079250645124104, -0.20136001482271437, -3.3725436099369634, -1.6730505793732036], [-6.6882205365874592, 0.83713153313964561, -6.3104490348671129, -5.8895919271917032], [-0.17445030318056887, 5.9802808833614378, -4.9927506173979417, 1.9712720311753156]], [[5.2004975924359691, -0.52547980678330219, 1.6516931586466308, -0.8419326832743117], [-0.9864065956524497, -0.30080320127514337, 3.838877892611448, -4.3626456217924092], [-5.4826816213205918, 5.3909812912639827, 9.0142520810397908, 1.2358345276618223]]], [[[-0.52858076474262461, -3.1226851044478163, -3.1928758776247035, -4.6734598438472741], [-7.6138197471639666, -1.7273601761741242, 1.1582686747813109, 3.3382857266149468], [-6.6915600268442699, -2.4118933018626354, 4.3971920856867381, -2.1781666562638966]], [[-0.45700230036264955, -6.7063067112226982, -3.6818128592363824, -0.016539522453562938], [-2.3500697109261415, 0.68850669028683775, -2.5692607281931963, -8.4782966439039171], [-2.270090231899899, -5.7120973150595322, 7.6837993594917311, -5.1821918586639963]]], [[[1.9470015756158743, -3.8146959754440362, -0.71390215630175291, 3.0003959496171886], [-0.42241679192971393, 1.5685977169123486, 1.1968372557147893, -0.72741467868460319], [8.019685218326094, -1.7007961293020628, 2.617971870774531, -4.2368441437709601]], [[6.5537411082556032, 3.4415587397924385, -2.2617757592076297, -0.2125218797299806], [3.3747741520164265, -1.827721628739555, 0.15063317070014737, 1.9043995460269256], [-0.44637804183358654, -0.050141769403551528, 7.470118201591335, 5.3092762835193446]]]])+(1.-msk_ref)*numarray.array([[[[1.7351794519038037, -3.2137077084422447, 6.414079512392922, 1.4487117038758335], [-1.9725579421596207, 2.4550731188734667, -6.0930130431961027, 0.39270683890020663], [0.54201312933836565, -1.4762203727309062, 3.1556404368623738, -0.8391816859133634]], [[3.8255477517145478, -6.2663627260789543, -1.1477656909465637, -5.5692330508779566], [1.2045349222768182, 0.33695568810723842, -5.2039645175438975, -0.25246276439023241], [-3.1133386622468553, 7.1608593599384562, 3.6762235791210554, 4.7603443321823544]]], [[[5.6664937406526894, -2.0857158782704177, 1.1079552803451742, 6.760044116736454], [5.170702028310215, -5.3082757637155797, -3.0520403407278898, 5.9310640118969982], [2.694330747275532, 0.82333404668441457, 2.7792811479329016, 6.2221002840621242]], [[-1.895029011129028, -5.1235912957315932, 3.1840161719866931, 1.1801640026522007], [1.3290881370322807, -2.4437370455343279, -2.173538415883721, -1.9355472773722537], [-2.4609494469875317, -0.37652672973902668, 6.5106285148252159, 2.760247831981042]]], [[[-1.1745705987633497, -5.0295012689262055, 2.2519728954877429, 5.7193764584900935], [-0.46665391671099155, 3.143499626498695, -2.3558455912276637, -5.0039270647972289], [1.5892095041709329, 1.1161775618731147, -1.4009998993625663, -1.4798881914595254]], [[0.41887607398542626, -1.5742599875622925, -7.2674052512472862, 1.002811596827176], [-0.014756704202889992, -0.70447775718453887, 3.6930045125615356, -0.45237436082816895], [2.1589274106232583, 7.8945682717195194, -4.4745852243772672, -1.3341789865930758]]]])        ref=msk_ref*numarray.array([[[[-1.2079250645124104, -0.20136001482271437, -3.3725436099369634, -1.6730505793732036], [-6.6882205365874592, 0.83713153313964561, -6.3104490348671129, -5.8895919271917032], [-0.17445030318056887, 5.9802808833614378, -4.9927506173979417, 1.9712720311753156]], [[5.2004975924359691, -0.52547980678330219, 1.6516931586466308, -0.8419326832743117], [-0.9864065956524497, -0.30080320127514337, 3.838877892611448, -4.3626456217924092], [-5.4826816213205918, 5.3909812912639827, 9.0142520810397908, 1.2358345276618223]]], [[[-0.52858076474262461, -3.1226851044478163, -3.1928758776247035, -4.6734598438472741], [-7.6138197471639666, -1.7273601761741242, 1.1582686747813109, 3.3382857266149468], [-6.6915600268442699, -2.4118933018626354, 4.3971920856867381, -2.1781666562638966]], [[-0.45700230036264955, -6.7063067112226982, -3.6818128592363824, -0.016539522453562938], [-2.3500697109261415, 0.68850669028683775, -2.5692607281931963, -8.4782966439039171], [-2.270090231899899, -5.7120973150595322, 7.6837993594917311, -5.1821918586639963]]], [[[1.9470015756158743, -3.8146959754440362, -0.71390215630175291, 3.0003959496171886], [-0.42241679192971393, 1.5685977169123486, 1.1968372557147893, -0.72741467868460319], [8.019685218326094, -1.7007961293020628, 2.617971870774531, -4.2368441437709601]], [[6.5537411082556032, 3.4415587397924385, -2.2617757592076297, -0.2125218797299806], [3.3747741520164265, -1.827721628739555, 0.15063317070014737, 1.9043995460269256], [-0.44637804183358654, -0.050141769403551528, 7.470118201591335, 5.3092762835193446]]]])+(1.-msk_ref)*numarray.array([[[[1.7351794519038037, -3.2137077084422447, 6.414079512392922, 1.4487117038758335], [-1.9725579421596207, 2.4550731188734667, -6.0930130431961027, 0.39270683890020663], [0.54201312933836565, -1.4762203727309062, 3.1556404368623738, -0.8391816859133634]], [[3.8255477517145478, -6.2663627260789543, -1.1477656909465637, -5.5692330508779566], [1.2045349222768182, 0.33695568810723842, -5.2039645175438975, -0.25246276439023241], [-3.1133386622468553, 7.1608593599384562, 3.6762235791210554, 4.7603443321823544]]], [[[5.6664937406526894, -2.0857158782704177, 1.1079552803451742, 6.760044116736454], [5.170702028310215, -5.3082757637155797, -3.0520403407278898, 5.9310640118969982], [2.694330747275532, 0.82333404668441457, 2.7792811479329016, 6.2221002840621242]], [[-1.895029011129028, -5.1235912957315932, 3.1840161719866931, 1.1801640026522007], [1.3290881370322807, -2.4437370455343279, -2.173538415883721, -1.9355472773722537], [-2.4609494469875317, -0.37652672973902668, 6.5106285148252159, 2.760247831981042]]], [[[-1.1745705987633497, -5.0295012689262055, 2.2519728954877429, 5.7193764584900935], [-0.46665391671099155, 3.143499626498695, -2.3558455912276637, -5.0039270647972289], [1.5892095041709329, 1.1161775618731147, -1.4009998993625663, -1.4798881914595254]], [[0.41887607398542626, -1.5742599875622925, -7.2674052512472862, 1.002811596827176], [-0.014756704202889992, -0.70447775718453887, 3.6930045125615356, -0.45237436082816895], [2.1589274106232583, 7.8945682717195194, -4.4745852243772672, -1.3341789865930758]]]])
889        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
890        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 897  class Test_util_overloaded_binary_with_t Line 897  class Test_util_overloaded_binary_with_t
897        arg1=Data(4.71282017112,self.functionspace)        arg1=Data(4.71282017112,self.functionspace)
898        arg1.setTaggedValue(1,-2.25991979071)        arg1.setTaggedValue(1,-2.25991979071)
899        res=arg0+arg1        res=arg0+arg1
900        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
901        ref=msk_ref*(2.2549797125)+(1.-msk_ref)*(0.0503889097804)        ref=msk_ref*(2.2549797125)+(1.-msk_ref)*(0.0503889097804)
902        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
903        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
# Line 910  class Test_util_overloaded_binary_with_t Line 910  class Test_util_overloaded_binary_with_t
910        arg1=Data(numarray.array([3.4318238351668242, -2.4405324320070108]),self.functionspace)        arg1=Data(numarray.array([3.4318238351668242, -2.4405324320070108]),self.functionspace)
911        arg1.setTaggedValue(1,numarray.array([4.0029001743376895, 0.8331733937495267]))        arg1.setTaggedValue(1,numarray.array([4.0029001743376895, 0.8331733937495267]))
912        res=arg0+arg1        res=arg0+arg1
913        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
914        ref=msk_ref*numarray.array([0.085301038404434149, -5.7870552287694004])+(1.-msk_ref)*numarray.array([5.5403578252095276, 2.3706310446213648])        ref=msk_ref*numarray.array([0.085301038404434149, -5.7870552287694004])+(1.-msk_ref)*numarray.array([5.5403578252095276, 2.3706310446213648])
915        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
916        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 923  class Test_util_overloaded_binary_with_t Line 923  class Test_util_overloaded_binary_with_t
923        arg1=Data(numarray.array([[-1.7265053885136048, -1.4712749422840155, -3.9397527194745861, 3.9946837913205648, 3.2536122309452349], [2.6811114679007675, -0.35502412921027648, -2.0171850629782559, 3.4766836568162436, 1.9033728554633011], [-0.38926087127955622, -3.4136043824343307, -1.2239369279432877, -1.6851226164974911, 4.6805851296611714], [-0.78452517138582234, -0.52550491644668007, -1.4976649257548837, -3.0117235953484576, -1.445916954142128]]),self.functionspace)        arg1=Data(numarray.array([[-1.7265053885136048, -1.4712749422840155, -3.9397527194745861, 3.9946837913205648, 3.2536122309452349], [2.6811114679007675, -0.35502412921027648, -2.0171850629782559, 3.4766836568162436, 1.9033728554633011], [-0.38926087127955622, -3.4136043824343307, -1.2239369279432877, -1.6851226164974911, 4.6805851296611714], [-0.78452517138582234, -0.52550491644668007, -1.4976649257548837, -3.0117235953484576, -1.445916954142128]]),self.functionspace)
924        arg1.setTaggedValue(1,numarray.array([[2.4203560418898551, -0.15178680088626173, -0.4650356945912808, -4.6364495067205382, 1.9033486051459665], [1.2273854524783046, 0.21092228466745766, 4.8470184150547357, 3.913879288546763, -1.4050943298594443], [0.15549981790659295, 1.669223411329436, -1.1600981262339305, 0.42745663088461683, -0.93765281059660399], [3.2240645611139822, 3.2390127861390656, 3.7189423355380171, -1.8504341549489203, -2.0187445625097675]]))        arg1.setTaggedValue(1,numarray.array([[2.4203560418898551, -0.15178680088626173, -0.4650356945912808, -4.6364495067205382, 1.9033486051459665], [1.2273854524783046, 0.21092228466745766, 4.8470184150547357, 3.913879288546763, -1.4050943298594443], [0.15549981790659295, 1.669223411329436, -1.1600981262339305, 0.42745663088461683, -0.93765281059660399], [3.2240645611139822, 3.2390127861390656, 3.7189423355380171, -1.8504341549489203, -2.0187445625097675]]))
925        res=arg0+arg1        res=arg0+arg1
926        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
927        ref=msk_ref*numarray.array([[-0.42445802181486592, -0.16922757558527657, -2.6377053527758472, 5.2967311580193037, 4.5556595976439738], [3.9831588345995064, 0.9470232374884624, -0.71513769627951707, 4.7787310235149825, 3.20542022216204], [0.91278649541918266, -2.1115570157355918, 0.078110438755451206, -0.38307524979875218, 5.9826324963599102], [0.51752219531291654, 0.77654245025205881, -0.19561755905614486, -1.7096762286497187, -0.14386958744338907]])+(1.-msk_ref)*numarray.array([[1.0049007821792477, -1.5672420605968691, -1.8804909543018882, -6.0519047664311456, 0.48789334543535912], [-0.18806980723230282, -1.2045329750431497, 3.4315631553441284, 2.4984240288361557, -2.8205495895700516], [-1.2599554418040144, 0.2537681516188286, -2.5755533859445379, -0.98799862882599054, -2.3531080703072114], [1.8086093014033748, 1.8235575264284583, 2.3034870758274097, -3.2658894146595276, -3.4341998222203749]])        ref=msk_ref*numarray.array([[-0.42445802181486592, -0.16922757558527657, -2.6377053527758472, 5.2967311580193037, 4.5556595976439738], [3.9831588345995064, 0.9470232374884624, -0.71513769627951707, 4.7787310235149825, 3.20542022216204], [0.91278649541918266, -2.1115570157355918, 0.078110438755451206, -0.38307524979875218, 5.9826324963599102], [0.51752219531291654, 0.77654245025205881, -0.19561755905614486, -1.7096762286497187, -0.14386958744338907]])+(1.-msk_ref)*numarray.array([[1.0049007821792477, -1.5672420605968691, -1.8804909543018882, -6.0519047664311456, 0.48789334543535912], [-0.18806980723230282, -1.2045329750431497, 3.4315631553441284, 2.4984240288361557, -2.8205495895700516], [-1.2599554418040144, 0.2537681516188286, -2.5755533859445379, -0.98799862882599054, -2.3531080703072114], [1.8086093014033748, 1.8235575264284583, 2.3034870758274097, -3.2658894146595276, -3.4341998222203749]])
928        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
929        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 936  class Test_util_overloaded_binary_with_t Line 936  class Test_util_overloaded_binary_with_t
936        arg1=Data(numarray.array([[[4.4612381157591621, 1.6766847385633765], [0.55547241809476677, 3.9108329142717704]], [[-4.2625148810224145, 2.4593624806361785], [1.795349158317201, 4.9399022768230889]], [[4.0485392348311553, 4.4029734037448343], [0.53445127507420143, -3.8294024239678159]], [[1.7612024555912518, -0.44610857712610752], [3.7107985081585486, -4.8852486051357866]], [[-1.2990748638147744, 4.6643028470068124], [1.1225809895178305, -2.5642529820575408]], [[2.9058154474972229, 3.4284582491247182], [-4.9949860171650915, 4.1011822172104893]]]),self.functionspace)        arg1=Data(numarray.array([[[4.4612381157591621, 1.6766847385633765], [0.55547241809476677, 3.9108329142717704]], [[-4.2625148810224145, 2.4593624806361785], [1.795349158317201, 4.9399022768230889]], [[4.0485392348311553, 4.4029734037448343], [0.53445127507420143, -3.8294024239678159]], [[1.7612024555912518, -0.44610857712610752], [3.7107985081585486, -4.8852486051357866]], [[-1.2990748638147744, 4.6643028470068124], [1.1225809895178305, -2.5642529820575408]], [[2.9058154474972229, 3.4284582491247182], [-4.9949860171650915, 4.1011822172104893]]]),self.functionspace)
937        arg1.setTaggedValue(1,numarray.array([[[1.1817929544003682, -1.084893198888448], [-3.9435086414503995, 3.1166096639915644]], [[-3.9597903752567234, -3.7934860412669389], [4.4675879323673779, -0.9183536179828975]], [[3.4707470880613371, -0.43531931805617763], [1.4983404381224386, -0.70992222772275682]], [[-1.2911879862443354, -4.4064631190639449], [2.6343603975717009, 0.53848635999957395]], [[-2.4633346053218999, 3.1157428164448504], [-1.3456159141155535, -1.6635238716224823]], [[0.85670654879524744, -4.5186020294485978], [-2.023880376756968, -4.4654642289716939]]]))        arg1.setTaggedValue(1,numarray.array([[[1.1817929544003682, -1.084893198888448], [-3.9435086414503995, 3.1166096639915644]], [[-3.9597903752567234, -3.7934860412669389], [4.4675879323673779, -0.9183536179828975]], [[3.4707470880613371, -0.43531931805617763], [1.4983404381224386, -0.70992222772275682]], [[-1.2911879862443354, -4.4064631190639449], [2.6343603975717009, 0.53848635999957395]], [[-2.4633346053218999, 3.1157428164448504], [-1.3456159141155535, -1.6635238716224823]], [[0.85670654879524744, -4.5186020294485978], [-2.023880376756968, -4.4654642289716939]]]))
938        res=arg0+arg1        res=arg0+arg1
939        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
940        ref=msk_ref*numarray.array([[[4.7765200743780838, 1.9919666971822982], [0.87075437671368849, 4.2261148728906921]], [[-3.9472329224034928, 2.7746444392551002], [2.1106311169361227, 5.2551842354420106]], [[4.363821193450077, 4.718255362363756], [0.84973323369312315, -3.5141204653488942]], [[2.0764844142101735, -0.1308266185071858], [4.0260804667774703, -4.5699666465168649]], [[-0.98379290519585272, 4.9795848056257341], [1.4378629481367522, -2.2489710234386191]], [[3.2210974061161446, 3.7437402077436399], [-4.6797040585461698, 4.416464175829411]]])+(1.-msk_ref)*numarray.array([[[5.9597138644941428, 3.6930277112053265], [0.83441226864337503, 7.8945305740853389]], [[0.81813053483705112, 0.98443486882683562], [9.2455088424611525, 3.859567292110877]], [[8.2486679981551116, 4.3426015920375969], [6.2762613482162131, 4.0679986823710177]], [[3.4867329238494391, 0.37145779102982956], [7.4122813076654754, 5.3164072700933485]], [[2.3145863047718747, 7.8936637265386249], [3.432304995978221, 3.1143970384712922]], [[5.6346274588890219, 0.25931888064517672], [2.7540405333368065, 0.31245668112208058]]])        ref=msk_ref*numarray.array([[[4.7765200743780838, 1.9919666971822982], [0.87075437671368849, 4.2261148728906921]], [[-3.9472329224034928, 2.7746444392551002], [2.1106311169361227, 5.2551842354420106]], [[4.363821193450077, 4.718255362363756], [0.84973323369312315, -3.5141204653488942]], [[2.0764844142101735, -0.1308266185071858], [4.0260804667774703, -4.5699666465168649]], [[-0.98379290519585272, 4.9795848056257341], [1.4378629481367522, -2.2489710234386191]], [[3.2210974061161446, 3.7437402077436399], [-4.6797040585461698, 4.416464175829411]]])+(1.-msk_ref)*numarray.array([[[5.9597138644941428, 3.6930277112053265], [0.83441226864337503, 7.8945305740853389]], [[0.81813053483705112, 0.98443486882683562], [9.2455088424611525, 3.859567292110877]], [[8.2486679981551116, 4.3426015920375969], [6.2762613482162131, 4.0679986823710177]], [[3.4867329238494391, 0.37145779102982956], [7.4122813076654754, 5.3164072700933485]], [[2.3145863047718747, 7.8936637265386249], [3.432304995978221, 3.1143970384712922]], [[5.6346274588890219, 0.25931888064517672], [2.7540405333368065, 0.31245668112208058]]])
941        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
942        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 949  class Test_util_overloaded_binary_with_t Line 949  class Test_util_overloaded_binary_with_t
949        arg1=Data(numarray.array([[[[-2.2040119703487737, 0.22207585226900939, -3.9418794262070769, 2.0859785399087185], [1.7904551067882419, 1.9190078021454715, -0.13723968162950939, -3.2815182493831885], [-0.91571535407697002, 3.0995577411718731, 0.10326371715132865, -1.2257029064659122]], [[-3.4339587435216492, -1.7174314509114286, -3.8212321032447538, 1.3141536610711295], [-3.0867159602503822, -1.328832259691648, 0.00045833706937159491, 3.7279300198570748], [0.7141427717444957, -3.3772016134720029, -4.0342641506650709, -1.2974928280252405]]], [[[-0.03925290280549909, -4.0358075605674912, 2.5240986142622281, -0.9106800040300298], [4.2713554750433751, -2.065335819573674, 3.9574485785983331, 3.1928077430143595], [-3.1332757872420802, -2.5585886089202092, 0.36453095035546923, -2.3244180120835702]], [[-1.8307102339182526, -0.5174914843013676, -4.329919822379118, -2.9965928508652429], [-3.6142489775730979, 3.9342435492751342, -2.904750033176644, -3.5850262587817463], [2.1729113810705956, -4.2032434203199367, -1.6213604268260662, -3.8270575512982408]]], [[[-3.5663986534145176, 0.3601394756264229, 2.1915112832756067, -1.8858770292987579], [-0.35941895324789463, -4.8139117948938415, -3.6559003431824988, 2.2368494410808069], [1.3959636989705739, 4.2049437171968158, 0.50083863087043579, -1.2890449546507088]], [[0.55413677919310089, 3.6679690886311356, 4.1412457734605272, -4.997372949226687], [-1.0508856720949833, -1.9665649518812991, -0.88999850896384824, -2.3477813714010387], [0.0034178612916049289, -0.40189153578178072, -4.2806039766499211, 3.2437347497163689]]]]),self.functionspace)        arg1=Data(numarray.array([[[[-2.2040119703487737, 0.22207585226900939, -3.9418794262070769, 2.0859785399087185], [1.7904551067882419, 1.9190078021454715, -0.13723968162950939, -3.2815182493831885], [-0.91571535407697002, 3.0995577411718731, 0.10326371715132865, -1.2257029064659122]], [[-3.4339587435216492, -1.7174314509114286, -3.8212321032447538, 1.3141536610711295], [-3.0867159602503822, -1.328832259691648, 0.00045833706937159491, 3.7279300198570748], [0.7141427717444957, -3.3772016134720029, -4.0342641506650709, -1.2974928280252405]]], [[[-0.03925290280549909, -4.0358075605674912, 2.5240986142622281, -0.9106800040300298], [4.2713554750433751, -2.065335819573674, 3.9574485785983331, 3.1928077430143595], [-3.1332757872420802, -2.5585886089202092, 0.36453095035546923, -2.3244180120835702]], [[-1.8307102339182526, -0.5174914843013676, -4.329919822379118, -2.9965928508652429], [-3.6142489775730979, 3.9342435492751342, -2.904750033176644, -3.5850262587817463], [2.1729113810705956, -4.2032434203199367, -1.6213604268260662, -3.8270575512982408]]], [[[-3.5663986534145176, 0.3601394756264229, 2.1915112832756067, -1.8858770292987579], [-0.35941895324789463, -4.8139117948938415, -3.6559003431824988, 2.2368494410808069], [1.3959636989705739, 4.2049437171968158, 0.50083863087043579, -1.2890449546507088]], [[0.55413677919310089, 3.6679690886311356, 4.1412457734605272, -4.997372949226687], [-1.0508856720949833, -1.9665649518812991, -0.88999850896384824, -2.3477813714010387], [0.0034178612916049289, -0.40189153578178072, -4.2806039766499211, 3.2437347497163689]]]]),self.functionspace)
950        arg1.setTaggedValue(1,numarray.array([[[[-0.99776878669975311, 1.6476931814330831, 2.8134436212555602, -4.557103818579737], [-3.9194236310417963, -0.44874006777794762, -4.0015924911850709, -4.1479737214740631], [4.4143713534846736, 1.2628305661237951, -1.4628196920853656, -1.0526083796531038]], [[4.8722998661963874, -0.016885382913489622, -2.8681215766737953, -3.155053610744126], [1.8931366327126469, 4.3677862809546966, -3.0939100462373723, -2.9519037772918413], [-2.6456837564583537, 2.2433665611851232, -4.195097963023823, 3.3064145489222678]]], [[[-2.3036330080317837, -2.5103773239877336, -2.8401783867137933, -3.7340814752319105], [-4.0465179785957428, -1.6680856153080601, 0.14748528212714618, 1.7351453309708731], [-3.0063672320853563, -3.7939238676857281, 2.2278136033940479, 2.8797022453974979]], [[4.7200475755279676, -3.9124149796924845, -4.8073872954662935, 1.6550061951322173], [1.0558427554413807, 2.8568918144276081, -0.47343170358816078, 4.7025021023732236], [4.8300795973213546, 4.1857494293375481, 1.0533939531371566, -1.9001756817409343]]], [[[-1.7738212126204833, 0.79011696107876794, -1.0395268559811721, 4.8741438965592838], [-2.0735520996350107, 3.5965422597627512, 3.4232317673958885, -3.5727502064729366], [4.2562185560687897, -4.176059848306048, -1.5929478277090716, -3.989642732338968]], [[-3.8259833544798463, -2.3805718022145994, -2.6347056156230462, 2.4050273266781517], [3.6976298148616138, 3.854254396967022, 3.0669052624585316, 0.032625206805732887], [4.6774122914027529, -0.20282020601598383, 0.079177633110205647, 1.7288047845163357]]]]))        arg1.setTaggedValue(1,numarray.array([[[[-0.99776878669975311, 1.6476931814330831, 2.8134436212555602, -4.557103818579737], [-3.9194236310417963, -0.44874006777794762, -4.0015924911850709, -4.1479737214740631], [4.4143713534846736, 1.2628305661237951, -1.4628196920853656, -1.0526083796531038]], [[4.8722998661963874, -0.016885382913489622, -2.8681215766737953, -3.155053610744126], [1.8931366327126469, 4.3677862809546966, -3.0939100462373723, -2.9519037772918413], [-2.6456837564583537, 2.2433665611851232, -4.195097963023823, 3.3064145489222678]]], [[[-2.3036330080317837, -2.5103773239877336, -2.8401783867137933, -3.7340814752319105], [-4.0465179785957428, -1.6680856153080601, 0.14748528212714618, 1.7351453309708731], [-3.0063672320853563, -3.7939238676857281, 2.2278136033940479, 2.8797022453974979]], [[4.7200475755279676, -3.9124149796924845, -4.8073872954662935, 1.6550061951322173], [1.0558427554413807, 2.8568918144276081, -0.47343170358816078, 4.7025021023732236], [4.8300795973213546, 4.1857494293375481, 1.0533939531371566, -1.9001756817409343]]], [[[-1.7738212126204833, 0.79011696107876794, -1.0395268559811721, 4.8741438965592838], [-2.0735520996350107, 3.5965422597627512, 3.4232317673958885, -3.5727502064729366], [4.2562185560687897, -4.176059848306048, -1.5929478277090716, -3.989642732338968]], [[-3.8259833544798463, -2.3805718022145994, -2.6347056156230462, 2.4050273266781517], [3.6976298148616138, 3.854254396967022, 3.0669052624585316, 0.032625206805732887], [4.6774122914027529, -0.20282020601598383, 0.079177633110205647, 1.7288047845163357]]]]))
951        res=arg0+arg1        res=arg0+arg1
952        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
953        ref=msk_ref*numarray.array([[[[-2.8306870918637581, -0.404599269245975, -4.5685545477220613, 1.4593034183937341], [1.1637799852732575, 1.2923326806304871, -0.76391480314449378, -3.9081933708981729], [-1.5423904755919544, 2.4728826196568887, -0.52341140436365574, -1.8523780279808966]], [[-4.0606338650366336, -2.344106572426413, -4.4479072247597387, 0.68747853955614513], [-3.7133910817653666, -1.9555073812066324, -0.6262167844456128, 3.1012548983420904], [0.087467650229511307, -4.0038767349869868, -4.6609392721800553, -1.9241679495402249]]], [[[-0.66592802432048348, -4.6624826820824756, 1.8974234927472438, -1.5373551255450142], [3.6446803535283907, -2.6920109410886583, 3.3307734570833487, 2.5661326214993752], [-3.7599509087570646, -3.1852637304351936, -0.26214417115951516, -2.9510931335985546]], [[-2.457385355433237, -1.144166605816352, -4.9565949438941024, -3.6232679723802272], [-4.2409240990880823, 3.3075684277601498, -3.5314251546916284, -4.2117013802967307], [1.5462362595556112, -4.8299185418349211, -2.2480355483410506, -4.4537326728132252]]], [[[-4.193073774929502, -0.26653564588856149, 1.5648361617606223, -2.5125521508137423], [-0.98609407476287902, -5.4405869164088259, -4.2825754646974836, 1.6101743195658225], [0.76928857745558954, 3.5782685956818314, -0.1258364906445486, -1.9157200761656932]], [[-0.072538342321883498, 3.0412939671161512, 3.5145706519455429, -5.6240480707416713], [-1.6775607936099677, -2.5932400733962835, -1.5166736304788326, -2.9744564929160231], [-0.62325726022337946, -1.0285666572967651, -4.9072790981649055, 2.6170596282013845]]]])+(1.-msk_ref)*numarray.array([[[[2.0593254516723132, 4.7047874198051494, 5.8705378596276265, -1.5000095802076707], [-0.86232939266972997, 2.6083541705941187, -0.94449825281300459, -1.0908794831019968], [7.4714655918567399, 4.3199248044958614, 1.5942745462867007, 2.0044858587189625]], [[7.9293941045684537, 3.0402088554585767, 0.18897266169827098, -0.097959372372059761], [4.9502308710847132, 7.4248805193267629, -0.036815807865306027, 0.10519046108022501], [0.41141048191371254, 5.3004607995571895, -1.1380037246517567, 6.3635087872943341]]], [[[0.75346123034028256, 0.54671691438433268, 0.21691585165827298, -0.67698723685984419], [-0.98942374022367652, 1.3890086230640062, 3.2045795204992125, 4.7922395693429394], [0.050727006286710008, -0.7368296293136618, 5.2849078417661142, 5.9367964837695641]], [[7.7771418139000339, -0.85532074132041824, -1.7502930570942272, 4.7121004335042835], [4.112936993813447, 5.9139860527996744, 2.5836625347839055, 7.7595963407452899], [7.8871738356934209, 7.2428436677096144, 4.1104881915092228, 1.156918556631132]]], [[[1.283273025751583, 3.8472111994508342, 2.0175673823908942, 7.9312381349313501], [0.98354213873705554, 6.6536364981348175, 6.4803260057679548, -0.51565596810087033], [7.313312794440856, -1.1189656099339818, 1.4641464106629947, -0.93254849396690176]], [[-0.76888911610777999, 0.67652243615746688, 0.42238862274902012, 5.462121565050218], [6.7547240532336801, 6.9113486353390883, 6.1239995008305979, 3.0897194451777992], [7.7345065297748192, 2.8542740323560825, 3.1362718714822719, 4.785899022888402]]]])        ref=msk_ref*numarray.array([[[[-2.8306870918637581, -0.404599269245975, -4.5685545477220613, 1.4593034183937341], [1.1637799852732575, 1.2923326806304871, -0.76391480314449378, -3.9081933708981729], [-1.5423904755919544, 2.4728826196568887, -0.52341140436365574, -1.8523780279808966]], [[-4.0606338650366336, -2.344106572426413, -4.4479072247597387, 0.68747853955614513], [-3.7133910817653666, -1.9555073812066324, -0.6262167844456128, 3.1012548983420904], [0.087467650229511307, -4.0038767349869868, -4.6609392721800553, -1.9241679495402249]]], [[[-0.66592802432048348, -4.6624826820824756, 1.8974234927472438, -1.5373551255450142], [3.6446803535283907, -2.6920109410886583, 3.3307734570833487, 2.5661326214993752], [-3.7599509087570646, -3.1852637304351936, -0.26214417115951516, -2.9510931335985546]], [[-2.457385355433237, -1.144166605816352, -4.9565949438941024, -3.6232679723802272], [-4.2409240990880823, 3.3075684277601498, -3.5314251546916284, -4.2117013802967307], [1.5462362595556112, -4.8299185418349211, -2.2480355483410506, -4.4537326728132252]]], [[[-4.193073774929502, -0.26653564588856149, 1.5648361617606223, -2.5125521508137423], [-0.98609407476287902, -5.4405869164088259, -4.2825754646974836, 1.6101743195658225], [0.76928857745558954, 3.5782685956818314, -0.1258364906445486, -1.9157200761656932]], [[-0.072538342321883498, 3.0412939671161512, 3.5145706519455429, -5.6240480707416713], [-1.6775607936099677, -2.5932400733962835, -1.5166736304788326, -2.9744564929160231], [-0.62325726022337946, -1.0285666572967651, -4.9072790981649055, 2.6170596282013845]]]])+(1.-msk_ref)*numarray.array([[[[2.0593254516723132, 4.7047874198051494, 5.8705378596276265, -1.5000095802076707], [-0.86232939266972997, 2.6083541705941187, -0.94449825281300459, -1.0908794831019968], [7.4714655918567399, 4.3199248044958614, 1.5942745462867007, 2.0044858587189625]], [[7.9293941045684537, 3.0402088554585767, 0.18897266169827098, -0.097959372372059761], [4.9502308710847132, 7.4248805193267629, -0.036815807865306027, 0.10519046108022501], [0.41141048191371254, 5.3004607995571895, -1.1380037246517567, 6.3635087872943341]]], [[[0.75346123034028256, 0.54671691438433268, 0.21691585165827298, -0.67698723685984419], [-0.98942374022367652, 1.3890086230640062, 3.2045795204992125, 4.7922395693429394], [0.050727006286710008, -0.7368296293136618, 5.2849078417661142, 5.9367964837695641]], [[7.7771418139000339, -0.85532074132041824, -1.7502930570942272, 4.7121004335042835], [4.112936993813447, 5.9139860527996744, 2.5836625347839055, 7.7595963407452899], [7.8871738356934209, 7.2428436677096144, 4.1104881915092228, 1.156918556631132]]], [[[1.283273025751583, 3.8472111994508342, 2.0175673823908942, 7.9312381349313501], [0.98354213873705554, 6.6536364981348175, 6.4803260057679548, -0.51565596810087033], [7.313312794440856, -1.1189656099339818, 1.4641464106629947, -0.93254849396690176]], [[-0.76888911610777999, 0.67652243615746688, 0.42238862274902012, 5.462121565050218], [6.7547240532336801, 6.9113486353390883, 6.1239995008305979, 3.0897194451777992], [7.7345065297748192, 2.8542740323560825, 3.1362718714822719, 4.785899022888402]]]])
954        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
955        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 962  class Test_util_overloaded_binary_with_t Line 962  class Test_util_overloaded_binary_with_t
962        arg1=Data(-0.180910647951,self.functionspace)        arg1=Data(-0.180910647951,self.functionspace)
963        arg1.setTaggedValue(1,1.81047511659)        arg1.setTaggedValue(1,1.81047511659)
964        res=arg0+arg1        res=arg0+arg1
965        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
966        ref=msk_ref*numarray.array([0.62838136917635179, -3.2041720019630779])+(1.-msk_ref)*numarray.array([6.718387734277651, 3.6047489886373274])        ref=msk_ref*numarray.array([0.62838136917635179, -3.2041720019630779])+(1.-msk_ref)*numarray.array([6.718387734277651, 3.6047489886373274])
967        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
968        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 975  class Test_util_overloaded_binary_with_t Line 975  class Test_util_overloaded_binary_with_t
975        arg1=Data(numarray.array([2.6409002669088242, -0.16509632064916602]),self.functionspace)        arg1=Data(numarray.array([2.6409002669088242, -0.16509632064916602]),self.functionspace)
976        arg1.setTaggedValue(1,numarray.array([-1.1457474088113937, 0.047187044765728103]))        arg1.setTaggedValue(1,numarray.array([-1.1457474088113937, 0.047187044765728103]))
977        res=arg0+arg1        res=arg0+arg1
978        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
979        ref=msk_ref*numarray.array([-1.2798432438303378, -0.35125995830702017])+(1.-msk_ref)*numarray.array([-2.4477885595451161, -1.8802692816190096])        ref=msk_ref*numarray.array([-1.2798432438303378, -0.35125995830702017])+(1.-msk_ref)*numarray.array([-2.4477885595451161, -1.8802692816190096])
980        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
981        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 988  class Test_util_overloaded_binary_with_t Line 988  class Test_util_overloaded_binary_with_t
988        arg1=Data(3.05652242336,self.functionspace)        arg1=Data(3.05652242336,self.functionspace)
989        arg1.setTaggedValue(1,-2.96654705618)        arg1.setTaggedValue(1,-2.96654705618)
990        res=arg0+arg1        res=arg0+arg1
991        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
992        ref=msk_ref*numarray.array([[2.3541618043940966, 0.22488867991757555, 0.53344244021045029, 2.7817349145500119, 2.7344432457758856], [2.3290106629329124, 4.3099244361137039, 5.8415438991785811, 3.8309497577960769, 1.2053523465389642], [4.2248190116012534, 7.1784545257983883, 4.8864175664840683, 2.5981554120020434, 7.0940620142642388], [4.2923431802286398, 2.3074804902353234, 0.1515099364002741, 1.9015646512915567, 4.1367546578561969]])+(1.-msk_ref)*numarray.array([[-4.1018063116145704, -7.0270634688162925, -1.0063455975526812, -0.976408847324016, -4.130213604382341], [-0.55220682662838483, -0.58515182202489102, 0.2799943450370983, -7.1792093199140243, -5.9523543550367215], [-6.3465429710100096, -0.47407517750059336, -6.1634277240049844, -0.061619679331295085, -6.0992736838378185], [-4.9265372626474662, -4.6542615252286907, -5.8187606079050136, -4.6965370470579586, -4.3399782630041042]])        ref=msk_ref*numarray.array([[2.3541618043940966, 0.22488867991757555, 0.53344244021045029, 2.7817349145500119, 2.7344432457758856], [2.3290106629329124, 4.3099244361137039, 5.8415438991785811, 3.8309497577960769, 1.2053523465389642], [4.2248190116012534, 7.1784545257983883, 4.8864175664840683, 2.5981554120020434, 7.0940620142642388], [4.2923431802286398, 2.3074804902353234, 0.1515099364002741, 1.9015646512915567, 4.1367546578561969]])+(1.-msk_ref)*numarray.array([[-4.1018063116145704, -7.0270634688162925, -1.0063455975526812, -0.976408847324016, -4.130213604382341], [-0.55220682662838483, -0.58515182202489102, 0.2799943450370983, -7.1792093199140243, -5.9523543550367215], [-6.3465429710100096, -0.47407517750059336, -6.1634277240049844, -0.061619679331295085, -6.0992736838378185], [-4.9265372626474662, -4.6542615252286907, -5.8187606079050136, -4.6965370470579586, -4.3399782630041042]])
993        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
994        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 1001  class Test_util_overloaded_binary_with_t Line 1001  class Test_util_overloaded_binary_with_t
1001        arg1=Data(numarray.array([[1.0775481350434992, -2.5617765385565394, -3.9385244095842853, 4.7186191248444782, 0.19372823432001862], [-1.5079653848711096, 2.4629539584803615, 4.4790296730645363, -4.0052819904932422, 1.3366594216822358], [2.4530596993840925, -2.8563451472667745, 3.8959844577989209, -2.4355882126877382, 4.7620117137490432], [-3.9847457542944129, -1.2419638119020169, -4.628173872721475, -1.2316129038081316, -2.542915611693374]]),self.functionspace)        arg1=Data(numarray.array([[1.0775481350434992, -2.5617765385565394, -3.9385244095842853, 4.7186191248444782, 0.19372823432001862], [-1.5079653848711096, 2.4629539584803615, 4.4790296730645363, -4.0052819904932422, 1.3366594216822358], [2.4530596993840925, -2.8563451472667745, 3.8959844577989209, -2.4355882126877382, 4.7620117137490432], [-3.9847457542944129, -1.2419638119020169, -4.628173872721475, -1.2316129038081316, -2.542915611693374]]),self.functionspace)
1002        arg1.setTaggedValue(1,numarray.array([[3.2801422551722208, -3.2001379019042728, 1.9386060509276328, -0.6343578038092792, 2.4970640529954551], [3.3339989661476412, 0.13020858986709172, -3.5889649965363732, 4.2746678182879556, -3.1309201312340198], [3.3987174890818821, -0.12045536368415277, -3.7271839724906597, -2.8025546425558079, 3.1377656385129189], [0.41768192493044776, -2.3514163371400922, -0.40411830993402731, -0.18622924410114905, -3.5850464751678004]]))        arg1.setTaggedValue(1,numarray.array([[3.2801422551722208, -3.2001379019042728, 1.9386060509276328, -0.6343578038092792, 2.4970640529954551], [3.3339989661476412, 0.13020858986709172, -3.5889649965363732, 4.2746678182879556, -3.1309201312340198], [3.3987174890818821, -0.12045536368415277, -3.7271839724906597, -2.8025546425558079, 3.1377656385129189], [0.41768192493044776, -2.3514163371400922, -0.40411830993402731, -0.18622924410114905, -3.5850464751678004]]))
1003        res=arg0+arg1        res=arg0+arg1
1004        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1005        ref=msk_ref*numarray.array([[-2.9340099442912404, -6.473317638625935, -0.59632285972594223, 7.9657223831631701, 0.26873584197300104], [-3.9328097277637957, 1.4933046497896596, 7.1103390811474352, -6.4685499109739748, 0.4775175174077031], [5.5712650233161751, -3.4946756533344971, 6.4595491411123218, -2.7329241166240839, 9.5240402330940892], [-0.038894383266081967, -5.8272349582403278, -2.4885249520177455, -2.4787451784702732, -5.0562341230366989]])+(1.-msk_ref)*numarray.array([[2.2936262505476908, 0.13713083658543734, -1.5137902274819455, -0.143488985431242, -0.94894085710704434], [-1.1522066054101501, -0.58259825700830703, 0.008016416145237848, 8.0936069036085012, -4.5174611357851928], [4.7187723535739137, 2.1625467634519504, -0.63798959500838759, -4.9355530401474557, 0.034136255559351181], [1.689116135451898, -3.7308598416038663, 2.2569456818746207, -2.6124758606952003, -2.982352247565478]])        ref=msk_ref*numarray.array([[-2.9340099442912404, -6.473317638625935, -0.59632285972594223, 7.9657223831631701, 0.26873584197300104], [-3.9328097277637957, 1.4933046497896596, 7.1103390811474352, -6.4685499109739748, 0.4775175174077031], [5.5712650233161751, -3.4946756533344971, 6.4595491411123218, -2.7329241166240839, 9.5240402330940892], [-0.038894383266081967, -5.8272349582403278, -2.4885249520177455, -2.4787451784702732, -5.0562341230366989]])+(1.-msk_ref)*numarray.array([[2.2936262505476908, 0.13713083658543734, -1.5137902274819455, -0.143488985431242, -0.94894085710704434], [-1.1522066054101501, -0.58259825700830703, 0.008016416145237848, 8.0936069036085012, -4.5174611357851928], [4.7187723535739137, 2.1625467634519504, -0.63798959500838759, -4.9355530401474557, 0.034136255559351181], [1.689116135451898, -3.7308598416038663, 2.2569456818746207, -2.6124758606952003, -2.982352247565478]])
1006        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1007        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 1014  class Test_util_overloaded_binary_with_t Line 1014  class Test_util_overloaded_binary_with_t
1014        arg1=Data(0.877236153856,self.functionspace)        arg1=Data(0.877236153856,self.functionspace)
1015        arg1.setTaggedValue(1,3.39944902862)        arg1.setTaggedValue(1,3.39944902862)
1016        res=arg0+arg1        res=arg0+arg1
1017        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1018        ref=msk_ref*numarray.array([[[2.2386123642755074, 2.261572319781779], [-4.0109664182824512, 3.2540715527948425]], [[-0.68790939698324616, -0.23083308625023724], [4.0674210781620221, 3.7588203748617497]], [[1.7494907960972501, 4.5277420884723067], [4.4596862637963905, -1.6998239737053256]], [[0.094156134024090399, -4.1211022294332889], [-1.725702761639536, -2.2668987435715238]], [[-1.8578867058254369, 3.5192574395053988], [-0.52557984908767841, 4.114848965981901]], [[0.87957948898535943, 2.9224598844350327], [-1.5663836861789493, -4.0325908453993895]]])+(1.-msk_ref)*numarray.array([[[5.0401682101872334, -1.5718330169928665], [5.9671975738718501, 3.0109028685023773]], [[4.5269156659656833, -0.15087389077647906], [3.1196969003925989, 7.1152061229572645]], [[5.643132849869283, 4.7045336828583757], [-1.1221790665864244, 3.6317476563158797]], [[7.2559757495609034, 1.3151879043271304], [1.8707878610025115, 5.7712071649733305]], [[3.5942905356857278, 4.5843534396622232], [1.0296597700643413, -0.91360918993027962]], [[3.0258248892349808, 7.8640210540964883], [2.46097154862316, 6.7757988642802651]]])        ref=msk_ref*numarray.array([[[2.2386123642755074, 2.261572319781779], [-4.0109664182824512, 3.2540715527948425]], [[-0.68790939698324616, -0.23083308625023724], [4.0674210781620221, 3.7588203748617497]], [[1.7494907960972501, 4.5277420884723067], [4.4596862637963905, -1.6998239737053256]], [[0.094156134024090399, -4.1211022294332889], [-1.725702761639536, -2.2668987435715238]], [[-1.8578867058254369, 3.5192574395053988], [-0.52557984908767841, 4.114848965981901]], [[0.87957948898535943, 2.9224598844350327], [-1.5663836861789493, -4.0325908453993895]]])+(1.-msk_ref)*numarray.array([[[5.0401682101872334, -1.5718330169928665], [5.9671975738718501, 3.0109028685023773]], [[4.5269156659656833, -0.15087389077647906], [3.1196969003925989, 7.1152061229572645]], [[5.643132849869283, 4.7045336828583757], [-1.1221790665864244, 3.6317476563158797]], [[7.2559757495609034, 1.3151879043271304], [1.8707878610025115, 5.7712071649733305]], [[3.5942905356857278, 4.5843534396622232], [1.0296597700643413, -0.91360918993027962]], [[3.0258248892349808, 7.8640210540964883], [2.46097154862316, 6.7757988642802651]]])
1019        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1020        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 1027  class Test_util_overloaded_binary_with_t Line 1027  class Test_util_overloaded_binary_with_t
1027        arg1=Data(numarray.array([[[-4.7299390917499338, 3.5251272477839226], [-1.6631345678465026, -4.2129608920047579]], [[2.3585633451710306, -0.63258988887624312], [4.5316808451203858, 2.3411219579553775]], [[0.049999481040123861, 4.4213584054115547], [1.5777788806916728, 4.4382516213399281]], [[2.5230536746068992, 2.2871490792573628], [4.5151731102077992, -3.9328431151465812]], [[-2.3307881563968227, 1.6236877584919345], [4.9548760146371169, 1.0649177732508743]], [[1.0892879127863067, 3.6475714584078922], [2.480803001738769, 1.115865198388053]]]),self.functionspace)        arg1=Data(numarray.array([[[-4.7299390917499338, 3.5251272477839226], [-1.6631345678465026, -4.2129608920047579]], [[2.3585633451710306, -0.63258988887624312], [4.5316808451203858, 2.3411219579553775]], [[0.049999481040123861, 4.4213584054115547], [1.5777788806916728, 4.4382516213399281]], [[2.5230536746068992, 2.2871490792573628], [4.5151731102077992, -3.9328431151465812]], [[-2.3307881563968227, 1.6236877584919345], [4.9548760146371169, 1.0649177732508743]], [[1.0892879127863067, 3.6475714584078922], [2.480803001738769, 1.115865198388053]]]),self.functionspace)
1028        arg1.setTaggedValue(1,numarray.array([[[-4.5168295451453364, -4.9759944775001568], [-4.3122999509575957, 0.57817113141019405]], [[4.8256436296695941, -3.2980771820521273], [-1.9115461324156002, -3.2336020872104312]], [[-2.3147622754959296, 4.0866177069951082], [4.4952728317858757, -3.6588289454448217]], [[2.0631653606906806, 0.36867447796300379], [0.26914745682765062, -2.6399989236996522]], [[-4.5578928544524171, 3.8373599989536906], [-3.0989196371388394, 1.1501446987116672]], [[1.6686999744944764, -1.8061409555768924], [1.9663186665535779, 4.9627344692016973]]]))        arg1.setTaggedValue(1,numarray.array([[[-4.5168295451453364, -4.9759944775001568], [-4.3122999509575957, 0.57817113141019405]], [[4.8256436296695941, -3.2980771820521273], [-1.9115461324156002, -3.2336020872104312]], [[-2.3147622754959296, 4.0866177069951082], [4.4952728317858757, -3.6588289454448217]], [[2.0631653606906806, 0.36867447796300379], [0.26914745682765062, -2.6399989236996522]], [[-4.5578928544524171, 3.8373599989536906], [-3.0989196371388394, 1.1501446987116672]], [[1.6686999744944764, -1.8061409555768924], [1.9663186665535779, 4.9627344692016973]]]))
1029        res=arg0+arg1        res=arg0+arg1
1030        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1031        ref=msk_ref*numarray.array([[[-5.2242712021043616, 0.34858136266369932], [-5.8524629686917429, 0.038809816238065231]], [[0.17613418742108289, 4.3326767743020511], [3.6576100173946324, -0.27985981892886613]], [[1.9606103131912, 7.2120252953331558], [4.5278498587030613, 7.1351510454055642]], [[1.2416211200384204, 6.2386107637215353], [3.5038212810590603, 0.23077375733071026]], [[1.2756566529340052, -1.1476879893441256], [7.8943049361327429, -2.4952379854250393]], [[-1.3191999643902452, -0.22152100039340983], [3.5543452897225363, 4.6435012839112124]]])+(1.-msk_ref)*numarray.array([[[-4.758808148334297, -0.96922316350631732], [-8.8378720022288206, -1.8173134723840763]], [[0.014890049842917641, -3.7756976036638834], [-1.616528939540308, -6.224546636247819]], [[-5.4955667877821988, 1.5261214334702689], [1.5896498379822752, -3.9916815014655436]], [[4.913060703039581, 3.4479142785195949], [1.7684461727368568, -2.4168174689688344]], [[-4.0424311648846043, 2.2931664735563069], [0.911767579897234, 2.7779643236103162]], [[4.3633371330510595, -1.1758521988559183], [4.0862255549981441, 9.1888787037723514]]])        ref=msk_ref*numarray.array([[[-5.2242712021043616, 0.34858136266369932], [-5.8524629686917429, 0.038809816238065231]], [[0.17613418742108289, 4.3326767743020511], [3.6576100173946324, -0.27985981892886613]], [[1.9606103131912, 7.2120252953331558], [4.5278498587030613, 7.1351510454055642]], [[1.2416211200384204, 6.2386107637215353], [3.5038212810590603, 0.23077375733071026]], [[1.2756566529340052, -1.1476879893441256], [7.8943049361327429, -2.4952379854250393]], [[-1.3191999643902452, -0.22152100039340983], [3.5543452897225363, 4.6435012839112124]]])+(1.-msk_ref)*numarray.array([[[-4.758808148334297, -0.96922316350631732], [-8.8378720022288206, -1.8173134723840763]], [[0.014890049842917641, -3.7756976036638834], [-1.616528939540308, -6.224546636247819]], [[-5.4955667877821988, 1.5261214334702689], [1.5896498379822752, -3.9916815014655436]], [[4.913060703039581, 3.4479142785195949], [1.7684461727368568, -2.4168174689688344]], [[-4.0424311648846043, 2.2931664735563069], [0.911767579897234, 2.7779643236103162]], [[4.3633371330510595, -1.1758521988559183], [4.0862255549981441, 9.1888787037723514]]])
1032        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1033        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 1040  class Test_util_overloaded_binary_with_t Line 1040  class Test_util_overloaded_binary_with_t
1040        arg1=Data(-0.493921840889,self.functionspace)        arg1=Data(-0.493921840889,self.functionspace)
1041        arg1.setTaggedValue(1,-4.24596595664)        arg1.setTaggedValue(1,-4.24596595664)
1042        res=arg0+arg1        res=arg0+arg1
1043        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1044        ref=msk_ref*numarray.array([[[[-2.9609610702950793, -2.6656459925809881, 2.8210579472324273, -1.1254914047575308], [1.3472138299862078, -4.7649663989501141, -5.3955675545367558, 1.8559178666131455], [-4.3550831866571427, -5.2906105981723464, -4.1761875912141155, 3.9400429985001413]], [[-0.85114338476148532, -1.251219839642232, 1.2617241048157748, 3.2382200584583583], [2.402740890460775, 1.8275707541592601, -4.7119371043325549, -4.7564831484620305], [-0.61885983057521265, -3.0976272852056947, -3.8515262466934117, -5.4679641773026031]]], [[[-3.1721672101831242, -0.90650977441937286, 0.56108750425058318, -3.209275693064952], [-4.2446809545074666, 1.0923299258917503, -5.2995343534006025, 1.8264847848156993], [-0.25241180002342301, 2.5109908196507309, -2.214533490724266, -2.7653374340693846]], [[3.3183742884182319, -3.7904905824556177, 2.5811790262525154, -0.2755192128911208], [-3.5560483438486479, -4.9477398672152653, -2.6922603027952672, 0.40128332847170967], [1.837237096552955, 1.5642041373860698, -4.8322751089666758, 1.5971287367470151]]], [[[-1.4518948038611406, -1.0077574585227183, -2.5186944144219021, -1.857116937735821], [1.5887650040553591, -0.91088297394446549, -4.9917482741764925, -1.2768636672534281], [-2.2576298174800589, 2.4588045769255498, 0.020130746334736216, -3.9443609809677094]], [[4.3697579987681845, -1.5997511824925015, 1.1126737322966793, 4.2053024492720201], [-0.18638995050789564, 0.20705677621885599, 3.4499893077797879, -5.0740716699123816], [3.3939554541383217, 0.84880942905110857, 3.3223301479395602, -4.7540278931039124]]]])+(1.-msk_ref)*numarray.array([[[[-2.2376186106955638, -7.5409588019003486, -6.2419610195844486, -7.6543921279211888], [-8.5330641591374956, -8.960985329038774, -0.27956284948248022, -4.3525798463419871], [-7.9365647408253261, -1.0127446370731077, -4.7303983655222366, -7.2806305314875663]], [[-8.784955630263461, -8.0703330366849606, -9.2146419564153135, -5.6440369749540107], [-8.5730097195408419, -5.4139858000212415, -4.0918759765109058, -1.5047972860802847], [-6.9467342789532793, -2.1166166342290307, -3.0496031870103693, -6.5246283304683068]]], [[[-0.0069654663333489353, -6.1317318759457287, -4.7456446204620617, -6.6835991429168082], [-4.9016763875650327, -6.2595771607916264, -5.6292841318009561, -3.483674135473672], [-2.8494081643451388, -8.5421050852162352, 0.32018721520025029, 0.097696453209114686]], [[-3.3650182724566857, -8.3639110915703334, -1.847446037690311, -1.0921652290781827], [-5.2390178560836951, -7.5147385172010859, -1.2766286249196543, -1.0583622962896468], [-5.3305941949513134, -4.0154171800914193, -6.4454145574192969, 0.050894084041957832]]], [[[-0.63446967045168012, -3.5396218359716469, -8.1442586628528417, -0.80394078986449191], [-1.4678206074614009, -1.2555899362397804, -5.3169414511976534, -8.6023595980063128], [-3.5737912873372135, -7.8009229353354117, -7.0636888483856204, 0.49006310717974433]], [[-4.4842086095296319, -5.4393099597523875, -2.032483271191702, 0.73568056874354237], [-8.7687224842918035, -5.4302482409069928, -5.1233062417612176, 0.497355389768809], [-8.546862211759759, -3.799328215751518, -8.512330065333682, -6.0600799104776453]]]])        ref=msk_ref*numarray.array([[[[-2.9609610702950793, -2.6656459925809881, 2.8210579472324273, -1.1254914047575308], [1.3472138299862078, -4.7649663989501141, -5.3955675545367558, 1.8559178666131455], [-4.3550831866571427, -5.2906105981723464, -4.1761875912141155, 3.9400429985001413]], [[-0.85114338476148532, -1.251219839642232, 1.2617241048157748, 3.2382200584583583], [2.402740890460775, 1.8275707541592601, -4.7119371043325549, -4.7564831484620305], [-0.61885983057521265, -3.0976272852056947, -3.8515262466934117, -5.4679641773026031]]], [[[-3.1721672101831242, -0.90650977441937286, 0.56108750425058318, -3.209275693064952], [-4.2446809545074666, 1.0923299258917503, -5.2995343534006025, 1.8264847848156993], [-0.25241180002342301, 2.5109908196507309, -2.214533490724266, -2.7653374340693846]], [[3.3183742884182319, -3.7904905824556177, 2.5811790262525154, -0.2755192128911208], [-3.5560483438486479, -4.9477398672152653, -2.6922603027952672, 0.40128332847170967], [1.837237096552955, 1.5642041373860698, -4.8322751089666758, 1.5971287367470151]]], [[[-1.4518948038611406, -1.0077574585227183, -2.5186944144219021, -1.857116937735821], [1.5887650040553591, -0.91088297394446549, -4.9917482741764925, -1.2768636672534281], [-2.2576298174800589, 2.4588045769255498, 0.020130746334736216, -3.9443609809677094]], [[4.3697579987681845, -1.5997511824925015, 1.1126737322966793, 4.2053024492720201], [-0.18638995050789564, 0.20705677621885599, 3.4499893077797879, -5.0740716699123816], [3.3939554541383217, 0.84880942905110857, 3.3223301479395602, -4.7540278931039124]]]])+(1.-msk_ref)*numarray.array([[[[-2.2376186106955638, -7.5409588019003486, -6.2419610195844486, -7.6543921279211888], [-8.5330641591374956, -8.960985329038774, -0.27956284948248022, -4.3525798463419871], [-7.9365647408253261, -1.0127446370731077, -4.7303983655222366, -7.2806305314875663]], [[-8.784955630263461, -8.0703330366849606, -9.2146419564153135, -5.6440369749540107], [-8.5730097195408419, -5.4139858000212415, -4.0918759765109058, -1.5047972860802847], [-6.9467342789532793, -2.1166166342290307, -3.0496031870103693, -6.5246283304683068]]], [[[-0.0069654663333489353, -6.1317318759457287, -4.7456446204620617, -6.6835991429168082], [-4.9016763875650327, -6.2595771607916264, -5.6292841318009561, -3.483674135473672], [-2.8494081643451388, -8.5421050852162352, 0.32018721520025029, 0.097696453209114686]], [[-3.3650182724566857, -8.3639110915703334, -1.847446037690311, -1.0921652290781827], [-5.2390178560836951, -7.5147385172010859, -1.2766286249196543, -1.0583622962896468], [-5.3305941949513134, -4.0154171800914193, -6.4454145574192969, 0.050894084041957832]]], [[[-0.63446967045168012, -3.5396218359716469, -8.1442586628528417, -0.80394078986449191], [-1.4678206074614009, -1.2555899362397804, -5.3169414511976534, -8.6023595980063128], [-3.5737912873372135, -7.8009229353354117, -7.0636888483856204, 0.49006310717974433]], [[-4.4842086095296319, -5.4393099597523875, -2.032483271191702, 0.73568056874354237], [-8.7687224842918035, -5.4302482409069928, -5.1233062417612176, 0.497355389768809], [-8.546862211759759, -3.799328215751518, -8.512330065333682, -6.0600799104776453]]]])
1045        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1046        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 1053  class Test_util_overloaded_binary_with_t Line 1053  class Test_util_overloaded_binary_with_t
1053        arg1=Data(numarray.array([[[[2.9319165341354214, -1.1830229990079588, -2.5147038609579564, -0.73241804251354736], [1.5358899950889118, 4.5913636836205303, -2.6633350526879807, 1.0016857219956519], [-2.0707132919920292, -2.2131691830173095, 4.0269638544497806, 2.8000625212547625]], [[-1.5210489031766139, -1.6606361092694186, -1.3884018523686938, 1.1247628455235423], [3.8256187219297217, 3.4751676357835848, 2.9831429461594894, -3.3236453258988066], [0.60032886740104807, -0.99401949114208055, 3.9102144863542598, 4.0928168283069475]]], [[[-4.8633753019535622, 2.9945457364900649, -3.4907335109291369, -3.8315717507052005], [3.8005019867171459, -4.2293311745177222, -2.8990623693543394, 0.11330902535641663], [-1.6801976774973229, -0.10856001195497278, 1.005529481849341, 4.0132800810116223]], [[1.550334744198957, -0.70561280144328631, 4.5995296848949749, -1.9444144256571483], [1.5330371027830783, -0.20500519521782223, 0.53492289156470729, 3.467441465543077], [-2.2160479747528372, -4.5427710210627437, -3.6886933034995986, -3.9306876973570115]]], [[[2.9287841476065175, 0.73117768469728794, -0.32947077132669556, -1.0624405707998177], [-2.3898086943096097, -3.9513293566967511, -0.2878823021803818, -2.4471043217610355], [-4.7431801222810801, -3.6238404805102951, -2.0277903869170268, -4.1279069100541328]], [[1.2998472637072052, -1.8960629918083702, -3.4776604844668082, 2.5749293450379973], [0.67616417091072556, -4.6879370894952519, 4.3237819217077185, 4.1935774669636334], [-3.3266490685983765, 2.9881945924724285, 0.57753415146789866, -2.3896587103693556]]]]),self.functionspace)        arg1=Data(numarray.array([[[[2.9319165341354214, -1.1830229990079588, -2.5147038609579564, -0.73241804251354736], [1.5358899950889118, 4.5913636836205303, -2.6633350526879807, 1.0016857219956519], [-2.0707132919920292, -2.2131691830173095, 4.0269638544497806, 2.8000625212547625]], [[-1.5210489031766139, -1.6606361092694186, -1.3884018523686938, 1.1247628455235423], [3.8256187219297217, 3.4751676357835848, 2.9831429461594894, -3.3236453258988066], [0.60032886740104807, -0.99401949114208055, 3.9102144863542598, 4.0928168283069475]]], [[[-4.8633753019535622, 2.9945457364900649, -3.4907335109291369, -3.8315717507052005], [3.8005019867171459, -4.2293311745177222, -2.8990623693543394, 0.11330902535641663], [-1.6801976774973229, -0.10856001195497278, 1.005529481849341, 4.0132800810116223]], [[1.550334744198957, -0.70561280144328631, 4.5995296848949749, -1.9444144256571483], [1.5330371027830783, -0.20500519521782223, 0.53492289156470729, 3.467441465543077], [-2.2160479747528372, -4.5427710210627437, -3.6886933034995986, -3.9306876973570115]]], [[[2.9287841476065175, 0.73117768469728794, -0.32947077132669556, -1.0624405707998177], [-2.3898086943096097, -3.9513293566967511, -0.2878823021803818, -2.4471043217610355], [-4.7431801222810801, -3.6238404805102951, -2.0277903869170268, -4.1279069100541328]], [[1.2998472637072052, -1.8960629918083702, -3.4776604844668082, 2.5749293450379973], [0.67616417091072556, -4.6879370894952519, 4.3237819217077185, 4.1935774669636334], [-3.3266490685983765, 2.9881945924724285, 0.57753415146789866, -2.3896587103693556]]]]),self.functionspace)
1054        arg1.setTaggedValue(1,numarray.array([[[[-0.2012934520522025, -2.9201458788401458, -2.8759121049090162, 4.2983485984695733], [0.30097735113351209, -1.1590380729278724, 0.833876439342081, -0.35100511117572619], [1.1879356108592525, 1.1357991021886686, -1.1034194130098216, 3.4197046703623393]], [[-4.3944798112503953, -3.0897847255520352, 4.1216726135889168, 0.28314873938209306], [2.1233133380948512, -0.1142827384533307, 1.5715126215691608, 2.8581110877262041], [0.43529014265034149, -4.0431161990840261, 0.28517150386755574, 1.1630004946746428]]], [[[-0.40090647848700911, -0.033958262665528594, -4.4046266720225402, -1.0174464891618706], [-1.2928092051399309, -3.1377860979606176, 2.8953199135128314, 4.298600537254984], [2.7079316736133929, 0.59649279625180363, 3.4342585300929187, -1.4025729378588334]], [[4.8668497777227806, -4.0730751636431659, -3.1108293386157069, -1.0010286808478797], [1.2255117879225157, -1.7574474629526824, -1.3657737681314064, -2.9904846031384813], [-0.83078235278007995, 2.1535446966353486, -4.8933233652356725, 4.7718296568892367]]], [[[-1.4857526121737976, 3.3637722951763429, 1.7148007856717502, -0.90792789244099303], [-2.4288260081949007, -3.2223337912639272, 3.1839565592321488, -0.82691647771790322], [-1.7756994676030455, 0.17382075500737137, 1.4842870166456779, 2.5875967429437043]], [[-2.7219626333962887, -4.3789117218553306, 0.45213782278823356, -4.6410462583353755], [-4.9255613877949287, -3.4882296997458884, 2.9986183389018786, -4.6623658743604315], [-4.7340321240993024, 1.77401322635549, -3.5218646283090504, 3.2587336617460316]]]]))        arg1.setTaggedValue(1,numarray.array([[[[-0.2012934520522025, -2.9201458788401458, -2.8759121049090162, 4.2983485984695733], [0.30097735113351209, -1.1590380729278724, 0.833876439342081, -0.35100511117572619], [1.1879356108592525, 1.1357991021886686, -1.1034194130098216, 3.4197046703623393]], [[-4.3944798112503953, -3.0897847255520352, 4.1216726135889168, 0.28314873938209306], [2.1233133380948512, -0.1142827384533307, 1.5715126215691608, 2.8581110877262041], [0.43529014265034149, -4.0431161990840261, 0.28517150386755574, 1.1630004946746428]]], [[[-0.40090647848700911, -0.033958262665528594, -4.4046266720225402, -1.0174464891618706], [-1.2928092051399309, -3.1377860979606176, 2.8953199135128314, 4.298600537254984], [2.7079316736133929, 0.59649279625180363, 3.4342585300929187, -1.4025729378588334]], [[4.8668497777227806, -4.0730751636431659, -3.1108293386157069, -1.0010286808478797], [1.2255117879225157, -1.7574474629526824, -1.3657737681314064, -2.9904846031384813], [-0.83078235278007995, 2.1535446966353486, -4.8933233652356725, 4.7718296568892367]]], [[[-1.4857526121737976, 3.3637722951763429, 1.7148007856717502, -0.90792789244099303], [-2.4288260081949007, -3.2223337912639272, 3.1839565592321488, -0.82691647771790322], [-1.7756994676030455, 0.17382075500737137, 1.4842870166456779, 2.5875967429437043]], [[-2.7219626333962887, -4.3789117218553306, 0.45213782278823356, -4.6410462583353755], [-4.9255613877949287, -3.4882296997458884, 2.9986183389018786, -4.6623658743604315], [-4.7340321240993024, 1.77401322635549, -3.5218646283090504, 3.2587336617460316]]]]))
1055        res=arg0+arg1        res=arg0+arg1
1056        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1057        ref=msk_ref*numarray.array([[[[-1.773561576577376, -2.5946360400156334, 0.19963031424766964, 1.1926440700148362], [-3.0109159639996586, 9.5093479121317017, -2.629591927178851, 0.28936389451963151], [1.163989280411033, -6.2181141284794075, 8.5484868990344491, -0.057586302023629798]], [[-2.1014822817313128, -3.8350507188865164, 0.42384171045889651, 2.9414329812216229], [7.2713997327062518, -1.2390083652997239, -1.5848386270052739, 1.3010465345614888], [1.5082730249061296, 3.5141270454586708, 7.6277305834637659, 3.9622974418469168]]], [[[-7.7662737841149143, 1.5806992799466668, -2.1251924431621259, -3.4380857383669259], [2.4371848229707709, -8.5550062462903895, -6.3336314784474652, 4.41228606718545], [-4.0174477517492813, 4.7277457759343484, 4.4023317606657804, 3.8749022298847118]], [[2.1979976530105132, 2.4020208188324625, 2.7951044320462635, -4.4846214534063673], [-1.8610896876876133, 4.1094129880579491, 4.9229515177878715, 7.7837899848554262], [-6.2438047365428186, -0.80924709262858041, -4.795606026926361, -1.6940553388206872]]], [[[3.0746243036350682, 1.1669760448516762, -4.7304504360258681, -0.80970163318975086], [-6.59961930819067, -2.198967032846578, -3.734357508679385, -1.4795304579611046], [-4.5671861797074342, -5.3215933919673715, -1.6073386171665032, -4.3597874219501271]], [[-2.6008774519635396, -1.3068192469671276, -4.7698168813705282, 5.5347153281795549], [-2.9393147910430732, -4.0107504912436962, 3.8651885744808236, 3.2767138687626147], [-3.5071546260221407, 3.4352159812251628, 5.2201169270405368, 0.32873112437260632]]]])+(1.-msk_ref)*numarray.array([[[[-2.6385423946163389, -2.0232002029604428, -4.2502443265888594, 5.8334879673270326], [2.7178786367979955, -3.7269846754915426, 2.0715904108933696, -5.0606171153943382], [2.8935598576728445, 4.7668145381912908, 2.9111864409438857, 0.65384631643658064]], [[-8.2356263109422567, 1.7444098005938118, 2.8433549863954641, -0.1811181540702469], [-0.17856809299084908, -2.3688770828182584, 2.0339085491440612, 5.7826054902567261], [1.4020712709996133, -5.8728307883933404, 3.8089400682187318, 1.5773910653804162]]], [[[0.9924017257068467, -1.2054599174125089, -8.8811532853785611, -0.60655243896905553], [-4.587620055670123, -5.1668821313031108, -0.032257357482689208, 6.4040108786433603], [0.34275501195121816, -1.0096465425116179, 0.14963937720360443, 3.0760699693827895]], [[2.8263668919562526, -7.2151246992739111, -7.9818481214740222, 3.5867469091278639], [6.1666287313509773, -3.5254586889588966, -2.2984216908794854, -1.3252788403234583], [-5.4982334633418999, 4.9380822785847869, -4.3242366514533019, 0.42600530961246896]]], [[[2.4251145756637147, 2.1555930745486966, 0.2437749679105301, -3.7207115456593343], [2.0162646331729883, -4.6376515854747868, 7.6749976838748051, -5.6824491655345177], [1.1947281022618474, 4.3241492992790693, -3.4986334590227974, -1.8987227840495535]], [[-0.41481542183993714, -2.0276670272681194, 2.9422007955365919, -6.8567960211267778], [-7.7405761893297509, -4.5967782667294017, 6.1838041036601608, -2.1124060800093583], [-4.4222412634572565, 5.0162329341323302, -2.7082230157698644, -0.19668105867167363]]]])        ref=msk_ref*numarray.array([[[[-1.773561576577376, -2.5946360400156334, 0.19963031424766964, 1.1926440700148362], [-3.0109159639996586, 9.5093479121317017, -2.629591927178851, 0.28936389451963151], [1.163989280411033, -6.2181141284794075, 8.5484868990344491, -0.057586302023629798]], [[-2.1014822817313128, -3.8350507188865164, 0.42384171045889651, 2.9414329812216229], [7.2713997327062518, -1.2390083652997239, -1.5848386270052739, 1.3010465345614888], [1.5082730249061296, 3.5141270454586708, 7.6277305834637659, 3.9622974418469168]]], [[[-7.7662737841149143, 1.5806992799466668, -2.1251924431621259, -3.4380857383669259], [2.4371848229707709, -8.5550062462903895, -6.3336314784474652, 4.41228606718545], [-4.0174477517492813, 4.7277457759343484, 4.4023317606657804, 3.8749022298847118]], [[2.1979976530105132, 2.4020208188324625, 2.7951044320462635, -4.4846214534063673], [-1.8610896876876133, 4.1094129880579491, 4.9229515177878715, 7.7837899848554262], [-6.2438047365428186, -0.80924709262858041, -4.795606026926361, -1.6940553388206872]]], [[[3.0746243036350682, 1.1669760448516762, -4.7304504360258681, -0.80970163318975086], [-6.59961930819067, -2.198967032846578, -3.734357508679385, -1.4795304579611046], [-4.5671861797074342, -5.3215933919673715, -1.6073386171665032, -4.3597874219501271]], [[-2.6008774519635396, -1.3068192469671276, -4.7698168813705282, 5.5347153281795549], [-2.9393147910430732, -4.0107504912436962, 3.8651885744808236, 3.2767138687626147], [-3.5071546260221407, 3.4352159812251628, 5.2201169270405368, 0.32873112437260632]]]])+(1.-msk_ref)*numarray.array([[[[-2.6385423946163389, -2.0232002029604428, -4.2502443265888594, 5.8334879673270326], [2.7178786367979955, -3.7269846754915426, 2.0715904108933696, -5.0606171153943382], [2.8935598576728445, 4.7668145381912908, 2.9111864409438857, 0.65384631643658064]], [[-8.2356263109422567, 1.7444098005938118, 2.8433549863954641, -0.1811181540702469], [-0.17856809299084908, -2.3688770828182584, 2.0339085491440612, 5.7826054902567261], [1.4020712709996133, -5.8728307883933404, 3.8089400682187318, 1.5773910653804162]]], [[[0.9924017257068467, -1.2054599174125089, -8.8811532853785611, -0.60655243896905553], [-4.587620055670123, -5.1668821313031108, -0.032257357482689208, 6.4040108786433603], [0.34275501195121816, -1.0096465425116179, 0.14963937720360443, 3.0760699693827895]], [[2.8263668919562526, -7.2151246992739111, -7.9818481214740222, 3.5867469091278639], [6.1666287313509773, -3.5254586889588966, -2.2984216908794854, -1.3252788403234583], [-5.4982334633418999, 4.9380822785847869, -4.3242366514533019, 0.42600530961246896]]], [[[2.4251145756637147, 2.1555930745486966, 0.2437749679105301, -3.7207115456593343], [2.0162646331729883, -4.6376515854747868, 7.6749976838748051, -5.6824491655345177], [1.1947281022618474, 4.3241492992790693, -3.4986334590227974, -1.8987227840495535]], [[-0.41481542183993714, -2.0276670272681194, 2.9422007955365919, -6.8567960211267778], [-7.7405761893297509, -4.5967782667294017, 6.1838041036601608, -2.1124060800093583], [-4.4222412634572565, 5.0162329341323302, -2.7082230157698644, -0.19668105867167363]]]])
1058        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1059        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 1614  class Test_util_overloaded_binary_with_t Line 1614  class Test_util_overloaded_binary_with_t
1614        arg1.setTaggedValue(1,0.371545778797)        arg1.setTaggedValue(1,0.371545778797)
1615        arg1.expand()        arg1.expand()
1616        res=arg0-arg1        res=arg0-arg1
1617        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1618        ref=msk_ref*(-1.95661058311)+(1.-msk_ref)*(-0.938732617612)        ref=msk_ref*(-1.95661058311)+(1.-msk_ref)*(-0.938732617612)
1619        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1620        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
# Line 1627  class Test_util_overloaded_binary_with_t Line 1627  class Test_util_overloaded_binary_with_t
1627        arg1.setTaggedValue(1,numarray.array([0.67663064328439493, -4.944100470984953]))        arg1.setTaggedValue(1,numarray.array([0.67663064328439493, -4.944100470984953]))
1628        arg1.expand()        arg1.expand()
1629        res=arg0-arg1        res=arg0-arg1
1630        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1631        ref=msk_ref*numarray.array([4.0464169643896959, 5.4481516911355987])+(1.-msk_ref)*numarray.array([-4.4544777224694307, 1.1662533917999172])        ref=msk_ref*numarray.array([4.0464169643896959, 5.4481516911355987])+(1.-msk_ref)*numarray.array([-4.4544777224694307, 1.1662533917999172])
1632        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1633        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 1640  class Test_util_overloaded_binary_with_t Line 1640  class Test_util_overloaded_binary_with_t
1640        arg1.setTaggedValue(1,numarray.array([[-2.6540364830821561, 0.10303800430975585, 2.9222312468745058, -4.6200200835244978, -1.7081006854533265], [0.56916319209395549, -0.10225901722417863, 2.0554395269174393, 3.7047606016258054, 0.6754239150428285], [-3.8565025784025755, 1.4687459457567131, 3.4535172717478808, -3.0334073063028355, 4.6730653812852463], [-4.1580370432467841, 4.3554895048399676, -4.5795866721254193, 2.7487905319316663, 1.2578573464449496]]))        arg1.setTaggedValue(1,numarray.array([[-2.6540364830821561, 0.10303800430975585, 2.9222312468745058, -4.6200200835244978, -1.7081006854533265], [0.56916319209395549, -0.10225901722417863, 2.0554395269174393, 3.7047606016258054, 0.6754239150428285], [-3.8565025784025755, 1.4687459457567131, 3.4535172717478808, -3.0334073063028355, 4.6730653812852463], [-4.1580370432467841, 4.3554895048399676, -4.5795866721254193, 2.7487905319316663, 1.2578573464449496]]))
1641        arg1.expand()        arg1.expand()
1642        res=arg0-arg1        res=arg0-arg1
1643        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1644        ref=msk_ref*numarray.array([[-1.7907997174931634, -8.8190516093637505, -7.8783294866129863, -8.9986186444801604, -8.4206884031733544], [-3.7419703720202069, -3.5087354304933216, 0.081870211568354279, -1.4623357488530733, -4.7476656699996891], [-6.6177327273078284, -1.5789659834968983, -6.7872341383859007, 0.71062486960643323, -4.502776894291256], [-3.26034291869159, -6.7282868062549355, -3.4118525896156395, -0.53437710247720061, -6.3113504226405484]])+(1.-msk_ref)*numarray.array([[3.5966049615433837, 0.83953047415147175, -1.9796627684132782, 5.5625885619857254, 2.6506691639145541], [0.3734052863672721, 1.0448274956854062, -1.1128710484562117, -2.7621921231645779, 0.26714456341839909], [4.7990710568638031, -0.52617746729548553, -2.5109487932866532, 3.9759757847640631, -3.7304969028240187], [5.1006055217080117, -3.41292102637874, 5.5221551505866469, -1.8062220534704387, -0.31528886798372202]])        ref=msk_ref*numarray.array([[-1.7907997174931634, -8.8190516093637505, -7.8783294866129863, -8.9986186444801604, -8.4206884031733544], [-3.7419703720202069, -3.5087354304933216, 0.081870211568354279, -1.4623357488530733, -4.7476656699996891], [-6.6177327273078284, -1.5789659834968983, -6.7872341383859007, 0.71062486960643323, -4.502776894291256], [-3.26034291869159, -6.7282868062549355, -3.4118525896156395, -0.53437710247720061, -6.3113504226405484]])+(1.-msk_ref)*numarray.array([[3.5966049615433837, 0.83953047415147175, -1.9796627684132782, 5.5625885619857254, 2.6506691639145541], [0.3734052863672721, 1.0448274956854062, -1.1128710484562117, -2.7621921231645779, 0.26714456341839909], [4.7990710568638031, -0.52617746729548553, -2.5109487932866532, 3.9759757847640631, -3.7304969028240187], [5.1006055217080117, -3.41292102637874, 5.5221551505866469, -1.8062220534704387, -0.31528886798372202]])
1645        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1646        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 1653  class Test_util_overloaded_binary_with_t Line 1653  class Test_util_overloaded_binary_with_t
1653        arg1.setTaggedValue(1,numarray.array([[[2.8018880136320368, 0.87924276182235506], [-1.9749750374286537, 0.036453764365615093]], [[-1.0266181230272409, 0.30399252889133876], [3.5845048519126728, 3.5584166272329103]], [[-0.34264522072760606, -1.2537520493397381], [-1.5422797409951663, -4.2806975891973149]], [[4.6497581488408599, 3.2951638754765593], [3.371328141586611, 4.3462647579266189]], [[-4.3409374278520216, -2.4712169161472151], [4.2212655320810839, 0.16994497050107427]], [[-4.5015474985122159, -1.6638792528779933], [-4.3161405541809783, -1.3946086978932879]]]))        arg1.setTaggedValue(1,numarray.array([[[2.8018880136320368, 0.87924276182235506], [-1.9749750374286537, 0.036453764365615093]], [[-1.0266181230272409, 0.30399252889133876], [3.5845048519126728, 3.5584166272329103]], [[-0.34264522072760606, -1.2537520493397381], [-1.5422797409951663, -4.2806975891973149]], [[4.6497581488408599, 3.2951638754765593], [3.371328141586611, 4.3462647579266189]], [[-4.3409374278520216, -2.4712169161472151], [4.2212655320810839, 0.16994497050107427]], [[-4.5015474985122159, -1.6638792528779933], [-4.3161405541809783, -1.3946086978932879]]]))
1654        arg1.expand()        arg1.expand()
1655        res=arg0-arg1        res=arg0-arg1
1656        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1657        ref=msk_ref*numarray.array([[[2.1801320500380172, -2.0763854655841874], [-0.2510413443827284, -1.19245155601575]], [[-4.062247387977532, 1.0416139967118121], [-1.6986354311642904, 3.5942021003743685]], [[2.7633801650943788, 2.6845681417906864], [-0.94380153593362159, 0.1691244346291132]], [[-0.73022257758547848, -1.8952786099099486], [-3.7376214496054132, -1.0437434150934974]], [[-2.5166116573077835, -2.4198445931812218], [3.8755930554674833, 4.5273943482268599]], [[-3.003309787815601, 1.5908315794615211], [-2.2500123826099827, 2.9676437755297016]]])+(1.-msk_ref)*numarray.array([[[-6.1633655729956249, -4.2407203211859432], [-1.3865025219349345, -3.3979313237292033]], [[-2.3348594363363473, -3.6654700882549269], [-6.9459824112762609, -6.9198941865964985]], [[-3.0188323386359821, -2.1077255100238501], [-1.8191978183684219, 0.91922002983372675]], [[-8.011235708204449, -6.6566414348401475], [-6.7328057009501991, -7.7077423172902071]], [[0.97945986848843347, -0.8902606432163731], [-7.5827430914446721, -3.5314225298646624]], [[1.1400699391486278, -1.6975983064855948], [0.95466299481739014, -1.9668688614703003]]])        ref=msk_ref*numarray.array([[[2.1801320500380172, -2.0763854655841874], [-0.2510413443827284, -1.19245155601575]], [[-4.062247387977532, 1.0416139967118121], [-1.6986354311642904, 3.5942021003743685]], [[2.7633801650943788, 2.6845681417906864], [-0.94380153593362159, 0.1691244346291132]], [[-0.73022257758547848, -1.8952786099099486], [-3.7376214496054132, -1.0437434150934974]], [[-2.5166116573077835, -2.4198445931812218], [3.8755930554674833, 4.5273943482268599]], [[-3.003309787815601, 1.5908315794615211], [-2.2500123826099827, 2.9676437755297016]]])+(1.-msk_ref)*numarray.array([[[-6.1633655729956249, -4.2407203211859432], [-1.3865025219349345, -3.3979313237292033]], [[-2.3348594363363473, -3.6654700882549269], [-6.9459824112762609, -6.9198941865964985]], [[-3.0188323386359821, -2.1077255100238501], [-1.8191978183684219, 0.91922002983372675]], [[-8.011235708204449, -6.6566414348401475], [-6.7328057009501991, -7.7077423172902071]], [[0.97945986848843347, -0.8902606432163731], [-7.5827430914446721, -3.5314225298646624]], [[1.1400699391486278, -1.6975983064855948], [0.95466299481739014, -1.9668688614703003]]])
1658        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1659        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 1666  class Test_util_overloaded_binary_with_t Line 1666  class Test_util_overloaded_binary_with_t
1666        arg1.setTaggedValue(1,numarray.array([[[[4.2940845692648164, -3.4848266815985687, -4.9864008378443625, -4.2182299295896373], [0.88082524200220647, -1.9593689867233532, -1.8614573173328877, -3.0558049350459084], [0.738138936082116, -4.2426817207089602, 1.0645255584126057, -4.9777179838930818]], [[1.8383103692543621, 3.3325204482740354, -4.6309192893180295, -2.315271433458157], [1.7856513158819745, 0.027075822387927495, -1.9365727960673684, 3.4439176400874079], [3.9946878058557722, -3.3951691607520273, -0.90283316867909935, -1.0958400994550779]]], [[[-4.3933164163971972, 3.8587885058511979, 3.1777330322394945, -4.3708983168556648], [-3.8532981909799013, -4.2406169394840347, 3.1884657189399128, -0.74029677363911262], [0.2322432935169978, 0.30415583117616585, -2.5056320810005217, 0.28708035376410912]], [[-3.9465999880422387, -1.4209576762016898, -1.4812181927057777, 4.902710041489291], [-2.9916256701733013, -2.8564210513175272, -3.9186030335308821, 4.9655651018781573], [3.6305364660762542, 2.3182120707133977, 0.58713868253069901, -1.882972931560972]]], [[[-4.7918584115903906, -2.6623736477954441, -4.2155923788428842, -1.9161153319936086], [4.6938134280443364, -4.2051684469777237, 1.2381437471357675, 0.89629855611710862], [3.2479546229154206, -1.2950382801722951, -1.9530130806157473, -3.0191445612749268]], [[-2.0859130183345034, 1.8867183929804288, -3.96296859185999, 4.5801626190003617], [1.4212012319532485, -0.15691862318594652, 1.5233448034154833, 0.0070488401299417802], [4.8501883821168725, 1.8722102574072528, 1.0975788012041754, -0.92365502229974883]]]]))        arg1.setTaggedValue(1,numarray.array([[[[4.2940845692648164, -3.4848266815985687, -4.9864008378443625, -4.2182299295896373], [0.88082524200220647, -1.9593689867233532, -1.8614573173328877, -3.0558049350459084], [0.738138936082116, -4.2426817207089602, 1.0645255584126057, -4.9777179838930818]], [[1.8383103692543621, 3.3325204482740354, -4.6309192893180295, -2.315271433458157], [1.7856513158819745, 0.027075822387927495, -1.9365727960673684, 3.4439176400874079], [3.9946878058557722, -3.3951691607520273, -0.90283316867909935, -1.0958400994550779]]], [[[-4.3933164163971972, 3.8587885058511979, 3.1777330322394945, -4.3708983168556648], [-3.8532981909799013, -4.2406169394840347, 3.1884657189399128, -0.74029677363911262], [0.2322432935169978, 0.30415583117616585, -2.5056320810005217, 0.28708035376410912]], [[-3.9465999880422387, -1.4209576762016898, -1.4812181927057777, 4.902710041489291], [-2.9916256701733013, -2.8564210513175272, -3.9186030335308821, 4.9655651018781573], [3.6305364660762542, 2.3182120707133977, 0.58713868253069901, -1.882972931560972]]], [[[-4.7918584115903906, -2.6623736477954441, -4.2155923788428842, -1.9161153319936086], [4.6938134280443364, -4.2051684469777237, 1.2381437471357675, 0.89629855611710862], [3.2479546229154206, -1.2950382801722951, -1.9530130806157473, -3.0191445612749268]], [[-2.0859130183345034, 1.8867183929804288, -3.96296859185999, 4.5801626190003617], [1.4212012319532485, -0.15691862318594652, 1.5233448034154833, 0.0070488401299417802], [4.8501883821168725, 1.8722102574072528, 1.0975788012041754, -0.92365502229974883]]]]))
1667        arg1.expand()        arg1.expand()
1668        res=arg0-arg1        res=arg0-arg1
1669        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1670        ref=msk_ref*numarray.array([[[[-0.5727515217404533, 1.6361117024778449, 1.9247965713737192, -5.4400092588046487], [-0.88180032386986928, 2.0261559533631135, -5.3965776863182366, 1.265698557089141], [2.5152146595172167, -3.4214735830519696, 2.0934112727258225, 2.9374161636573581]], [[-4.5665474217925457, 1.8404967795754898, -1.8526326956010961, 2.4043559434164803], [-2.1674037604892757, -4.2441249947431903, -4.4020919807454693, 1.6526617142404612], [-6.1120846598508223, -2.3478524559126526, 1.3440810252524327, -5.3804814848476159]]], [[[2.9919418495842822, 0.27072629766026557, 0.6659882377741333, -4.1797066683337682], [-5.8727264331714544, -6.8281164586892906, -3.8978779450201091, 2.6595808553582709], [2.8769698596906363, -3.2470624931626051, -5.1592975612286391, -6.6484933119031648]], [[-4.149078949205915, 2.2732382298165192, 2.0063159440009737, 0.48226325693106231], [2.5786351745550591, -3.9423670851121018, -6.3521725805589053, -5.3559054309962271], [-0.79870265850213951, 0.67842820198410569, -4.5019276443918717, -2.4781644339895048]]], [[[-5.229859810786742, -1.91340531673587, -0.80793712118624716, -1.1549806867579382], [2.0784530484674399, -1.7796142852079693, -6.9545136562662559, -0.85722181069557202], [-0.044521767045204719, -3.5804730717277109, -5.7617513719121352, -4.18237235651549]], [[-3.4030788280276156, -0.43127224457850666, -6.9060588738361215, -5.6074732022921889], [2.4060115808024762, -0.52659116281430185, -1.6983214462144081, -0.65448658474284827], [-2.5212040268172031, -5.3323695642053224, -5.6093587359447383, -5.2219811276097303]]]])+(1.-msk_ref)*numarray.array([[[[-0.28663121069612174, 7.4922800401672633, 8.9938541964130572, 8.2256832881583328], [3.1266281165664882, 5.9668223452920479, 5.8689106759015823, 7.0632582936146031], [3.2693144224865787, 8.2501350792776549, 2.942927800156089, 8.9851713424617756]], [[2.1691429893143326, 0.67493291029465929, 8.6383726478867242, 6.3227247920268521], [2.2218020426867202, 3.9803775361807672, 5.9440261546360631, 0.56353571848128681], [0.012765552712922457, 7.4026225193207225, 4.910286527247794, 5.1032934580237725]]], [[[8.4007697749658909, 0.14866485271749674, 0.82972032632920012, 8.3783516754243585], [7.8607515495485956, 8.2480702980527294, 0.81898763962878185, 4.7477501322078073], [3.7752100650516969, 3.7032975273925288, 6.5130854395692168, 3.7203730048045855]], [[7.9540533466109338, 5.4284110347703844, 5.4886715512744724, -0.89525668292059635], [6.9990790287419955, 6.8638744098862219, 7.9260563920995768, -0.95811174330946258], [0.37691689249244043, 1.6892412878552969, 3.4203146760379957, 5.8904262901296667]]], [[[8.7993117701590862, 6.6698270063641392, 8.223045737411578, 5.9235686905623037], [-0.68636006947564177, 8.2126218055464193, 2.7693096114329272, 3.111154802451586], [0.75949873565327408, 5.3024916387409897, 5.960466439184442, 7.0265979198436215]], [[6.093366376903198, 2.1207349655882659, 7.9704219504286851, -0.57270926043166703], [2.5862521266154461, 4.1643719817546412, 2.4841085551532114, 4.0004045184387529], [-0.84273502354817786, 2.1352431011614419, 2.9098745573645193, 4.9311083808684435]]]])        ref=msk_ref*numarray.array([[[[-0.5727515217404533, 1.6361117024778449, 1.9247965713737192, -5.4400092588046487], [-0.88180032386986928, 2.0261559533631135, -5.3965776863182366, 1.265698557089141], [2.5152146595172167, -3.4214735830519696, 2.0934112727258225, 2.9374161636573581]], [[-4.5665474217925457, 1.8404967795754898, -1.8526326956010961, 2.4043559434164803], [-2.1674037604892757, -4.2441249947431903, -4.4020919807454693, 1.6526617142404612], [-6.1120846598508223, -2.3478524559126526, 1.3440810252524327, -5.3804814848476159]]], [[[2.9919418495842822, 0.27072629766026557, 0.6659882377741333, -4.1797066683337682], [-5.8727264331714544, -6.8281164586892906, -3.8978779450201091, 2.6595808553582709], [2.8769698596906363, -3.2470624931626051, -5.1592975612286391, -6.6484933119031648]], [[-4.149078949205915, 2.2732382298165192, 2.0063159440009737, 0.48226325693106231], [2.5786351745550591, -3.9423670851121018, -6.3521725805589053, -5.3559054309962271], [-0.79870265850213951, 0.67842820198410569, -4.5019276443918717, -2.4781644339895048]]], [[[-5.229859810786742, -1.91340531673587, -0.80793712118624716, -1.1549806867579382], [2.0784530484674399, -1.7796142852079693, -6.9545136562662559, -0.85722181069557202], [-0.044521767045204719, -3.5804730717277109, -5.7617513719121352, -4.18237235651549]], [[-3.4030788280276156, -0.43127224457850666, -6.9060588738361215, -5.6074732022921889], [2.4060115808024762, -0.52659116281430185, -1.6983214462144081, -0.65448658474284827], [-2.5212040268172031, -5.3323695642053224, -5.6093587359447383, -5.2219811276097303]]]])+(1.-msk_ref)*numarray.array([[[[-0.28663121069612174, 7.4922800401672633, 8.9938541964130572, 8.2256832881583328], [3.1266281165664882, 5.9668223452920479, 5.8689106759015823, 7.0632582936146031], [3.2693144224865787, 8.2501350792776549, 2.942927800156089, 8.9851713424617756]], [[2.1691429893143326, 0.67493291029465929, 8.6383726478867242, 6.3227247920268521], [2.2218020426867202, 3.9803775361807672, 5.9440261546360631, 0.56353571848128681], [0.012765552712922457, 7.4026225193207225, 4.910286527247794, 5.1032934580237725]]], [[[8.4007697749658909, 0.14866485271749674, 0.82972032632920012, 8.3783516754243585], [7.8607515495485956, 8.2480702980527294, 0.81898763962878185, 4.7477501322078073], [3.7752100650516969, 3.7032975273925288, 6.5130854395692168, 3.7203730048045855]], [[7.9540533466109338, 5.4284110347703844, 5.4886715512744724, -0.89525668292059635], [6.9990790287419955, 6.8638744098862219, 7.9260563920995768, -0.95811174330946258], [0.37691689249244043, 1.6892412878552969, 3.4203146760379957, 5.8904262901296667]]], [[[8.7993117701590862, 6.6698270063641392, 8.223045737411578, 5.9235686905623037], [-0.68636006947564177, 8.2126218055464193, 2.7693096114329272, 3.111154802451586], [0.75949873565327408, 5.3024916387409897, 5.960466439184442, 7.0265979198436215]], [[6.093366376903198, 2.1207349655882659, 7.9704219504286851, -0.57270926043166703], [2.5862521266154461, 4.1643719817546412, 2.4841085551532114, 4.0004045184387529], [-0.84273502354817786, 2.1352431011614419, 2.9098745573645193, 4.9311083808684435]]]])
1671        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1672        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 1758  class Test_util_overloaded_binary_with_t Line 1758  class Test_util_overloaded_binary_with_t
1758        arg1.setTaggedValue(1,0.59937916853)        arg1.setTaggedValue(1,0.59937916853)
1759        arg1.expand()        arg1.expand()
1760        res=arg0-arg1        res=arg0-arg1
1761        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1762        ref=msk_ref*numarray.array([3.0982423197346876, -1.8448271918956243])+(1.-msk_ref)*numarray.array([-2.9380446621264116, -3.5586040227747011])        ref=msk_ref*numarray.array([3.0982423197346876, -1.8448271918956243])+(1.-msk_ref)*numarray.array([-2.9380446621264116, -3.5586040227747011])
1763        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1764        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 1771  class Test_util_overloaded_binary_with_t Line 1771  class Test_util_overloaded_binary_with_t
1771        arg1.setTaggedValue(1,numarray.array([-0.31753835706848577, 1.0456955316580547]))        arg1.setTaggedValue(1,numarray.array([-0.31753835706848577, 1.0456955316580547]))
1772        arg1.expand()        arg1.expand()
1773        res=arg0-arg1        res=arg0-arg1
1774        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1775        ref=msk_ref*numarray.array([-1.0485304692763648, 3.8214174161877432])+(1.-msk_ref)*numarray.array([-4.5008709858696374, 1.3624632503744873])        ref=msk_ref*numarray.array([-1.0485304692763648, 3.8214174161877432])+(1.-msk_ref)*numarray.array([-4.5008709858696374, 1.3624632503744873])
1776        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1777        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 1863  class Test_util_overloaded_binary_with_t Line 1863  class Test_util_overloaded_binary_with_t
1863        arg1.setTaggedValue(1,-2.20061734812)        arg1.setTaggedValue(1,-2.20061734812)
1864        arg1.expand()        arg1.expand()
1865        res=arg0-arg1        res=arg0-arg1
1866        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1867        ref=msk_ref*numarray.array([[1.1855898050603368, 4.3138336815698359, 3.6476574704901825, 0.30248448122702332, 2.5539464879006735], [-0.42575528558485676, 0.95137805533354758, 4.1519965212629293, -1.0908232928459292, 4.7604123430605334], [0.92597842705793099, 0.31564321415923047, 3.1852229191284733, -0.58009405334493813, -1.1040822399719472], [-0.4112294554593996, -0.40783345677088301, 5.2437572537483348, 2.9537064613910182, 1.2637682333236757]])+(1.-msk_ref)*numarray.array([[-1.6689270130467047, 3.5376409867260352, 0.096007361700064298, 2.8056337817443757, -1.1262466553154291], [5.7922795200605783, 2.0914328014720787, 6.9542288401501029, 3.3196797559678504, 3.9673390160021937], [-2.0095776464265067, -2.3791424401131933, 1.0685743224708975, 5.7535310277178038, 5.9705998606269866], [1.6156008629031624, 0.95103090133379231, -2.7196703320717019, -0.55366871048205368, 5.1655274254086816]])        ref=msk_ref*numarray.array([[1.1855898050603368, 4.3138336815698359, 3.6476574704901825, 0.30248448122702332, 2.5539464879006735], [-0.42575528558485676, 0.95137805533354758, 4.1519965212629293, -1.0908232928459292, 4.7604123430605334], [0.92597842705793099, 0.31564321415923047, 3.1852229191284733, -0.58009405334493813, -1.1040822399719472], [-0.4112294554593996, -0.40783345677088301, 5.2437572537483348, 2.9537064613910182, 1.2637682333236757]])+(1.-msk_ref)*numarray.array([[-1.6689270130467047, 3.5376409867260352, 0.096007361700064298, 2.8056337817443757, -1.1262466553154291], [5.7922795200605783, 2.0914328014720787, 6.9542288401501029, 3.3196797559678504, 3.9673390160021937], [-2.0095776464265067, -2.3791424401131933, 1.0685743224708975, 5.7535310277178038, 5.9705998606269866], [1.6156008629031624, 0.95103090133379231, -2.7196703320717019, -0.55366871048205368, 5.1655274254086816]])
1868        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1869        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 1876  class Test_util_overloaded_binary_with_t Line 1876  class Test_util_overloaded_binary_with_t
1876        arg1.setTaggedValue(1,numarray.array([[3.5045030055565025, -3.5892770280361797, -3.4148688887524759, 3.3592497321666155, -0.28644735225971196], [-1.7358902239678065, 4.8856026696308543, 0.33106895748375198, -1.1253088705662515, -2.2293960685996996], [-0.34840765401143514, 0.59971933196959348, 1.0817405530990678, 1.0802196241802218, 1.467389528385791], [-1.577450845614127, -1.620538186098528, 1.1678537414069865, -3.781889085191966, 1.780637296356602]]))        arg1.setTaggedValue(1,numarray.array([[3.5045030055565025, -3.5892770280361797, -3.4148688887524759, 3.3592497321666155, -0.28644735225971196], [-1.7358902239678065, 4.8856026696308543, 0.33106895748375198, -1.1253088705662515, -2.2293960685996996], [-0.34840765401143514, 0.59971933196959348, 1.0817405530990678, 1.0802196241802218, 1.467389528385791], [-1.577450845614127, -1.620538186098528, 1.1678537414069865, -3.781889085191966, 1.780637296356602]]))
1877        arg1.expand()        arg1.expand()
1878        res=arg0-arg1        res=arg0-arg1
1879        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1880        ref=msk_ref*numarray.array([[0.043947803398499019, -0.68264133823942696, -8.2641060937737052, 7.758458567349594, 7.5181521465253622], [-0.84584481516890264, -5.4255133644510565, 4.8259838407083802, -4.36367110409447, 1.3796125719435262], [-2.1802368898184863, -0.21285534630464564, 1.0331653421762441, 5.6074097008854924, -3.9783383174419291], [-2.2470936174615828, -0.30374926273487901, -6.0831732485558936, 2.2410137790444908, 7.3840150269928042]])+(1.-msk_ref)*numarray.array([[-6.1075142974959924, 2.6349535817127201, 0.013496677055414796, -1.2317671173652682, -3.7222941449138709], [-1.9731803433426776, -9.3812739577630531, -3.2934326306862305, 3.3541488943586479, 7.0471356680555299], [-2.1377918700503944, 2.1355251800707489, -3.3980623565112125, -1.7660292549818521, 2.9901739883497171], [3.4005348884426283, -2.2203734546325582, -0.018413423862837064, 7.9923135350297665, 1.9975053240213221]])        ref=msk_ref*numarray.array([[0.043947803398499019, -0.68264133823942696, -8.2641060937737052, 7.758458567349594, 7.5181521465253622], [-0.84584481516890264, -5.4255133644510565, 4.8259838407083802, -4.36367110409447, 1.3796125719435262], [-2.1802368898184863, -0.21285534630464564, 1.0331653421762441, 5.6074097008854924, -3.9783383174419291], [-2.2470936174615828, -0.30374926273487901, -6.0831732485558936, 2.2410137790444908, 7.3840150269928042]])+(1.-msk_ref)*numarray.array([[-6.1075142974959924, 2.6349535817127201, 0.013496677055414796, -1.2317671173652682, -3.7222941449138709], [-1.9731803433426776, -9.3812739577630531, -3.2934326306862305, 3.3541488943586479, 7.0471356680555299], [-2.1377918700503944, 2.1355251800707489, -3.3980623565112125, -1.7660292549818521, 2.9901739883497171], [3.4005348884426283, -2.2203734546325582, -0.018413423862837064, 7.9923135350297665, 1.9975053240213221]])
1881        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1882        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 1968  class Test_util_overloaded_binary_with_t Line 1968  class Test_util_overloaded_binary_with_t
1968        arg1.setTaggedValue(1,-0.0826614910499)        arg1.setTaggedValue(1,-0.0826614910499)
1969        arg1.expand()        arg1.expand()
1970        res=arg0-arg1        res=arg0-arg1
1971        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1972        ref=msk_ref*numarray.array([[[0.71273118966479476, 2.3272934608488542], [0.86555040237532399, 0.51207115209576681]], [[-1.7524661142581595, -4.1679933750236486], [-1.704207418355451, -5.189883819961187]], [[-1.6813778703728373, -5.576974607482307], [1.8960229291003126, -2.6333970195589851]], [[-3.2527912848464315, 1.7590365384673428], [-4.0188453696487016, -1.0520444234279047]], [[-4.2144142174869339, 1.9778366619467116], [-0.57939723427427392, 0.85450373062947182]], [[3.0929969141615183, -0.30415204733726409], [2.3879926793716306, 2.7656440643383791]]])+(1.-msk_ref)*numarray.array([[[-4.5340185053512547, 4.1490935644432874], [-2.970633668303412, 4.8765602702271984]], [[3.0184080650816911, 4.1659767177166067], [-0.81322067627858807, 0.07614178675937211]], [[-1.6817704365625961, -1.9792253640438604], [1.1417851304474507, -0.74232302883256196]], [[0.34033932418377066, 4.53291965986039], [4.2711551301703352, 3.171873363208233]], [[2.9231415826338933, 2.2462256278486761], [2.8952531961223302, -2.4375864207628348]], [[2.5914256724712352, 2.6535134586257092], [0.40139951031649623, -4.8544841225244504]]])        ref=msk_ref*numarray.array([[[0.71273118966479476, 2.3272934608488542], [0.86555040237532399, 0.51207115209576681]], [[-1.7524661142581595, -4.1679933750236486], [-1.704207418355451, -5.189883819961187]], [[-1.6813778703728373, -5.576974607482307], [1.8960229291003126, -2.6333970195589851]], [[-3.2527912848464315, 1.7590365384673428], [-4.0188453696487016, -1.0520444234279047]], [[-4.2144142174869339, 1.9778366619467116], [-0.57939723427427392, 0.85450373062947182]], [[3.0929969141615183, -0.30415204733726409], [2.3879926793716306, 2.7656440643383791]]])+(1.-msk_ref)*numarray.array([[[-4.5340185053512547, 4.1490935644432874], [-2.970633668303412, 4.8765602702271984]], [[3.0184080650816911, 4.1659767177166067], [-0.81322067627858807, 0.07614178675937211]], [[-1.6817704365625961, -1.9792253640438604], [1.1417851304474507, -0.74232302883256196]], [[0.34033932418377066, 4.53291965986039], [4.2711551301703352, 3.171873363208233]], [[2.9231415826338933, 2.2462256278486761], [2.8952531961223302, -2.4375864207628348]], [[2.5914256724712352, 2.6535134586257092], [0.40139951031649623, -4.8544841225244504]]])
1973        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1974        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 1981  class Test_util_overloaded_binary_with_t Line 1981  class Test_util_overloaded_binary_with_t
1981        arg1.setTaggedValue(1,numarray.array([[[1.6751320801094352, -0.58441613274973747], [-2.1190427546290023, -3.9719327176624128]], [[-2.5712630296622772, -4.5832722752045152], [-1.8298924405466055, 4.9889065956491248]], [[-1.5503035275737096, -3.8993402038267666], [-3.6228407127246687, -2.8846985209270515]], [[-1.7250094602720534, -3.0581215633824277], [-0.55522503998568862, 0.64365580973355385]], [[4.0273019615281136, -4.0722867383534211], [4.0734551862118114, -2.2248424007430847]], [[-3.3057527663612554, -0.76747186823799929], [2.5595050352440216, -2.2780727900372733]]]))        arg1.setTaggedValue(1,numarray.array([[[1.6751320801094352, -0.58441613274973747], [-2.1190427546290023, -3.9719327176624128]], [[-2.5712630296622772, -4.5832722752045152], [-1.8298924405466055, 4.9889065956491248]], [[-1.5503035275737096, -3.8993402038267666], [-3.6228407127246687, -2.8846985209270515]], [[-1.7250094602720534, -3.0581215633824277], [-0.55522503998568862, 0.64365580973355385]], [[4.0273019615281136, -4.0722867383534211], [4.0734551862118114, -2.2248424007430847]], [[-3.3057527663612554, -0.76747186823799929], [2.5595050352440216, -2.2780727900372733]]]))
1982        arg1.expand()        arg1.expand()
1983        res=arg0-arg1        res=arg0-arg1
1984        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1985        ref=msk_ref*numarray.array([[[-1.0396162857979112, -2.8845295938987761], [-0.7898417194981433, -0.12788606272984815]], [[-1.3530901845737429, -0.054213884102448873], [-0.91369914568199118, -4.1020225199671181]], [[0.55458154177650876, -1.6350919362811975], [7.5842690128682495, -2.986145351544895]], [[-0.73739097882110549, -1.8739700705781845], [3.8203514402034919, -7.6142268487216214]], [[0.3466832357769345, -6.6800113177811467], [-1.6000719274700836, -0.98194655804712916]], [[1.5294222234745511, -0.24947936421455008], [9.3262357180884923, -0.90209920468205773]]])+(1.-msk_ref)*numarray.array([[[-2.9793503466958584, -4.2503620824568156], [-2.4154080604133119, 8.6160308864295416]], [[4.4590654120169937, 9.4780831690204614], [-2.0974220539890807, -3.8669897366540038]], [[-3.1043055156673836, 7.0137844394913769], [4.4325911869872625, 7.0509790795436178]], [[-1.0749399769096213, 0.3020137351117258], [0.86127071773410879, 1.913811889719522]], [[-6.9941123542763117, 3.7940123908899093], [-0.59506196658957577, 5.4135261201521887]], [[1.1378193318025343, -3.8357068284273792], [-5.6935442356504407, 1.4668222532133588]]])        ref=msk_ref*numarray.array([[[-1.0396162857979112, -2.8845295938987761], [-0.7898417194981433, -0.12788606272984815]], [[-1.3530901845737429, -0.054213884102448873], [-0.91369914568199118, -4.1020225199671181]], [[0.55458154177650876, -1.6350919362811975], [7.5842690128682495, -2.986145351544895]], [[-0.73739097882110549, -1.8739700705781845], [3.8203514402034919, -7.6142268487216214]], [[0.3466832357769345, -6.6800113177811467], [-1.6000719274700836, -0.98194655804712916]], [[1.5294222234745511, -0.24947936421455008], [9.3262357180884923, -0.90209920468205773]]])+(1.-msk_ref)*numarray.array([[[-2.9793503466958584, -4.2503620824568156], [-2.4154080604133119, 8.6160308864295416]], [[4.4590654120169937, 9.4780831690204614], [-2.0974220539890807, -3.8669897366540038]], [[-3.1043055156673836, 7.0137844394913769], [4.4325911869872625, 7.0509790795436178]], [[-1.0749399769096213, 0.3020137351117258], [0.86127071773410879, 1.913811889719522]], [[-6.9941123542763117, 3.7940123908899093], [-0.59506196658957577, 5.4135261201521887]], [[1.1378193318025343, -3.8357068284273792], [-5.6935442356504407, 1.4668222532133588]]])
1986        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1987        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 2073  class Test_util_overloaded_binary_with_t Line 2073  class Test_util_overloaded_binary_with_t
2073        arg1.setTaggedValue(1,-2.36551635685)        arg1.setTaggedValue(1,-2.36551635685)
2074        arg1.expand()        arg1.expand()
2075        res=arg0-arg1        res=arg0-arg1
2076        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2077        ref=msk_ref*numarray.array([[[[4.8365034369003821, 1.2349061100526795, -1.2043018871294517, 6.5065775044821059], [7.1265604543154222, -0.31230417235357466, 3.8613015957428658, 6.3808233769749805], [-0.72743947695250988, 2.2444674416938382, 1.2460777701960501, 5.7402971955712223]], [[2.5229217791121061, 3.2513440361201678, 0.81967604229726021, 6.5444548797273541], [6.4246918962021384, 4.1277872393142232, 7.756319277656516, 5.6413991144938178], [5.1986355237085569, 7.0663241032054156, 1.3583066936256727, 4.110886800714816]]], [[[6.2388015419678471, 4.9299207865973473, -0.093049500162623922, -1.0073241152438257], [1.4412633314300924, 3.25359565234315, 5.8168249248018586, 2.2169820652108441], [2.3699237981548227, 2.9491236126759093, -1.0403843251957481, 5.9082047043958719]], [[8.0597683006376641, -0.91166508295290427, -0.15270829443621992, 4.5311515257949182], [3.7153120313994865, 7.9851343330817617, 4.1144293250479063, -1.0877019889822463], [0.873701664967105, 3.1706302900695258, -1.0142021167297131, 6.2249982645756283]]], [[[1.5509591731149222, 0.84118407648356763, 7.2137717817204443, 5.5061645258671508], [0.9915564138296098, -0.40665038864624314, 1.5089831628596739, 5.4655285129532647], [7.3180227521113199, 0.50540781533761425, 0.81611062230443654, 4.4958667481660566]], [[7.7931877814290882, 2.0481784308594078, 4.6614883590796241, -0.59479551864833091], [-0.72975712967052253, 0.55873138267214273, 8.0704161627838893, 5.1079414525891291], [5.8118070621474214, -0.077433816596238714, 4.761507864568518, 0.64372910413661089]]]])+(1.-msk_ref)*numarray.array([[[[0.82848939172620373, 0.52162637642287457, -1.7047550176693171, 4.3451114345624049], [3.4891680293404708, 2.9113918448611926, 5.6460000191186275, 6.1720755834419236], [-2.1105470537154192, -1.921428740216423, -1.8456143073558788, 4.1100935639966307]], [[6.9926037933340677, -1.7808401370933433, 7.2205949626281196, 0.4122139344241651], [3.1771684083205791, 6.3047604534944437, 0.87964532595526412, 1.5327100526837416], [4.4303051254414108, 1.5038657450177464, 2.8123279258301883, 7.3633217108585676]]], [[[6.079797698849859, 3.2733209678263773, 2.5085701710885893, -0.33226600508897564], [-0.031009881328672773, 3.4033985277614658, 0.2010312097452065, 5.8597615714898623], [4.6637484329510102, 6.0603850445143799, 3.9639825363152479, 3.4631887307604172]], [[3.51123957308796, 3.238088995093567, 3.0431083147139715, 2.1915849551299926], [3.0599044580093082, 6.3642237253800626, 5.200713425456998, 3.8958102081908788], [-0.10952065343492912, 3.6684231983710784, -0.84854683682639021, 0.93725199930003544]]], [[[2.1763553654987948, -0.41743330761006536, 3.5702546714073025, 2.0113607982849926], [1.4744299860273458, 1.7782781125021394, 1.6025262917844829, 1.2642248375771494], [-1.3843448279873067, 7.0903562276438468, 4.7254377495581705, 3.1683066786387082]], [[2.8843954868674819, 3.6241763422479414, -0.09746872429329656, 6.112853809372103], [2.7676833795454892, 1.6869510606803866, 2.2621719544595855, 6.7260442408029881], [-0.2327539407407615, 0.58089938885653414, 1.6409411666908049, 6.6653127136854202]]]])        ref=msk_ref*numarray.array([[[[4.8365034369003821, 1.2349061100526795, -1.2043018871294517, 6.5065775044821059], [7.1265604543154222, -0.31230417235357466, 3.8613015957428658, 6.3808233769749805], [-0.72743947695250988, 2.2444674416938382, 1.2460777701960501, 5.7402971955712223]], [[2.5229217791121061, 3.2513440361201678, 0.81967604229726021, 6.5444548797273541], [6.4246918962021384, 4.1277872393142232, 7.756319277656516, 5.6413991144938178], [5.1986355237085569, 7.0663241032054156, 1.3583066936256727, 4.110886800714816]]], [[[6.2388015419678471, 4.9299207865973473, -0.093049500162623922, -1.0073241152438257], [1.4412633314300924, 3.25359565234315, 5.8168249248018586, 2.2169820652108441], [2.3699237981548227, 2.9491236126759093, -1.0403843251957481, 5.9082047043958719]], [[8.0597683006376641, -0.91166508295290427, -0.15270829443621992, 4.5311515257949182], [3.7153120313994865, 7.9851343330817617, 4.1144293250479063, -1.0877019889822463], [0.873701664967105, 3.1706302900695258, -1.0142021167297131, 6.2249982645756283]]], [[[1.5509591731149222, 0.84118407648356763, 7.2137717817204443, 5.5061645258671508], [0.9915564138296098, -0.40665038864624314, 1.5089831628596739, 5.4655285129532647], [7.3180227521113199, 0.50540781533761425, 0.81611062230443654, 4.4958667481660566]], [[7.7931877814290882, 2.0481784308594078, 4.6614883590796241, -0.59479551864833091], [-0.72975712967052253, 0.55873138267214273, 8.0704161627838893, 5.1079414525891291], [5.8118070621474214, -0.077433816596238714, 4.761507864568518, 0.64372910413661089]]]])+(1.-msk_ref)*numarray.array([[[[0.82848939172620373, 0.52162637642287457, -1.7047550176693171, 4.3451114345624049], [3.4891680293404708, 2.9113918448611926, 5.6460000191186275, 6.1720755834419236], [-2.1105470537154192, -1.921428740216423, -1.8456143073558788, 4.1100935639966307]], [[6.9926037933340677, -1.7808401370933433, 7.2205949626281196, 0.4122139344241651], [3.1771684083205791, 6.3047604534944437, 0.87964532595526412, 1.5327100526837416], [4.4303051254414108, 1.5038657450177464, 2.8123279258301883, 7.3633217108585676]]], [[[6.079797698849859, 3.2733209678263773, 2.5085701710885893, -0.33226600508897564], [-0.031009881328672773, 3.4033985277614658, 0.2010312097452065, 5.8597615714898623], [4.6637484329510102, 6.0603850445143799, 3.9639825363152479, 3.4631887307604172]], [[3.51123957308796, 3.238088995093567, 3.0431083147139715, 2.1915849551299926], [3.0599044580093082, 6.3642237253800626, 5.200713425456998, 3.8958102081908788], [-0.10952065343492912, 3.6684231983710784, -0.84854683682639021, 0.93725199930003544]]], [[[2.1763553654987948, -0.41743330761006536, 3.5702546714073025, 2.0113607982849926], [1.4744299860273458, 1.7782781125021394, 1.6025262917844829, 1.2642248375771494], [-1.3843448279873067, 7.0903562276438468, 4.7254377495581705, 3.1683066786387082]], [[2.8843954868674819, 3.6241763422479414, -0.09746872429329656, 6.112853809372103], [2.7676833795454892, 1.6869510606803866, 2.2621719544595855, 6.7260442408029881], [-0.2327539407407615, 0.58089938885653414, 1.6409411666908049, 6.6653127136854202]]]])
2078        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2079        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 2086  class Test_util_overloaded_binary_with_t Line 2086  class Test_util_overloaded_binary_with_t
2086        arg1.setTaggedValue(1,numarray.array([[[[3.4275496404270935, 1.1537395362139415, 4.359241778306636, -2.7956873451882904], [-0.57905750667620914, -1.4963390157180143, -1.0546590645254406, -0.60106896650343877], [2.4006800952787479, 1.6046540297517788, 3.3601603786265883, 0.012849540806637805]], [[3.6308664591201794, 0.19028810794039952, 3.6826698054572677, -4.4845402026276036], [-0.58192639991331063, -2.9051693400605574, -1.7742099133525722, -2.1559572966583063], [-1.7677449333712669, 3.3892288138670708, -0.86589132863376772, -2.1674350506515494]]], [[[4.3616447130022689, -1.3671103803034725, -4.1188908609134414, -2.10985376747576], [-2.198249892038584, 1.0265269002665081, -2.542133483398433, 4.4393130960272362], [2.7859993179084146, -0.38087906420919548, -1.6619343907139852, -4.5308017494556143]], [[-4.7515480793480345, 1.7382817373010093, 2.8977641251131914, -3.2913130914447217], [-0.41984372612900422, 1.6462696640680772, 0.99681798638913222, -4.8573493031921302], [-2.7943028597843309, -1.7984177902458964, -2.6921702498473046, 4.3733743180738038]]], [[[0.75333195636036621, -2.117631678772808, 1.9553735547204809, -2.9397756019429178], [4.0253539232471116, -0.67099660655985716, -4.0766290699129986, 2.4219228629964649], [-3.226477257261501, 2.4243676560286422, 1.68788169038812, -1.6838948467025983]], [[-4.9953466953627501, -4.8906431446689433, -2.4669191502700025, -0.91707314335864609], [-3.1394725703363777, 2.4689920763259732, -2.9952182306520658, 0.071409338916285314], [4.976415123142381, -2.0939008155336247, -3.6245017728257798, 1.6225161002674326]]]]))        arg1.setTaggedValue(1,numarray.array([[[[3.4275496404270935, 1.1537395362139415, 4.359241778306636, -2.7956873451882904], [-0.57905750667620914, -1.4963390157180143, -1.0546590645254406, -0.60106896650343877], [2.4006800952787479, 1.6046540297517788, 3.3601603786265883, 0.012849540806637805]], [[3.6308664591201794, 0.19028810794039952, 3.6826698054572677, -4.4845402026276036], [-0.58192639991331063, -2.9051693400605574, -1.7742099133525722, -2.1559572966583063], [-1.7677449333712669, 3.3892288138670708, -0.86589132863376772, -2.1674350506515494]]], [[[4.3616447130022689, -1.3671103803034725, -4.1188908609134414, -2.10985376747576], [-2.198249892038584, 1.0265269002665081, -2.542133483398433, 4.4393130960272362], [2.7859993179084146, -0.38087906420919548, -1.6619343907139852, -4.5308017494556143]], [[-4.7515480793480345, 1.7382817373010093, 2.8977641251131914, -3.2913130914447217], [-0.41984372612900422, 1.6462696640680772, 0.99681798638913222, -4.8573493031921302], [-2.7943028597843309, -1.7984177902458964, -2.6921702498473046, 4.3733743180738038]]], [[[0.75333195636036621, -2.117631678772808, 1.9553735547204809, -2.9397756019429178], [4.0253539232471116, -0.67099660655985716, -4.0766290699129986, 2.4219228629964649], [-3.226477257261501, 2.4243676560286422, 1.68788169038812, -1.6838948467025983]], [[-4.9953466953627501, -4.8906431446689433, -2.4669191502700025, -0.91707314335864609], [-3.1394725703363777, 2.4689920763259732, -2.9952182306520658, 0.071409338916285314], [4.976415123142381, -2.0939008155336247, -3.6245017728257798, 1.6225161002674326]]]]))
2087        arg1.expand()        arg1.expand()
2088        res=arg0-arg1        res=arg0-arg1
2089        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2090        ref=msk_ref*numarray.array([[[[3.4368069463082298, -1.493050691283357, 3.5844631204323214, -7.1725695562660823], [-2.9016590591800533, -5.205987468368984, -4.1881314930742555, 2.1559717192929044], [-1.8822309858472313, -3.2428526913496247, -6.1450095544754904, -3.0957357529343037]], [[2.1516832538824699, -4.4222951596663087, -0.61632581938798214, -0.062288477127943054], [5.0912636169785417, -1.9415724196417217, 7.4903713497316469, 2.7643715343320165], [0.77494699372630471, -6.6663864732827163, 2.8343658798282836, -0.22399389402395187]]], [[[-4.9055186154322259, 1.4565446929928587, 1.7411824542323338, -1.678307814202217], [-3.7397525707265888, -3.9394766955487119, 6.175409865068576, 5.6701018813584252], [4.4110818844242585, 1.2998623578518531, -1.6569622570446185, 0.030411145785850913]], [[-0.28601158642494973, 5.7409800811312692, -0.89875119019365535, 5.8103642311367336], [-2.5136164267634111, -7.6783553433344496, 6.6651376661488175, -0.01441839327953609], [2.0477327349486716, -1.3842452357640931, 4.9726655689914843, 3.1816056255409357]]], [[[1.7911076952143379, -4.7356860294883347, -3.6605067161597939, 8.15919195526347], [4.0760693761451634, -3.635404112909975, -0.87693324022126795, -3.4146450329736897], [-0.34540112731404538, 2.5433942833117049, 4.3357835685310242, 3.1006700557801135]], [[2.7211112444262935, -0.42819648618887918, 6.7143369490000833, -6.2894574914656483], [-5.5580386892673079, 9.1720767223367208, 0.97946507449517339, -2.83105946883405], [5.8139688155372893, -1.3119813388147952, 3.8169206056390061, 6.4751261752689961]]]])+(1.-msk_ref)*numarray.array([[[[-5.0267590817257446, -1.8597514521220253, -7.3987850904562267, 5.5766651050085612], [1.7577311389817103, 1.9805368487789918, -3.8191295023226686, 0.97217738983581725], [0.96067601567648175, -4.8884848924516957, -8.1921327654071057, -4.6241773418478935]], [[0.85207494240775006, -3.3055920755545776, -6.8631810130320776, 7.3437492123573822], [-3.7397069143187149, 4.387607462692662, 1.8064155167740532, 5.4869224966718058], [6.5574552233991614, 1.461668192597811, -2.5911223327028052, -1.2249229116970306]]], [[[-1.145419895402954, -2.0166432941315957, 4.5883960711431184, 0.54913071308106076], [5.5383520496382754, 2.2849592719479128, 5.8922470212246081, -8.487480690716783], [-1.8889123414190738, -2.5981812669357396, 6.6072704070854202, 7.2992122895584322]], [[2.1505560548094302, -2.426137991097459, 1.2833892112717553, 1.4339191647026501], [-1.6134000138471185, -2.27875510854465, 0.019182594629615579, 0.50492509121612894], [-1.1672405691579595, 2.9892906112641806, 0.25476547106123482, -7.2528164462379099]]], [[[0.87278548037166814, -0.59757376724449784, -2.3918120859847924, 4.2147117523997668], [-1.686121921398076, 5.2564506436305614, 8.2668341386341258, 0.77812862049622833], [6.4462717786584376, -3.3719506449352457, -0.80546124693978083, 3.0833225827449446]], [[4.1041354920248763, 9.4850422920826425, -0.93499696354552242, 1.6618763647181387], [0.36969777792149827, -1.1045834246468971, 6.5330992940366333, -4.883743609169632], [-0.30076714283946515, 0.32707704958159667, 6.0837544383793842, -2.5941692726998937]]]])        ref=msk_ref*numarray.array([[[[3.4368069463082298, -1.493050691283357, 3.5844631204323214, -7.1725695562660823], [-2.9016590591800533, -5.205987468368984, -4.1881314930742555, 2.1559717192929044], [-1.8822309858472313, -3.2428526913496247, -6.1450095544754904, -3.0957357529343037]], [[2.1516832538824699, -4.4222951596663087, -0.61632581938798214, -0.062288477127943054], [5.0912636169785417, -1.9415724196417217, 7.4903713497316469, 2.7643715343320165], [0.77494699372630471, -6.6663864732827163, 2.8343658798282836, -0.22399389402395187]]], [[[-4.9055186154322259, 1.4565446929928587, 1.7411824542323338, -1.678307814202217], [-3.7397525707265888, -3.9394766955487119, 6.175409865068576, 5.6701018813584252], [4.4110818844242585, 1.2998623578518531, -1.6569622570446185, 0.030411145785850913]], [[-0.28601158642494973, 5.7409800811312692, -0.89875119019365535, 5.8103642311367336], [-2.5136164267634111, -7.6783553433344496, 6.6651376661488175, -0.01441839327953609], [2.0477327349486716, -1.3842452357640931, 4.9726655689914843, 3.1816056255409357]]], [[[1.7911076952143379, -4.7356860294883347, -3.6605067161597939, 8.15919195526347], [4.0760693761451634, -3.635404112909975, -0.87693324022126795, -3.4146450329736897], [-0.34540112731404538, 2.5433942833117049, 4.3357835685310242, 3.1006700557801135]], [[2.7211112444262935, -0.42819648618887918, 6.7143369490000833, -6.2894574914656483], [-5.5580386892673079, 9.1720767223367208, 0.97946507449517339, -2.83105946883405], [5.8139688155372893, -1.3119813388147952, 3.8169206056390061, 6.4751261752689961]]]])+(1.-msk_ref)*numarray.array([[[[-5.0267590817257446, -1.8597514521220253, -7.3987850904562267, 5.5766651050085612], [1.7577311389817103, 1.9805368487789918, -3.8191295023226686, 0.97217738983581725], [0.96067601567648175, -4.8884848924516957, -8.1921327654071057, -4.6241773418478935]], [[0.85207494240775006, -3.3055920755545776, -6.8631810130320776, 7.3437492123573822], [-3.7397069143187149, 4.387607462692662, 1.8064155167740532, 5.4869224966718058], [6.5574552233991614, 1.461668192597811, -2.5911223327028052, -1.2249229116970306]]], [[[-1.145419895402954, -2.0166432941315957, 4.5883960711431184, 0.54913071308106076], [5.5383520496382754, 2.2849592719479128, 5.8922470212246081, -8.487480690716783], [-1.8889123414190738, -2.5981812669357396, 6.6072704070854202, 7.2992122895584322]], [[2.1505560548094302, -2.426137991097459, 1.2833892112717553, 1.4339191647026501], [-1.6134000138471185, -2.27875510854465, 0.019182594629615579, 0.50492509121612894], [-1.1672405691579595, 2.9892906112641806, 0.25476547106123482, -7.2528164462379099]]], [[[0.87278548037166814, -0.59757376724449784, -2.3918120859847924, 4.2147117523997668], [-1.686121921398076, 5.2564506436305614, 8.2668341386341258, 0.77812862049622833], [6.4462717786584376, -3.3719506449352457, -0.80546124693978083, 3.0833225827449446]], [[4.1041354920248763, 9.4850422920826425, -0.93499696354552242, 1.6618763647181387], [0.36969777792149827, -1.1045834246468971, 6.5330992940366333, -4.883743609169632], [-0.30076714283946515, 0.32707704958159667, 6.0837544383793842, -2.5941692726998937]]]])
2091        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2092        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 2099  class Test_util_overloaded_binary_with_t Line 2099  class Test_util_overloaded_binary_with_t
2099        arg1=Data(1.49330239803,self.functionspace)        arg1=Data(1.49330239803,self.functionspace)
2100        arg1.setTaggedValue(1,-0.394831269588)        arg1.setTaggedValue(1,-0.394831269588)
2101        res=arg0-arg1        res=arg0-arg1
2102        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2103        ref=msk_ref*(1.67771145449)+(1.-msk_ref)*(-4.33939592797)        ref=msk_ref*(1.67771145449)+(1.-msk_ref)*(-4.33939592797)
2104        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2105        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
# Line 2112  class Test_util_overloaded_binary_with_t Line 2112  class Test_util_overloaded_binary_with_t
2112        arg1=Data(numarray.array([4.9437145112959939, 2.3602255702550181]),self.functionspace)        arg1=Data(numarray.array([4.9437145112959939, 2.3602255702550181]),self.functionspace)
2113        arg1.setTaggedValue(1,numarray.array([4.495042735040661, 2.3596043462768872]))        arg1.setTaggedValue(1,numarray.array([4.495042735040661, 2.3596043462768872]))
2114        res=arg0-arg1        res=arg0-arg1
2115        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2116        ref=msk_ref*numarray.array([-3.0637937662581818, -0.48030482521720597])+(1.-msk_ref)*numarray.array([-2.4615147880153874, -0.32607639925161358])        ref=msk_ref*numarray.array([-3.0637937662581818, -0.48030482521720597])+(1.-msk_ref)*numarray.array([-2.4615147880153874, -0.32607639925161358])
2117        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2118        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 2125  class Test_util_overloaded_binary_with_t Line 2125  class Test_util_overloaded_binary_with_t
2125        arg1=Data(numarray.array([[2.9607349389540447, 1.2346562919204924, 3.2248067687088806, 4.410431430682042, -1.4385503346776818], [2.8801282203104384, -3.3626154777806394, -1.9138065252059389, -0.77082418824998022, 1.8543421030467533], [-4.8003280788129343, -1.990793178189584, -4.334780022136421, 4.4298037487619695, 4.5074438698269077], [-4.8731182229950631, 0.82250560532754236, 2.0839604460045393, 0.91449348838600741, 4.1979286714627353]]),self.functionspace)        arg1=Data(numarray.array([[2.9607349389540447, 1.2346562919204924, 3.2248067687088806, 4.410431430682042, -1.4385503346776818], [2.8801282203104384, -3.3626154777806394, -1.9138065252059389, -0.77082418824998022, 1.8543421030467533], [-4.8003280788129343, -1.990793178189584, -4.334780022136421, 4.4298037487619695, 4.5074438698269077], [-4.8731182229950631, 0.82250560532754236, 2.0839604460045393, 0.91449348838600741, 4.1979286714627353]]),self.functionspace)
2126        arg1.setTaggedValue(1,numarray.array([[1.8306776016002413, -3.4320614753317322, 0.70843103988525513, 0.16581736115784285, -3.4735853602523017], [-0.84345724935692257, 0.56922138789655108, 3.4748227446778461, 1.9066801555076696, -4.4494240875894597], [-2.703721845369349, 3.7477639849749451, 0.79474041105253246, 1.8253488488760024, -0.51691832141356642], [2.9111241352978068, -0.35741271997786583, 2.9591137166025643, -1.8084855943001701, -1.734196333658109]]))        arg1.setTaggedValue(1,numarray.array([[1.8306776016002413, -3.4320614753317322, 0.70843103988525513, 0.16581736115784285, -3.4735853602523017], [-0.84345724935692257, 0.56922138789655108, 3.4748227446778461, 1.9066801555076696, -4.4494240875894597], [-2.703721845369349, 3.7477639849749451, 0.79474041105253246, 1.8253488488760024, -0.51691832141356642], [2.9111241352978068, -0.35741271997786583, 2.9591137166025643, -1.8084855943001701, -1.734196333658109]]))
2127        res=arg0-arg1        res=arg0-arg1
2128        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2129        ref=msk_ref*numarray.array([[-6.3029032566893735, -4.5768246096558212, -6.5669750864442094, -7.7525997484173708, -1.903617983057647], [-6.2222965380457671, 0.020447160045310664, -1.4283617925293899, -2.5713441294853485, -5.196510420782082], [1.4581597610776056, -1.3513751395457447, 0.99261170440109225, -7.7719720664972982, -7.8496121875622364], [1.5309499052597344, -4.1646739230628711, -5.4261287637398681, -4.2566618061213362, -7.540096989198064]])+(1.-msk_ref)*numarray.array([[-3.5027029727779579, 1.7600361041540156, -2.3804564110629718, -1.8378427323355595, 1.801559989074585], [-0.82856812182079409, -2.2412467590742677, -5.1468481158555628, -3.5787055266853862, 2.7773987164117431], [1.0316964741916324, -5.4197893561526618, -2.4667657822302491, -3.497374220053719, -1.1551070497641502], [-4.5831495064755234, -1.3146126511998508, -4.6311390877802809, 0.13646022312245343, 0.062170962480392333]])        ref=msk_ref*numarray.array([[-6.3029032566893735, -4.5768246096558212, -6.5669750864442094, -7.7525997484173708, -1.903617983057647], [-6.2222965380457671, 0.020447160045310664, -1.4283617925293899, -2.5713441294853485, -5.196510420782082], [1.4581597610776056, -1.3513751395457447, 0.99261170440109225, -7.7719720664972982, -7.8496121875622364], [1.5309499052597344, -4.1646739230628711, -5.4261287637398681, -4.2566618061213362, -7.540096989198064]])+(1.-msk_ref)*numarray.array([[-3.5027029727779579, 1.7600361041540156, -2.3804564110629718, -1.8378427323355595, 1.801559989074585], [-0.82856812182079409, -2.2412467590742677, -5.1468481158555628, -3.5787055266853862, 2.7773987164117431], [1.0316964741916324, -5.4197893561526618, -2.4667657822302491, -3.497374220053719, -1.1551070497641502], [-4.5831495064755234, -1.3146126511998508, -4.6311390877802809, 0.13646022312245343, 0.062170962480392333]])
2130        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2131        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 2138  class Test_util_overloaded_binary_with_t Line 2138  class Test_util_overloaded_binary_with_t
2138        arg1=Data(numarray.array([[[-0.38859363912276379, -3.8655940437693506], [1.2372058043757503, -3.6981890814624419]], [[-1.7110370764060532, 4.7633455767824433], [4.220015693408353, -1.2227453197124949]], [[-2.4261547829344088, 2.2943927957934021], [3.6357399642456567, -2.5486037966857777]], [[4.5562345353097378, -1.0313978065887697], [-1.0137739634170373, 0.40119430675345136]], [[2.3016542394417536, 3.0664555484251146], [-3.0512752382819919, -0.36799778867223942]], [[2.0723061564323286, -0.64109521299597283], [3.107404153629103, -3.9281332513057512]]]),self.functionspace)        arg1=Data(numarray.array([[[-0.38859363912276379, -3.8655940437693506], [1.2372058043757503, -3.6981890814624419]], [[-1.7110370764060532, 4.7633455767824433], [4.220015693408353, -1.2227453197124949]], [[-2.4261547829344088, 2.2943927957934021], [3.6357399642456567, -2.5486037966857777]], [[4.5562345353097378, -1.0313978065887697], [-1.0137739634170373, 0.40119430675345136]], [[2.3016542394417536, 3.0664555484251146], [-3.0512752382819919, -0.36799778867223942]], [[2.0723061564323286, -0.64109521299597283], [3.107404153629103, -3.9281332513057512]]]),self.functionspace)
2139        arg1.setTaggedValue(1,numarray.array([[[-1.2856101096388626, 1.3680707455500389], [-2.4186465039993754, 2.4960568170568376]], [[0.82253804470592762, 0.53980908351343793], [3.6011972376632748, -4.1912506045579869]], [[0.47746443496173008, 2.7894584759997265], [4.9390109080200162, 0.70233564372741508]], [[-4.5214911128029591, 3.312738538531967], [-4.5022471680501308, 0.58369234117255964]], [[-0.82168273117425006, 3.9294867883898981], [-1.2964113826365664, -4.4986385574468093]], [[-4.8892869138604302, 4.3034396899953968], [-3.0618673306030186, 4.6842350868401219]]]))        arg1.setTaggedValue(1,numarray.array([[[-1.2856101096388626, 1.3680707455500389], [-2.4186465039993754, 2.4960568170568376]], [[0.82253804470592762, 0.53980908351343793], [3.6011972376632748, -4.1912506045579869]], [[0.47746443496173008, 2.7894584759997265], [4.9390109080200162, 0.70233564372741508]], [[-4.5214911128029591, 3.312738538531967], [-4.5022471680501308, 0.58369234117255964]], [[-0.82168273117425006, 3.9294867883898981], [-1.2964113826365664, -4.4986385574468093]], [[-4.8892869138604302, 4.3034396899953968], [-3.0618673306030186, 4.6842350868401219]]]))
2140        res=arg0-arg1        res=arg0-arg1
2141        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2142        ref=msk_ref*numarray.array([[[0.63081886915650109, 4.1078192738030879], [-0.99498057434201304, 3.9404143114961792]], [[1.9532623064397905, -4.521120346748706], [-3.9777904633746157, 1.4649705497462322]], [[2.6683800129681461, -2.0521675657596647], [-3.3935147342119194, 2.790829026719515]], [[-4.3140093052760005, 1.273623036622507], [1.2559991934507746, -0.15896907671971405]], [[-2.0594290094080163, -2.8242303183913773], [3.2935004683157292, 0.61022301870597673]], [[-1.8300809263985913, 0.88332044302971013], [-2.8651789235953657, 4.1703584813394885]]])+(1.-msk_ref)*numarray.array([[[3.1890953053791744, 0.53541445019027289], [4.3221316997396872, -0.59257162131652574]], [[1.0809471510343842, 1.3636761122268739], [-1.697712041922963, 6.0947358002982988]], [[1.4260207607785818, -0.88597328025941469], [-3.0355257122797044, 1.2011495520128967]], [[6.424976308543271, -1.4092533427916552], [6.4057323637904426, 1.3197928545677522]], [[2.7251679269145619, -2.0260015926495862], [3.1998965783768782, 6.4021237531871211]], [[6.7927721096007421, -2.399954494255085], [4.9653525263433309, -2.7807498910998101]]])        ref=msk_ref*numarray.array([[[0.63081886915650109, 4.1078192738030879], [-0.99498057434201304, 3.9404143114961792]], [[1.9532623064397905, -4.521120346748706], [-3.9777904633746157, 1.4649705497462322]], [[2.6683800129681461, -2.0521675657596647], [-3.3935147342119194, 2.790829026719515]], [[-4.3140093052760005, 1.273623036622507], [1.2559991934507746, -0.15896907671971405]], [[-2.0594290094080163, -2.8242303183913773], [3.2935004683157292, 0.61022301870597673]], [[-1.8300809263985913, 0.88332044302971013], [-2.8651789235953657, 4.1703584813394885]]])+(1.-msk_ref)*numarray.array([[[3.1890953053791744, 0.53541445019027289], [4.3221316997396872, -0.59257162131652574]], [[1.0809471510343842, 1.3636761122268739], [-1.697712041922963, 6.0947358002982988]], [[1.4260207607785818, -0.88597328025941469], [-3.0355257122797044, 1.2011495520128967]], [[6.424976308543271, -1.4092533427916552], [6.4057323637904426, 1.3197928545677522]], [[2.7251679269145619, -2.0260015926495862], [3.1998965783768782, 6.4021237531871211]], [[6.7927721096007421, -2.399954494255085], [4.9653525263433309, -2.7807498910998101]]])
2143        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2144        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 2151  class Test_util_overloaded_binary_with_t Line 2151  class Test_util_overloaded_binary_with_t
2151        arg1=Data(numarray.array([[[[1.1070967571335197, 2.425506495267765, 1.3626853478931817, -2.3231092040501133], [0.96095778699872447, 2.78158480325955, -3.3493051495548021, -0.8778143616266556], [2.2536799630205975, 1.5662885951200503, 2.949840775878938, 4.8973599808545725]], [[-3.9597592325552555, -3.6723875629521938, -4.0088513759967617, 1.2436693006020674], [1.0962965894721837, -4.019786434400574, -1.2708576031681384, -0.65369549114807768], [4.4878601358938681, -3.0937496673014508, -0.91297627821981031, 1.871300603481405]]], [[[-2.9748408617998123, -4.9928100290225776, -3.4156665951840894, 2.3564538027176898], [1.7013230531922288, -2.0167416231886683, 4.2431267291968062, 3.1787413747984097], [-2.5333762579652097, -1.0208631923447173, 4.8003725080831359, 4.8990328227271966]], [[2.2124768117878446, -3.3466686848835838, -3.7739682945651545, -1.7545581357733142], [-3.1358589036073048, -3.9825618915958696, -4.1239970966405091, 4.7396008354038646], [-1.028506989413259, 1.9320919845912945, -0.97488100363227836, -1.1945703437434707]]], [[[-4.2154741282819543, -1.3065968270118091, 1.4373333249271338, -0.74992889556488951], [2.2292676071590947, -0.96157224278878672, -1.8089712098656809, -1.5751354701120679], [-3.7080742250116594, -2.6594392898091481, -1.1622477296056566, -3.7987151048982923]], [[-4.7744791605666483, 4.8761231577890491, 4.4144999991317455, -4.3167310937852434], [-4.2860032609091263, 1.1007405879828935, -4.7056427379011367, -3.2538412733918953], [-4.9117190563275521, -4.3074109840732682, 1.4166344901831271, 1.6919996524343395]]]]),self.functionspace)        arg1=Data(numarray.array([[[[1.1070967571335197, 2.425506495267765, 1.3626853478931817, -2.3231092040501133], [0.96095778699872447, 2.78158480325955, -3.3493051495548021, -0.8778143616266556], [2.2536799630205975, 1.5662885951200503, 2.949840775878938, 4.8973599808545725]], [[-3.9597592325552555, -3.6723875629521938, -4.0088513759967617, 1.2436693006020674], [1.0962965894721837, -4.019786434400574, -1.2708576031681384, -0.65369549114807768], [4.4878601358938681, -3.0937496673014508, -0.91297627821981031, 1.871300603481405]]], [[[-2.9748408617998123, -4.9928100290225776, -3.4156665951840894, 2.3564538027176898], [1.7013230531922288, -2.0167416231886683, 4.2431267291968062, 3.1787413747984097], [-2.5333762579652097, -1.0208631923447173, 4.8003725080831359, 4.8990328227271966]], [[2.2124768117878446, -3.3466686848835838, -3.7739682945651545, -1.7545581357733142], [-3.1358589036073048, -3.9825618915958696, -4.1239970966405091, 4.7396008354038646], [-1.028506989413259, 1.9320919845912945, -0.97488100363227836, -1.1945703437434707]]], [[[-4.2154741282819543, -1.3065968270118091, 1.4373333249271338, -0.74992889556488951], [2.2292676071590947, -0.96157224278878672, -1.8089712098656809, -1.5751354701120679], [-3.7080742250116594, -2.6594392898091481, -1.1622477296056566, -3.7987151048982923]], [[-4.7744791605666483, 4.8761231577890491, 4.4144999991317455, -4.3167310937852434], [-4.2860032609091263, 1.1007405879828935, -4.7056427379011367, -3.2538412733918953], [-4.9117190563275521, -4.3074109840732682, 1.4166344901831271, 1.6919996524343395]]]]),self.functionspace)
2152        arg1.setTaggedValue(1,numarray.array([[[[4.6826630936804392, -3.4479316311819543, -0.46138304935556373, 2.5724304159739644], [-3.3476980832889347, -4.4258287083342402, 2.4874045927070201, -4.8604934104112454], [1.0406108018117353, -4.1341101769631958, 1.4170109525076846, -1.4087374088326277]], [[-3.1671171563985681, -4.0170648986562387, -2.0120400672785244, -4.3208315709083447], [2.053090278756903, 0.51807780568038364, 3.8577526447177348, 2.6816106397201871], [-0.57722141083414691, 2.6734024608325155, 2.2431285412305915, -4.4536445759482408]]], [[[-4.9420814555701122, 3.6185027437996204, 3.1267314573456773, 2.8606940502356135], [-3.0170509356636535, 0.1133467426763346, -3.2570011018490099, -4.9001968270618761], [-3.8196075451416567, -4.316644209520919, -4.9037109579078741, -1.3743398848466546]], [[-0.59101363421098707, 3.2524103126382151, -0.25703237818845004, 2.7572769382975508], [-3.3738171874601042, -1.1691381153059321, -3.3978395916867585, 4.7016453562028975], [-0.073980865635848048, -2.4358233768289561, 0.30156336202946221, -0.057291833973129869]]], [[[2.6386675246844327, -3.383548823136552, 0.96688199605574621, 3.5605519584347451], [0.65967445196876895, 0.65927600216991777, -4.3262284188237965, 1.9731595501032642], [0.50912095748670705, -3.1187297696837257, -0.72419329691201462, -3.1413743098870031]], [[3.3832674891640941, -1.1782943800921233, -1.9621839559354504, -1.7461881185529071], [2.97445213838391, -3.1665653054900678, 3.3458810843013289, -3.9798554205797165], [4.7661884747654497, 0.88923319350258367, -0.55854949766054407, -3.1278032901325115]]]]))        arg1.setTaggedValue(1,numarray.array([[[[4.6826630936804392, -3.4479316311819543, -0.46138304935556373, 2.5724304159739644], [-3.3476980832889347, -4.4258287083342402, 2.4874045927070201, -4.8604934104112454], [1.0406108018117353, -4.1341101769631958, 1.4170109525076846, -1.4087374088326277]], [[-3.1671171563985681, -4.0170648986562387, -2.0120400672785244, -4.3208315709083447], [2.053090278756903, 0.51807780568038364, 3.8577526447177348, 2.6816106397201871], [-0.57722141083414691, 2.6734024608325155, 2.2431285412305915, -4.4536445759482408]]], [[[-4.9420814555701122, 3.6185027437996204, 3.1267314573456773, 2.8606940502356135], [-3.0170509356636535, 0.1133467426763346, -3.2570011018490099, -4.9001968270618761], [-3.8196075451416567, -4.316644209520919, -4.9037109579078741, -1.3743398848466546]], [[-0.59101363421098707, 3.2524103126382151, -0.25703237818845004, 2.7572769382975508], [-3.3738171874601042, -1.1691381153059321, -3.3978395916867585, 4.7016453562028975], [-0.073980865635848048, -2.4358233768289561, 0.30156336202946221, -0.057291833973129869]]], [[[2.6386675246844327, -3.383548823136552, 0.96688199605574621, 3.5605519584347451], [0.65967445196876895, 0.65927600216991777, -4.3262284188237965, 1.9731595501032642], [0.50912095748670705, -3.1187297696837257, -0.72419329691201462, -3.1413743098870031]], [[3.3832674891640941, -1.1782943800921233, -1.9621839559354504, -1.7461881185529071], [2.97445213838391, -3.1665653054900678, 3.3458810843013289, -3.9798554205797165], [4.7661884747654497, 0.88923319350258367, -0.55854949766054407, -3.1278032901325115]]]]))
2153        res=arg0-arg1        res=arg0-arg1
2154        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2155        ref=msk_ref*numarray.array([[[[-3.1820766568174959, -4.5004863949517411, -3.4376652475771579, 0.24812930436613723], [-3.0359376866827006, -4.8565647029435262, 1.274325249870826, -1.1971655380573205], [-4.3286598627045736, -3.6412684948040264, -5.0248206755629141, -6.9723398805385486]], [[1.8847793328712794, 1.5974076632682177, 1.9338714763127856, -3.3186492002860435], [-3.1712764891561598, 1.9448065347165979, -0.80412229651583766, -1.4212844085358984], [-6.5628400355778442, 1.0187697676174747, -1.1620036214641658, -3.9462805031653811]]], [[[0.89986096211583622, 2.9178301293386015, 1.3406866955001133, -4.4314337024016659], [-3.7763029528762049, -0.058238276495307773, -6.3181066288807823, -5.2537212744823858], [0.4583963582812336, -1.0541167073392588, -6.875352407767112, -6.9740127224111728]], [[-4.2874567114718207, 1.2716887851996077, 1.6989883948811784, -0.32042176391066191], [1.0608790039233287, 1.9075819919118935, 2.0490171969565329, -6.8145807350878407], [-1.0464729102707171, -4.0070718842752706, -1.1000988960516977, -0.88040955594050541]]], [[[2.1404942285979782, -0.76838307267216699, -3.51231322461111, -1.3250510041190866], [-4.3042475068430708, -1.1134076568951894, -0.26600868981829517, -0.49984442957190822], [1.6330943253276833, 0.58445939012517201, -0.91273217007831953, 1.7237352052143162]], [[2.6994992608826722, -6.9511030574730253, -6.4894798988157216, 2.2417511941012673], [2.2110233612251502, -3.1757204876668697, 2.6306628382171606, 1.1788613737079192], [2.836739156643576, 2.2324310843892921, -3.4916143898671033, -3.7669795521183156]]]])+(1.-msk_ref)*numarray.array([[[[-9.1393450780410923, -1.0087503531786988, -3.9952989350050894, -7.0291124003346175], [-1.1089839010717184, -0.030853276026412857, -6.9440865770676732, 0.40381142605059228], [-5.4972927861723884, -0.32257180739745728, -5.8736929368683377, -3.0479445755280254]], [[-1.289564827962085, -0.43961708570441438, -2.4446419170821287, -0.13585041345230842], [-6.5097722631175561, -4.9747597900410367, -8.3144346290783879, -7.1382926240808402], [-3.8794605735265062, -7.1300844451931686, -6.6998105255912446, -0.0030374084124122902]]], [[[0.48539947120945914, -8.0751847281602736, -7.5834134417063304, -7.3173760345962666], [-1.4396310486969996, -4.5700287270369877, -1.1996808825116432, 0.44351484270122299], [-0.63707443921899642, -0.14003777483973412, 0.44702897354722104, -3.0823420995139985]], [[-3.865668350149666, -7.7090922969988682, -4.1996496061722031, -7.2139589226582039], [-1.0828647969005489, -3.287543869054721, -1.0588423926738946, -9.1583273405635506], [-4.3827011187248051, -2.020858607531697, -4.7582453463901153, -4.3993901503875232]]], [[[-7.0953495090450858, -1.0731331612241011, -5.4235639804163993, -8.0172339427953982], [-5.1163564363294221, -5.1159579865305709, -0.13045356553685661, -6.4298415344639173], [-4.9658029418473602, -1.3379522146769274, -3.7324886874486385, -1.31530767447365]], [[-7.8399494735247472, -3.2783876042685298, -2.4944980284252027, -2.710493865807746], [-7.4311341227445631, -1.2901166788705853, -7.802563068661982, -0.47682656378093657], [-9.2228704591261028, -5.3459151778632368, -3.898132486700109, -1.3288786942281416]]]])        ref=msk_ref*numarray.array([[[[-3.1820766568174959, -4.5004863949517411, -3.4376652475771579, 0.24812930436613723], [-3.0359376866827006, -4.8565647029435262, 1.274325249870826, -1.1971655380573205], [-4.3286598627045736, -3.6412684948040264, -5.0248206755629141, -6.9723398805385486]], [[1.8847793328712794, 1.5974076632682177, 1.9338714763127856, -3.3186492002860435], [-3.1712764891561598, 1.9448065347165979, -0.80412229651583766, -1.4212844085358984], [-6.5628400355778442, 1.0187697676174747, -1.1620036214641658, -3.9462805031653811]]], [[[0.89986096211583622, 2.9178301293386015, 1.3406866955001133, -4.4314337024016659], [-3.7763029528762049, -0.058238276495307773, -6.3181066288807823, -5.2537212744823858], [0.4583963582812336, -1.0541167073392588, -6.875352407767112, -6.9740127224111728]], [[-4.2874567114718207, 1.2716887851996077, 1.6989883948811784, -0.32042176391066191], [1.0608790039233287, 1.9075819919118935, 2.0490171969565329, -6.8145807350878407], [-1.0464729102707171, -4.0070718842752706, -1.1000988960516977, -0.88040955594050541]]], [[[2.1404942285979782, -0.76838307267216699, -3.51231322461111, -1.3250510041190866], [-4.3042475068430708, -1.1134076568951894, -0.26600868981829517, -0.49984442957190822], [1.6330943253276833, 0.58445939012517201, -0.91273217007831953, 1.7237352052143162]], [[2.6994992608826722, -6.9511030574730253, -6.4894798988157216, 2.2417511941012673], [2.2110233612251502, -3.1757204876668697, 2.6306628382171606, 1.1788613737079192], [2.836739156643576, 2.2324310843892921, -3.4916143898671033, -3.7669795521183156]]]])+(1.-msk_ref)*numarray.array([[[[-9.1393450780410923, -1.0087503531786988, -3.9952989350050894, -7.0291124003346175], [-1.1089839010717184, -0.030853276026412857, -6.9440865770676732, 0.40381142605059228], [-5.4972927861723884, -0.32257180739745728, -5.8736929368683377, -3.0479445755280254]], [[-1.289564827962085, -0.43961708570441438, -2.4446419170821287, -0.13585041345230842], [-6.5097722631175561, -4.9747597900410367, -8.3144346290783879, -7.1382926240808402], [-3.8794605735265062, -7.1300844451931686, -6.6998105255912446, -0.0030374084124122902]]], [[[0.48539947120945914, -8.0751847281602736, -7.5834134417063304, -7.3173760345962666], [-1.4396310486969996, -4.5700287270369877, -1.1996808825116432, 0.44351484270122299], [-0.63707443921899642, -0.14003777483973412, 0.44702897354722104, -3.0823420995139985]], [[-3.865668350149666, -7.7090922969988682, -4.1996496061722031, -7.2139589226582039], [-1.0828647969005489, -3.287543869054721, -1.0588423926738946, -9.1583273405635506], [-4.3827011187248051, -2.020858607531697, -4.7582453463901153, -4.3993901503875232]]], [[[-7.0953495090450858, -1.0731331612241011, -5.4235639804163993, -8.0172339427953982], [-5.1163564363294221, -5.1159579865305709, -0.13045356553685661, -6.4298415344639173], [-4.9658029418473602, -1.3379522146769274, -3.7324886874486385, -1.31530767447365]], [[-7.8399494735247472, -3.2783876042685298, -2.4944980284252027, -2.710493865807746], [-7.4311341227445631, -1.2901166788705853, -7.802563068661982, -0.47682656378093657], [-9.2228704591261028, -5.3459151778632368, -3.898132486700109, -1.3288786942281416]]]])
2156        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2157        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 2164  class Test_util_overloaded_binary_with_t Line 2164  class Test_util_overloaded_binary_with_t
2164        arg1=Data(4.16702373077,self.functionspace)        arg1=Data(4.16702373077,self.functionspace)
2165        arg1.setTaggedValue(1,-3.94348061009)        arg1.setTaggedValue(1,-3.94348061009)
2166        res=arg0-arg1        res=arg0-arg1
2167        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2168        ref=msk_ref*numarray.array([-3.5839175852129719, -8.9650730315430351])+(1.-msk_ref)*numarray.array([-0.59283423932806967, 1.6325189846706856])        ref=msk_ref*numarray.array([-3.5839175852129719, -8.9650730315430351])+(1.-msk_ref)*numarray.array([-0.59283423932806967, 1.6325189846706856])
2169        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2170        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 2177  class Test_util_overloaded_binary_with_t Line 2177  class Test_util_overloaded_binary_with_t
2177        arg1=Data(numarray.array([-0.90426980258475353, -1.4566496238880644]),self.functionspace)        arg1=Data(numarray.array([-0.90426980258475353, -1.4566496238880644]),self.functionspace)
2178        arg1.setTaggedValue(1,numarray.array([3.4486204702499172, 4.6383573932787581]))        arg1.setTaggedValue(1,numarray.array([3.4486204702499172, 4.6383573932787581]))
2179        res=arg0-arg1        res=arg0-arg1
2180        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2181        ref=msk_ref*numarray.array([1.2009217327177115, 4.4961602333081361])+(1.-msk_ref)*numarray.array([-4.4870065989331103, -8.6319408503866963])        ref=msk_ref*numarray.array([1.2009217327177115, 4.4961602333081361])+(1.-msk_ref)*numarray.array([-4.4870065989331103, -8.6319408503866963])
2182        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2183        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 2190  class Test_util_overloaded_binary_with_t Line 2190  class Test_util_overloaded_binary_with_t
2190        arg1=Data(2.05779568301,self.functionspace)        arg1=Data(2.05779568301,self.functionspace)
2191        arg1.setTaggedValue(1,2.00554352282)        arg1.setTaggedValue(1,2.00554352282)
2192        res=arg0-arg1        res=arg0-arg1
2193        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2194        ref=msk_ref*numarray.array([[0.84478094602043186, -3.9803105457243637, -2.8556905286945211, -5.5242339247127079, -5.1463700557565302], [-5.8105093758190582, -6.2042584749484693, -1.6663389118388006, -6.3379538659449768, -2.3639305932475017], [-5.5793395523618532, -2.4078430989559845, -2.2243619696291166, -1.7292016809362547, -5.5451484310926835], [0.87088860637717325, 0.88732198576039867, -5.8044690079910826, -6.471153959934119, -6.5105001648697662]])+(1.-msk_ref)*numarray.array([[1.7682496381531294, 1.1863148506942274, -0.9188755710454144, -2.1763070890234291, -3.5056134823943408], [-1.0393046981184053, -1.6072319798424868, 1.9213021113332029, -5.4602871529865631, 2.6686247145676099], [-4.4999469455116863, 0.27877979321078783, -4.9545062844114325, 1.0290586127857519, 1.046194222305127], [0.81883125937773649, -6.5163326370518222, 1.9493882476733031, 0.28347196447163459, -4.8705808318277466]])        ref=msk_ref*numarray.array([[0.84478094602043186, -3.9803105457243637, -2.8556905286945211, -5.5242339247127079, -5.1463700557565302], [-5.8105093758190582, -6.2042584749484693, -1.6663389118388006, -6.3379538659449768, -2.3639305932475017], [-5.5793395523618532, -2.4078430989559845, -2.2243619696291166, -1.7292016809362547, -5.5451484310926835], [0.87088860637717325, 0.88732198576039867, -5.8044690079910826, -6.471153959934119, -6.5105001648697662]])+(1.-msk_ref)*numarray.array([[1.7682496381531294, 1.1863148506942274, -0.9188755710454144, -2.1763070890234291, -3.5056134823943408], [-1.0393046981184053, -1.6072319798424868, 1.9213021113332029, -5.4602871529865631, 2.6686247145676099], [-4.4999469455116863, 0.27877979321078783, -4.9545062844114325, 1.0290586127857519, 1.046194222305127], [0.81883125937773649, -6.5163326370518222, 1.9493882476733031, 0.28347196447163459, -4.8705808318277466]])
2195        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2196        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 2203  class Test_util_overloaded_binary_with_t Line 2203  class Test_util_overloaded_binary_with_t
2203        arg1=Data(numarray.array([[-3.6969039900763532, 0.63754561218925776, -0.26377189998807715, -2.0296015927880795, -3.5494373015120342], [0.30373691147410398, -4.6479396763365841, 3.2422313872139092, -0.48134778786284027, -1.4246001457248747], [1.9812097178834716, -2.6665688788095188, 3.0843892824777335, 3.0579320843705897, -2.2318898317497093], [2.0389547451005532, -3.61769571494328, -1.8918821138452326, -3.453245233672174, -2.2647814249829921]]),self.functionspace)        arg1=Data(numarray.array([[-3.6969039900763532, 0.63754561218925776, -0.26377189998807715, -2.0296015927880795, -3.5494373015120342], [0.30373691147410398, -4.6479396763365841, 3.2422313872139092, -0.48134778786284027, -1.4246001457248747], [1.9812097178834716, -2.6665688788095188, 3.0843892824777335, 3.0579320843705897, -2.2318898317497093], [2.0389547451005532, -3.61769571494328, -1.8918821138452326, -3.453245233672174, -2.2647814249829921]]),self.functionspace)
2204        arg1.setTaggedValue(1,numarray.array([[4.8792902901253719, 3.778008919866819, 2.1152788558614439, -4.1948201175985407, -3.0213949315898425], [-0.8238796084134794, -0.35562909163246381, -3.5669602400497578, 0.60269792932727828, -4.6592704686812469], [-1.357746098824828, 1.3226298581827223, 3.2383983210723262, -4.4884046897579957, 1.8888299746954598], [0.19251750716918359, -3.0145207884350809, 2.6531224469641748, 4.916822506765774, 3.6755746050181735]]))        arg1.setTaggedValue(1,numarray.array([[4.8792902901253719, 3.778008919866819, 2.1152788558614439, -4.1948201175985407, -3.0213949315898425], [-0.8238796084134794, -0.35562909163246381, -3.5669602400497578, 0.60269792932727828, -4.6592704686812469], [-1.357746098824828, 1.3226298581827223, 3.2383983210723262, -4.4884046897579957, 1.8888299746954598], [0.19251750716918359, -3.0145207884350809, 2.6531224469641748, 4.916822506765774, 3.6755746050181735]]))
2205        res=arg0-arg1        res=arg0-arg1
2206        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2207        ref=msk_ref*numarray.array([[2.9808763603453423, 0.15752013830907696, -3.0994268272940548, -2.941210486143504, -0.27320410091504632], [-0.4204966709860356, 1.865214487354506, -0.55560516783880498, -0.3237727351787365, 5.6279491549836544], [-6.455468215954526, 1.1787426773023224, -0.3652729489395119, -1.0090025940570815, 6.0712150878275004], [-3.1664017327504714, 7.6935952155096574, 3.1139115229469816, 3.6855730183313771, -0.052225223874874604]])+(1.-msk_ref)*numarray.array([[-2.1237955402630648, -6.0482068748780708, 2.0030592469908655, 0.9128020932313281, 7.2673912716097036], [-1.0604789459129824, 2.1565451466199477, 7.7535362078862438, -2.9035755109908479, 7.2889018589771029], [3.9938742126949194, 0.1109170335811962, -7.713898572400006, 8.0237331825069518, -3.1904090219883345], [-0.67962051640539833, 7.5433749282548073, -2.3481296554385835, -0.9506184391339314, -4.5560332365060816]])        ref=msk_ref*numarray.array([[2.9808763603453423, 0.15752013830907696, -3.0994268272940548, -2.941210486143504, -0.27320410091504632], [-0.4204966709860356, 1.865214487354506, -0.55560516783880498, -0.3237727351787365, 5.6279491549836544], [-6.455468215954526, 1.1787426773023224, -0.3652729489395119, -1.0090025940570815, 6.0712150878275004], [-3.1664017327504714, 7.6935952155096574, 3.1139115229469816, 3.6855730183313771, -0.052225223874874604]])+(1.-msk_ref)*numarray.array([[-2.1237955402630648, -6.0482068748780708, 2.0030592469908655, 0.9128020932313281, 7.2673912716097036], [-1.0604789459129824, 2.1565451466199477, 7.7535362078862438, -2.9035755109908479, 7.2889018589771029], [3.9938742126949194, 0.1109170335811962, -7.713898572400006, 8.0237331825069518, -3.1904090219883345], [-0.67962051640539833, 7.5433749282548073, -2.3481296554385835, -0.9506184391339314, -4.5560332365060816]])
2208        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2209        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 2216  class Test_util_overloaded_binary_with_t Line 2216  class Test_util_overloaded_binary_with_t
2216        arg1=Data(-2.17232750985,self.functionspace)        arg1=Data(-2.17232750985,self.functionspace)
2217        arg1.setTaggedValue(1,0.886498918103)        arg1.setTaggedValue(1,0.886498918103)
2218        res=arg0-arg1        res=arg0-arg1
2219        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2220        ref=msk_ref*numarray.array([[[7.0187543335370908, 7.1469128532071871], [3.727722922150476, 3.2701923957377996]], [[1.4965796621442742, 6.7445211741961497], [6.1204267466682953, 1.6531377356286727]], [[-0.0010505229917732173, 1.4935852887132643], [2.9263808049170938, -2.8010125723765995]], [[4.1098418537497565, 5.5801382750900164], [1.8704941253776735, -0.51100871525967317]], [[-2.8048871123895793, 6.3981205897035185], [5.09750232641266, 0.80451511093291739]], [[-1.7789778258353373, 6.4295861791429942], [5.7363032110304175, 4.4157213645276086]]])+(1.-msk_ref)*numarray.array([[[-1.8624876905807382, 3.6261632430220772], [-4.8660392938050538, -0.025915495239449804]], [[2.0867805979612299, 3.1178902787523235], [-5.0606859744494077, -1.2190244217834323]], [[3.9167106140026569, 0.67338347586059122], [0.33910054432991021, 1.616594533004486]], [[-2.5516018540908165, -5.8856019995459556], [3.3393452199251286, 2.7913444546890744]], [[0.060862280547588909, 1.3836582454977879], [-5.0010476224822513, -2.1742372369401926]], [[-0.30377505749153677, -3.2789400926825039], [-4.0730226522518835, 0.97867421150789546]]])        ref=msk_ref*numarray.array([[[7.0187543335370908, 7.1469128532071871], [3.727722922150476, 3.2701923957377996]], [[1.4965796621442742, 6.7445211741961497], [6.1204267466682953, 1.6531377356286727]], [[-0.0010505229917732173, 1.4935852887132643], [2.9263808049170938, -2.8010125723765995]], [[4.1098418537497565, 5.5801382750900164], [1.8704941253776735, -0.51100871525967317]], [[-2.8048871123895793, 6.3981205897035185], [5.09750232641266, 0.80451511093291739]], [[-1.7789778258353373, 6.4295861791429942], [5.7363032110304175, 4.4157213645276086]]])+(1.-msk_ref)*numarray.array([[[-1.8624876905807382, 3.6261632430220772], [-4.8660392938050538, -0.025915495239449804]], [[2.0867805979612299, 3.1178902787523235], [-5.0606859744494077, -1.2190244217834323]], [[3.9167106140026569, 0.67338347586059122], [0.33910054432991021, 1.616594533004486]], [[-2.5516018540908165, -5.8856019995459556], [3.3393452199251286, 2.7913444546890744]], [[0.060862280547588909, 1.3836582454977879], [-5.0010476224822513, -2.1742372369401926]], [[-0.30377505749153677, -3.2789400926825039], [-4.0730226522518835, 0.97867421150789546]]])
2221        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2222        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 2229  class Test_util_overloaded_binary_with_t Line 2229  class Test_util_overloaded_binary_with_t
2229        arg1=Data(numarray.array([[[-2.7809554116716861, -2.4178938679382367], [-4.8550344800907128, -1.3392464366072021]], [[-1.0721381112004833, 1.1790546106017548], [-4.3780111006207409, 2.5971837154005772]], [[-2.9209670997448089, -2.3219529735447173], [-3.1629563486862642, -4.4528979670530617]], [[-2.4843612359932008, -3.5404399210405701], [3.8873295946375634, -3.1843267630781682]], [[-3.6931314427777062, -3.2005241845659169], [-4.6285703902121709, 0.72112814987959162]], [[2.955645134420922, -2.7369867700605455], [-2.6907088961225698, -3.6848201723394434]]]),self.functionspace)        arg1=Data(numarray.array([[[-2.7809554116716861, -2.4178938679382367], [-4.8550344800907128, -1.3392464366072021]], [[-1.0721381112004833, 1.1790546106017548], [-4.3780111006207409, 2.5971837154005772]], [[-2.9209670997448089, -2.3219529735447173], [-3.1629563486862642, -4.4528979670530617]], [[-2.4843612359932008, -3.5404399210405701], [3.8873295946375634, -3.1843267630781682]], [[-3.6931314427777062, -3.2005241845659169], [-4.6285703902121709, 0.72112814987959162]], [[2.955645134420922, -2.7369867700605455], [-2.6907088961225698, -3.6848201723394434]]]),self.functionspace)
2230        arg1.setTaggedValue(1,numarray.array([[[-0.89010941147334144, -3.4446449903731615], [0.73205018935046162, -0.26865385057991276]], [[4.3657591102606137, -3.191196432227513], [-3.1555416523953452, -0.5714040859047973]], [[0.86596134594382779, 0.74755779385562793], [1.5989548429397962, -4.5608378319881746]], [[1.3446996853579023, 4.899342632739538], [1.3177489248840963, 0.71693174792304859]], [[-2.6075034765860741, -0.6236129612256347], [-1.9605243915090864, 0.40432285104030363]], [[2.5461915142326479, -3.169606578641079], [-2.0459471227330415, -1.4124514842052016]]]))        arg1.setTaggedValue(1,numarray.array([[[-0.89010941147334144, -3.4446449903731615], [0.73205018935046162, -0.26865385057991276]], [[4.3657591102606137, -3.191196432227513], [-3.1555416523953452, -0.5714040859047973]], [[0.86596134594382779, 0.74755779385562793], [1.5989548429397962, -4.5608378319881746]], [[1.3446996853579023, 4.899342632739538], [1.3177489248840963, 0.71693174792304859]], [[-2.6075034765860741, -0.6236129612256347], [-1.9605243915090864, 0.40432285104030363]], [[2.5461915142326479, -3.169606578641079], [-2.0459471227330415, -1.4124514842052016]]]))
2231        res=arg0-arg1        res=arg0-arg1
2232        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2233        ref=msk_ref*numarray.array([[[5.3154859457947961, -1.5201472844751982], [8.1099398051769001, -2.0775331059673627]], [[-1.7653388629882931, -4.0316053102149816], [8.0287499657744448, 2.3339133990698429]], [[7.8826736734155674, -0.91468329594039499], [5.6072293118078287, 5.1368566574205659]], [[4.2808096843774939, 3.3935862693667707], [-4.1131346461131582, -1.0109358193790792]], [[2.3591446639588609, 2.7257065206998732], [1.3871902985809812, 1.1734049055176934]], [[-1.1207619341255528, 4.4715005454362213], [-1.3817344328003509, 2.8862591653351117]]])+(1.-msk_ref)*numarray.array([[[-1.9288850459308944, 0.218520481523369], [4.1629751998859152, 2.8457280167083097]], [[-3.1256249516659533, 1.6177326977066349], [2.3596343020284021, 1.1891976096676311]], [[-4.2736548673396717, -0.71590142513919819], [0.36633961307561247, 5.6585527320824713]], [[0.4323284283030997, -6.1815845347662863], [2.8937396013432366, -0.16876585169890124]], [[3.0060690992676884, 0.0015916649022953422], [1.658172907756772, 1.5296554435273064]], [[-3.5921915773347073, 5.9459946812442332], [-0.82250044768144459, -1.6799060777921904]]])        ref=msk_ref*numarray.array([[[5.3154859457947961, -1.5201472844751982], [8.1099398051769001, -2.0775331059673627]], [[-1.7653388629882931, -4.0316053102149816], [8.0287499657744448, 2.3339133990698429]], [[7.8826736734155674, -0.91468329594039499], [5.6072293118078287, 5.1368566574205659]], [[4.2808096843774939, 3.3935862693667707], [-4.1131346461131582, -1.0109358193790792]], [[2.3591446639588609, 2.7257065206998732], [1.3871902985809812, 1.1734049055176934]], [[-1.1207619341255528, 4.4715005454362213], [-1.3817344328003509, 2.8862591653351117]]])+(1.-msk_ref)*numarray.array([[[-1.9288850459308944, 0.218520481523369], [4.1629751998859152, 2.8457280167083097]], [[-3.1256249516659533, 1.6177326977066349], [2.3596343020284021, 1.1891976096676311]], [[-4.2736548673396717, -0.71590142513919819], [0.36633961307561247, 5.6585527320824713]], [[0.4323284283030997, -6.1815845347662863], [2.8937396013432366, -0.16876585169890124]], [[3.0060690992676884, 0.0015916649022953422], [1.658172907756772, 1.5296554435273064]], [[-3.5921915773347073, 5.9459946812442332], [-0.82250044768144459, -1.6799060777921904]]])
2234        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2235        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 2242  class Test_util_overloaded_binary_with_t Line 2242  class Test_util_overloaded_binary_with_t
2242        arg1=Data(2.44063652232,self.functionspace)        arg1=Data(2.44063652232,self.functionspace)
2243        arg1.setTaggedValue(1,-1.69573285841)        arg1.setTaggedValue(1,-1.69573285841)
2244        res=arg0-arg1        res=arg0-arg1
2245        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2246        ref=msk_ref*numarray.array([[[[-3.4699675396795282, 2.1720394521581818, -6.4400489053730237, 0.33897319882704746], [-7.2297156669391249, -4.7425331788445506, -2.3648354811177841, -1.8740658050353494], [-2.3788868549748985, -5.9491631647784811, -0.9958919705995477, -6.579492764238414]], [[-2.1065735168043291, 0.47522561455923817, -2.979934504996832, 0.63721805594153924], [-4.560979688143842, -2.1462858861855842, 0.15302645290121131, -4.871462863216875], [0.3514164800243833, -1.9269744714009445, 2.3159161496947478, 0.21481317297876235]]], [[[-1.2979831865954505, -3.8678204893146662, -1.393211267892057, -2.1084705751535315], [-5.5112067867728243, -2.3516548329533355, -3.2667280794505063, -0.70430007411707596], [0.17421876520276225, -3.9716914318180776, -0.33430742477467845, 2.5434943484644554]], [[-3.9388029725516853, -6.6645232858147265, 2.5510979731746479, 2.3950214597723081], [-2.115763884269886, -3.4896592223529002, 1.1674941957849709, -6.7415448952723347], [-3.4276174224023093, -5.477891753244192, -7.0124217035061456, -6.3468459217344746]]], [[[-6.7854664631672028, -1.3765280685354595, 1.0408599023773997, 2.4662458263816545], [-5.8280476780984252, -5.51743196968029, 1.6025338499100323, -6.8571982735173869], [-2.8118840998617847, 1.9177299504092096, -2.1086038472982498, -6.8571359392755218]], [[2.1613604371949124, -6.914057689637561, -5.4793216922276677, 2.0804155016330865], [-6.8381831113139322, 2.180032342565867, -3.9146220564585965, 0.5593486428227914], [-5.3530563911688978, -7.1336398856075549, -5.9946503066125381, -3.1575487649769887]]]])+(1.-msk_ref)*numarray.array([[[[0.11929406991214453, 2.3959896378924288, -3.0602839486835869, 4.3737464617958093], [2.067501874522196, 2.7419679657344389, -2.4095988233798673, 5.9484633652936498], [3.4887131770773392, 5.3513889797726364, -1.397955330838184, 0.19659405379165751]], [[-2.8149319746249626, -0.036516797862816475, 1.3654214219476462, -0.84166201832036158], [2.7320423295044041, -3.1093314632006388, -1.3074586597510263, -2.9138627709198026], [5.5811265036265318, 6.4924822291621318, 3.0456130032831386, 5.3373422192708588]]], [[[-1.4202744680120407, 6.2396865778627699, 5.7215232616646041, -1.0609119416111956], [-2.6029126022050741, 3.6535055046552278, 5.9499691825898378, 0.00052723403877852348], [6.2201695171410538, -2.8624510093513891, 5.3870455379148527, 4.3237576552634849]], [[3.9363466114701868, 5.383079079308084, 3.7117043604952276, 5.9700415535770119], [2.3468877874548006, 0.50604569583440062, -1.9188596197464083, 0.19935165258336163], [-2.9840433830716639, 3.0729330430261967, 0.46740968743801403, 5.167060660505987]]], [[[0.83944988071003834, -2.2074126466587964, 1.6016402166165555, 5.2953275423852801], [-0.45382037776402484, -0.49837535663685539, -2.4469204276567389, 0.60113458396789721], [0.018633926598556894, 5.9418949767995457, 0.38133788329303808, 6.6388298679816362]], [[-0.86362548902385594, 3.0170253214762024, 2.3193186271981991, -1.7508356490683994], [1.515820048699771, -2.6189977911601332, 2.1358845548195058, -1.0292900014635755], [1.7229488317510242, 5.5172064566496299, 6.3666629208432148, -0.33055898784037563]]]])        ref=msk_ref*numarray.array([[[[-3.4699675396795282, 2.1720394521581818, -6.4400489053730237, 0.33897319882704746], [-7.2297156669391249, -4.7425331788445506, -2.3648354811177841, -1.8740658050353494], [-2.3788868549748985, -5.9491631647784811, -0.9958919705995477, -6.579492764238414]], [[-2.1065735168043291, 0.47522561455923817, -2.979934504996832, 0.63721805594153924], [-4.560979688143842, -2.1462858861855842, 0.15302645290121131, -4.871462863216875], [0.3514164800243833, -1.9269744714009445, 2.3159161496947478, 0.21481317297876235]]], [[[-1.2979831865954505, -3.8678204893146662, -1.393211267892057, -2.1084705751535315], [-5.5112067867728243, -2.3516548329533355, -3.2667280794505063, -0.70430007411707596], [0.17421876520276225, -3.9716914318180776, -0.33430742477467845, 2.5434943484644554]], [[-3.9388029725516853, -6.6645232858147265, 2.5510979731746479, 2.3950214597723081], [-2.115763884269886, -3.4896592223529002, 1.1674941957849709, -6.7415448952723347], [-3.4276174224023093, -5.477891753244192, -7.0124217035061456, -6.3468459217344746]]], [[[-6.7854664631672028, -1.3765280685354595, 1.0408599023773997, 2.4662458263816545], [-5.8280476780984252, -5.51743196968029, 1.6025338499100323, -6.8571982735173869], [-2.8118840998617847, 1.9177299504092096, -2.1086038472982498, -6.8571359392755218]], [[2.1613604371949124, -6.914057689637561, -5.4793216922276677, 2.0804155016330865], [-6.8381831113139322, 2.180032342565867, -3.9146220564585965, 0.5593486428227914], [-5.3530563911688978, -7.1336398856075549, -5.9946503066125381, -3.1575487649769887]]]])+(1.-msk_ref)*numarray.array([[[[0.11929406991214453, 2.3959896378924288, -3.0602839486835869, 4.3737464617958093], [2.067501874522196, 2.7419679657344389, -2.4095988233798673, 5.9484633652936498], [3.4887131770773392, 5.3513889797726364, -1.397955330838184, 0.19659405379165751]], [[-2.8149319746249626, -0.036516797862816475, 1.3654214219476462, -0.84166201832036158], [2.7320423295044041, -3.1093314632006388, -1.3074586597510263, -2.9138627709198026], [5.5811265036265318, 6.4924822291621318, 3.0456130032831386, 5.3373422192708588]]], [[[-1.4202744680120407, 6.2396865778627699, 5.7215232616646041, -1.0609119416111956], [-2.6029126022050741, 3.6535055046552278, 5.9499691825898378, 0.00052723403877852348], [6.2201695171410538, -2.8624510093513891, 5.3870455379148527, 4.3237576552634849]], [[3.9363466114701868, 5.383079079308084, 3.7117043604952276, 5.9700415535770119], [2.3468877874548006, 0.50604569583440062, -1.9188596197464083, 0.19935165258336163], [-2.9840433830716639, 3.0729330430261967, 0.46740968743801403, 5.167060660505987]]], [[[0.83944988071003834, -2.2074126466587964, 1.6016402166165555, 5.2953275423852801], [-0.45382037776402484, -0.49837535663685539, -2.4469204276567389, 0.60113458396789721], [0.018633926598556894, 5.9418949767995457, 0.38133788329303808, 6.6388298679816362]], [[-0.86362548902385594, 3.0170253214762024, 2.3193186271981991, -1.7508356490683994], [1.515820048699771, -2.6189977911601332, 2.1358845548195058, -1.0292900014635755], [1.7229488317510242, 5.5172064566496299, 6.3666629208432148, -0.33055898784037563]]]])
2247        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2248        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 2255  class Test_util_overloaded_binary_with_t Line 2255  class Test_util_overloaded_binary_with_t
2255        arg1=Data(numarray.array([[[[0.71311729860168338, -0.4590454520801277, 4.2209684449423754, -3.7906842218683146], [1.3099668605379442, -1.4949132034437551, -0.30893632453454245, -1.5901713124060968], [3.9956640595819977, 3.2208549290813142, 3.7023612209837005, 4.0505257586441825]], [[1.9542344919370276, 0.027347040687369706, -3.8275314728317946, -1.0574193466451676], [1.7849254536663857, -4.7032412978314122, -1.7392436727290859, 4.1732856970946468], [4.8532866105701853, -4.1031561510970258, 4.9768717755896237, 3.2685598627695391]]], [[[3.2140096662203614, -0.39955633611762575, 4.1121477330464256, -1.9894164806605508], [1.8494049067199327, 0.81159007591113586, 0.89265135138401064, 0.98411830781439757], [-4.2372137613894409, -1.7152902164583783, -1.6910874490775507, -3.5050427921285565]], [[-1.9808395120126034, 1.3961764556662191, 2.1965140261575939, -2.7903384490769323], [4.6140333307873895, -0.81430209988718438, -0.52978713445453351, -3.5522449011752455], [-1.2909567757019067, -3.2463454691699623, -3.0846952502115297, 2.2824501369715753]]], [[[-1.2953778400152629, -4.6831592784454044, 3.6228303452263049, -1.7992304332116884], [-4.2387896751914811, 4.9147712615469654, 2.3327959702376235, 0.1366801501974777], [-1.3544539462704042, 4.7223750696839222, 2.9919623367491521, -2.8105847868644238]], [[-1.0555797867368124, -3.9786281318389105, 4.5082291952933211, -4.0455660332832677], [4.8386620351374727, 3.0249339217377873, -4.7421279297683832, 3.6304735395290244], [2.0914040620048135, 3.545525620916921, 0.3492323166655007, -1.7221793634932014]]]]),self.functionspace)        arg1=Data(numarray.array([[[[0.71311729860168338, -0.4590454520801277, 4.2209684449423754, -3.7906842218683146], [1.3099668605379442, -1.4949132034437551, -0.30893632453454245, -1.5901713124060968], [3.9956640595819977, 3.2208549290813142, 3.7023612209837005, 4.0505257586441825]], [[1.9542344919370276, 0.027347040687369706, -3.8275314728317946, -1.0574193466451676], [1.7849254536663857, -4.7032412978314122, -1.7392436727290859, 4.1732856970946468], [4.8532866105701853, -4.1031561510970258, 4.9768717755896237, 3.2685598627695391]]], [[[3.2140096662203614, -0.39955633611762575, 4.1121477330464256, -1.9894164806605508], [1.8494049067199327, 0.81159007591113586, 0.89265135138401064, 0.98411830781439757], [-4.2372137613894409, -1.7152902164583783, -1.6910874490775507, -3.5050427921285565]], [[-1.9808395120126034, 1.3961764556662191, 2.1965140261575939, -2.7903384490769323], [4.6140333307873895, -0.81430209988718438, -0.52978713445453351, -3.5522449011752455], [-1.2909567757019067, -3.2463454691699623, -3.0846952502115297, 2.2824501369715753]]], [[[-1.2953778400152629, -4.6831592784454044, 3.6228303452263049, -1.7992304332116884], [-4.2387896751914811, 4.9147712615469654, 2.3327959702376235, 0.1366801501974777], [-1.3544539462704042, 4.7223750696839222, 2.9919623367491521, -2.8105847868644238]], [[-1.0555797867368124, -3.9786281318389105, 4.5082291952933211, -4.0455660332832677], [4.8386620351374727, 3.0249339217377873, -4.7421279297683832, 3.6304735395290244], [2.0914040620048135, 3.545525620916921, 0.3492323166655007, -1.7221793634932014]]]]),self.functionspace)
2256        arg1.setTaggedValue(1,numarray.array([[[[-1.9787638924171089, 0.96159058841968559, 1.9018809442784352, -2.7908386405345986], [1.3537885612921299, -1.5849268934015184, -3.4397420797660128, -4.6401461953658849], [1.2269380278332545, 3.908436642118934, 1.7892125683603517, 2.5952229687053405]], [[-4.3313348763811845, -4.8033572826178981, -4.8047415805971028, 1.5423546059821858], [2.3810531019674546, -0.10675403866078526, -0.805370416100609, 4.7305830742832295], [3.0698413781572711, -4.880702023456208, -1.9921204832219033, -3.2188093111343941]]], [[[2.0787752833356663, -3.9195628776115834, 1.9974565060569311, -2.5056481007738398], [1.6287706273172553, 4.9876032199844005, 1.5392560225537819, 4.6984463473428111], [3.7085194601874534, 4.6026804988550083, 0.54709362337146494, -3.1543583674368736]], [[3.6487332552696738, 2.8379483688101805, -4.5750749147537926, 4.3775544828477457], [4.5475977434079944, 4.3855163392081948, 1.6839954167795952, 2.0183031449671152], [-4.5191782857262091, 4.4085036590365902, -3.5652545560700375, -4.2599220257328954]]], [[[3.3547857420878522, -0.20012217563206924, -2.4567646420151013, 2.2082847218892407], [4.3339634797609179, -4.7010641375406266, -0.14346395498221298, 0.47483722602866507], [3.7422615472598579, -0.93697765038622283, 4.9458896499731786, -4.475035158319062]], [[4.6640514092572598, 3.3314669356401811, 1.1097112499521025, -3.1044883841299686], [-4.6271005643898322, -4.1347119676538995, -4.7852954895670603, -2.5321129591212097], [-2.1269317157104126, -2.0989394248805358, 2.5900992104319105, 0.030120144769069768]]]]))        arg1.setTaggedValue(1,numarray.array([[[[-1.9787638924171089, 0.96159058841968559, 1.9018809442784352, -2.7908386405345986], [1.3537885612921299, -1.5849268934015184, -3.4397420797660128, -4.6401461953658849], [1.2269380278332545, 3.908436642118934, 1.7892125683603517, 2.5952229687053405]], [[-4.3313348763811845, -4.8033572826178981, -4.8047415805971028, 1.5423546059821858], [2.3810531019674546, -0.10675403866078526, -0.805370416100609, 4.7305830742832295], [3.0698413781572711, -4.880702023456208, -1.9921204832219033, -3.2188093111343941]]], [[[2.0787752833356663, -3.9195628776115834, 1.9974565060569311, -2.5056481007738398], [1.6287706273172553, 4.9876032199844005, 1.5392560225537819, 4.6984463473428111], [3.7085194601874534, 4.6026804988550083, 0.54709362337146494, -3.1543583674368736]], [[3.6487332552696738, 2.8379483688101805, -4.5750749147537926, 4.3775544828477457], [4.5475977434079944, 4.3855163392081948, 1.6839954167795952, 2.0183031449671152], [-4.5191782857262091, 4.4085036590365902, -3.5652545560700375, -4.2599220257328954]]], [[[3.3547857420878522, -0.20012217563206924, -2.4567646420151013, 2.2082847218892407], [4.3339634797609179, -4.7010641375406266, -0.14346395498221298, 0.47483722602866507], [3.7422615472598579, -0.93697765038622283, 4.9458896499731786, -4.475035158319062]], [[4.6640514092572598, 3.3314669356401811, 1.1097112499521025, -3.1044883841299686], [-4.6271005643898322, -4.1347119676538995, -4.7852954895670603, -2.5321129591212097], [-2.1269317157104126, -2.0989394248805358, 2.5900992104319105, 0.030120144769069768]]]]))
2257        res=arg0-arg1        res=arg0-arg1
2258        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2259        ref=msk_ref*numarray.array([[[[1.7479353512742319, -0.65616293662298064, -4.3439673504026741, 5.358985067572684], [-5.3973177372308188, -1.2104413982509588, -3.4460102043440362, 5.5421346798090738], [-5.1692182736304177, -7.5357885564370974, -8.6887212689793376, -4.8154476360769687]], [[-2.1006364820696302, 0.26495736463083563, 1.3637948377311009, 4.4548461519352092], [2.0069657290753327, 9.6956420574494757, -0.95082938155216201, -5.8751238126547669], [-9.2192875165118089, 6.0361649992836082, -8.4167147299802032, -3.4969607488354031]]], [[[-4.6458889774956615, 2.277742130360024, -7.093432323397157, 6.5577124933791202], [1.3068886438539433, -1.8793453314932926, 3.0845731249157158, 0.5133399929822593], [3.8609496015035569, 0.61121010546002719, -3.0586202492401648, -1.1751193601812004]], [[-1.2416398014085956, 1.4472043003871056, -6.2099304970280791, 3.1124687306562757], [-9.0924755674367752, -0.39335562357621434, -2.3158027888898101, 0.32695519171101139], [6.235657415030583, 5.9951801679538761, -1.17378983243169, 1.6707179703411752]]], [[[3.6347848210058489, 0.83455949091116199, -1.7996170038194848, 6.4409596553014534], [7.4743588292520391, -2.8302292054495233, 0.99372076841551493, -1.6900098785302609], [-3.6100048923014643, -4.9072679541026911, -1.4440437259213015, 2.7095983076182533]], [[1.5464445622646563, 0.07098815685535742, -1.4382731067504366, 6.8242064750108611], [-0.87176118933718882, -5.5367110702251363, 5.9721478859208297, -3.1799818997066662], [-4.0453545034592739, -4.1530180760324402, -3.0791406973928979, 3.1314559079869246]]]])+(1.-msk_ref)*numarray.array([[[[-1.1637408082004574, 1.2983724698972861, -6.5031780075355474, 6.8941698813296366], [0.62913281482358308, 5.8835045665919052, 0.42291801474540458, 0.93837802787833358], [2.5429097243457672, 0.014369462701605329, 2.208864128558913, -4.1689046176128395]], [[-0.6535648769136273, 4.9371637107708564, 2.5046745450791219, -4.7828186866838331], [1.2694741370368217, 3.5695106735713615, -0.32229490659507753, -6.7796900077156206], [-7.6113507062256023, 1.0491954069701004, 3.1682379455567782, 2.8124375748755615]]], [[[2.6515606581425164, 3.3129408830500724, -4.7395660676253479, -1.3167317472716267], [-5.4951292896932236, -5.851324203809118, -5.400960227344382, -6.0276533999854216], [-5.1837973636556995, -8.3826988706259833, -0.47761954978877785, 3.1923612365388574]], [[-1.7800780462895718, -2.7447523159540612, 9.4591800995541035, -5.5813628340318795], [-0.35071434698135917, -0.8311513014630485, 3.197940023950455, -6.3814350746693558], [5.9173951236482329, -1.5245136380429285, 2.2677705851936945, 4.9466933969305584]]], [[[-1.6516482281423839, 4.5366603606997131, 4.1801570988307954, 2.4484179491282418], [-7.8377048594482064, 8.7997756747451064, -1.5211328049836679, 1.0411046411310627], [-5.4827240886731614, -1.26712321645162, -9.4669815257986514, 8.9368901109772274]], [[-7.3424741688449142, -0.65362485246417901, -1.5356586558195566, 0.34602572561158418], [5.3148405453162173, 8.5389143056532149, 5.6829778113439033, 5.1354000647467499], [-0.84881245366765912, 1.8992559727168912, -0.58188838797718212, -1.7165507891260141]]]])        ref=msk_ref*numarray.array([[[[1.7479353512742319, -0.65616293662298064, -4.3439673504026741, 5.358985067572684], [-5.3973177372308188, -1.2104413982509588, -3.4460102043440362, 5.5421346798090738], [-5.1692182736304177, -7.5357885564370974, -8.6887212689793376, -4.8154476360769687]], [[-2.1006364820696302, 0.26495736463083563, 1.3637948377311009, 4.4548461519352092], [2.0069657290753327, 9.6956420574494757, -0.95082938155216201, -5.8751238126547669], [-9.2192875165118089, 6.0361649992836082, -8.4167147299802032, -3.4969607488354031]]], [[[-4.6458889774956615, 2.277742130360024, -7.093432323397157, 6.5577124933791202], [1.3068886438539433, -1.8793453314932926, 3.0845731249157158, 0.5133399929822593], [3.8609496015035569, 0.61121010546002719, -3.0586202492401648, -1.1751193601812004]], [[-1.2416398014085956, 1.4472043003871056, -6.2099304970280791, 3.1124687306562757], [-9.0924755674367752, -0.39335562357621434, -2.3158027888898101, 0.32695519171101139], [6.235657415030583, 5.9951801679538761, -1.17378983243169, 1.6707179703411752]]], [[[3.6347848210058489, 0.83455949091116199, -1.7996170038194848, 6.4409596553014534], [7.4743588292520391, -2.8302292054495233, 0.99372076841551493, -1.6900098785302609], [-3.6100048923014643, -4.9072679541026911, -1.4440437259213015, 2.7095983076182533]], [[1.5464445622646563, 0.07098815685535742, -1.4382731067504366, 6.8242064750108611], [-0.87176118933718882, -5.5367110702251363, 5.9721478859208297, -3.1799818997066662], [-4.0453545034592739, -4.1530180760324402, -3.0791406973928979, 3.1314559079869246]]]])+(1.-msk_ref)*numarray.array([[[[-1.1637408082004574, 1.2983724698972861, -6.5031780075355474, 6.8941698813296366], [0.62913281482358308, 5.8835045665919052, 0.42291801474540458, 0.93837802787833358], [2.5429097243457672, 0.014369462701605329, 2.208864128558913, -4.1689046176128395]], [[-0.6535648769136273, 4.9371637107708564, 2.5046745450791219, -4.7828186866838331], [1.2694741370368217, 3.5695106735713615, -0.32229490659507753, -6.7796900077156206], [-7.6113507062256023, 1.0491954069701004, 3.1682379455567782, 2.8124375748755615]]], [[[2.6515606581425164, 3.3129408830500724, -4.7395660676253479, -1.3167317472716267], [-5.4951292896932236, -5.851324203809118, -5.400960227344382, -6.0276533999854216], [-5.1837973636556995, -8.3826988706259833, -0.47761954978877785, 3.1923612365388574]], [[-1.7800780462895718, -2.7447523159540612, 9.4591800995541035, -5.5813628340318795], [-0.35071434698135917, -0.8311513014630485, 3.197940023950455, -6.3814350746693558], [5.9173951236482329, -1.5245136380429285, 2.2677705851936945, 4.9466933969305584]]], [[[-1.6516482281423839, 4.5366603606997131, 4.1801570988307954, 2.4484179491282418], [-7.8377048594482064, 8.7997756747451064, -1.5211328049836679, 1.0411046411310627], [-5.4827240886731614, -1.26712321645162, -9.4669815257986514, 8.9368901109772274]], [[-7.3424741688449142, -0.65362485246417901, -1.5356586558195566, 0.34602572561158418], [5.3148405453162173, 8.5389143056532149, 5.6829778113439033, 5.1354000647467499], [-0.84881245366765912, 1.8992559727168912, -0.58188838797718212, -1.7165507891260141]]]])
2260        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2261        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 2816  class Test_util_overloaded_binary_with_t Line 2816  class Test_util_overloaded_binary_with_t
2816        arg1.setTaggedValue(1,-4.43591643677)        arg1.setTaggedValue(1,-4.43591643677)
2817        arg1.expand()        arg1.expand()
2818        res=arg0*arg1        res=arg0*arg1
2819        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2820        ref=msk_ref*(1.25033932812)+(1.-msk_ref)*(-20.84043977)        ref=msk_ref*(1.25033932812)+(1.-msk_ref)*(-20.84043977)
2821        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2822        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
# Line 2829  class Test_util_overloaded_binary_with_t Line 2829  class Test_util_overloaded_binary_with_t
2829        arg1.setTaggedValue(1,numarray.array([-0.012206473173464794, 3.9964849502775941]))        arg1.setTaggedValue(1,numarray.array([-0.012206473173464794, 3.9964849502775941]))
2830        arg1.expand()        arg1.expand()
2831        res=arg0*arg1        res=arg0*arg1
2832        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2833        ref=msk_ref*numarray.array([-3.5113267725853539, 4.6216097837286236])+(1.-msk_ref)*numarray.array([-0.034508088232212457, 11.298190175249657])        ref=msk_ref*numarray.array([-3.5113267725853539, 4.6216097837286236])+(1.-msk_ref)*numarray.array([-0.034508088232212457, 11.298190175249657])
2834        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2835        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 2842  class Test_util_overloaded_binary_with_t Line 2842  class Test_util_overloaded_binary_with_t
2842        arg1.setTaggedValue(1,numarray.array([[-2.9523242815073703, 3.9983698954863325, -1.5482464874395454, -1.3224686417806639, -3.4162019006071875], [1.7905804576917648, -4.9051519230409752, 2.1127184574115638, -3.0653776908518471, 0.96181666995017423], [-2.5373501916078967, -2.8751261520435287, -3.9489642086747931, 4.2368003889137267, -0.025684158297478277], [-3.3813535442343934, 1.9665471383296582, 2.8491679513752164, -2.3458635583090102, 3.5459706882628943]]))        arg1.setTaggedValue(1,numarray.array([[-2.9523242815073703, 3.9983698954863325, -1.5482464874395454, -1.3224686417806639, -3.4162019006071875], [1.7905804576917648, -4.9051519230409752, 2.1127184574115638, -3.0653776908518471, 0.96181666995017423], [-2.5373501916078967, -2.8751261520435287, -3.9489642086747931, 4.2368003889137267, -0.025684158297478277], [-3.3813535442343934, 1.9665471383296582, 2.8491679513752164, -2.3458635583090102, 3.5459706882628943]]))
2843        arg1.expand()        arg1.expand()
2844        res=arg0*arg1        res=arg0*arg1
2845        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2846        ref=msk_ref*numarray.array([[3.5442985812248211, -2.6363358708603744, -0.30273304708197479, 4.5330867752033734, 10.556554217711751], [10.628260355438623, 9.3071873638950908, -8.2560528103888995, 4.3771350796449653, 6.9192374701502892], [-1.4563776979946337, -20.050908934355235, -5.6798285418632393, -18.628942139567602, -17.958146943147209], [-19.739308641803369, -1.3197504923951984, -11.594637439663572, -22.567193050483983, 17.055584122033306]])+(1.-msk_ref)*numarray.array([[-8.8179594717917791, 11.942273385235778, -4.6242802201983677, -3.9499302156548355, -10.203462436596507], [5.3480798182667177, -14.650636832574804, 6.3102369375391749, -9.155625760008089, 2.8727401214151458], [-7.578520860831012, -8.5873852150361056, -11.794709194300168, 12.654414135170137, -0.076713072596013385], [-10.099377869708427, 5.8736545554220942, 8.5098536366496855, -7.0065913534947368, 10.59105397503934]])        ref=msk_ref*numarray.array([[3.5442985812248211, -2.6363358708603744, -0.30273304708197479, 4.5330867752033734, 10.556554217711751], [10.628260355438623, 9.3071873638950908, -8.2560528103888995, 4.3771350796449653, 6.9192374701502892], [-1.4563776979946337, -20.050908934355235, -5.6798285418632393, -18.628942139567602, -17.958146943147209], [-19.739308641803369, -1.3197504923951984, -11.594637439663572, -22.567193050483983, 17.055584122033306]])+(1.-msk_ref)*numarray.array([[-8.8179594717917791, 11.942273385235778, -4.6242802201983677, -3.9499302156548355, -10.203462436596507], [5.3480798182667177, -14.650636832574804, 6.3102369375391749, -9.155625760008089, 2.8727401214151458], [-7.578520860831012, -8.5873852150361056, -11.794709194300168, 12.654414135170137, -0.076713072596013385], [-10.099377869708427, 5.8736545554220942, 8.5098536366496855, -7.0065913534947368, 10.59105397503934]])
2847        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2848        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 2855  class Test_util_overloaded_binary_with_t Line 2855  class Test_util_overloaded_binary_with_t
2855        arg1.setTaggedValue(1,numarray.array([[[-4.7258601702171514, -4.7936282417750853], [0.90282871055929803, 4.2131039130666998]], [[-3.217176071073411, -3.6261606403500677], [-1.3107407162171034, 2.4212454742728182]], [[3.7844567788747216, 0.39960537946041796], [4.269030376754209, -4.886993952159715]], [[2.1194399496357255, 2.8374375020432474], [-1.8415129567457269, -3.160498890440917]], [[-3.690965416459937, 4.1410882662465731], [-0.76973072875469839, -3.1793861057965422]], [[-4.5376562287182427, 2.0508613156218463], [2.807963454808692, 0.53344719462163237]]]))        arg1.setTaggedValue(1,numarray.array([[[-4.7258601702171514, -4.7936282417750853], [0.90282871055929803, 4.2131039130666998]], [[-3.217176071073411, -3.6261606403500677], [-1.3107407162171034, 2.4212454742728182]], [[3.7844567788747216, 0.39960537946041796], [4.269030376754209, -4.886993952159715]], [[2.1194399496357255, 2.8374375020432474], [-1.8415129567457269, -3.160498890440917]], [[-3.690965416459937, 4.1410882662465731], [-0.76973072875469839, -3.1793861057965422]], [[-4.5376562287182427, 2.0508613156218463], [2.807963454808692, 0.53344719462163237]]]))
2856        arg1.expand()        arg1.expand()
2857        res=arg0*arg1        res=arg0*arg1
2858        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2859        ref=msk_ref*numarray.array([[[12.914249521221418, -6.2447927576611137], [-15.325840770822481, 11.961377396352344]], [[7.020095655851363, 2.4655038621293301], [10.104916413493898, -12.63696748879317]], [[12.124813711826432, 22.00281819291202], [-4.327961037982436, 12.680302045343273]], [[-19.119054688032772, 18.787680495473076], [-18.095381309026504, -6.7381336342602642]], [[11.41086043543446, -21.512991043634688], [12.326946026596826, 9.7531497101077402]], [[16.607603722510003, 7.3943428725648674], [8.5379208205273525, 16.80438928206064]]])+(1.-msk_ref)*numarray.array([[[-0.34804502283993238, -0.35303593225402019], [0.066490549417317843, 0.31028210629070091]], [[-0.2369350930426235, -0.26705554490282596], [-0.096532010275718547, 0.17831725993611955]], [[0.27871356718107604, 0.029429703463881862], [0.31440091781503371, -0.35991202880213108]], [[0.15609021407946905, 0.2089685188802666], [-0.13562174842366262, -0.23276099353116186]], [[-0.27182821674856528, 0.30497837606179917], [-0.056688293648289818, -0.23415197867737056]], [[-0.33418438313451698, 0.15103960924098625], [0.20679784622524713, 0.039286740264990259]]])        ref=msk_ref*numarray.array([[[12.914249521221418, -6.2447927576611137], [-15.325840770822481, 11.961377396352344]], [[7.020095655851363, 2.4655038621293301], [10.104916413493898, -12.63696748879317]], [[12.124813711826432, 22.00281819291202], [-4.327961037982436, 12.680302045343273]], [[-19.119054688032772, 18.787680495473076], [-18.095381309026504, -6.7381336342602642]], [[11.41086043543446, -21.512991043634688], [12.326946026596826, 9.7531497101077402]], [[16.607603722510003, 7.3943428725648674], [8.5379208205273525, 16.80438928206064]]])+(1.-msk_ref)*numarray.array([[[-0.34804502283993238, -0.35303593225402019], [0.066490549417317843, 0.31028210629070091]], [[-0.2369350930426235, -0.26705554490282596], [-0.096532010275718547, 0.17831725993611955]], [[0.27871356718107604, 0.029429703463881862], [0.31440091781503371, -0.35991202880213108]], [[0.15609021407946905, 0.2089685188802666], [-0.13562174842366262, -0.23276099353116186]], [[-0.27182821674856528, 0.30497837606179917], [-0.056688293648289818, -0.23415197867737056]], [[-0.33418438313451698, 0.15103960924098625], [0.20679784622524713, 0.039286740264990259]]])
2860        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2861        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 2868  class Test_util_overloaded_binary_with_t Line 2868  class Test_util_overloaded_binary_with_t
2868        arg1.setTaggedValue(1,numarray.array([[[[2.916583713835605, -3.8625829355903663, 0.027038927869477369, -1.7426984438897919], [4.2250304662761469, 2.9361135457363119, -2.9295852137394829, 0.92606122117822043], [4.1331359524915463, -0.48997581025813552, -3.0931698790312989, -2.8546285893930703]], [[1.3868011276230519, 3.983340932997141, 1.0403756476034669, -3.5726214057133876], [1.4348559142320392, -3.4077223481986518, -0.60697090065497949, -1.4760801179502039], [-2.8837770702185961, 3.4532032682401343, 2.0502890785183556, -2.2842186450813227]]], [[[1.7432334919452144, 4.6903020438607506, 2.3792084667587883, 4.3494327627815803], [-0.42558467044109793, -3.4981055127107421, -4.4161140236008869, -2.8975833849140642], [-0.84418034480826343, -3.7924343983855993, 2.5521572008999609, -3.3306181701459181]], [[4.5549821783944182, -2.6705606959859587, 4.975450671737125, 2.4538872085158205], [4.9659679736221882, 2.2156401035031621, -0.97616024835165316, -1.8402729036950625], [1.6093488091276207, -1.6243734283097422, 0.95208250883124013, 3.4489019152227698]]], [[[-4.7854735586906463, 1.8220383646197202, -2.1193203874750974, -1.1948487225055491], [-1.8696542408824399, -0.84689669779397825, -1.1391555054103373, 3.643465732682353], [0.74094867726507552, 2.4538882973775342, 1.1577215960335447, 1.2566525728924551]], [[-4.0872245606489246, -3.3007699001460598, -0.089480160766855832, -2.3614088509724884], [-4.6293694942466992, -2.6901844897243734, 2.2829836924097124, 0.41331312281774579], [-0.48638090009451851, -3.0155411873592417, 2.5449975277081984, 1.4350840292847309]]]]))        arg1.setTaggedValue(1,numarray.array([[[[2.916583713835605, -3.8625829355903663, 0.027038927869477369, -1.7426984438897919], [4.2250304662761469, 2.9361135457363119, -2.9295852137394829, 0.92606122117822043], [4.1331359524915463, -0.48997581025813552, -3.0931698790312989, -2.8546285893930703]], [[1.3868011276230519, 3.983340932997141, 1.0403756476034669, -3.5726214057133876], [1.4348559142320392, -3.4077223481986518, -0.60697090065497949, -1.4760801179502039], [-2.8837770702185961, 3.4532032682401343, 2.0502890785183556, -2.2842186450813227]]], [[[1.7432334919452144, 4.6903020438607506, 2.3792084667587883, 4.3494327627815803], [-0.42558467044109793, -3.4981055127107421, -4.4161140236008869, -2.8975833849140642], [-0.84418034480826343, -3.7924343983855993, 2.5521572008999609, -3.3306181701459181]], [[4.5549821783944182, -2.6705606959859587, 4.975450671737125, 2.4538872085158205], [4.9659679736221882, 2.2156401035031621, -0.97616024835165316, -1.8402729036950625], [1.6093488091276207, -1.6243734283097422, 0.95208250883124013, 3.4489019152227698]]], [[[-4.7854735586906463, 1.8220383646197202, -2.1193203874750974, -1.1948487225055491], [-1.8696542408824399, -0.84689669779397825, -1.1391555054103373, 3.643465732682353], [0.74094867726507552, 2.4538882973775342, 1.1577215960335447, 1.2566525728924551]], [[-4.0872245606489246, -3.3007699001460598, -0.089480160766855832, -2.3614088509724884], [-4.6293694942466992, -2.6901844897243734, 2.2829836924097124, 0.41331312281774579], [-0.48638090009451851, -3.0155411873592417, 2.5449975277081984, 1.4350840292847309]]]]))
2869        arg1.expand()        arg1.expand()
2870        res=arg0*arg1        res=arg0*arg1
2871        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2872        ref=msk_ref*numarray.array([[[[7.4965591248677068, 2.0256979927950374, -2.6209539935464119, -4.3524837668835596], [-11.7038699117797, 13.599743579924668, -5.4290132492058154, -11.7764709476766], [-6.8980029903812614, 13.090424290144473, -12.771537688749044, -13.019835014000735]], [[-6.8619316769740122, 8.6595683930271967, -1.6495589197023723, 4.336222210465154], [9.8724571559909222, -0.59555318754639319, -6.2557622860986521, 9.4280091772764365], [8.4242550114484498, 4.8563055213764041, -0.87429913980828156, -13.27041654829269]]], [[[-2.0726664846514584, -1.7951989166888209, 1.6794249658125702, -9.1544834412919958], [2.7167858090790782, -12.736617542373772, 3.6637097740860476, 13.955310371147538], [-7.3817175570245048, 10.371062022754341, -13.270418590690312, -3.0110393966343008]], [[9.050079951726266, -9.7867395070345289, -9.5017692135306646, 6.4397011867862997], [4.6095659048786626, -8.5102103183498823, 9.2445690142277748, 8.0351002224706871], [-12.76298227634957, -12.168218136667779, -6.9592534054111663, 13.254199516369372]]], [[[7.3731217198421186, 10.659688009950042, -9.1748726211552007, 2.1132293465957361], [7.2204122465851945, 2.8427632528326567, 3.8661083913138321, 13.009790392892121], [-9.6131842940862082, -13.696437264356518, 9.3492873826907275, 1.7381899348202108]], [[11.377354279127493, -13.667316917218427, 3.6895212441773282, -11.641789436143251], [7.0911397646145184, -0.06372018765848303, 6.0070904429421716, 8.1247400508788896], [-11.312003178341994, 13.905722185769804, 6.8135187395237642, 11.065794938712077]]]])+(1.-msk_ref)*numarray.array([[[[-1.5999116833840921, 2.1188459420436092, -0.014832386397599885, 0.9559689947413974], [-2.3176689815494043, -1.6106249045010601, 1.6070437439174672, -0.50799713386025125], [-2.2672596257179776, 0.26877953809069516, 1.6967792162720949, 1.565925781669387]], [[-0.76073911956960749, -2.1850885566466665, -0.57070508410680199, 1.9597855875674435], [-0.7870998971373937, 1.8693290964866867, 0.33295798465354914, 0.80971371235347056], [1.5819153775806685, -1.8942779621750749, -1.124699913626829, 1.2530235564071246]]], [[[-0.95626249896381399, -2.5728968460516035, -1.3051308642767436, -2.3859107010223237], [0.23345734369901933, 1.9189093914729565, 2.4224891567482834, 1.5894889247005306], [0.46308082642543352, 2.0803654884520286, -1.4000030598068554, 1.8270330791568548]], [[-2.498666220430771, 1.4649540962687824, -2.7293170506478872, -1.3460963921546909], [-2.724115252588013, -1.2154043345141077, 0.53547929338844169, 1.0094941233025256], [-0.88281915247253784, 0.89106100874220073, -0.52227128684796531, -1.8919184259429431]]], [[[2.6251038229264307, -0.99949144380823562, 1.1625675041215806, 0.65544233204922042], [1.0256114541428989, 0.46457090019133446, 0.62489144187823509, -1.9986477213308083], [-0.40645239837309266, -1.3460969894571337, -0.63507599621210453, -0.68934525135959912]], [[2.2420746218173573, 1.8106596091703635, 0.049084946186478233, 1.2953667648884226], [2.5394718846615203, 1.4757188607860745, -1.2523461147830892, -0.2267257034163595], [0.26680752585452888, 1.6541954734558768, -1.3960755727491811, -0.78722503118934151]]]])        ref=msk_ref*numarray.array([[[[7.4965591248677068, 2.0256979927950374, -2.6209539935464119, -4.3524837668835596], [-11.7038699117797, 13.599743579924668, -5.4290132492058154, -11.7764709476766], [-6.8980029903812614, 13.090424290144473, -12.771537688749044, -13.019835014000735]], [[-6.8619316769740122, 8.6595683930271967, -1.6495589197023723, 4.336222210465154], [9.8724571559909222, -0.59555318754639319, -6.2557622860986521, 9.4280091772764365], [8.4242550114484498, 4.8563055213764041, -0.87429913980828156, -13.27041654829269]]], [[[-2.0726664846514584, -1.7951989166888209, 1.6794249658125702, -9.1544834412919958], [2.7167858090790782, -12.736617542373772, 3.6637097740860476, 13.955310371147538], [-7.3817175570245048, 10.371062022754341, -13.270418590690312, -3.0110393966343008]], [[9.050079951726266, -9.7867395070345289, -9.5017692135306646, 6.4397011867862997], [4.6095659048786626, -8.5102103183498823, 9.2445690142277748, 8.0351002224706871], [-12.76298227634957, -12.168218136667779, -6.9592534054111663, 13.254199516369372]]], [[[7.3731217198421186, 10.659688009950042, -9.1748726211552007, 2.1132293465957361], [7.2204122465851945, 2.8427632528326567, 3.8661083913138321, 13.009790392892121], [-9.6131842940862082, -13.696437264356518, 9.3492873826907275, 1.7381899348202108]], [[11.377354279127493, -13.667316917218427, 3.6895212441773282, -11.641789436143251], [7.0911397646145184, -0.06372018765848303, 6.0070904429421716, 8.1247400508788896], [-11.312003178341994, 13.905722185769804, 6.8135187395237642, 11.065794938712077]]]])+(1.-msk_ref)*numarray.array([[[[-1.5999116833840921, 2.1188459420436092, -0.014832386397599885, 0.9559689947413974], [-2.3176689815494043, -1.6106249045010601, 1.6070437439174672, -0.50799713386025125], [-2.2672596257179776, 0.26877953809069516, 1.6967792162720949, 1.565925781669387]], [[-0.76073911956960749, -2.1850885566466665, -0.57070508410680199, 1.9597855875674435], [-0.7870998971373937, 1.8693290964866867, 0.33295798465354914, 0.80971371235347056], [1.5819153775806685, -1.8942779621750749, -1.124699913626829, 1.2530235564071246]]], [[[-0.95626249896381399, -2.5728968460516035, -1.3051308642767436, -2.3859107010223237], [0.23345734369901933, 1.9189093914729565, 2.4224891567482834, 1.5894889247005306], [0.46308082642543352, 2.0803654884520286, -1.4000030598068554, 1.8270330791568548]], [[-2.498666220430771, 1.4649540962687824, -2.7293170506478872, -1.3460963921546909], [-2.724115252588013, -1.2154043345141077, 0.53547929338844169, 1.0094941233025256], [-0.88281915247253784, 0.89106100874220073, -0.52227128684796531, -1.8919184259429431]]], [[[2.6251038229264307, -0.99949144380823562, 1.1625675041215806, 0.65544233204922042], [1.0256114541428989, 0.46457090019133446, 0.62489144187823509, -1.9986477213308083], [-0.40645239837309266, -1.3460969894571337, -0.63507599621210453, -0.68934525135959912]], [[2.2420746218173573, 1.8106596091703635, 0.049084946186478233, 1.2953667648884226], [2.5394718846615203, 1.4757188607860745, -1.2523461147830892, -0.2267257034163595], [0.26680752585452888, 1.6541954734558768, -1.3960755727491811, -0.78722503118934151]]]])
2873        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2874        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 2960  class Test_util_overloaded_binary_with_t Line 2960  class Test_util_overloaded_binary_with_t
2960        arg1.setTaggedValue(1,-4.06790999956)        arg1.setTaggedValue(1,-4.06790999956)
2961        arg1.expand()        arg1.expand()
2962        res=arg0*arg1        res=arg0*arg1
2963        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2964        ref=msk_ref*numarray.array([10.224911455060154, -8.1661146983903734])+(1.-msk_ref)*numarray.array([4.0925476702431878, -12.561265691411638])        ref=msk_ref*numarray.array([10.224911455060154, -8.1661146983903734])+(1.-msk_ref)*numarray.array([4.0925476702431878, -12.561265691411638])
2965        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2966        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 2973  class Test_util_overloaded_binary_with_t Line 2973  class Test_util_overloaded_binary_with_t
2973        arg1.setTaggedValue(1,numarray.array([2.5735141554828171, 4.5086814811965965]))        arg1.setTaggedValue(1,numarray.array([2.5735141554828171, 4.5086814811965965]))
2974        arg1.expand()        arg1.expand()
2975        res=arg0*arg1        res=arg0*arg1
2976        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2977        ref=msk_ref*numarray.array([-12.197428931982921, 13.053000331924261])+(1.-msk_ref)*numarray.array([-2.7417671121171892, -2.8608681445068291])        ref=msk_ref*numarray.array([-12.197428931982921, 13.053000331924261])+(1.-msk_ref)*numarray.array([-2.7417671121171892, -2.8608681445068291])
2978        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2979        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 3065  class Test_util_overloaded_binary_with_t Line 3065  class Test_util_overloaded_binary_with_t
3065        arg1.setTaggedValue(1,2.0634111748)        arg1.setTaggedValue(1,2.0634111748)
3066        arg1.expand()        arg1.expand()
3067        res=arg0*arg1        res=arg0*arg1
3068        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3069        ref=msk_ref*numarray.array([[10.373961150369167, 3.1951033426051971, -16.05680810992575, 4.4140720098991553, -11.817072102692151], [-7.4611163886333287, -10.862776533136023, 17.493360279482602, 8.8833932425597197, 3.0231989938571018], [-3.1277516881014891, -1.1157482673088908, 6.5588730893638605, 10.475009189737074, 1.5064321250898738], [-12.372684210550343, 4.8036682140969269, -6.3068952517632724, 9.3467363944396489, 2.9968713207337236]])+(1.-msk_ref)*numarray.array([[-4.2347781648314697, 5.356471437965217, 8.3332661226241793, 3.9938035880355329, -0.89560098728051263], [-2.7445975864155763, -8.5812249115759229, 1.3993789410899831, -9.1688900200159775, -5.4110366209765859], [7.3131022152713552, -0.25616488000291093, 8.3810562695204727, -5.8564851999368024, 0.86088301096925268], [3.336302089749875, 3.2376991034987856, 3.8997432324244334, 6.2654293800099969, 3.9628479709607731]])        ref=msk_ref*numarray.array([[10.373961150369167, 3.1951033426051971, -16.05680810992575, 4.4140720098991553, -11.817072102692151], [-7.4611163886333287, -10.862776533136023, 17.493360279482602, 8.8833932425597197, 3.0231989938571018], [-3.1277516881014891, -1.1157482673088908, 6.5588730893638605, 10.475009189737074, 1.5064321250898738], [-12.372684210550343, 4.8036682140969269, -6.3068952517632724, 9.3467363944396489, 2.9968713207337236]])+(1.-msk_ref)*numarray.array([[-4.2347781648314697, 5.356471437965217, 8.3332661226241793, 3.9938035880355329, -0.89560098728051263], [-2.7445975864155763, -8.5812249115759229, 1.3993789410899831, -9.1688900200159775, -5.4110366209765859], [7.3131022152713552, -0.25616488000291093, 8.3810562695204727, -5.8564851999368024, 0.86088301096925268], [3.336302089749875, 3.2376991034987856, 3.8997432324244334, 6.2654293800099969, 3.9628479709607731]])
3070        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3071        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 3078  class Test_util_overloaded_binary_with_t Line 3078  class Test_util_overloaded_binary_with_t
3078        arg1.setTaggedValue(1,numarray.array([[4.4449026981058744, -4.2412745942537535, -3.4138473267625482, -3.0723923701101254, -3.0085665553994092], [-2.5016187939487047, 3.4306610796341168, 0.96371580781047683, -3.4872131040059529, 2.0749789448472171], [4.3582389799730095, 4.0653701037552885, 2.6301834186200672, 1.4538136498920124, 1.5028869762693606], [1.7736088551717533, 0.79519134865350871, 0.70249024856680364, -1.0321880343718961, -4.2984858373108237]]))        arg1.setTaggedValue(1,numarray.array([[4.4449026981058744, -4.2412745942537535, -3.4138473267625482, -3.0723923701101254, -3.0085665553994092], [-2.5016187939487047, 3.4306610796341168, 0.96371580781047683, -3.4872131040059529, 2.0749789448472171], [4.3582389799730095, 4.0653701037552885, 2.6301834186200672, 1.4538136498920124, 1.5028869762693606], [1.7736088551717533, 0.79519134865350871, 0.70249024856680364, -1.0321880343718961, -4.2984858373108237]]))
3079        arg1.expand()        arg1.expand()
3080        res=arg0*arg1        res=arg0*arg1
3081        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3082        ref=msk_ref*numarray.array([[-0.74087208036052143, -1.1383779883677247, -0.53913204685247795, 15.523755937795418, 2.4337696285018531], [3.4836841775850691, -5.6952863417818191, -2.8522827766243375, -1.74951361144282, 9.2972026087217454], [-1.0553018404205494, 17.756636403553546, -5.4325765512459512, -5.5233700088850579, -3.3480643504840639], [17.436803833408653, 1.8764386452662569, -11.005729418124737, -8.9149682341693222, 8.913526545142977]])+(1.-msk_ref)*numarray.array([[5.6939611099437126, 17.682122655711609, 4.0193432907817828, 12.958052450327697, -9.6526648230765542], [8.6398436957786213, -7.3762449220650153, -0.47976395482889073, -0.71425505305497816, 2.3983528098442752], [0.66752625459488657, 19.601376981375605, 8.6600498703794386, 2.3544220561409426, 5.2860857166792261], [-7.0472610770902122, 1.3865564656767295, 0.744541897290666, -2.9091126047764519, 7.3525297253983712]])        ref=msk_ref*numarray.array([[-0.74087208036052143, -1.1383779883677247, -0.53913204685247795, 15.523755937795418, 2.4337696285018531], [3.4836841775850691, -5.6952863417818191, -2.8522827766243375, -1.74951361144282, 9.2972026087217454], [-1.0553018404205494, 17.756636403553546, -5.4325765512459512, -5.5233700088850579, -3.3480643504840639], [17.436803833408653, 1.8764386452662569, -11.005729418124737, -8.9149682341693222, 8.913526545142977]])+(1.-msk_ref)*numarray.array([[5.6939611099437126, 17.682122655711609, 4.0193432907817828, 12.958052450327697, -9.6526648230765542], [8.6398436957786213, -7.3762449220650153, -0.47976395482889073, -0.71425505305497816, 2.3983528098442752], [0.66752625459488657, 19.601376981375605, 8.6600498703794386, 2.3544220561409426, 5.2860857166792261], [-7.0472610770902122, 1.3865564656767295, 0.744541897290666, -2.9091126047764519, 7.3525297253983712]])
3083        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3084        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 3170  class Test_util_overloaded_binary_with_t Line 3170  class Test_util_overloaded_binary_with_t
3170        arg1.setTaggedValue(1,1.17514354106)        arg1.setTaggedValue(1,1.17514354106)
3171        arg1.expand()        arg1.expand()
3172        res=arg0*arg1        res=arg0*arg1
3173        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3174        ref=msk_ref*numarray.array([[[-12.315124766139203, 15.292570678938262], [-6.9290513053578753, -12.17995122592183]], [[7.2704974899491157, -8.1884528783095281], [6.286259805814578, 14.012796245865253]], [[-9.9679339656891166, -11.156602893104891], [3.7147384371163241, 11.763241493761923]], [[9.8392396766426025, -1.0168664904498406], [-6.2895688698297798, -15.790000554940466]], [[-13.559725204055805, -0.41285027840580418], [-2.2472534835817983, -8.1556752226478988]], [[2.0873956234847046, 1.1137214405636133], [9.9967049454839874, -9.8532310506442222]]])+(1.-msk_ref)*numarray.array([[[4.5335160620225654, 1.0936583652663043], [-2.3243652368882701, 2.4237419966655636]], [[-1.3082749716554238, -1.7736802916461574], [-1.1121319105811323, 0.81885585194445343]], [[1.9132436995800879, -1.3976231952552023], [-5.7711337833902601, -1.0873711538638162]], [[-4.5257233336424223, 4.6955546187452111], [4.7140060007220841, 4.3752508681277895]], [[-3.2526898328388834, 2.6059656275573895], [5.4493458848982526, 4.268638462078771]], [[-0.44837740915405727, 4.9089564125747787], [-2.360679760887046, 5.4799244981062136]]])        ref=msk_ref*numarray.array([[[-12.315124766139203, 15.292570678938262], [-6.9290513053578753, -12.17995122592183]], [[7.2704974899491157, -8.1884528783095281], [6.286259805814578, 14.012796245865253]], [[-9.9679339656891166, -11.156602893104891], [3.7147384371163241, 11.763241493761923]], [[9.8392396766426025, -1.0168664904498406], [-6.2895688698297798, -15.790000554940466]], [[-13.559725204055805, -0.41285027840580418], [-2.2472534835817983, -8.1556752226478988]], [[2.0873956234847046, 1.1137214405636133], [9.9967049454839874, -9.8532310506442222]]])+(1.-msk_ref)*numarray.array([[[4.5335160620225654, 1.0936583652663043], [-2.3243652368882701, 2.4237419966655636]], [[-1.3082749716554238, -1.7736802916461574], [-1.1121319105811323, 0.81885585194445343]], [[1.9132436995800879, -1.3976231952552023], [-5.7711337833902601, -1.0873711538638162]], [[-4.5257233336424223, 4.6955546187452111], [4.7140060007220841, 4.3752508681277895]], [[-3.2526898328388834, 2.6059656275573895], [5.4493458848982526, 4.268638462078771]], [[-0.44837740915405727, 4.9089564125747787], [-2.360679760887046, 5.4799244981062136]]])
3175        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3176        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 3183  class Test_util_overloaded_binary_with_t Line 3183  class Test_util_overloaded_binary_with_t
3183        arg1.setTaggedValue(1,numarray.array([[[4.1033773699865996, -1.9928239161420249], [4.7026027898576714, 2.5514269773740246]], [[-3.2505300392423653, -4.1012463245233839], [1.2311225025544994, 0.96002001392641034]], [[-0.25580650663746596, 3.8255024039590353], [-0.21668638765335757, -2.3206600820232435]], [[-4.1864102757820953, 2.5067457914789202], [-2.5405156592675295, 3.3052614593102643]], [[1.3485681596421113, -2.9475674377526637], [2.5854994769278541, -1.6070320634660726]], [[1.0446740057540973, 1.71227009750781], [1.2134761492715009, -2.4229043304269346]]]))        arg1.setTaggedValue(1,numarray.array([[[4.1033773699865996, -1.9928239161420249], [4.7026027898576714, 2.5514269773740246]], [[-3.2505300392423653, -4.1012463245233839], [1.2311225025544994, 0.96002001392641034]], [[-0.25580650663746596, 3.8255024039590353], [-0.21668638765335757, -2.3206600820232435]], [[-4.1864102757820953, 2.5067457914789202], [-2.5405156592675295, 3.3052614593102643]], [[1.3485681596421113, -2.9475674377526637], [2.5854994769278541, -1.6070320634660726]], [[1.0446740057540973, 1.71227009750781], [1.2134761492715009, -2.4229043304269346]]]))
3184        arg1.expand()        arg1.expand()
3185        res=arg0*arg1        res=arg0*arg1
3186        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3187        ref=msk_ref*numarray.array([[[-1.5127727593823164, -9.0011974887465538], [-4.1291137759691132, -1.5730542936808629]], [[15.73810215878347, 2.9591453132689272], [-1.5004084517488336, 10.567443307472358]], [[-0.82637572211596866, -2.5796983295342448], [0.96367547109773211, 0.87535929670676726]], [[-3.9152815526916833, 3.4284964573784769], [1.701078007608736, -4.5815612134139414]], [[-9.9810186500317055, -0.39167714846779433], [-7.8533824931048928, 15.304959440060982]], [[-5.405107309487839, 1.2980486376741447], [3.6957251860769795, 9.7726718884594934]]])+(1.-msk_ref)*numarray.array([[[-5.1006137857321878, -7.0131803699322219], [6.4989233711855627, -6.1608991969525135]], [[10.965335443202932, 6.6487354792326467], [3.9035963622445706, 0.083309100293463292]], [[-0.68653181455725287, 14.494659901052104], [-0.047818848615312229, -8.4078794589538539]], [[7.6478324878171904, -7.3426171640616609], [11.664368784026141, -5.5885360400291937]], [[-4.2325329057166252, -8.616084735278859], [-6.3696255881991144, -3.0159011199900911]], [[-0.2928243321021603, 2.919819733535256], [5.8569142350642425, 1.6480065690692918]]])        ref=msk_ref*numarray.array([[[-1.5127727593823164, -9.0011974887465538], [-4.1291137759691132, -1.5730542936808629]], [[15.73810215878347, 2.9591453132689272], [-1.5004084517488336, 10.567443307472358]], [[-0.82637572211596866, -2.5796983295342448], [0.96367547109773211, 0.87535929670676726]], [[-3.9152815526916833, 3.4284964573784769], [1.701078007608736, -4.5815612134139414]], [[-9.9810186500317055, -0.39167714846779433], [-7.8533824931048928, 15.304959440060982]], [[-5.405107309487839, 1.2980486376741447], [3.6957251860769795, 9.7726718884594934]]])+(1.-msk_ref)*numarray.array([[[-5.1006137857321878, -7.0131803699322219], [6.4989233711855627, -6.1608991969525135]], [[10.965335443202932, 6.6487354792326467], [3.9035963622445706, 0.083309100293463292]], [[-0.68653181455725287, 14.494659901052104], [-0.047818848615312229, -8.4078794589538539]], [[7.6478324878171904, -7.3426171640616609], [11.664368784026141, -5.5885360400291937]], [[-4.2325329057166252, -8.616084735278859], [-6.3696255881991144, -3.0159011199900911]], [[-0.2928243321021603, 2.919819733535256], [5.8569142350642425, 1.6480065690692918]]])
3188        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3189        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 3275  class Test_util_overloaded_binary_with_t Line 3275  class Test_util_overloaded_binary_with_t
3275        arg1.setTaggedValue(1,-3.43982262728)        arg1.setTaggedValue(1,-3.43982262728)
3276        arg1.expand()        arg1.expand()
3277        res=arg0*arg1        res=arg0*arg1
3278        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3279        ref=msk_ref*numarray.array([[[[-8.56484863811996, 3.2061944910423548, -3.601498935777141, -8.5264906008350341], [5.8357751736756827, -2.0490880344743538, 7.6555541781056906, -7.8593439047837288], [9.0795559734093541, 8.4315347015644591, -0.20415382501698051, 0.96734440643456943]], [[7.5218248979674858, -9.3098672345056084, 7.1793880246233526, -1.1767381496757221], [-1.3384817572037868, 0.74982027642214455, 2.0075216088899994, 10.146042966305899], [1.2210444705959571, 5.8175080864709345, -4.3047047333232973, -3.2853804741340924]]], [[[-7.5412469381101239, 6.4786671738643777, 9.5917106799509284, -1.689150493140291], [-4.1908609617878287, 7.0108433397529426, 6.806330091035746, 3.6230656206238225], [3.1507203737904783, -3.9704170301519603, -8.9013665838123774, 4.7799343203823765]], [[7.9184703057206196, -7.9936494271130822, 0.052226186138049822, -3.5348239344126702], [-0.56310125420127655, 5.5515640934969674, -7.3110355449793047, -4.5771213166678413], [-0.044055810939689292, -4.1027685020866906, 0.51631307220523981, -9.0773451671191729]]], [[[-6.0536847822385473, -7.7816202810525548, 7.4962226740760594, -7.3587500218412698], [-2.4690536565800998, 8.9806565518031896, -10.135871741903173, -2.6343253419386263], [-8.9276538329121706, 0.93842497746892439, 8.3360750042803033, -2.8807784982737799]], [[0.63325655140700965, -8.9965489255987201, -8.2713687278236883, -7.1610580066600189], [5.4190273065669059, -3.6657606631454542, -7.5794094077895018, 1.6109528004309184], [2.7006239539007879, -2.7923301337170536, -0.41121737126278562, 7.1041022361124178]]]])+(1.-msk_ref)*numarray.array([[[[8.6136953132280301, -14.706045169519202, -17.080670427226341, 4.6701740186615464], [-12.11289333439851, -3.4029381338428641, -15.726095814229224, 16.836995783300171], [13.82371443654077, 3.6587559320451768, 15.399844201429321, 10.418664041012491]], [[-10.17785466043, 1.3531938029434625, 15.035271809900019, 2.3590182981402981], [2.3303175314292877, 4.3587412699953063, 3.796271962737368, 14.758201032416226], [0.33858646520752966, 15.193922035443254, -8.0824383002389713, 14.227516440890902]]], [[[5.8559457793505212, -9.8781422333306654, 3.6027800391749274, -13.804782942818287], [9.8288994694705849, 13.115473601077642, 8.1531164093441326, 6.2717146836388977], [-9.7049185969291649, 6.0577197744396267, 16.221762502194771, -6.088938978828053]], [[14.32484754288134, 13.798074575810782, -16.534571597580133, -11.502656751550949], [-8.8402439907704338, 7.1820002733483852, -4.4730083192827168, 9.3243514376157073], [-8.0409419032719303, -0.24992248461574224, -6.2710473589053866, -13.880300715177963]]], [[[2.4029568871866984, 15.804081620027203, 7.558726237645633, -1.0796136437294579], [14.864323462404016, 7.1421394553094224, -15.350278864393395, 16.4509514536057], [-4.579361569380981, -7.646303922727002, 3.2631971288655759, -8.8248527215506645]], [[1.3568439175354867, 5.5629480331638401, -5.1557909221553908, 3.7258378852657694], [10.077910786476027, -0.59016951069957468, -16.856582996043326, -14.26140587359466], [-6.32561284093729, 1.6931092682506359, -2.1992842925324059, 1.9124481781330267]]]])        ref=msk_ref*numarray.array([[[[-8.56484863811996, 3.2061944910423548, -3.601498935777141, -8.5264906008350341], [5.8357751736756827, -2.0490880344743538, 7.6555541781056906, -7.8593439047837288], [9.0795559734093541, 8.4315347015644591, -0.20415382501698051, 0.96734440643456943]], [[7.5218248979674858, -9.3098672345056084, 7.1793880246233526, -1.1767381496757221], [-1.3384817572037868, 0.74982027642214455, 2.0075216088899994, 10.146042966305899], [1.2210444705959571, 5.8175080864709345, -4.3047047333232973, -3.2853804741340924]]], [[[-7.5412469381101239, 6.4786671738643777, 9.5917106799509284, -1.689150493140291], [-4.1908609617878287, 7.0108433397529426, 6.806330091035746, 3.6230656206238225], [3.1507203737904783, -3.9704170301519603, -8.9013665838123774, 4.7799343203823765]], [[7.9184703057206196, -7.9936494271130822, 0.052226186138049822, -3.5348239344126702], [-0.56310125420127655, 5.5515640934969674, -7.3110355449793047, -4.5771213166678413], [-0.044055810939689292, -4.1027685020866906, 0.51631307220523981, -9.0773451671191729]]], [[[-6.0536847822385473, -7.7816202810525548, 7.4962226740760594, -7.3587500218412698], [-2.4690536565800998, 8.9806565518031896, -10.135871741903173, -2.6343253419386263], [-8.9276538329121706, 0.93842497746892439, 8.3360750042803033, -2.8807784982737799]], [[0.63325655140700965, -8.9965489255987201, -8.2713687278236883, -7.1610580066600189], [5.4190273065669059, -3.6657606631454542, -7.5794094077895018, 1.6109528004309184], [2.7006239539007879, -2.7923301337170536, -0.41121737126278562, 7.1041022361124178]]]])+(1.-msk_ref)*numarray.array([[[[8.6136953132280301, -14.706045169519202, -17.080670427226341, 4.6701740186615464], [-12.11289333439851, -3.4029381338428641, -15.726095814229224, 16.836995783300171], [13.82371443654077, 3.6587559320451768, 15.399844201429321, 10.418664041012491]], [[-10.17785466043, 1.3531938029434625, 15.035271809900019, 2.3590182981402981], [2.3303175314292877, 4.3587412699953063, 3.796271962737368, 14.758201032416226], [0.33858646520752966, 15.193922035443254, -8.0824383002389713, 14.227516440890902]]], [[[5.8559457793505212, -9.8781422333306654, 3.6027800391749274, -13.804782942818287], [9.8288994694705849, 13.115473601077642, 8.1531164093441326, 6.2717146836388977], [-9.7049185969291649, 6.0577197744396267, 16.221762502194771, -6.088938978828053]], [[14.32484754288134, 13.798074575810782, -16.534571597580133, -11.502656751550949], [-8.8402439907704338, 7.1820002733483852, -4.4730083192827168, 9.3243514376157073], [-8.0409419032719303, -0.24992248461574224, -6.2710473589053866, -13.880300715177963]]], [[[2.4029568871866984, 15.804081620027203, 7.558726237645633, -1.0796136437294579], [14.864323462404016, 7.1421394553094224, -15.350278864393395, 16.4509514536057], [-4.579361569380981, -7.646303922727002, 3.2631971288655759, -8.8248527215506645]], [[1.3568439175354867, 5.5629480331638401, -5.1557909221553908, 3.7258378852657694], [10.077910786476027, -0.59016951069957468, -16.856582996043326, -14.26140587359466], [-6.32561284093729, 1.6931092682506359, -2.1992842925324059, 1.9124481781330267]]]])
3280        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3281        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 3288  class Test_util_overloaded_binary_with_t Line 3288  class Test_util_overloaded_binary_with_t
3288        arg1.setTaggedValue(1,numarray.array([[[[-4.5229733152567189, 0.17018496484498602, 3.8220149916066788, 4.0803015367435815], [-2.6065320703964301, 0.49598892177018516, 4.2579140430982481, -0.9893732307274643], [4.3150720827787943, -3.6543668271423591, -1.0072948541243876, 1.1031734799326944]], [[0.37641962181737121, 0.1412445396703399, -3.1847463824420377, -3.7390870938195953], [-2.2524747478408247, -0.78551792367013995, 4.8899458606077548, 1.8324940714526514], [3.0382746479145144, 0.9766053898523408, -4.6065190329090102, 2.1439276945665942]]], [[[1.5480328969624546, 0.92756057524764124, 3.0392485660817972, -0.7731502623624511], [2.3732488385370498, 2.7253120356440617, -2.9780020940216048, 4.870020149206999], [-4.5963422086205421, 1.9390615325682212, 1.3467338995432607, 2.8387787116392609]], [[0.18494202665104886, -3.8818697667182711, 4.0607887425002058, -4.0822879442560289], [2.868768972607505, -4.9844191744945192, -1.9074966426847926, -2.8972500413637228], [1.9608833531223882, -4.3321364220346155, -2.2273706191195197, -0.6814990272056356]]], [[[-4.6794835771501555, 0.88526237919283357, 4.0259691601531635, 4.1508554972608263], [4.7558119583318739, -3.1955366004548083, 4.0857809211084746, 2.0165832985625078], [0.53993917461036567, -3.0257062484534449, 2.5766427682780062, -3.6681108125293624]], [[-4.9898032979548397, -2.8453427014203858, -0.54434901106418376, 2.4540928261003376], [2.7394397356634084, 1.4697964097252161, -4.8203862302173794, 4.0458762828142447], [1.5283750153098143, -0.82582519593759862, 3.7525569131034153, -1.2872056644821841]]]]))        arg1.setTaggedValue(1,numarray.array([[[[-4.5229733152567189, 0.17018496484498602, 3.8220149916066788, 4.0803015367435815], [-2.6065320703964301, 0.49598892177018516, 4.2579140430982481, -0.9893732307274643], [4.3150720827787943, -3.6543668271423591, -1.0072948541243876, 1.1031734799326944]], [[0.37641962181737121, 0.1412445396703399, -3.1847463824420377, -3.7390870938195953], [-2.2524747478408247, -0.78551792367013995, 4.8899458606077548, 1.8324940714526514], [3.0382746479145144, 0.9766053898523408, -4.6065190329090102, 2.1439276945665942]]], [[[1.5480328969624546, 0.92756057524764124, 3.0392485660817972, -0.7731502623624511], [2.3732488385370498, 2.7253120356440617, -2.9780020940216048, 4.870020149206999], [-4.5963422086205421, 1.9390615325682212, 1.3467338995432607, 2.8387787116392609]], [[0.18494202665104886, -3.8818697667182711, 4.0607887425002058, -4.0822879442560289], [2.868768972607505, -4.9844191744945192, -1.9074966426847926, -2.8972500413637228], [1.9608833531223882, -4.3321364220346155, -2.2273706191195197, -0.6814990272056356]]], [[[-4.6794835771501555, 0.88526237919283357, 4.0259691601531635, 4.1508554972608263], [4.7558119583318739, -3.1955366004548083, 4.0857809211084746, 2.0165832985625078], [0.53993917461036567, -3.0257062484534449, 2.5766427682780062, -3.6681108125293624]], [[-4.9898032979548397, -2.8453427014203858, -0.54434901106418376, 2.4540928261003376], [2.7394397356634084, 1.4697964097252161, -4.8203862302173794, 4.0458762828142447], [1.5283750153098143, -0.82582519593759862, 3.7525569131034153, -1.2872056644821841]]]]))
3289        arg1.expand()        arg1.expand()
3290        res=arg0*arg1        res=arg0*arg1
3291        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3292        ref=msk_ref*numarray.array([[[[-17.175381884356405, -0.510184616035668, -7.1505370910708841, 0.83104518905636382], [-9.6699712200921066, -13.346837078016925, -9.2587055816351089, -8.2880537845516749], [-0.55190877841847952, -7.6523187479387422, -2.4551535902920714, -9.8629287822734586]], [[0.48847017534760984, -14.280550121168245, -21.273722654925983, 0.10898949126862896], [10.134423187283387, -1.8021003952442916, -18.87567207193991, -8.2563192033121311], [-6.442727136125173, 7.1851060433855416, -9.6932728922651723, 8.1530446884863128]]], [[[-5.9789605264341352, -12.417636863909506, -19.316517643404708, 14.485187899836147], [1.6632708648629886, 19.749261720186812, 13.376548944965775, -15.99494272235332], [-0.19748272271995246, -4.426044528634387, 9.7736224225798836, -0.45304672436383486]], [[-0.4972888663599373, -4.426989147670465, -5.4298120825888683, -7.9474253098529006], [-7.5555383874577666, -15.520161167473773, -1.4618497196438685, 12.081239551832978], [-5.148657062079125, -3.3019542078941391, -2.7263272752715166, 2.8478437070393046]]], [[[-0.44204795252646345, -1.8400770379256457, 2.9919671632716138, -13.181555085643529], [-11.773652428375271, -1.7119936564486071, 4.1963971217160836, -3.7631079587679115], [-2.1589429416712633, -8.5664523188324591, 4.8988618730332432, 0.27454737577003319]], [[-2.7841284928287622, 5.4160945222017212, -7.0831220447417627, 8.5626051658910818], [12.291574480218742, 2.2526379531093585, 1.6224505509759761, 11.796425917846816], [1.9451940044655682, 2.3502664721293898, -0.62698376570792136, 9.7458216830139417]]]])+(1.-msk_ref)*numarray.array([[[[-10.821132326230726, -0.30143008811679101, -0.40455863490564409, -13.204659439598881], [-10.542209025551957, -1.6142517436258894, -12.852890839500665, -0.26573262891244709], [1.4525623465890813, -16.416857751851431, -0.14257617049614474, 3.2430050809690374]], [[-0.40580383617125332, -0.49601716096747867, -2.4635766499779219, -10.991132171561315], [7.0450111280086514, -1.0474498834794941, 23.044125545229488, 4.0140448667611848], [-1.0220794878725301, 0.01160699766360666, 6.7508862974720723, -3.9768023688020251]]], [[[-1.0177997949802307, -1.3667660004598259, -7.8694774364267293, -0.81395157491126413], [-6.1705120096615245, 9.7294758938656347, -4.422249183127688, -8.0077953182888439], [-22.335375188096126, -7.0676199317744359, 3.9633699185296547, -6.9645500118958124]], [[0.70577089146490968, -15.393026382668209, -4.6664178359175414, 18.003921409647472], [1.9279544685923022, -8.7884884082778996, -5.5871855378619015, -6.1954174078882183], [-0.04129311104611344, 5.6987204177998096, -5.8896574577976573, -1.9689155656685351]]], [[[14.534657088093198, 2.834414650916397, 17.779244906828215, -20.665648323445186], [18.060091633552361, 3.3767388612304576, -4.0832495045431658, -2.7585509515585271], [-0.93644911561746869, -0.30797295441602601, -11.961589488859076, 15.835699185257985]], [[-5.1802840260935881, 8.6366904427200915, 1.0180269774904249, 6.6906344221522538], [-9.5190522917304001, -0.73203648319657932, 2.0409486960979466, 19.493937007922344], [1.5602510906162943, 0.45318963732908618, -1.16675826178875, 4.4970154032845926]]]])        ref=msk_ref*numarray.array([[[[-17.175381884356405, -0.510184616035668, -7.1505370910708841, 0.83104518905636382], [-9.6699712200921066, -13.346837078016925, -9.2587055816351089, -8.2880537845516749], [-0.55190877841847952, -7.6523187479387422, -2.4551535902920714, -9.8629287822734586]], [[0.48847017534760984, -14.280550121168245, -21.273722654925983, 0.10898949126862896], [10.134423187283387, -1.8021003952442916, -18.87567207193991, -8.2563192033121311], [-6.442727136125173, 7.1851060433855416, -9.6932728922651723, 8.1530446884863128]]], [[[-5.9789605264341352, -12.417636863909506, -19.316517643404708, 14.485187899836147], [1.6632708648629886, 19.749261720186812, 13.376548944965775, -15.99494272235332], [-0.19748272271995246, -4.426044528634387, 9.7736224225798836, -0.45304672436383486]], [[-0.4972888663599373, -4.426989147670465, -5.4298120825888683, -7.9474253098529006], [-7.5555383874577666, -15.520161167473773, -1.4618497196438685, 12.081239551832978], [-5.148657062079125, -3.3019542078941391, -2.7263272752715166, 2.8478437070393046]]], [[[-0.44204795252646345, -1.8400770379256457, 2.9919671632716138, -13.181555085643529], [-11.773652428375271, -1.7119936564486071, 4.1963971217160836, -3.7631079587679115], [-2.1589429416712633, -8.5664523188324591, 4.8988618730332432, 0.27454737577003319]], [[-2.7841284928287622, 5.4160945222017212, -7.0831220447417627, 8.5626051658910818], [12.291574480218742, 2.2526379531093585, 1.6224505509759761, 11.796425917846816], [1.9451940044655682, 2.3502664721293898, -0.62698376570792136, 9.7458216830139417]]]])+(1.-msk_ref)*numarray.array([[[[-10.821132326230726, -0.30143008811679101, -0.40455863490564409, -13.204659439598881], [-10.542209025551957, -1.6142517436258894, -12.852890839500665, -0.26573262891244709], [1.4525623465890813, -16.416857751851431, -0.14257617049614474, 3.2430050809690374]], [[-0.40580383617125332, -0.49601716096747867, -2.4635766499779219, -10.991132171561315], [7.0450111280086514, -1.0474498834794941, 23.044125545229488, 4.0140448667611848], [-1.0220794878725301, 0.01160699766360666, 6.7508862974720723, -3.9768023688020251]]], [[[-1.0177997949802307, -1.3667660004598259, -7.8694774364267293, -0.81395157491126413], [-6.1705120096615245, 9.7294758938656347, -4.422249183127688, -8.0077953182888439], [-22.335375188096126, -7.0676199317744359, 3.9633699185296547, -6.9645500118958124]], [[0.70577089146490968, -15.393026382668209, -4.6664178359175414, 18.003921409647472], [1.9279544685923022, -8.7884884082778996, -5.5871855378619015, -6.1954174078882183], [-0.04129311104611344, 5.6987204177998096, -5.8896574577976573, -1.9689155656685351]]], [[[14.534657088093198, 2.834414650916397, 17.779244906828215, -20.665648323445186], [18.060091633552361, 3.3767388612304576, -4.0832495045431658, -2.7585509515585271], [-0.93644911561746869, -0.30797295441602601, -11.961589488859076, 15.835699185257985]], [[-5.1802840260935881, 8.6366904427200915, 1.0180269774904249, 6.6906344221522538], [-9.5190522917304001, -0.73203648319657932, 2.0409486960979466, 19.493937007922344], [1.5602510906162943, 0.45318963732908618, -1.16675826178875, 4.4970154032845926]]]])
3293        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3294        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 3301  class Test_util_overloaded_binary_with_t Line 3301  class Test_util_overloaded_binary_with_t
3301        arg1=Data(-2.58821102962,self.functionspace)        arg1=Data(-2.58821102962,self.functionspace)
3302        arg1.setTaggedValue(1,-0.733629696423)        arg1.setTaggedValue(1,-0.733629696423)
3303        res=arg0*arg1        res=arg0*arg1
3304        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3305        ref=msk_ref*(6.58521655088)+(1.-msk_ref)*(2.78746761879)        ref=msk_ref*(6.58521655088)+(1.-msk_ref)*(2.78746761879)
3306        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3307        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
# Line 3314  class Test_util_overloaded_binary_with_t Line 3314  class Test_util_overloaded_binary_with_t
3314        arg1=Data(numarray.array([-3.1609845879711775, 0.039514337730838456]),self.functionspace)        arg1=Data(numarray.array([-3.1609845879711775, 0.039514337730838456]),self.functionspace)
3315        arg1.setTaggedValue(1,numarray.array([3.9944952159708684, -2.5212639479439822]))        arg1.setTaggedValue(1,numarray.array([3.9944952159708684, -2.5212639479439822]))
3316        res=arg0*arg1        res=arg0*arg1
3317        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3318        ref=msk_ref*numarray.array([-10.205399205519777, 0.127574045257767])+(1.-msk_ref)*numarray.array([-8.5972697752800649, 5.4264644625175018])        ref=msk_ref*numarray.array([-10.205399205519777, 0.127574045257767])+(1.-msk_ref)*numarray.array([-8.5972697752800649, 5.4264644625175018])
3319        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3320        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 3327  class Test_util_overloaded_binary_with_t Line 3327  class Test_util_overloaded_binary_with_t
3327        arg1=Data(numarray.array([[-2.2257987111652633, -4.280537205809213, 4.6322346945409638, 1.5074631886752794, -4.9100797308893531], [-0.52015417144620013, -1.288735641855153, 4.9454698768775742, -2.9825531028096828, -3.433428787179321], [-4.5263639291271582, 1.6571499872310271, 1.2291625556187284, 3.7349821867623305, 2.6238268621102794], [-0.4470624147841038, -0.081930218673285538, 2.5730671661748916, -1.9045103078467518, -3.9473308599285986]]),self.functionspace)        arg1=Data(numarray.array([[-2.2257987111652633, -4.280537205809213, 4.6322346945409638, 1.5074631886752794, -4.9100797308893531], [-0.52015417144620013, -1.288735641855153, 4.9454698768775742, -2.9825531028096828, -3.433428787179321], [-4.5263639291271582, 1.6571499872310271, 1.2291625556187284, 3.7349821867623305, 2.6238268621102794], [-0.4470624147841038, -0.081930218673285538, 2.5730671661748916, -1.9045103078467518, -3.9473308599285986]]),self.functionspace)
3328        arg1.setTaggedValue(1,numarray.array([[1.3623423990229586, 3.8388124064188229, -2.3194658071474072, 3.9004425375488996, 4.9300059065560191], [0.82313827131608708, -4.3949019743858688, -0.92848180246848777, 0.78806224072270403, -4.9435549474481029], [-4.199054678791434, 4.3298205134767347, 0.093224119518392712, -2.3101879221820454, 4.7940584387014304], [-0.072351787242702414, -4.9619844496927232, -4.1818012068710333, 1.0638110327773829, -3.0879465009415985]]))        arg1.setTaggedValue(1,numarray.array([[1.3623423990229586, 3.8388124064188229, -2.3194658071474072, 3.9004425375488996, 4.9300059065560191], [0.82313827131608708, -4.3949019743858688, -0.92848180246848777, 0.78806224072270403, -4.9435549474481029], [-4.199054678791434, 4.3298205134767347, 0.093224119518392712, -2.3101879221820454, 4.7940584387014304], [-0.072351787242702414, -4.9619844496927232, -4.1818012068710333, 1.0638110327773829, -3.0879465009415985]]))
3329        res=arg0*arg1        res=arg0*arg1
3330        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3331        ref=msk_ref*numarray.array([[-3.7733852826070637, -7.2567730464703155, 7.8530040179652563, 2.5555947092993301, -8.3240333009562431], [-0.88181473256142584, -2.1847870069084325, 8.3840300362186859, -5.0563071702221274, -5.8206744344996286], [-7.6735218455357215, 2.8093579808105829, 2.0837930555163404, 6.3318963856126054, 4.4481603911131407], [-0.7579026476612325, -0.13889588478587259, 4.3621077356634803, -3.2287066796080981, -6.691890015803561]])+(1.-msk_ref)*numarray.array([[5.7171121918978116, 16.109695497171245, -9.7337103023753624, 16.368328256692433, 20.688922913001587], [3.4543253222786787, -18.443342641304508, -3.8964027227331348, 3.307127670430928, -20.745781883938854], [-17.62146338231927, 18.170226269167092, 0.39121791310303328, -9.6947753699468215, 20.118415141617156], [-0.30362652241279886, -20.823121862529327, -17.549058651511928, 4.464316041054583, -12.95866340291732]])        ref=msk_ref*numarray.array([[-3.7733852826070637, -7.2567730464703155, 7.8530040179652563, 2.5555947092993301, -8.3240333009562431], [-0.88181473256142584, -2.1847870069084325, 8.3840300362186859, -5.0563071702221274, -5.8206744344996286], [-7.6735218455357215, 2.8093579808105829, 2.0837930555163404, 6.3318963856126054, 4.4481603911131407], [-0.7579026476612325, -0.13889588478587259, 4.3621077356634803, -3.2287066796080981, -6.691890015803561]])+(1.-msk_ref)*numarray.array([[5.7171121918978116, 16.109695497171245, -9.7337103023753624, 16.368328256692433, 20.688922913001587], [3.4543253222786787, -18.443342641304508, -3.8964027227331348, 3.307127670430928, -20.745781883938854], [-17.62146338231927, 18.170226269167092, 0.39121791310303328, -9.6947753699468215, 20.118415141617156], [-0.30362652241279886, -20.823121862529327, -17.549058651511928, 4.464316041054583, -12.95866340291732]])
3332        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3333        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 3340  class Test_util_overloaded_binary_with_t Line 3340  class Test_util_overloaded_binary_with_t
3340        arg1=Data(numarray.array([[[2.006076901865419, -0.21180380381218367], [-4.7516938316925907, 4.4895326313297694]], [[-1.4536137685907145, 0.37356845302733444], [3.4608233559137282, -3.9965816103050509]], [[0.72700080266957912, 2.3240241936289818], [4.2646674443814039, 1.6300285776269661]], [[1.4450634931594823, -1.4217502578877426], [-4.6200423766436778, -3.5260862034215332]], [[-1.7957701759162017, -4.2794877311083113], [1.8749216910730482, -3.6011197035525608]], [[-2.0663557095947613, -3.035040215113435], [1.7109419450569572, 3.8030711274074775]]]),self.functionspace)        arg1=Data(numarray.array([[[2.006076901865419, -0.21180380381218367], [-4.7516938316925907, 4.4895326313297694]], [[-1.4536137685907145, 0.37356845302733444], [3.4608233559137282, -3.9965816103050509]], [[0.72700080266957912, 2.3240241936289818], [4.2646674443814039, 1.6300285776269661]], [[1.4450634931594823, -1.4217502578877426], [-4.6200423766436778, -3.5260862034215332]], [[-1.7957701759162017, -4.2794877311083113], [1.8749216910730482, -3.6011197035525608]], [[-2.0663557095947613, -3.035040215113435], [1.7109419450569572, 3.8030711274074775]]]),self.functionspace)
3341        arg1.setTaggedValue(1,numarray.array([[[-0.38773511596923793, 0.69166649005324743], [-2.4838005031008725, 0.2114193801043518]], [[-2.0219425518790732, -1.0837798424159129], [-2.3985472013086016, 1.933325258994703]], [[-3.5733445026210751, 0.78035338401677734], [4.197561801162033, -3.8411731530245721]], [[-2.9459009939039094, -3.9045136836735117], [3.3618947957571468, 1.9786572454639622]], [[-4.325266590787753, -4.4546197095344162], [4.1002239839438026, 2.0282127912929546]], [[3.6435123278846255, 2.1550798550760328], [3.6603646425060745, 2.430236386148561]]]))        arg1.setTaggedValue(1,numarray.array([[[-0.38773511596923793, 0.69166649005324743], [-2.4838005031008725, 0.2114193801043518]], [[-2.0219425518790732, -1.0837798424159129], [-2.3985472013086016, 1.933325258994703]], [[-3.5733445026210751, 0.78035338401677734], [4.197561801162033, -3.8411731530245721]], [[-2.9459009939039094, -3.9045136836735117], [3.3618947957571468, 1.9786572454639622]], [[-4.325266590787753, -4.4546197095344162], [4.1002239839438026, 2.0282127912929546]], [[3.6435123278846255, 2.1550798550760328], [3.6603646425060745, 2.430236386148561]]]))
3342        res=arg0*arg1        res=arg0*arg1
3343        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3344        ref=msk_ref*numarray.array([[[-3.6016890531438066, 0.38027028819044617], [8.5311403773125551, -8.0604589569603267]], [[2.6098026416454498, -0.67070081242512625], [-6.2135253061675044, 7.175419956456496]], [[-1.3052494798015701, -4.1725282264360617], [-7.6567384009278259, -2.9265359064208343]], [[-2.594451568417202, 2.5525952346976362], [8.2947747604016566, 6.3306975258502494]], [[3.2241066025660339, 7.6833465854989758], [-3.3662143878733017, 6.4654118709432451]], [[3.7099129810168852, 5.4490788007481008], [-3.0718069024901329, -6.8279933013404008]]])+(1.-msk_ref)*numarray.array([[[-0.64842474372262082, 1.1567011809935837], [-4.1537576514196308, 0.35356497700619943]], [[-3.3813743636469291, -1.8124478223066991], [-4.0111851887011749, 3.23317616580173]], [[-5.9758451012431282, 1.3050157754715819], [7.0197483361148443, -6.4237455282275162]], [[-4.9265465477104406, -6.5296723985617264], [5.6222294075994705, 3.3089866366570417]], [[-7.233314098086681, -7.4496364259299019], [6.8569664611059844, 3.391860332592151]], [[6.093189525929442, 3.60402513256067], [6.1213723170656795, 4.0641802637210489]]])        ref=msk_ref*numarray.array([[[-3.6016890531438066, 0.38027028819044617], [8.5311403773125551, -8.0604589569603267]], [[2.6098026416454498, -0.67070081242512625], [-6.2135253061675044, 7.175419956456496]], [[-1.3052494798015701, -4.1725282264360617], [-7.6567384009278259, -2.9265359064208343]], [[-2.594451568417202, 2.5525952346976362], [8.2947747604016566, 6.3306975258502494]], [[3.2241066025660339, 7.6833465854989758], [-3.3662143878733017, 6.4654118709432451]], [[3.7099129810168852, 5.4490788007481008], [-3.0718069024901329, -6.8279933013404008]]])+(1.-msk_ref)*numarray.array([[[-0.64842474372262082, 1.1567011809935837], [-4.1537576514196308, 0.35356497700619943]], [[-3.3813743636469291, -1.8124478223066991], [-4.0111851887011749, 3.23317616580173]], [[-5.9758451012431282, 1.3050157754715819], [7.0197483361148443, -6.4237455282275162]], [[-4.9265465477104406, -6.5296723985617264], [5.6222294075994705, 3.3089866366570417]], [[-7.233314098086681, -7.4496364259299019], [6.8569664611059844, 3.391860332592151]], [[6.093189525929442, 3.60402513256067], [6.1213723170656795, 4.0641802637210489]]])
3345        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3346        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 3353  class Test_util_overloaded_binary_with_t Line 3353  class Test_util_overloaded_binary_with_t
3353        arg1=Data(numarray.array([[[[3.4812249215396491, 2.9178310230201774, 0.0022048924324336028, -1.9175704500433586], [-1.0012714533135236, 3.2233211055221496, -2.8814905448902692, 0.16733940052608176], [-1.5169811959524471, 2.6944106601477138, 2.6501612838465363, -2.8482883183224761]], [[-0.35065201828540538, 3.4216611888074411, -4.1671316880540754, 2.1007050688880629], [4.5637534106035496, -0.3341293870761417, 0.24400566710331173, -0.86330674582364519], [3.5806375506866921, -4.4233663735766493, -2.0215864104984282, 4.6922747017737123]]], [[[-1.3824925497200633, -4.7525633463330639, 4.2699493240029227, 0.94836142718456706], [-0.35386031512282656, 3.0255813601837485, -1.5818219570567695, -2.4612702362214076], [3.9930377569198576, 1.4034505424158432, -3.0925604826337283, -3.9332998843171185]], [[2.8746524747222226, 0.68128928538586031, -2.7118081103006455, -1.8965057915567982], [-0.80565267278230568, 1.052035416755035, 3.4919565150116245, 1.9160526947568348], [-3.4223662452644632, -3.9223936694503694, 0.74735008065621944, 4.2594567869818381]]], [[[-2.9139071364900113, 4.2483995068106992, 1.3152982254632128, -0.51807232918913293], [-3.8911314307131173, 0.54787947725167108, -3.24134612379373, 3.6338556624701788], [-4.7572631306876465, 1.5546972520595412, 2.1148618102259551, -1.5916000155023022]], [[0.84673640817317164, -0.0093692225283072972, 3.55050527148342, -0.86789022707078622], [0.5664074506031902, -1.5037271669245511, 0.68698074352069405, 2.3855508738877962], [-4.4221284869652209, 4.8905945172968757, -3.3480102460091876, -0.97135336491982294]]]]),self.functionspace)        arg1=Data(numarray.array([[[[3.4812249215396491, 2.9178310230201774, 0.0022048924324336028, -1.9175704500433586], [-1.0012714533135236, 3.2233211055221496, -2.8814905448902692, 0.16733940052608176], [-1.5169811959524471, 2.6944106601477138, 2.6501612838465363, -2.8482883183224761]], [[-0.35065201828540538, 3.4216611888074411, -4.1671316880540754, 2.1007050688880629], [4.5637534106035496, -0.3341293870761417, 0.24400566710331173, -0.86330674582364519], [3.5806375506866921, -4.4233663735766493, -2.0215864104984282, 4.6922747017737123]]], [[[-1.3824925497200633, -4.7525633463330639, 4.2699493240029227, 0.94836142718456706], [-0.35386031512282656, 3.0255813601837485, -1.5818219570567695, -2.4612702362214076], [3.9930377569198576, 1.4034505424158432, -3.0925604826337283, -3.9332998843171185]], [[2.8746524747222226, 0.68128928538586031, -2.7118081103006455, -1.8965057915567982], [-0.80565267278230568, 1.052035416755035, 3.4919565150116245, 1.9160526947568348], [-3.4223662452644632, -3.9223936694503694, 0.74735008065621944, 4.2594567869818381]]], [[[-2.9139071364900113, 4.2483995068106992, 1.3152982254632128, -0.51807232918913293], [-3.8911314307131173, 0.54787947725167108, -3.24134612379373, 3.6338556624701788], [-4.7572631306876465, 1.5546972520595412, 2.1148618102259551, -1.5916000155023022]], [[0.84673640817317164, -0.0093692225283072972, 3.55050527148342, -0.86789022707078622], [0.5664074506031902, -1.5037271669245511, 0.68698074352069405, 2.3855508738877962], [-4.4221284869652209, 4.8905945172968757, -3.3480102460091876, -0.97135336491982294]]]]),self.functionspace)
3354        arg1.setTaggedValue(1,numarray.array([[[[3.2490441346387691, 3.4976673071078661, 0.94898237214549219, -3.446010746914161], [-3.597787522500786, 3.9541480139835965, 3.1410594152591624, -3.4554060648485354], [-0.50548745605709211, 2.4059006787835324, -1.8132319580611878, -2.1441562762643631]], [[-3.860203887104193, 3.0555115296459689, 1.7470014267813738, 0.1744170609704776], [-1.6392271041717867, 4.9774933065311995, 0.93275043099859545, 3.0176838849246117], [1.8096071150529376, -0.052996165393926375, 3.0888443048297507, 0.70508279050446276]]], [[[3.6144248084987858, -2.9288851473482937, 4.9112257641652395, 1.0911855838563085], [-4.9624043941844542, -1.1701931916302133, 3.2312159367546371, 3.4654715891420089], [-0.83201209919020247, 0.47660680687762103, 2.8904160662877887, 0.089187816351649296]], [[-1.76217311449716, -0.6711114190792431, -1.1866720427841404, -4.4791904415669324], [2.5515367007341494, 3.3749563907509863, 2.3612141901710544, 0.36844284036236807], [2.5339402749164242, -3.8964601891973469, 0.15190452124008047, 3.5051215703147527]]], [[[-2.8379026535899845, 2.3836421539106132, -3.5936308236197725, 3.5501740565469166], [-0.75560644750861528, -2.8891751372178174, -3.3460588337750696, 2.6265018600598449], [-4.2212713656260838, 0.025188779056204424, -4.0842941393654861, -4.040894900196391]], [[-3.7636587026068624, 1.8922933126298647, -1.1875519047740637, -1.204800193819958], [2.3968594480791525, 4.3792914005887287, -3.7838499193929378, -1.9178522390117503], [1.9225340862060971, 0.10950146671084759, -0.79342252598082652, -3.0175597743779359]]]]))        arg1.setTaggedValue(1,numarray.array([[[[3.2490441346387691, 3.4976673071078661, 0.94898237214549219, -3.446010746914161], [-3.597787522500786, 3.9541480139835965, 3.1410594152591624, -3.4554060648485354], [-0.50548745605709211, 2.4059006787835324, -1.8132319580611878, -2.1441562762643631]], [[-3.860203887104193, 3.0555115296459689, 1.7470014267813738, 0.1744170609704776], [-1.6392271041717867, 4.9774933065311995, 0.93275043099859545, 3.0176838849246117], [1.8096071150529376, -0.052996165393926375, 3.0888443048297507, 0.70508279050446276]]], [[[3.6144248084987858, -2.9288851473482937, 4.9112257641652395, 1.0911855838563085], [-4.9624043941844542, -1.1701931916302133, 3.2312159367546371, 3.4654715891420089], [-0.83201209919020247, 0.47660680687762103, 2.8904160662877887, 0.089187816351649296]], [[-1.76217311449716, -0.6711114190792431, -1.1866720427841404, -4.4791904415669324], [2.5515367007341494, 3.3749563907509863, 2.3612141901710544, 0.36844284036236807], [2.5339402749164242, -3.8964601891973469, 0.15190452124008047, 3.5051215703147527]]], [[[-2.8379026535899845, 2.3836421539106132, -3.5936308236197725, 3.5501740565469166], [-0.75560644750861528, -2.8891751372178174, -3.3460588337750696, 2.6265018600598449], [-4.2212713656260838, 0.025188779056204424, -4.0842941393654861, -4.040894900196391]], [[-3.7636587026068624, 1.8922933126298647, -1.1875519047740637, -1.204800193819958], [2.3968594480791525, 4.3792914005887287, -3.7838499193929378, -1.9178522390117503], [1.9225340862060971, 0.10950146671084759, -0.79342252598082652, -3.0175597743779359]]]]))
3355        res=arg0*arg1        res=arg0*arg1
3356        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3357        ref=msk_ref*numarray.array([[[[-10.979687587540324, -9.2027587381012168, -0.006954170045854388, 6.0479644214610051], [3.1579826053993578, -10.166266050199887, 9.0881418702914338, -0.52778386351722906], [4.7845169396192535, -8.4980970628798378, -8.3585357479172959, 8.9834229615333427]], [[1.1059468145515452, -10.791825213896811, 13.143018650670136, -6.6255659688177397], [-14.39395264722998, 1.0538348904758021, -0.76958715818880041, 2.7228457152281558], [-11.293232283700831, 13.951175796369652, 6.3760278978678988, -14.799305262243315]]], [[[4.3603434509813157, 14.989453987837633, -13.467302644566317, -2.9911058392501579], [1.1160656944736731, -9.5426003358641402, 4.9890229155068821, 7.7627785826233469], [-12.593931183522201, -4.4264443831094944, 9.7538506445810889, 12.405519577519946]], [[-9.0665747851880596, -2.1487676547388959, 8.5529681418259553, 5.9815270683645059], [2.541006355689396, -3.3180907488992046, -11.013534737981457, -6.0431774630610295], [10.794048942556737, 12.371121676005863, -2.3571215848067677, -13.434209471591657]]], [[[9.1903829079836008, -13.399335114265353, -4.1484144016885729, 1.6339858671729439], [12.272521435470322, -1.727996791769417, 10.223116461719442, -11.461080743524867], [15.004276978338146, -4.9034723425085582, -6.6702159413564086, 5.0198626427191]], [[-2.6705833263498784, 0.029550269981826326, -11.198195904435185, 2.7373018889288487], [-1.7864335097680863, 4.7427140968606407, -2.1667183570481283, -7.5239617978741657], [13.947271536068001, -15.424800501976323, 10.559532167432298, 3.0636217780518487]]]])+(1.-msk_ref)*numarray.array([[[[11.360683286341761, 12.230024853590422, 3.318233833553295, -12.049401323806398], [-12.580107527295237, 13.826165909925184, 10.98310140508714, -12.082253211008842], [-1.7674991953046206, 8.4125282690545049, -6.3401890360891491, -7.4973067036436545]], [[-13.497678690958098, 10.683972678608409, 6.1086058200489735, 0.60987075192207596], [-5.7317596170337382, 17.40441886046402, 3.2614768506220875, 10.551703656293212], [6.3275143257211353, -0.18530762448319954, 10.800524835558372, 2.4654088838537249]]], [[[12.638281848460183, -10.241207925233009, 17.172706230599232, 3.8154648909352855], [-17.351658618619595, -4.0917247298096013, 11.298344794977941, 12.117448557353944], [-2.9092328566829893, 1.6665144456873626, 10.10669604169604, 0.31185619295508671]], [[-6.161655496173946, -2.3466237964336956, -4.1493450640139402, -15.662041473471346], [8.9217625705601158, 11.800951009488184, 8.2562764536689546, 1.2883058047293705], [8.8602344987941688, -13.624453320093767, 0.53115288191177434, 12.256089603688341]]], [[[-9.9230764215177985, 8.3346985933026509, -12.565573117312795, 12.413621174863133], [-2.6420710779964818, -10.102356980248871, -11.699907139676638, 9.1838874901725305], [-14.760195633942397, 0.088075670679983759, -14.281237878829835, -14.129487089786426]], [[-13.160096553429655, 6.6166368072560893, -4.1524216099114373, -4.2127323785441533], [8.3809144914956999, 15.312732163369029, -13.230697631644301, -6.7060067436838109], [6.7223773994723741, 0.3828853752490331, -2.7742996574959116, -10.551269688469183]]]])        ref=msk_ref*numarray.array([[[[-10.979687587540324, -9.2027587381012168, -0.006954170045854388, 6.0479644214610051], [3.1579826053993578, -10.166266050199887, 9.0881418702914338, -0.52778386351722906], [4.7845169396192535, -8.4980970628798378, -8.3585357479172959, 8.9834229615333427]], [[1.1059468145515452, -10.791825213896811, 13.143018650670136, -6.6255659688177397], [-14.39395264722998, 1.0538348904758021, -0.76958715818880041, 2.7228457152281558], [-11.293232283700831, 13.951175796369652, 6.3760278978678988, -14.799305262243315]]], [[[4.3603434509813157, 14.989453987837633, -13.467302644566317, -2.9911058392501579], [1.1160656944736731, -9.5426003358641402, 4.9890229155068821, 7.7627785826233469], [-12.593931183522201, -4.4264443831094944, 9.7538506445810889, 12.405519577519946]], [[-9.0665747851880596, -2.1487676547388959, 8.5529681418259553, 5.9815270683645059], [2.541006355689396, -3.3180907488992046, -11.013534737981457, -6.0431774630610295], [10.794048942556737, 12.371121676005863, -2.3571215848067677, -13.434209471591657]]], [[[9.1903829079836008, -13.399335114265353, -4.1484144016885729, 1.6339858671729439], [12.272521435470322, -1.727996791769417, 10.223116461719442, -11.461080743524867], [15.004276978338146, -4.9034723425085582, -6.6702159413564086, 5.0198626427191]], [[-2.6705833263498784, 0.029550269981826326, -11.198195904435185, 2.7373018889288487], [-1.7864335097680863, 4.7427140968606407, -2.1667183570481283, -7.5239617978741657], [13.947271536068001, -15.424800501976323, 10.559532167432298, 3.0636217780518487]]]])+(1.-msk_ref)*numarray.array([[[[11.360683286341761, 12.230024853590422, 3.318233833553295, -12.049401323806398], [-12.580107527295237, 13.826165909925184, 10.98310140508714, -12.082253211008842], [-1.7674991953046206, 8.4125282690545049, -6.3401890360891491, -7.4973067036436545]], [[-13.497678690958098, 10.683972678608409, 6.1086058200489735, 0.60987075192207596], [-5.7317596170337382, 17.40441886046402, 3.2614768506220875, 10.551703656293212], [6.3275143257211353, -0.18530762448319954, 10.800524835558372, 2.4654088838537249]]], [[[12.638281848460183, -10.241207925233009, 17.172706230599232, 3.8154648909352855], [-17.351658618619595, -4.0917247298096013, 11.298344794977941, 12.117448557353944], [-2.9092328566829893, 1.6665144456873626, 10.10669604169604, 0.31185619295508671]], [[-6.161655496173946, -2.3466237964336956, -4.1493450640139402, -15.662041473471346], [8.9217625705601158, 11.800951009488184, 8.2562764536689546, 1.2883058047293705], [8.8602344987941688, -13.624453320093767, 0.53115288191177434, 12.256089603688341]]], [[[-9.9230764215177985, 8.3346985933026509, -12.565573117312795, 12.413621174863133], [-2.6420710779964818, -10.102356980248871, -11.699907139676638, 9.1838874901725305], [-14.760195633942397, 0.088075670679983759, -14.281237878829835, -14.129487089786426]], [[-13.160096553429655, 6.6166368072560893, -4.1524216099114373, -4.2127323785441533], [8.3809144914956999, 15.312732163369029, -13.230697631644301, -6.7060067436838109], [6.7223773994723741, 0.3828853752490331, -2.7742996574959116, -10.551269688469183]]]])
3358        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3359        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 3366  class Test_util_overloaded_binary_with_t Line 3366  class Test_util_overloaded_binary_with_t
3366        arg1=Data(0.183762749507,self.functionspace)        arg1=Data(0.183762749507,self.functionspace)
3367        arg1.setTaggedValue(1,-0.0270620652542)        arg1.setTaggedValue(1,-0.0270620652542)
3368        res=arg0*arg1        res=arg0*arg1
3369        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3370        ref=msk_ref*numarray.array([0.70333020688977776, -0.83648957359109533])+(1.-msk_ref)*numarray.array([-0.046619554977702406, -0.019130470845027645])        ref=msk_ref*numarray.array([0.70333020688977776, -0.83648957359109533])+(1.-msk_ref)*numarray.array([-0.046619554977702406, -0.019130470845027645])
3371        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3372        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 3379  class Test_util_overloaded_binary_with_t Line 3379  class Test_util_overloaded_binary_with_t
3379        arg1=Data(numarray.array([0.89989683782981356, -4.1812985044019335]),self.functionspace)        arg1=Data(numarray.array([0.89989683782981356, -4.1812985044019335]),self.functionspace)
3380        arg1.setTaggedValue(1,numarray.array([0.53506112756503743, 0.30884630653134426]))        arg1.setTaggedValue(1,numarray.array([0.53506112756503743, 0.30884630653134426]))
3381        res=arg0*arg1        res=arg0*arg1
3382        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3383        ref=msk_ref*numarray.array([3.6450883380213579, -0.83636281387793632])+(1.-msk_ref)*numarray.array([0.02810250004627541, 0.69074261902358303])        ref=msk_ref*numarray.array([3.6450883380213579, -0.83636281387793632])+(1.-msk_ref)*numarray.array([0.02810250004627541, 0.69074261902358303])
3384        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3385        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 3392  class Test_util_overloaded_binary_with_t Line 3392  class Test_util_overloaded_binary_with_t
3392        arg1=Data(0.751618640206,self.functionspace)        arg1=Data(0.751618640206,self.functionspace)
3393        arg1.setTaggedValue(1,-2.6765230481)        arg1.setTaggedValue(1,-2.6765230481)
3394        res=arg0*arg1        res=arg0*arg1
3395        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3396        ref=msk_ref*numarray.array([[-2.7543523213457584, -0.71364025516439489, 1.7642047523466848, -3.0473425922133197, -3.5865019196227035], [-0.14880697978421981, -1.0095406827982432, -1.4019774202866204, 0.50533963211786126, 2.1333872118741768], [-3.098170791709717, 3.4774775096993498, -0.59090904623647533, 1.1774438255350586, 2.83420149096801], [0.70155799760158943, -2.7212225445380689, -3.7082826260798374, 1.2900026066943215, 1.6677052518753728]])+(1.-msk_ref)*numarray.array([[6.3025247507844924, -3.7409630217221883, -0.35486607449094731, 10.528359226384925, 8.7967185643802299], [-11.136864458288432, 6.7496200186658157, -7.4593536944200522, -2.7001416964916873, -2.7556123287989109], [3.6152406993517565, -4.4755698195145657, 6.4645165552326667, 12.726930925212693, 7.1419569763882667], [1.7711815965428568, 10.801617476913664, -8.2028319101494276, -9.4672862110603528, 8.4196977563943953]])        ref=msk_ref*numarray.array([[-2.7543523213457584, -0.71364025516439489, 1.7642047523466848, -3.0473425922133197, -3.5865019196227035], [-0.14880697978421981, -1.0095406827982432, -1.4019774202866204, 0.50533963211786126, 2.1333872118741768], [-3.098170791709717, 3.4774775096993498, -0.59090904623647533, 1.1774438255350586, 2.83420149096801], [0.70155799760158943, -2.7212225445380689, -3.7082826260798374, 1.2900026066943215, 1.6677052518753728]])+(1.-msk_ref)*numarray.array([[6.3025247507844924, -3.7409630217221883, -0.35486607449094731, 10.528359226384925, 8.7967185643802299], [-11.136864458288432, 6.7496200186658157, -7.4593536944200522, -2.7001416964916873, -2.7556123287989109], [3.6152406993517565, -4.4755698195145657, 6.4645165552326667, 12.726930925212693, 7.1419569763882667], [1.7711815965428568, 10.801617476913664, -8.2028319101494276, -9.4672862110603528, 8.4196977563943953]])
3397        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3398        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 3405  class Test_util_overloaded_binary_with_t Line 3405  class Test_util_overloaded_binary_with_t
3405        arg1=Data(numarray.array([[3.5691299286851024, 4.9512794573102905, 1.8438692370037204, 1.1360135413814803, -2.6203959933604235], [1.9834881274719054, -1.4099192763848736, 4.2929027097467287, -3.2164450171588053, -0.63196137753241999], [4.5922165417466658, -2.9041458994985292, -3.0811838793254354, 4.210894493452253, 0.5304496717155196], [-0.34903156971157756, 4.4748437574863953, 3.5377759199181344, -0.11858203827521585, -1.9190934036562926]]),self.functionspace)        arg1=Data(numarray.array([[3.5691299286851024, 4.9512794573102905, 1.8438692370037204, 1.1360135413814803, -2.6203959933604235], [1.9834881274719054, -1.4099192763848736, 4.2929027097467287, -3.2164450171588053, -0.63196137753241999], [4.5922165417466658, -2.9041458994985292, -3.0811838793254354, 4.210894493452253, 0.5304496717155196], [-0.34903156971157756, 4.4748437574863953, 3.5377759199181344, -0.11858203827521585, -1.9190934036562926]]),self.functionspace)
3406        arg1.setTaggedValue(1,numarray.array([[-1.5937072758425908, -0.33837739684422186, 3.064357378499448, -2.3889480357871151, -0.46048301032346561], [4.66972555684303, 1.0088008101323727, 0.04516901885279978, 3.4230810523599828, 3.781546081097737], [0.20243258925208973, 2.2115251412678507, -1.6029450150263926, -0.01871320336909843, -4.001857264241786], [-2.8019971415916212, 3.4074385941335592, -0.73623535581384925, 2.4304097679967498, 0.22963562168701301]]))        arg1.setTaggedValue(1,numarray.array([[-1.5937072758425908, -0.33837739684422186, 3.064357378499448, -2.3889480357871151, -0.46048301032346561], [4.66972555684303, 1.0088008101323727, 0.04516901885279978, 3.4230810523599828, 3.781546081097737], [0.20243258925208973, 2.2115251412678507, -1.6029450150263926, -0.01871320336909843, -4.001857264241786], [-2.8019971415916212, 3.4074385941335592, -0.73623535581384925, 2.4304097679967498, 0.22963562168701301]]))
3407        res=arg0*arg1        res=arg0*arg1
3408        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3409        ref=msk_ref*numarray.array([[-6.0871284336727092, -23.996427398605785, 1.9295470164134116, 5.5018983996973985, 0.55783057685329385], [-5.4489183625498105, 5.5950595679846131, -7.4003455380619201, -8.0661228965921961, 1.9913529976371145], [8.7012644445096452, 3.030110375215652, 2.8265676125888741, 9.4628687543915397, -0.26015332429300014], [-0.55997563418315377, -10.78570305120104, 2.6972242040080081, 0.51965459311308537, -8.7983142862171348]])+(1.-msk_ref)*numarray.array([[-3.6094739232338138, -0.60016050405059784, -13.931922942890777, 8.0991808609592102, 1.2726778386687718], [5.5820139749307947, -1.7905349932132533, -0.077008768024090221, -13.627524126453293, -13.651060660328431], [-0.35002592124543708, -8.098889641384206, -1.5684718399887911, 0.090977665206009251, 13.450211195778431], [7.5302878539301688, -1.6633240476092326, -1.6317600807620978, -5.7007675353362028, -0.57230111565314967]])        ref=msk_ref*numarray.array([[-6.0871284336727092, -23.996427398605785, 1.9295470164134116, 5.5018983996973985, 0.55783057685329385], [-5.4489183625498105, 5.5950595679846131, -7.4003455380619201, -8.0661228965921961, 1.9913529976371145], [8.7012644445096452, 3.030110375215652, 2.8265676125888741, 9.4628687543915397, -0.26015332429300014], [-0.55997563418315377, -10.78570305120104, 2.6972242040080081, 0.51965459311308537, -8.7983142862171348]])+(1.-msk_ref)*numarray.array([[-3.6094739232338138, -0.60016050405059784, -13.931922942890777, 8.0991808609592102, 1.2726778386687718], [5.5820139749307947, -1.7905349932132533, -0.077008768024090221, -13.627524126453293, -13.651060660328431], [-0.35002592124543708, -8.098889641384206, -1.5684718399887911, 0.090977665206009251, 13.450211195778431], [7.5302878539301688, -1.6633240476092326, -1.6317600807620978, -5.7007675353362028, -0.57230111565314967]])
3410        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3411        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 3418  class Test_util_overloaded_binary_with_t Line 3418  class Test_util_overloaded_binary_with_t
3418        arg1=Data(-4.69364339659,self.functionspace)        arg1=Data(-4.69364339659,self.functionspace)
3419        arg1.setTaggedValue(1,-3.30034890301)        arg1.setTaggedValue(1,-3.30034890301)
3420        res=arg0*arg1        res=arg0*arg1
3421        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3422        ref=msk_ref*numarray.array([[[-17.574742770035272, 21.740583792949348], [-0.01506404804171982, 5.7573219679340779]], [[4.6260556190907947, -7.4471450354707915], [-13.647484735421605, -19.717965661651657]], [[18.298058700234641, 3.4220003446728469], [19.033413222760537, 6.41763527930972]], [[4.8504063780655677, 12.154553528793743], [-21.526398209876252, 19.964987842597594]], [[17.234032496009444, 5.5901548639456502], [-7.0406789680332817, -13.769417794401956]], [[11.300432267584892, -14.283037975828936], [-12.825849791782279, -8.478773074789645]]])+(1.-msk_ref)*numarray.array([[[2.8342156734327655, 4.2574079036667341], [-9.7590234162302334, -6.1975434628986221]], [[-12.494006902169881, -12.992792491683721], [7.6218990868431185, -15.40055731198912]], [[0.10780673984059622, 0.14262181159752199], [4.2906729710449962, 13.605000852434422]], [[-8.2701710621918814, -1.2874836281808204], [3.2525628739287034, 2.4585840249264477]], [[-13.771213607620899, -3.07067842189513], [-1.565234173628363, -13.005762523884524]], [[10.96349755881042, 9.6449190699253222], [12.073203405127536, -11.278599317177205]]])        ref=msk_ref*numarray.array([[[-17.574742770035272, 21.740583792949348], [-0.01506404804171982, 5.7573219679340779]], [[4.6260556190907947, -7.4471450354707915], [-13.647484735421605, -19.717965661651657]], [[18.298058700234641, 3.4220003446728469], [19.033413222760537, 6.41763527930972]], [[4.8504063780655677, 12.154553528793743], [-21.526398209876252, 19.964987842597594]], [[17.234032496009444, 5.5901548639456502], [-7.0406789680332817, -13.769417794401956]], [[11.300432267584892, -14.283037975828936], [-12.825849791782279, -8.478773074789645]]])+(1.-msk_ref)*numarray.array([[[2.8342156734327655, 4.2574079036667341], [-9.7590234162302334, -6.1975434628986221]], [[-12.494006902169881, -12.992792491683721], [7.6218990868431185, -15.40055731198912]], [[0.10780673984059622, 0.14262181159752199], [4.2906729710449962, 13.605000852434422]], [[-8.2701710621918814, -1.2874836281808204], [3.2525628739287034, 2.4585840249264477]], [[-13.771213607620899, -3.07067842189513], [-1.565234173628363, -13.005762523884524]], [[10.96349755881042, 9.6449190699253222], [12.073203405127536, -11.278599317177205]]])
3423        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3424        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 3431  class Test_util_overloaded_binary_with_t Line 3431  class Test_util_overloaded_binary_with_t
3431        arg1=Data(numarray.array([[[-2.0444026065036791, 1.6184790271764324], [0.60952262921762212, -2.2029251876892966]], [[4.875159971482276, -4.915409184414341], [1.0711414034526223, 0.26509812555141288]], [[4.7804472710508144, 0.24766874715916742], [-2.3990963276483281, 2.3313278932397736]], [[-1.4868184802561011, -0.2627726214655679], [-0.020654077201388787, 0.00036099260437705283]], [[-3.1226693543942652, 0.19874398149199113], [-2.3480608573548256, -3.7552582490114728]], [[2.0666935571397049, -3.7309591313719812], [1.4854020755350881, -0.86230906049862366]]]),self.functionspace)        arg1=Data(numarray.array([[[-2.0444026065036791, 1.6184790271764324], [0.60952262921762212, -2.2029251876892966]], [[4.875159971482276, -4.915409184414341], [1.0711414034526223, 0.26509812555141288]], [[4.7804472710508144, 0.24766874715916742], [-2.3990963276483281, 2.3313278932397736]], [[-1.4868184802561011, -0.2627726214655679], [-0.020654077201388787, 0.00036099260437705283]], [[-3.1226693543942652, 0.19874398149199113], [-2.3480608573548256, -3.7552582490114728]], [[2.0666935571397049, -3.7309591313719812], [1.4854020755350881, -0.86230906049862366]]]),self.functionspace)
3432        arg1.setTaggedValue(1,numarray.array([[[-1.8640386794705419, 4.3022630879288055], [4.2424324980753152, 1.5386252617530438]], [[-1.5598338183333693, -3.9476821047830821], [4.8256799248908351, 4.6203582319908705]], [[-4.834277209512539, 4.8405770573361462], [-0.29044054079314563, -1.1036788159542055]], [[0.84096341939734476, 1.9936067523607068], [3.1345295703523952, -4.2976034775820935]], [[-2.4573752401881399, 1.6374297569864202], [2.9827541853076642, -0.69812389823252907]], [[-4.5207179800543411, 2.4433538210396009], [1.7905735491856181, 3.2609806873186713]]]))        arg1.setTaggedValue(1,numarray.array([[[-1.8640386794705419, 4.3022630879288055], [4.2424324980753152, 1.5386252617530438]], [[-1.5598338183333693, -3.9476821047830821], [4.8256799248908351, 4.6203582319908705]], [[-4.834277209512539, 4.8405770573361462], [-0.29044054079314563, -1.1036788159542055]], [[0.84096341939734476, 1.9936067523607068], [3.1345295703523952, -4.2976034775820935]], [[-2.4573752401881399, 1.6374297569864202], [2.9827541853076642, -0.69812389823252907]], [[-4.5207179800543411, 2.4433538210396009], [1.7905735491856181, 3.2609806873186713]]]))
3433        res=arg0*arg1        res=arg0*arg1
3434        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3435        ref=msk_ref*numarray.array([[[6.7549561543191565, 4.3373381441494878], [0.19097947881222874, 6.8492163808518551]], [[-6.8441157005363378, -2.4427941280215451], [-1.4781245664355678, 0.64718057362173964]], [[-6.0434654350656682, -0.057106097255627916], [-5.1385700595716557, -5.1126536254528876]], [[-1.9955564715221552, 1.0786233034565988], [0.07304961768772418, -0.00023651413754300116]], [[-10.018781196644214, -0.28790162151944082], [-1.4465154758968304, -9.640712493546344]], [[-10.144883038570949, 9.1334764816527905], [4.6774048810076279, 3.965081088998275]]])+(1.-msk_ref)*numarray.array([[[-5.5230998758151006, -0.72704302280011979], [4.4956846241072785, -0.72468090525369411]], [[-1.5311934287491595, -14.511540148873186], [8.9018999922065696, -5.8709997933081794]], [[6.2223631084128819, -0.098892836248127752], [-0.29970350311847083, 4.208343728587904]], [[-4.0090998498188473, -8.2525888793213511], [-11.2439523422715, 6.4216279800202285]], [[0.39022588228645105, -3.9244587725908406], [-4.828360345800176, 2.5451421201002762]], [[-7.7329834428986066, 9.3877641795460551], [5.9949768014761071, 14.873461815813654]]])        ref=msk_ref*numarray.array([[[6.7549561543191565, 4.3373381441494878], [0.19097947881222874, 6.8492163808518551]], [[-6.8441157005363378, -2.4427941280215451], [-1.4781245664355678, 0.64718057362173964]], [[-6.0434654350656682, -0.057106097255627916], [-5.1385700595716557, -5.1126536254528876]], [[-1.9955564715221552, 1.0786233034565988], [0.07304961768772418, -0.00023651413754300116]], [[-10.018781196644214, -0.28790162151944082], [-1.4465154758968304, -9.640712493546344]], [[-10.144883038570949, 9.1334764816527905], [4.6774048810076279, 3.965081088998275]]])+(1.-msk_ref)*numarray.array([[[-5.5230998758151006, -0.72704302280011979], [4.4956846241072785, -0.72468090525369411]], [[-1.5311934287491595, -14.511540148873186], [8.9018999922065696, -5.8709997933081794]], [[6.2223631084128819, -0.098892836248127752], [-0.29970350311847083, 4.208343728587904]], [[-4.0090998498188473, -8.2525888793213511], [-11.2439523422715, 6.4216279800202285]], [[0.39022588228645105, -3.9244587725908406], [-4.828360345800176, 2.5451421201002762]], [[-7.7329834428986066, 9.3877641795460551], [5.9949768014761071, 14.873461815813654]]])
3436        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3437        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 3444  class Test_util_overloaded_binary_with_t Line 3444  class Test_util_overloaded_binary_with_t
3444        arg1=Data(0.447062126416,self.functionspace)        arg1=Data(0.447062126416,self.functionspace)
3445        arg1.setTaggedValue(1,-0.201753069462)        arg1.setTaggedValue(1,-0.201753069462)
3446        res=arg0*arg1        res=arg0*arg1
3447        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3448        ref=msk_ref*numarray.array([[[[-0.76851984416111474, -1.4185259915132782, -0.46607635155651012, 1.7678538717465881], [0.074901809141507417, 2.0780717861621767, -1.2792022337678646, 0.46537227095052808], [2.1535573746470664, -1.1293160558713602, -1.2521222276095578, -1.1791279226908793]], [[0.022755515719080216, -1.9340744620740298, 0.094106200219808339, 0.90583409896349887], [2.0679677034189896, -0.24337131710242452, 1.8657532566407686, 0.82293293047781646], [-1.7056979379611974, 0.20869134468272094, 1.8279760461013279, 0.89816096215596397]]], [[[-0.37740510359604812, -1.9220502340067622, 1.7524424595005832, 1.9607268975851442], [0.91528142982308347, -0.30936639621318285, -1.2431104204960284, -1.0702455283476726], [0.14215156490238448, -1.7996726087982009, 0.40408964430764921, -0.85833741781649531]], [[-1.0969794671967856, 2.1194170761452655, -0.95076868242758505, -1.9874643412674871], [1.3014721035302601, 0.0015247773537638931, -1.7100315906343597, 1.3078970476995475], [1.1353888566131645, -0.047622740491890407, 1.5070736153729998, -2.2251121970035506]]], [[[0.042783381914652308, -1.3022789159056387, 0.57011122278335791, -1.781529492816279], [-1.408559423280564, 0.27920642528853923, -0.90408641100338916, 0.153070843904107], [-1.0884666884667356, -1.8357905194127355, -0.5701805487940993, -0.77468659004690799]], [[-1.9049284152258261, -1.6304978697759922, 0.052335697666138908, 1.8835086539634271], [1.0793611148709963, 1.5618282001004999, -2.0425036021175758, 1.3593060912087376], [-1.6902253427343716, -1.4138993351244276, 0.84866971714522421, 0.47071333775235175]]]])+(1.-msk_ref)*numarray.array([[[[0.26058237663984468, -0.33950500463505273, 0.69989871576431084, -0.071725283477851232], [-0.61761614016901156, -0.6035010871185823, 0.42199872814393574, 0.054066392692641185], [-0.7362758546072079, -0.016057630321417549, -0.55458343260133502, -0.40396235090691862]], [[-0.4603209569487216, -1.0008326908678382, 0.54056922560302778, 0.19085300276368955], [0.48986490778875735, -0.97055544345590394, 0.04213975891640577, -0.58104032368074066], [0.14441699807191355, 0.65657845710152674, 0.61328546817950214, 0.86934299411299421]]], [[[-0.94214275221364785, -0.0032885280204620702, 0.27626236068978643, -0.12960262151707755], [0.10450715843496125, -0.93609353064367873, 0.05871329778339094, 0.99541817100361363], [-0.65992540978926806, -0.497459125841128, 0.093404945635742975, -0.47758932540593474]], [[-0.96019176776309789, 0.32910443835246805, -0.72863597171120675, 0.58452314708855579], [0.51731433881661026, -0.30206619720293565, 0.95111780282909097, -0.62832119314830781], [-0.77339913992927434, -0.60852013677515515, 0.35950701257887541, 0.44197686459909752]]], [[[0.058212001771784753, 0.52336732188571156, 0.8195151636843121, 0.35426165878589405], [-0.19782677707851681, -0.62968797123632425, 0.0095226420368570933, -0.23867930313573207], [-0.73727710876708252, -0.19472097023074528, 0.25590773945786, 0.084760514012231086]], [[0.46459268554181277, -0.084590334288234495, 0.059918592933415553, -0.6117267993705251], [-0.90771853736767716, -0.20361283128765473, 0.36595940111091835, 0.10900803785384955], [0.70661518531968037, 0.88553705605568112, 0.48796331465326892, 0.58401918181910339]]]])        ref=msk_ref*numarray.array([[[[-0.76851984416111474, -1.4185259915132782, -0.46607635155651012, 1.7678538717465881], [0.074901809141507417, 2.0780717861621767, -1.2792022337678646, 0.46537227095052808], [2.1535573746470664, -1.1293160558713602, -1.2521222276095578, -1.1791279226908793]], [[0.022755515719080216, -1.9340744620740298, 0.094106200219808339, 0.90583409896349887], [2.0679677034189896, -0.24337131710242452, 1.8657532566407686, 0.82293293047781646], [-1.7056979379611974, 0.20869134468272094, 1.8279760461013279, 0.89816096215596397]]], [[[-0.37740510359604812, -1.9220502340067622, 1.7524424595005832, 1.9607268975851442], [0.91528142982308347, -0.30936639621318285, -1.2431104204960284, -1.0702455283476726], [0.14215156490238448, -1.7996726087982009, 0.40408964430764921, -0.85833741781649531]], [[-1.0969794671967856, 2.1194170761452655, -0.95076868242758505, -1.9874643412674871], [1.3014721035302601, 0.0015247773537638931, -1.7100315906343597, 1.3078970476995475], [1.1353888566131645, -0.047622740491890407, 1.5070736153729998, -2.2251121970035506]]], [[[0.042783381914652308, -1.3022789159056387, 0.57011122278335791, -1.781529492816279], [-1.408559423280564, 0.27920642528853923, -0.90408641100338916, 0.153070843904107], [-1.0884666884667356, -1.8357905194127355, -0.5701805487940993, -0.77468659004690799]], [[-1.9049284152258261, -1.6304978697759922, 0.052335697666138908, 1.8835086539634271], [1.0793611148709963, 1.5618282001004999, -2.0425036021175758, 1.3593060912087376], [-1.6902253427343716, -1.4138993351244276, 0.84866971714522421, 0.47071333775235175]]]])+(1.-msk_ref)*numarray.array([[[[0.26058237663984468, -0.33950500463505273, 0.69989871576431084, -0.071725283477851232], [-0.61761614016901156, -0.6035010871185823, 0.42199872814393574, 0.054066392692641185], [-0.7362758546072079, -0.016057630321417549, -0.55458343260133502, -0.40396235090691862]], [[-0.4603209569487216, -1.0008326908678382, 0.54056922560302778, 0.19085300276368955], [0.48986490778875735, -0.97055544345590394, 0.04213975891640577, -0.58104032368074066], [0.14441699807191355, 0.65657845710152674, 0.61328546817950214, 0.86934299411299421]]], [[[-0.94214275221364785, -0.0032885280204620702, 0.27626236068978643, -0.12960262151707755], [0.10450715843496125, -0.93609353064367873, 0.05871329778339094, 0.99541817100361363], [-0.65992540978926806, -0.497459125841128, 0.093404945635742975, -0.47758932540593474]], [[-0.96019176776309789, 0.32910443835246805, -0.72863597171120675, 0.58452314708855579], [0.51731433881661026, -0.30206619720293565, 0.95111780282909097, -0.62832119314830781], [-0.77339913992927434, -0.60852013677515515, 0.35950701257887541, 0.44197686459909752]]], [[[0.058212001771784753, 0.52336732188571156, 0.8195151636843121, 0.35426165878589405], [-0.19782677707851681, -0.62968797123632425, 0.0095226420368570933, -0.23867930313573207], [-0.73727710876708252, -0.19472097023074528, 0.25590773945786, 0.084760514012231086]], [[0.46459268554181277, -0.084590334288234495, 0.059918592933415553, -0.6117267993705251], [-0.90771853736767716, -0.20361283128765473, 0.36595940111091835, 0.10900803785384955], [0.70661518531968037, 0.88553705605568112, 0.48796331465326892, 0.58401918181910339]]]])
3449        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3450        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 3457  class Test_util_overloaded_binary_with_t Line 3457  class Test_util_overloaded_binary_with_t
3457        arg1=Data(numarray.array([[[[-0.6877644775283418, -2.2748901437702251, 0.75136227068943739, 0.54390983361969525], [4.6798581940426445, 0.85193543064995847, 3.6176634924942448, -1.1954932760040649], [-1.7294515666796482, 1.4939459445086944, 0.70557056518230432, -4.2301702307575964]], [[3.4667419026322932, 3.4626939743352434, -2.247024764719725, -4.3904717796285588], [2.850218632416782, -4.373428719833595, 2.7870084082734259, -2.8679149026298925], [2.755852667768961, 4.0114964526093608, 1.9660653291580896, 2.0231157322642073]]], [[[1.1331018911654001, -2.5946422168894712, 3.3281440837407761, -1.4659291839542887], [4.9682756913562258, 4.3030710802501133, 0.46749727788872786, 4.9685136830149741], [2.5076209132852227, -0.87601084069697599, -3.1820171989848731, -2.2101995587677403]], [[0.16267043236319534, 0.52441289089565135, -4.9502368461030208, 3.9107772486011374], [-2.6810096214600856, 3.9841141053036626, -0.95937935710436495, -0.9711584276472891], [-1.0351273257663052, -1.7682434946573933, 0.34370322844275325, -1.3712053876711181]]], [[[-4.7510047640509923, -3.4200169091179022, -0.43218888971286251, 1.5737747366695398], [4.2905465979876105, 3.3956488255156323, -3.8793324037004959, -3.0878520770099427], [-2.6335287222865036, -4.7540981754543541, 2.8604792505866783, -4.061558082709106]], [[-4.3170334129271595, -3.4692017862487146, 3.000717869318942, 4.4333041875599815], [2.4486899405704481, -1.6286489287097083, -3.001328134699579, -4.9948069259508143], [-4.5294647348097126, -3.5621594110932109, 0.054499652669305121, 0.31347153200218081]]]]),self.functionspace)        arg1=Data(numarray.array([[[[-0.6877644775283418, -2.2748901437702251, 0.75136227068943739, 0.54390983361969525], [4.6798581940426445, 0.85193543064995847, 3.6176634924942448, -1.1954932760040649], [-1.7294515666796482, 1.4939459445086944, 0.70557056518230432, -4.2301702307575964]], [[3.4667419026322932, 3.4626939743352434, -2.247024764719725, -4.3904717796285588], [2.850218632416782, -4.373428719833595, 2.7870084082734259, -2.8679149026298925], [2.755852667768961, 4.0114964526093608, 1.9660653291580896, 2.0231157322642073]]], [[[1.1331018911654001, -2.5946422168894712, 3.3281440837407761, -1.4659291839542887], [4.9682756913562258, 4.3030710802501133, 0.46749727788872786, 4.9685136830149741], [2.5076209132852227, -0.87601084069697599, -3.1820171989848731, -2.2101995587677403]], [[0.16267043236319534, 0.52441289089565135, -4.9502368461030208, 3.9107772486011374], [-2.6810096214600856, 3.9841141053036626, -0.95937935710436495, -0.9711584276472891], [-1.0351273257663052, -1.7682434946573933, 0.34370322844275325, -1.3712053876711181]]], [[[-4.7510047640509923, -3.4200169091179022, -0.43218888971286251, 1.5737747366695398], [4.2905465979876105, 3.3956488255156323, -3.8793324037004959, -3.0878520770099427], [-2.6335287222865036, -4.7540981754543541, 2.8604792505866783, -4.061558082709106]], [[-4.3170334129271595, -3.4692017862487146, 3.000717869318942, 4.4333041875599815], [2.4486899405704481, -1.6286489287097083, -3.001328134699579, -4.9948069259508143], [-4.5294647348097126, -3.5621594110932109, 0.054499652669305121, 0.31347153200218081]]]]),self.functionspace)
3458        arg1.setTaggedValue(1,numarray.array([[[[4.8770345803409167, -1.359590348870011, -4.7907381162281801, -1.6195886745722055], [1.279755407943779, -1.486414757307406, -4.8634720090161423, 2.3021398812687641], [0.34716950716454242, 0.046377840375470214, -3.6630268256689611, 0.25052380370799465]], [[3.4650026724915062, 3.6480724730400951, -2.1254343134595413, -3.9410878856250218], [0.75275151132314022, -2.12641026545346, -0.092378743730891166, -0.64749248802068671], [-1.8281014076270443, -2.1919977696314588, -2.2960468988950087, 1.6558006705308781]]], [[[3.1323795658233813, -3.0120365159856788, 2.3469113475407823, -3.5149507352609177], [1.0077269591359723, 2.9409868253816596, -4.4516362767771938, -3.9551085662768628], [-3.9477221532183027, -2.4835877486136382, -4.8953069200918033, -3.2885535304954683]], [[-3.293689490126277, -2.0264322135735888, -3.3380054806525883, 1.9356715857363902], [0.69306129508112235, 3.5058624107236227, 0.902969603036885, -2.6357617531577091], [2.4118437662875367, 4.0702227531597686, 1.6787466288535953, -3.8535138606901542]]], [[[2.8362822126004703, 2.5861086828489448, 4.1490653991232023, 2.5721003949748047], [0.76735984275115499, 4.6651083907971618, -1.7730500382727543, 0.47192829833828664], [-4.2384958985464039, 4.7908935635162884, -2.1698622777980034, -0.76705531632890178]], [[1.1064747676018545, -2.5384823704232904, -0.029896718222782503, -1.3545366161932151], [3.4778870993564954, -3.8252341615326002, 0.41480611671119938, -0.17554053014023463], [2.8455983091241999, -0.78538750591266915, 2.4919675608182121, 0.60720672856616975]]]]))        arg1.setTaggedValue(1,numarray.array([[[[4.8770345803409167, -1.359590348870011, -4.7907381162281801, -1.6195886745722055], [1.279755407943779, -1.486414757307406, -4.8634720090161423, 2.3021398812687641], [0.34716950716454242, 0.046377840375470214, -3.6630268256689611, 0.25052380370799465]], [[3.4650026724915062, 3.6480724730400951, -2.1254343134595413, -3.9410878856250218], [0.75275151132314022, -2.12641026545346, -0.092378743730891166, -0.64749248802068671], [-1.8281014076270443, -2.1919977696314588, -2.2960468988950087, 1.6558006705308781]]], [[[3.1323795658233813, -3.0120365159856788, 2.3469113475407823, -3.5149507352609177], [1.0077269591359723, 2.9409868253816596, -4.4516362767771938, -3.9551085662768628], [-3.9477221532183027, -2.4835877486136382, -4.8953069200918033, -3.2885535304954683]], [[-3.293689490126277, -2.0264322135735888, -3.3380054806525883, 1.9356715857363902], [0.69306129508112235, 3.5058624107236227, 0.902969603036885, -2.6357617531577091], [2.4118437662875367, 4.0702227531597686, 1.6787466288535953, -3.8535138606901542]]], [[[2.8362822126004703, 2.5861086828489448, 4.1490653991232023, 2.5721003949748047], [0.76735984275115499, 4.6651083907971618, -1.7730500382727543, 0.47192829833828664], [-4.2384958985464039, 4.7908935635162884, -2.1698622777980034, -0.76705531632890178]], [[1.1064747676018545, -2.5384823704232904, -0.029896718222782503, -1.3545366161932151], [3.4778870993564954, -3.8252341615326002, 0.41480611671119938, -0.17554053014023463], [2.8455983091241999, -0.78538750591266915, 2.4919675608182121, 0.60720672856616975]]]]))
3459        res=arg0*arg1        res=arg0*arg1
3460        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
3461        ref=msk_ref*numarray.array([[[[-1.972546703098762, -4.6408415008819848, 1.2323732363547721, 0.82112657076294093], [10.352377849402449, -1.3197240578856304, -9.095368371033878, -4.5838081173123326], [3.0104957026237305, 5.5945203542663284, -3.2925631347705018, -15.623053338365605]], [[14.874959646342699, 16.176022373744736, -3.7956598169914937, 12.261403507274759], [12.161968011276135, 20.559842825858212, 0.6567815897741599, 1.7249296221547699], [-13.114550393490312, 1.5424956867800848, -3.262071424533425, 3.9093895270428169]]], [[[-5.5271104373287683, -1.0845830626060791, 12.408090662084932, -0.39933232449576839], [5.6884066161331379, 13.261253081105549, -1.9071000707453143, 13.990830782695703], [5.1943666982792625, 0.5834043277314952, 7.4302331940374655, -3.4276687828376744]], [[0.68341183232507707, -0.98943458446091159, 12.744735618710342, 5.5493782280682478], [10.488540274531529, 13.265651662059126, 0.36313195173216284, -4.4836051951436966], [-3.0852342389152612, 3.1297991328134973, 0.35916320002694152, -2.059005758070807]]], [[[-6.3109216962490873, 0.9698575657710139, 1.4269361604678918, 1.7713869559295334], [12.957845286150464, 6.2594797697728861, -1.1321568967953179, -2.7738722378542802], [-0.37286565073379913, -6.5508875372157869, -3.8496218148503383, 17.970147417000302]], [[-10.412801612094658, -15.876140481783928, -0.92033569310526042, 10.080350856731974], [10.40276274920109, 0.34137674885383046, 14.235879691955207, 3.4008431021374861], [-18.607232867600835, 15.560503192265193, -0.15930062007939771, -1.3208462681634405]]]])+(1.-msk_ref)*numarray.array([[[[-20.257736991402322, 3.0481584525647523, 0.20984646020748707, -3.2028221771361522], [4.7337413163336217, 4.3838454932647473, 14.307538777589144, 10.291388195254084], [0.036433141682808055, -0.012368546242052303, -4.8389422645549951, 1.1187890274048335]], [[-14.920737245958568, 0.66683116272859766, 10.561600982747164, 13.62981451326759], [-2.1179576544475349, -6.464555920224889, -0.16394288811549801, 1.0319256178756586], [-6.2696231345877464, -8.3966526144001943, 4.3895097787694803, -4.1580621919190905]]], [[[4.19529453593921, 4.7084699996656667, 6.6925206964556807, -3.3753543094436838], [2.0936138253433305, 2.4770326482288092, -10.066825033358594, -3.0321844688326323], [18.302337075820574, -11.952014995896109, 15.029298906432604, -5.2116826771076132]], [[4.0669121631115148, 7.6190680576977288, -10.861494268628828, 7.2695301950336759], [1.626828540297973, -3.9913405044667081, 0.79036128397884575, 0.35612106690399015], [-9.8490460309690171, 5.4512253116255813, -0.28014628074455561, 7.3621073098844443]]], [[[6.3828560782030852, 12.451091193665871, -12.646912328672581, 5.3376499800391457], [0.67348970025055599, -6.5859947574603446, -5.8550926068713975, -2.0424447945163005], [-10.375515034563072, -0.56886277023201293, 0.0045528409879121929, -3.3415856253098535]], [[-4.434374821448567, -12.662628515031923, 0.0070293438394440364, 5.8616262562326442], [0.36883112452250499, 1.5361290510068082, 1.5279060102572626, 0.36930167232244865], [5.5762018485523184, 0.42972868641981388, 10.869598962265604, -1.7211236145622673]]]])        ref=msk_ref*numarray.array([[[[-1.972546703098762, -4.6408415008819848, 1.2323732363547721, 0.82112657076294093], [10.352377849402449, -1.3197240578856304, -9.095368371033878, -4.5838081173123326], [3.0104957026237305, 5.5945203542663284, -3.2925631347705018, -15.623053338365605]], [[14.874959646342699, 16.176022373744736, -3.7956598169914937, 12.261403507274759], [12.161968011276135, 20.559842825858212, 0.6567815897741599, 1.7249296221547699], [-13.114550393490312, 1.5424956867800848, -3.262071424533425, 3.9093895270428169]]], [[[-5.5271104373287683, -1.0845830626060791, 12.408090662084932, -0.39933232449576839], [5.6884066161331379, 13.261253081105549, -1.9071000707453143, 13.990830782695703], [5.1943666982792625, 0.5834043277314952, 7.4302331940374655, -3.4276687828376744]], [[0.68341183232507707, -0.98943458446091159, 12.744735618710342, 5.5493782280682478], [10.488540274531529, 13.265651662059126, 0.36313195173216284, -4.4836051951436966], [-3.0852342389152612, 3.1297991328134973, 0.35916320002694152, -2.059005758070807]]], [[[-6.3109216962490873, 0.9698575657710139, 1.4269361604678918, 1.7713869559295334], [12.957845286150464, 6.2594797697728861, -1.1321568967953179, -2.7738722378542802], [-0.37286565073379913, -6.5508875372157869, -3.8496218148503383, 17.970147417000302]], [[-10.412801612094658, -15.876140481783928, -0.92033569310526042, 10.080350856731974], [10.40276274920109, 0.34137674885383046, 14.235879691955207, 3.4008431021374861], [-18.607232867600835, 15.560503192265193, -0.15930062007939771, -1.3208462681634405]]]])+(1.-msk_ref)*numarray.array([[[[-20.257736991402322, 3.0481584525647523, 0.20984646020748707, -3.2028221771361522], [4.7337413163336217, 4.3838454932647473, 14.307538777589144, 10.291388195254084], [0.036433141682808055, -0.012368546242052303, -4.8389422645549951, 1.1187890274048335]], [[-14.920737245958568, 0.66683116272859766, 10.561600982747164, 13.62981451326759], [-2.1179576544475349, -6.464555920224889, -0.16394288811549801, 1.0319256178756586], [-6.2696231345877464, -8.3966526144001943, 4.3895097787694803, -4.1580621919190905]]], [[[4.19529453593921, 4.7084699996656667, 6.6925206964556807, -3.3753543094436838], [2.0936138253433305, 2.4770326482288092, -10.066825033358594, -3.0321844688326323], [18.302337075820574, -11.952014995896109, 15.029298906432604, -5.2116826771076132]], [[4.0669121631115148, 7.6190680576977288, -10.861494268628828, 7.2695301950336759], [1.626828540297973, -3.9913405044667081, 0.79036128397884575, 0.35612106690399015], [-9.8490460309690171, 5.4512253116255813, -0.28014628074455561, 7.3621073098844443]]], [[[6.3828560782030852, 12.451091193665871, -12.646912328672581, 5.3376499800391457], [0.67348970025055599, -6.5859947574603446, -5.8550926068713975, -2.0424447945163005], [-10.375515034563072, -0.56886277023201293, 0.0045528409879121929, -3.3415856253098535]], [[-4.434374821448567, -12.662628515031923, 0.0070293438394440364, 5.8616262562326442], [0.36883112452250499, 1.5361290510068082, 1.5279060102572626, 0.36930167232244865], [5.5762018485523184, 0.42972868641981388, 10.869598962265604, -1.7211236145622673]]]])
3462        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
3463        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# 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)
4018        arg1.setTaggedValue(1,1.60456097144)        arg1.setTaggedValue(1,1.60456097144)
4019        arg1.expand()        arg1.expand()
4020        res=arg0/arg1        res=arg0/arg1
4021        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4022        ref=msk_ref*(-1.44427923969)+(1.-msk_ref)*(0.718600819765)        ref=msk_ref*(-1.44427923969)+(1.-msk_ref)*(0.718600819765)
4023        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
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)
4031        arg1.setTaggedValue(1,numarray.array([3.114021857047252, 0.10008508054673104]))        arg1.setTaggedValue(1,numarray.array([3.114021857047252, 0.10008508054673104]))
4032        arg1.expand()        arg1.expand()
4033        res=arg0/arg1        res=arg0/arg1
4034        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4035        ref=msk_ref*numarray.array([1.9100073534757624, 1.4998462133978903])+(1.-msk_ref)*numarray.array([-0.64296349097475847, -20.005003275627548])        ref=msk_ref*numarray.array([1.9100073534757624, 1.4998462133978903])+(1.-msk_ref)*numarray.array([-0.64296349097475847, -20.005003275627548])
4036        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
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)
4044        arg1.setTaggedValue(1,numarray.array([[-3.3859783889657393, -4.4839394837855027, 0.40761343030684483, 0.62017427853840168, 0.79315590574968819], [4.611823226693474, -1.9803892482674201, 4.0135141972339774, 0.47314003176127439, 1.1011054979752899], [-2.3804860772558243, 2.5479357901319508, 3.8728716729138828, -0.26970301851693268, -3.4891404874928966], [1.4584278871775824, -2.7580017330900031, 4.838708039328802, -1.4264068079588057, -3.0704374164044546]]))        arg1.setTaggedValue(1,numarray.array([[-3.3859783889657393, -4.4839394837855027, 0.40761343030684483, 0.62017427853840168, 0.79315590574968819], [4.611823226693474, -1.9803892482674201, 4.0135141972339774, 0.47314003176127439, 1.1011054979752899], [-2.3804860772558243, 2.5479357901319508, 3.8728716729138828, -0.26970301851693268, -3.4891404874928966], [1.4584278871775824, -2.7580017330900031, 4.838708039328802, -1.4264068079588057, -3.0704374164044546]]))
4045        arg1.expand()        arg1.expand()
4046        res=arg0/arg1        res=arg0/arg1
4047        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4048        ref=msk_ref*numarray.array([[-1.0404186422639154, 1.5029835856400873, -1.0271199238007953, 1.9355865009457414, 1.2103058270443545], [-1.3407576770777332, 2.4448646058865409, -8.3789590146926525, 0.9009522686107575, -1.3806591008342803], [1.1573317750214087, 8.9885171610543662, 1.2610629938161126, -4.0191488287368502, -22.435103256846631], [3.1500377742707832, 0.98419483154811127, 1.1388136309615753, -38.146009826108468, 1.0674985071505667]])+(1.-msk_ref)*numarray.array([[0.51456991434589971, 0.38856960846318933, -4.2744484848685573, -2.8094080484817816, -2.1966962572639872], [-0.37779475143420799, 0.8797879563886094, -0.43411397692026032, -3.6824671188809219, -1.5823393968978872], [0.7319188405401984, -0.68381731452382388, -0.44987873514442428, 6.4601524267989623, 0.49935582010316376], [-1.1946580457666589, 0.63173368917180084, -0.36008012788241156, 1.2214766501853977, 0.56745094372497051]])        ref=msk_ref*numarray.array([[-1.0404186422639154, 1.5029835856400873, -1.0271199238007953, 1.9355865009457414, 1.2103058270443545], [-1.3407576770777332, 2.4448646058865409, -8.3789590146926525, 0.9009522686107575, -1.3806591008342803], [1.1573317750214087, 8.9885171610543662, 1.2610629938161126, -4.0191488287368502, -22.435103256846631], [3.1500377742707832, 0.98419483154811127, 1.1388136309615753, -38.146009826108468, 1.0674985071505667]])+(1.-msk_ref)*numarray.array([[0.51456991434589971, 0.38856960846318933, -4.2744484848685573, -2.8094080484817816, -2.1966962572639872], [-0.37779475143420799, 0.8797879563886094, -0.43411397692026032, -3.6824671188809219, -1.5823393968978872], [0.7319188405401984, -0.68381731452382388, -0.44987873514442428, 6.4601524267989623, 0.49935582010316376], [-1.1946580457666589, 0.63173368917180084, -0.36008012788241156, 1.2214766501853977, 0.56745094372497051]])
4049        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
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)
4057        arg1.setTaggedValue(1,numarray.array([[[-1.8923219781201093, -2.7349215148924233], [-3.2080724587704323, 2.7255473360138529]], [[1.9532585980913897, -2.4769636671330897], [-2.0641982451685017, -0.52231436217788474]], [[4.8766931059149758, 4.9785123468885306], [-4.3322694338406276, 1.3911220481054443]], [[-3.4277872458857592, -0.34209859507274487], [3.9534173442797389, 0.076064301005633439]], [[-4.6658285648326512, 0.66662009356085594], [-0.43037456264572871, 4.4454766831101242]], [[0.02690897096143452, -1.2437812763101008], [4.8013379238845229, -0.70182714290652903]]]))        arg1.setTaggedValue(1,numarray.array([[[-1.8923219781201093, -2.7349215148924233], [-3.2080724587704323, 2.7255473360138529]], [[1.9532585980913897, -2.4769636671330897], [-2.0641982451685017, -0.52231436217788474]], [[4.8766931059149758, 4.9785123468885306], [-4.3322694338406276, 1.3911220481054443]], [[-3.4277872458857592, -0.34209859507274487], [3.9534173442797389, 0.076064301005633439]], [[-4.6658285648326512, 0.66662009356085594], [-0.43037456264572871, 4.4454766831101242]], [[0.02690897096143452, -1.2437812763101008], [4.8013379238845229, -0.70182714290652903]]]))
4058        arg1.expand()        arg1.expand()
4059        res=arg0/arg1        res=arg0/arg1
4060        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4061        ref=msk_ref*numarray.array([[[0.12367416568086602, -0.21184652409980201], [1.1169215628897846, -0.22623241078784126]], [[0.12555288373503906, 0.71047168078085277], [2.434197060700741, 0.31431393372119421]], [[1.5576094895171591, 0.28417379344116289], [-0.15541703050358063, 0.19746069727068263]], [[-0.18693590088106068, -0.44106502744924431], [0.71947771538120697, -0.1441626678807725]], [[0.18510525105593223, 0.40584600412529381], [-0.40747636837963225, 0.28372447909710463]], [[-0.12770145353206705, -1.7706518156022191], [-0.21497818611270872, -0.19361349002352529]]])+(1.-msk_ref)*numarray.array([[[-2.4642362611315156, -1.7050319034120851], [-1.4535608207574411, 1.7108961472082065]], [[2.3873584587193055, -1.8825986420773517], [-2.2590506736134919, -8.9278196693193141]], [[0.95620707207590117, 0.93665097348489101], [-1.0763708276762816, 3.352062777360449]], [[-1.3603902756265474, -13.630948806522021], [1.1795183837514258, 61.305084968497027]], [[-0.99942129708037053, 6.9951813353102796], [-10.835046587217185, 1.0489602732450494]], [[173.29270758450068, -3.7491547147692197], [0.97121438027152807, -6.6442691528115176]]])        ref=msk_ref*numarray.array([[[0.12367416568086602, -0.21184652409980201], [1.1169215628897846, -0.22623241078784126]], [[0.12555288373503906, 0.71047168078085277], [2.434197060700741, 0.31431393372119421]], [[1.5576094895171591, 0.28417379344116289], [-0.15541703050358063, 0.19746069727068263]], [[-0.18693590088106068, -0.44106502744924431], [0.71947771538120697, -0.1441626678807725]], [[0.18510525105593223, 0.40584600412529381], [-0.40747636837963225, 0.28372447909710463]], [[-0.12770145353206705, -1.7706518156022191], [-0.21497818611270872, -0.19361349002352529]]])+(1.-msk_ref)*numarray.array([[[-2.4642362611315156, -1.7050319034120851], [-1.4535608207574411, 1.7108961472082065]], [[2.3873584587193055, -1.8825986420773517], [-2.2590506736134919, -8.9278196693193141]], [[0.95620707207590117, 0.93665097348489101], [-1.0763708276762816, 3.352062777360449]], [[-1.3603902756265474, -13.630948806522021], [1.1795183837514258, 61.305084968497027]], [[-0.99942129708037053, 6.9951813353102796], [-10.835046587217185, 1.0489602732450494]], [[173.29270758450068, -3.7491547147692197], [0.97121438027152807, -6.6442691528115176]]])
4062        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
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)
4070        arg1.setTaggedValue(1,numarray.array([[[[4.4029532775525855, -1.2794583911017385, 2.2116669645505009, 4.0372280430621625], [1.2597434228646085, -1.9498847622761186, 2.1355755818358393, -1.2434962073760056], [-2.7182716530855009, -0.020458879868014535, -4.0102943031373623, -0.66194171493406984]], [[2.7611009636686479, -0.52995287741487296, 3.3840860450347741, -0.49817405196504438], [-2.199767859266343, -2.3823180148864056, -2.388450843121487, 3.7616876244212065], [-4.8455888355476233, -2.4034466953760125, 2.9715782875682537, 1.0470845329951644]]], [[[-2.0927578239431224, 2.8732508131325751, 4.4545282333887783, 0.34668571156381223], [4.164036149729494, 3.751233043208952, 4.5605571272969527, 2.1461349398201239], [2.2920546635129604, 4.3306935057898741, -0.080249260842084169, -0.78641690174511858]], [[1.607953891314664, -3.3051180264265376, 3.9490904120897508, -0.85002362574627366], [2.7586761102882402, 1.1942678969622014, 0.72440912431206872, 3.7439455761677447], [-4.970263955895561, 1.266860145804749, 3.3056040701731764, -1.5083371070444542]]], [[[1.8563925528372778, 0.319524985186181, -0.62735601486433534, 3.792017753253651], [0.95176703360505499, -0.24796663592225787, 2.4647140520697182, 1.964227599160421], [3.6552171220798986, 2.5348443529495057, -2.813465204571858, 4.5565891008354509]], [[3.1125587828185388, 4.1989891896862233, 2.3324754666992504, 4.5738156221432131], [0.71412413993541257, 0.92660128246471452, -3.9490083746591278, 0.086510484903197238], [-0.74779213574335923, -0.50155660488376519, 0.81877138380351244, 2.0393373031117203]]]]))        arg1.setTaggedValue(1,numarray.array([[[[4.4029532775525855, -1.2794583911017385, 2.2116669645505009, 4.0372280430621625], [1.2597434228646085, -1.9498847622761186, 2.1355755818358393, -1.2434962073760056], [-2.7182716530855009, -0.020458879868014535, -4.0102943031373623, -0.66194171493406984]], [[2.7611009636686479, -0.52995287741487296, 3.3840860450347741, -0.49817405196504438], [-2.199767859266343, -2.3823180148864056, -2.388450843121487, 3.7616876244212065], [-4.8455888355476233, -2.4034466953760125, 2.9715782875682537, 1.0470845329951644]]], [[[-2.0927578239431224, 2.8732508131325751, 4.4545282333887783, 0.34668571156381223], [4.164036149729494, 3.751233043208952, 4.5605571272969527, 2.1461349398201239], [2.2920546635129604, 4.3306935057898741, -0.080249260842084169, -0.78641690174511858]], [[1.607953891314664, -3.3051180264265376, 3.9490904120897508, -0.85002362574627366], [2.7586761102882402, 1.1942678969622014, 0.72440912431206872, 3.7439455761677447], [-4.970263955895561, 1.266860145804749, 3.3056040701731764, -1.5083371070444542]]], [[[1.8563925528372778, 0.319524985186181, -0.62735601486433534, 3.792017753253651], [0.95176703360505499, -0.24796663592225787, 2.4647140520697182, 1.964227599160421], [3.6552171220798986, 2.5348443529495057, -2.813465204571858, 4.5565891008354509]], [[3.1125587828185388, 4.1989891896862233, 2.3324754666992504, 4.5738156221432131], [0.71412413993541257, 0.92660128246471452, -3.9490083746591278, 0.086510484903197238], [-0.74779213574335923, -0.50155660488376519, 0.81877138380351244, 2.0393373031117203]]]]))
4071        arg1.expand()        arg1.expand()
4072        res=arg0/arg1        res=arg0/arg1
4073        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4074        ref=msk_ref*numarray.array([[[[-6.2270947770121685, -0.72569131005023291, 0.90917051181059461, 0.82766165693219285], [0.74282785642121762, 1.4077998937669847, 1.3402843537491382, -0.78854231455350121], [-1.6501831797669881, 9.6612869090666198, -0.59352936216970387, 0.86522410977130315]], [[-8.2326166704192349, -1.179009583681806, -0.73130057380168556, 1.5274797102655309], [-2.6576591078037262, -0.77909035267444615, -1.7454422478621912, -3.1403220694095015], [1.5758935265051568, -0.79560982530508284, -0.9272565276161312, -0.61546261222870113]]], [[[1.0916777566777229, 0.58829188609231842, 1.4533961343788382, -0.87334750948188644], [-0.5728794663009964, 0.70824552727491696, 0.90854107318831101, 0.86265894892732131], [-0.6642190285636882, -0.97857782064603505, -1.5406248133916649, 4.0378715722997178]], [[6.0352738681460734, 0.85906530057754327, -0.68524899729257749, -0.75816715173394267], [0.72393994226550562, 0.91659027085685185, -1.4208076137330607, 1.3566420087547628], [0.80303746058001002, -0.70966352328431048, 0.78601960262677728, 0.69051552668056715]]], [[[-2.7084222744772144, -0.65296366024769248, -0.72407506548744294, -1.9210988529858974], [-1.9505400733131548, 2.5598602378220541, -11.337683061610832, -155.941096513986], [-2.0670244076816702, -1.2345090676648578, -1.1266264150501122, 0.72366603673261187]], [[-0.82624978583734043, 2.0060823683878728, 1.1841099042100345, 1.3506261775396193], [-0.94534369677381869, -0.92783084439965358, -12.044927103638624, 1.1614262597935805], [-0.78936687113463988, -1.0835881377437204, 3.0011592518799706, 4.4451568146031937]]]])+(1.-msk_ref)*numarray.array([[[[0.54221300621641033, -1.865897749747417, 1.0794294851428443, 0.5913311082228172], [1.895099025342373, -1.2243485251227986, 1.1178899745612927, -1.9198599229264124], [-0.878256052938022, -116.68960120268146, -0.5953025769167376, -3.6065690966310622]], [[0.8646328273632381, -4.5048128514702999, 0.70546035209564317, -4.7921776002490351], [-1.0852683944788606, -1.0021074088070556, -0.99953429635258939, 0.63464560888931154], [-0.49268285318359656, -0.99329789066892193, 0.80339075798195669, 2.2799864362653226]]], [[[-1.1407619675524712, 0.83088414068849681, 0.53593521193960836, 6.8861751529461639], [0.5733232006180522, 0.63641434838981936, 0.52347519529201958, 1.1123897610335147], [1.0415713773567623, 0.55126009948763577, -29.749040773721628, -3.0357162054306048]], [[1.4847058399792141, -0.72231566732681929, 0.60452871009070419, -2.8085555042734645], [0.86539283243466492, 1.9989974937153852, 3.2955666248948861, 0.63765310800693686], [-0.48032429545726701, 1.884453103018465, 0.72220946071351932, -1.5827619182094577]]], [[[1.2860095399560929, 7.4715238041905501, -3.8053967385144816, 0.62956945040771106], [2.5083223609978846, -9.6276602857194842, 0.96860669530708499, 1.2154083029240683], [0.65313179850004, 0.94180872686495098, -0.8485402730315551, 0.5239310545720407]], [[0.76700191046363453, 0.56855076900795321, 1.0235213904438498, 0.52195775476701822], [3.3430301530880921, 2.5764463939678341, -0.60454126868197777, 27.595944416720677], [-3.192516233777984, -4.7598586273336894, 2.9157571699221654, 1.1706442721414778]]]])        ref=msk_ref*numarray.array([[[[-6.2270947770121685, -0.72569131005023291, 0.90917051181059461, 0.82766165693219285], [0.74282785642121762, 1.4077998937669847, 1.3402843537491382, -0.78854231455350121], [-1.6501831797669881, 9.6612869090666198, -0.59352936216970387, 0.86522410977130315]], [[-8.2326166704192349, -1.179009583681806, -0.73130057380168556, 1.5274797102655309], [-2.6576591078037262, -0.77909035267444615, -1.7454422478621912, -3.1403220694095015], [1.5758935265051568, -0.79560982530508284, -0.9272565276161312, -0.61546261222870113]]], [[[1.0916777566777229, 0.58829188609231842, 1.4533961343788382, -0.87334750948188644], [-0.5728794663009964, 0.70824552727491696, 0.90854107318831101, 0.86265894892732131], [-0.6642190285636882, -0.97857782064603505, -1.5406248133916649, 4.0378715722997178]], [[6.0352738681460734, 0.85906530057754327, -0.68524899729257749, -0.75816715173394267], [0.72393994226550562, 0.91659027085685185, -1.4208076137330607, 1.3566420087547628], [0.80303746058001002, -0.70966352328431048, 0.78601960262677728, 0.69051552668056715]]], [[[-2.7084222744772144, -0.65296366024769248, -0.72407506548744294, -1.9210988529858974], [-1.9505400733131548, 2.5598602378220541, -11.337683061610832, -155.941096513986], [-2.0670244076816702, -1.2345090676648578, -1.1266264150501122, 0.72366603673261187]], [[-0.82624978583734043, 2.0060823683878728, 1.1841099042100345, 1.3506261775396193], [-0.94534369677381869, -0.92783084439965358, -12.044927103638624, 1.1614262597935805], [-0.78936687113463988, -1.0835881377437204, 3.0011592518799706, 4.4451568146031937]]]])+(1.-msk_ref)*numarray.array([[[[0.54221300621641033, -1.865897749747417, 1.0794294851428443, 0.5913311082228172], [1.895099025342373, -1.2243485251227986, 1.1178899745612927, -1.9198599229264124], [-0.878256052938022, -116.68960120268146, -0.5953025769167376, -3.6065690966310622]], [[0.8646328273632381, -4.5048128514702999, 0.70546035209564317, -4.7921776002490351], [-1.0852683944788606, -1.0021074088070556, -0.99953429635258939, 0.63464560888931154], [-0.49268285318359656, -0.99329789066892193, 0.80339075798195669, 2.2799864362653226]]], [[[-1.1407619675524712, 0.83088414068849681, 0.53593521193960836, 6.8861751529461639], [0.5733232006180522, 0.63641434838981936, 0.52347519529201958, 1.1123897610335147], [1.0415713773567623, 0.55126009948763577, -29.749040773721628, -3.0357162054306048]], [[1.4847058399792141, -0.72231566732681929, 0.60452871009070419, -2.8085555042734645], [0.86539283243466492, 1.9989974937153852, 3.2955666248948861, 0.63765310800693686], [-0.48032429545726701, 1.884453103018465, 0.72220946071351932, -1.5827619182094577]]], [[[1.2860095399560929, 7.4715238041905501, -3.8053967385144816, 0.62956945040771106], [2.5083223609978846, -9.6276602857194842, 0.96860669530708499, 1.2154083029240683], [0.65313179850004, 0.94180872686495098, -0.8485402730315551, 0.5239310545720407]], [[0.76700191046363453, 0.56855076900795321, 1.0235213904438498, 0.52195775476701822], [3.3430301530880921, 2.5764463939678341, -0.60454126868197777, 27.595944416720677], [-3.192516233777984, -4.7598586273336894, 2.9157571699221654, 1.1706442721414778]]]])
4075        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
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)
4162        arg1.setTaggedValue(1,3.01035980779)        arg1.setTaggedValue(1,3.01035980779)
4163        arg1.expand()        arg1.expand()
4164        res=arg0/arg1        res=arg0/arg1
4165        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4166        ref=msk_ref*numarray.array([-6.9827454219169542, 6.8672385401057205])+(1.-msk_ref)*numarray.array([0.007854998531853381, -1.2017516599288769])        ref=msk_ref*numarray.array([-6.9827454219169542, 6.8672385401057205])+(1.-msk_ref)*numarray.array([0.007854998531853381, -1.2017516599288769])
4167        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
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)
4175        arg1.setTaggedValue(1,numarray.array([-1.4351282824614353, -1.8543086352944451]))        arg1.setTaggedValue(1,numarray.array([-1.4351282824614353, -1.8543086352944451]))
4176        arg1.expand()        arg1.expand()
4177        res=arg0/arg1        res=arg0/arg1
4178        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4179        ref=msk_ref*numarray.array([-3.0135597138409094, -114.15935313527922])+(1.-msk_ref)*numarray.array([2.6716673656329495, -0.48856867758607381])        ref=msk_ref*numarray.array([-3.0135597138409094, -114.15935313527922])+(1.-msk_ref)*numarray.array([2.6716673656329495, -0.48856867758607381])
4180        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
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)
4267        arg1.setTaggedValue(1,-3.28334285652)        arg1.setTaggedValue(1,-3.28334285652)
4268        arg1.expand()        arg1.expand()
4269        res=arg0/arg1        res=arg0/arg1
4270        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4271        ref=msk_ref*numarray.array([[2.8461460164870056, 2.6190731320130194, -1.6636657138754412, 1.9214574665187185, -0.20823405947657933], [2.4627655191597255, -2.865224701732187, 3.6641104323616585, 2.2018290094481072, -2.5233725060085073], [1.0836070998434706, -0.2372674459715674, -1.3276289879598262, 0.7696995831799115, -1.9111156335911852], [2.7607378134921459, -0.9882043279654904, 1.663874153545041, 1.0593381483636808, -1.9341261356653232]])+(1.-msk_ref)*numarray.array([[-0.60840686172970493, -0.5403370424951166, 0.20393402056669696, 0.071461204570235068, -0.36008627074469185], [0.40035745673948497, 0.053924714940630232, 0.45902164189723793, -0.93784014837123619, -0.6300810621555949], [1.211789590743646, -1.1749628346084831, 0.73400123882908141, 1.2698234698580362, -0.050603615245973045], [-0.35286718225584679, -0.97037874196277663, -1.0499054921171924, 1.2513224569076484, 1.0884470532471389]])        ref=msk_ref*numarray.array([[2.8461460164870056, 2.6190731320130194, -1.6636657138754412, 1.9214574665187185, -0.20823405947657933], [2.4627655191597255, -2.865224701732187, 3.6641104323616585, 2.2018290094481072, -2.5233725060085073], [1.0836070998434706, -0.2372674459715674, -1.3276289879598262, 0.7696995831799115, -1.9111156335911852], [2.7607378134921459, -0.9882043279654904, 1.663874153545041, 1.0593381483636808, -1.9341261356653232]])+(1.-msk_ref)*numarray.array([[-0.60840686172970493, -0.5403370424951166, 0.20393402056669696, 0.071461204570235068, -0.36008627074469185], [0.40035745673948497, 0.053924714940630232, 0.45902164189723793, -0.93784014837123619, -0.6300810621555949], [1.211789590743646, -1.1749628346084831, 0.73400123882908141, 1.2698234698580362, -0.050603615245973045], [-0.35286718225584679, -0.97037874196277663, -1.0499054921171924, 1.2513224569076484, 1.0884470532471389]])
4272        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
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)
4280        arg1.setTaggedValue(1,numarray.array([[-0.83774252654751447, -0.067136625908340797, 0.7559624238873468, 0.27739693099038565, 2.6998377184885154], [2.945906977930699, -0.940242499536728, -2.9973034261897427, 3.2604966617886788, 4.7667061792559036], [0.4589603467524439, 4.2173064828876967, 4.0376520010217547, 0.37309580567656653, 0.078292229086288856], [1.9828663888477305, -2.9050782438248168, 0.3850989042726809, -3.4080442542518643, -1.2926167712217307]]))        arg1.setTaggedValue(1,numarray.array([[-0.83774252654751447, -0.067136625908340797, 0.7559624238873468, 0.27739693099038565, 2.6998377184885154], [2.945906977930699, -0.940242499536728, -2.9973034261897427, 3.2604966617886788, 4.7667061792559036], [0.4589603467524439, 4.2173064828876967, 4.0376520010217547, 0.37309580567656653, 0.078292229086288856], [1.9828663888477305, -2.9050782438248168, 0.3850989042726809, -3.4080442542518643, -1.2926167712217307]]))
4281        arg1.expand()        arg1.expand()
4282        res=arg0/arg1        res=arg0/arg1
4283        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4284        ref=msk_ref*numarray.array([[-0.16118986746366587, -0.57476370730423743, 0.79699270721118687, 1.2335515033655329, -0.89534660355410201], [0.38583207063737929, 3.5589984995519073, 1.2802508132290988, 3.7891158314266793, -0.8142647258997584], [1.2868102140603155, 3.8313528003304302, -1.0747477395805902, 0.011524422976897987, -1.2299365287309363], [-1.1012010889495971, -0.19067820133420388, -0.62977111300927902, 1.0993187538399691, 0.21334653802452441]])+(1.-msk_ref)*numarray.array([[1.0967526203208136, -23.157640441135442, 2.6482881009707326, 15.620024523557936, -1.0506833956760377], [-0.025573591802288336, 1.1703122066111689, -0.58257194059487027, 1.1032439509901717, 0.79546267612217225], [-7.470545479630049, 0.29548478544620399, -1.1409575035858661, -9.6941470112532908, -18.892464214239673], [0.3808266856667209, 0.20214714922821328, 4.7524146596562904, -0.068831625911038447, -1.7688878059448707]])        ref=msk_ref*numarray.array([[-0.16118986746366587, -0.57476370730423743, 0.79699270721118687, 1.2335515033655329, -0.89534660355410201], [0.38583207063737929, 3.5589984995519073, 1.2802508132290988, 3.7891158314266793, -0.8142647258997584], [1.2868102140603155, 3.8313528003304302, -1.0747477395805902, 0.011524422976897987, -1.2299365287309363], [-1.1012010889495971, -0.19067820133420388, -0.62977111300927902, 1.0993187538399691, 0.21334653802452441]])+(1.-msk_ref)*numarray.array([[1.0967526203208136, -23.157640441135442, 2.6482881009707326, 15.620024523557936, -1.0506833956760377], [-0.025573591802288336, 1.1703122066111689, -0.58257194059487027, 1.1032439509901717, 0.79546267612217225], [-7.470545479630049, 0.29548478544620399, -1.1409575035858661, -9.6941470112532908, -18.892464214239673], [0.3808266856667209, 0.20214714922821328, 4.7524146596562904, -0.068831625911038447, -1.7688878059448707]])
4285        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
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)
4372        arg1.setTaggedValue(1,4.80801095448)        arg1.setTaggedValue(1,4.80801095448)
4373        arg1.expand()        arg1.expand()
4374        res=arg0/arg1        res=arg0/arg1
4375        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4376        ref=msk_ref*numarray.array([[[7.6733922906004084, 12.109069411182521], [-0.9705768148452083, 3.7094933890765112]], [[0.25074342229454127, -0.75444567934417084], [0.35148810582106443, -3.9293810978419583]], [[0.52074459029642672, -9.2482488473842182], [2.0129124691828468, 8.0890525531172965]], [[10.621158267273067, -6.1531558199252849], [5.754379591260939, -7.6826743501419603]], [[8.6697251592948916, 9.5792683975973407], [-0.47567103886640549, -10.006726748894609]], [[0.71000254382878092, 0.32784930067584511], [-12.043240493268975, 1.1634004882837481]]])+(1.-msk_ref)*numarray.array([[[-0.88875686359261863, 0.54508339097899472], [-0.30381676453468709, 0.071873165835826092]], [[0.2742027996953792, 0.034633481956604921], [0.026147097464918601, 0.54162255388108638]], [[-0.96632232288161335, 0.17201228589443024], [-0.061742423968125806, -0.56811249749175208]], [[0.66850100427451975, 0.8930643444589399], [-0.71124308334390562, 0.694779905709631]], [[-0.15494065646432989, 0.78020050488077297], [0.82087565794963469, 0.42076432941508357]], [[-0.26723587006157284, -0.12850984346707292], [-0.81604890680768405, -0.024595299573280157]]])        ref=msk_ref*numarray.array([[[7.6733922906004084, 12.109069411182521], [-0.9705768148452083, 3.7094933890765112]], [[0.25074342229454127, -0.75444567934417084], [0.35148810582106443, -3.9293810978419583]], [[0.52074459029642672, -9.2482488473842182], [2.0129124691828468, 8.0890525531172965]], [[10.621158267273067, -6.1531558199252849], [5.754379591260939, -7.6826743501419603]], [[8.6697251592948916, 9.5792683975973407], [-0.47567103886640549, -10.006726748894609]], [[0.71000254382878092, 0.32784930067584511], [-12.043240493268975, 1.1634004882837481]]])+(1.-msk_ref)*numarray.array([[[-0.88875686359261863, 0.54508339097899472], [-0.30381676453468709, 0.071873165835826092]], [[0.2742027996953792, 0.034633481956604921], [0.026147097464918601, 0.54162255388108638]], [[-0.96632232288161335, 0.17201228589443024], [-0.061742423968125806, -0.56811249749175208]], [[0.66850100427451975, 0.8930643444589399], [-0.71124308334390562, 0.694779905709631]], [[-0.15494065646432989, 0.78020050488077297], [0.82087565794963469, 0.42076432941508357]], [[-0.26723587006157284, -0.12850984346707292], [-0.81604890680768405, -0.024595299573280157]]])
4377        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
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)
4385        arg1.setTaggedValue(1,numarray.array([[[-1.6872082410458713, 4.0157845925193829], [0.78345958243454916, -0.96540699024498888]], [[-3.9886327567173763, -0.37651403960664798], [0.015760472815211202, 0.31573495968308496]], [[-2.4577065831388856, -1.8460551455583296], [1.91188909328483, -4.6208887383513675]], [[-2.6671460557039541, 1.4465886022360586], [3.9230452652233119, -1.3572843287538863]], [[-0.0041169436943278015, -0.57878923774283564], [-0.29559919131281198, 2.0240994978893267]], [[-4.6636866277286479, -2.7711289542982307], [-3.5219939460384952, 0.9525977694068386]]]))        arg1.setTaggedValue(1,numarray.array([[[-1.6872082410458713, 4.0157845925193829], [0.78345958243454916, -0.96540699024498888]], [[-3.9886327567173763, -0.37651403960664798], [0.015760472815211202, 0.31573495968308496]], [[-2.4577065831388856, -1.8460551455583296], [1.91188909328483, -4.6208887383513675]], [[-2.6671460557039541, 1.4465886022360586], [3.9230452652233119, -1.3572843287538863]], [[-0.0041169436943278015, -0.57878923774283564], [-0.29559919131281198, 2.0240994978893267]], [[-4.6636866277286479, -2.7711289542982307], [-3.5219939460384952, 0.9525977694068386]]]))
4386        arg1.expand()        arg1.expand()
4387        res=arg0/arg1        res=arg0/arg1
4388        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4389        ref=msk_ref*numarray.array([[[0.88780170156425409, -0.22055737864377453], [-0.79572483503631608, -0.31129813630420067]], [[0.027698974101510791, 4.2901051534662891], [-0.53333738675556741, 0.038374488636572945]], [[-0.059091719179182302, 0.77903480182058338], [0.7111904422358033, 0.31465521196338059]], [[-0.94480971562186133, 0.98520101765197832], [2.575569431742911, -2.5951261950515518]], [[-0.92608604276806339, 1.945805638338119], [-6.2237626336116891, -0.67575656416410412]], [[0.66829633077972028, 1.3844825208914353], [0.18903404926559683, 3.7143344016768265]]])+(1.-msk_ref)*numarray.array([[[1.9581871732817759, 0.277105115091623], [6.1690936412854525, 4.0715362582493038]], [[-1.1024802376343323, 9.6518736278991852], [-202.3938198894167, -8.5690731863654257]], [[0.35213500664075142, 0.60528121680728675], [0.76403434145276228, -0.15274450317247462]], [[0.041916686550557261, 1.4509788883453911], [0.38524189235879663, 0.65546194689385118]], [[-204.08990512156817, 4.1128862967860993], [-1.6444965051154066, 0.21766820312742141]], [[-0.94523014394506366, -0.40107090334448436], [-0.18633212508968439, 0.20132332401851899]]])        ref=msk_ref*numarray.array([[[0.88780170156425409, -0.22055737864377453], [-0.79572483503631608, -0.31129813630420067]], [[0.027698974101510791, 4.2901051534662891], [-0.53333738675556741, 0.038374488636572945]], [[-0.059091719179182302, 0.77903480182058338], [0.7111904422358033, 0.31465521196338059]], [[-0.94480971562186133, 0.98520101765197832], [2.575569431742911, -2.5951261950515518]], [[-0.92608604276806339, 1.945805638338119], [-6.2237626336116891, -0.67575656416410412]], [[0.66829633077972028, 1.3844825208914353], [0.18903404926559683, 3.7143344016768265]]])+(1.-msk_ref)*numarray.array([[[1.9581871732817759, 0.277105115091623], [6.1690936412854525, 4.0715362582493038]], [[-1.1024802376343323, 9.6518736278991852], [-202.3938198894167, -8.5690731863654257]], [[0.35213500664075142, 0.60528121680728675], [0.76403434145276228, -0.15274450317247462]], [[0.041916686550557261, 1.4509788883453911], [0.38524189235879663, 0.65546194689385118]], [[-204.08990512156817, 4.1128862967860993], [-1.6444965051154066, 0.21766820312742141]], [[-0.94523014394506366, -0.40107090334448436], [-0.18633212508968439, 0.20132332401851899]]])
4390        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
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)
4477        arg1.setTaggedValue(1,3.25434391088)        arg1.setTaggedValue(1,3.25434391088)
4478        arg1.expand()        arg1.expand()
4479        res=arg0/arg1        res=arg0/arg1
4480        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4481        ref=msk_ref*numarray.array([[[[0.64820533482540532, 0.83544418686632049, 0.85081874950551939, -0.13466813924574336], [0.80115379180454094, -0.21212359827703678, -1.0344736903760727, -1.1852195496735856], [-0.57537527177152725, -1.2320122901087383, -0.52764115333225847, -0.35518331822579396]], [[-0.52968825889289839, 1.3062979370331693, 0.062211023346134701, -0.85069390109042198], [1.2376239619122156, 1.1156881917967014, 0.12556877926836552, 1.0458564024479173], [1.1763934932190132, -0.74728486132510485, -1.2989950327156838, 1.0783042378693637]]], [[[-0.56055349335588778, -0.0043859352843348322, -0.16322184015898061, 0.517062916126933], [0.61632448221653291, 0.61095124673197443, -0.70159574737827302, 0.0073972827425036018], [-1.1032549841494328, 0.81624279077915629, 1.3510523273373318, 0.14561998855605718]], [[0.37890812249119976, -0.69117489101351548, -0.71703017666562285, 0.51070553644648453], [-0.6557971296563565, -0.87191821800723901, 1.3326998092490629, 0.40907387796631667], [0.19614696639745663, 1.3346823886531365, 0.15875202347025819, -1.3208427188311322]]], [[[-0.61614669565498925, -0.50832760223633333, -0.21326061941184199, 1.3275417437978292], [1.4180940989308111, 0.29597827030360102, 0.60794367463796606, 0.75801873727897506], [0.046142202548711916, -0.42672858441089262, 1.2415149802098497, 0.49152838114801789]], [[-0.41047905514525351, 0.36688132998845707, -1.0941212903728563, 0.49540087312236469], [-0.014445515536173867, -1.3861585379015411, 0.56251014081135653, 0.97737932288752216], [-0.42760341178208611, -1.3759556314501906, -0.75046533897046419, 0.84767082296759522]]]])+(1.-msk_ref)*numarray.array([[[[-0.097671422223212748, 0.11364316742026552, 0.59530346579055127, -0.40124751968849587], [-0.21646480842185128, -0.80577210722553694, -0.76082957168676157, -1.0771625236152358], [-1.4940850315102121, 1.3528595295815817, 0.25358935840897173, 1.3920598278561322]], [[-0.36181316467994296, 1.3123381646699559, -0.69916849225923194, 0.29961684693131674], [0.3360043749543063, -0.71763482977874626, 1.3161014321033386, 0.56539683103194216], [-1.4558991846917233, -0.22352533380501802, -0.7305009625822273, 1.1275292627792051]]], [[[0.73121505550498556, -1.4027491751138967, 1.479099366727576, -0.56674949360572469], [0.46863146397097183, 0.32488379168613973, -0.99774195605298943, 0.43722739194660254], [-0.66761638713306859, -0.37074429593269365, 0.38362226954019968, 0.33772436661165306]], [[-0.74245703338602176, -0.78069908233376351, 1.1778158469703077, 0.93928038529989644], [0.65112993138600661, 1.356894913528387, 0.62845204744542227, 0.77705664437385458], [1.4457975176766682, 0.36685260633276606, 1.3288924368973383, -1.4912499753377226]]], [[[0.16552257433997244, -1.2377490354943581, -0.16837041004313427, 0.33995942447311883], [-0.20223065616568559, -1.297704910997445, 1.4668156819083222, 0.71749883225332534], [1.1988521855642438, 1.1799971982472128, 0.88911648845198388, 0.42561624879975135]], [[-1.4906422232946537, 0.19441502850874537, -1.0020772931178741, 0.53109190238271164], [1.154718085266297, -0.60247524655384965, -0.14327898427230859, 0.93645111720125562], [0.57671257489718042, -0.48042898631216469, 1.098030741419816, -1.018181821023018]]]])        ref=msk_ref*numarray.array([[[[0.64820533482540532, 0.83544418686632049, 0.85081874950551939, -0.13466813924574336], [0.80115379180454094, -0.21212359827703678, -1.0344736903760727, -1.1852195496735856], [-0.57537527177152725, -1.2320122901087383, -0.52764115333225847, -0.35518331822579396]], [[-0.52968825889289839, 1.3062979370331693, 0.062211023346134701, -0.85069390109042198], [1.2376239619122156, 1.1156881917967014, 0.12556877926836552, 1.0458564024479173], [1.1763934932190132, -0.74728486132510485, -1.2989950327156838, 1.0783042378693637]]], [[[-0.56055349335588778, -0.0043859352843348322, -0.16322184015898061, 0.517062916126933], [0.61632448221653291, 0.61095124673197443, -0.70159574737827302, 0.0073972827425036018], [-1.1032549841494328, 0.81624279077915629, 1.3510523273373318, 0.14561998855605718]], [[0.37890812249119976, -0.69117489101351548, -0.71703017666562285, 0.51070553644648453], [-0.6557971296563565, -0.87191821800723901, 1.3326998092490629, 0.40907387796631667], [0.19614696639745663, 1.3346823886531365, 0.15875202347025819, -1.3208427188311322]]], [[[-0.61614669565498925, -0.50832760223633333, -0.21326061941184199, 1.3275417437978292], [1.4180940989308111, 0.29597827030360102, 0.60794367463796606, 0.75801873727897506], [0.046142202548711916, -0.42672858441089262, 1.2415149802098497, 0.49152838114801789]], [[-0.41047905514525351, 0.36688132998845707, -1.0941212903728563, 0.49540087312236469], [-0.014445515536173867, -1.3861585379015411, 0.56251014081135653, 0.97737932288752216], [-0.42760341178208611, -1.3759556314501906, -0.75046533897046419, 0.84767082296759522]]]])+(1.-msk_ref)*numarray.array([[[[-0.097671422223212748, 0.11364316742026552, 0.59530346579055127, -0.40124751968849587], [-0.21646480842185128, -0.80577210722553694, -0.76082957168676157, -1.0771625236152358], [-1.4940850315102121, 1.3528595295815817, 0.25358935840897173, 1.3920598278561322]], [[-0.36181316467994296, 1.3123381646699559, -0.69916849225923194, 0.29961684693131674], [0.3360043749543063, -0.71763482977874626, 1.3161014321033386, 0.56539683103194216], [-1.4558991846917233, -0.22352533380501802, -0.7305009625822273, 1.1275292627792051]]], [[[0.73121505550498556, -1.4027491751138967, 1.479099366727576, -0.56674949360572469], [0.46863146397097183, 0.32488379168613973, -0.99774195605298943, 0.43722739194660254], [-0.66761638713306859, -0.37074429593269365, 0.38362226954019968, 0.33772436661165306]], [[-0.74245703338602176, -0.78069908233376351, 1.1778158469703077, 0.93928038529989644], [0.65112993138600661, 1.356894913528387, 0.62845204744542227, 0.77705664437385458], [1.4457975176766682, 0.36685260633276606, 1.3288924368973383, -1.4912499753377226]]], [[[0.16552257433997244, -1.2377490354943581, -0.16837041004313427, 0.33995942447311883], [-0.20223065616568559, -1.297704910997445, 1.4668156819083222, 0.71749883225332534], [1.1988521855642438, 1.1799971982472128, 0.88911648845198388, 0.42561624879975135]], [[-1.4906422232946537, 0.19441502850874537, -1.0020772931178741, 0.53109190238271164], [1.154718085266297, -0.60247524655384965, -0.14327898427230859, 0.93645111720125562], [0.57671257489718042, -0.48042898631216469, 1.098030741419816, -1.018181821023018]]]])
4482        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
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)
4490        arg1.setTaggedValue(1,numarray.array([[[[-3.5357308055888059, -3.0925614958465308, 3.9214268093702191, 4.9501527682987643], [2.5677358558469443, -1.5066471489107727, 4.0115475811428549, -3.4065637415190606], [-4.7987273668021988, 1.4097177294961147, -0.81834995883746586, -4.8301442612662555]], [[-4.8208964870561912, 0.36049892109556048, -1.5888370208640357, -3.8717319532301611], [1.7370404232366337, 3.1006907412607667, -1.5535583730918825, -0.38048222539228149], [-0.90649274958119364, 3.6184872476779528, -3.2903010574187741, -3.4751949396449922]]], [[[0.28063148928329529, -0.38886234129052077, 1.7531538055839579, -0.7023746276613636], [-3.738484645622917, 2.4316582718574864, -1.6469449051984286, 1.4691629017790628], [-0.96177404601634287, 4.0365990053706948, -2.6475968302609121, 1.7023734972858815]], [[-3.1753807833809375, 3.0539657213623297, -1.7520841801796738, 0.79888365630018399], [-4.8986719394234228, -0.22237205194844911, -2.5038494580969175, 2.6628825172748281], [1.2981480503902141, 3.3574846520351507, -0.47615980480732745, -0.46165863567789955]]], [[[2.6523543226169117, -3.8787505009390753, -4.2417154590088346, 2.2364521622915507], [1.1160425610666111, -2.4562205800579995, 3.9537723897130235, 3.4427457353099395], [-3.1237038051260169, 0.95248047922948942, -4.5472761453259922, -3.7614804140028624]], [[-2.470095707539576, -1.1875524834189575, -0.31521153869958685, 1.2907363036550334], [-2.3781085402357927, -1.7089258942133045, -2.5725019091209167, 1.4027602007931801], [3.3390694098717901, -2.9961333521386568, 4.7141243493566112, -3.4667810200333591]]]]))        arg1.setTaggedValue(1,numarray.array([[[[-3.5357308055888059, -3.0925614958465308, 3.9214268093702191, 4.9501527682987643], [2.5677358558469443, -1.5066471489107727, 4.0115475811428549, -3.4065637415190606], [-4.7987273668021988, 1.4097177294961147, -0.81834995883746586, -4.8301442612662555]], [[-4.8208964870561912, 0.36049892109556048, -1.5888370208640357, -3.8717319532301611], [1.7370404232366337, 3.1006907412607667, -1.5535583730918825, -0.38048222539228149], [-0.90649274958119364, 3.6184872476779528, -3.2903010574187741, -3.4751949396449922]]], [[[0.28063148928329529, -0.38886234129052077, 1.7531538055839579, -0.7023746276613636], [-3.738484645622917, 2.4316582718574864, -1.6469449051984286, 1.4691629017790628], [-0.96177404601634287, 4.0365990053706948, -2.6475968302609121, 1.7023734972858815]], [[-3.1753807833809375, 3.0539657213623297, -1.7520841801796738, 0.79888365630018399], [-4.8986719394234228, -0.22237205194844911, -2.5038494580969175, 2.6628825172748281], [1.2981480503902141, 3.3574846520351507, -0.47615980480732745, -0.46165863567789955]]], [[[2.6523543226169117, -3.8787505009390753, -4.2417154590088346, 2.2364521622915507], [1.1160425610666111, -2.4562205800579995, 3.9537723897130235, 3.4427457353099395], [-3.1237038051260169, 0.95248047922948942, -4.5472761453259922, -3.7614804140028624]], [[-2.470095707539576, -1.1875524834189575, -0.31521153869958685, 1.2907363036550334], [-2.3781085402357927, -1.7089258942133045, -2.5725019091209167, 1.4027602007931801], [3.3390694098717901, -2.9961333521386568, 4.7141243493566112, -3.4667810200333591]]]]))
4491        arg1.expand()        arg1.expand()
4492        res=arg0/arg1        res=arg0/arg1
4493        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4494        ref=msk_ref*numarray.array([[[[-9.5341340483149146, -2.3858287546874735, -1.3011459856233696, -1.0733277863488335], [-0.12196368631966395, -1.0713295428319618, -0.49469404058306365, -0.38840582836956228], [0.11582715031519521, 0.97488954435709119, -28.817119266245655, 0.34319702938118068]], [[1.0865296915228628, -10.624451304495452, 1.4045973745734486, -0.1295333563776985], [8.0111398662889162, -0.87514382662755918, 2.3383840254027199, 22.579909643837418], [0.15648711341530555, -0.10754451432820419, 1.7179954419137207, 1.4771769825574057]]], [[[458.15167815104343, 0.92572364214857694, -0.92064216261957255, -0.52592499029755513], [-2.0692496902467457, -0.31126511533623052, -1.0789538268455727, 0.11641016288543125], [12.987250293301139, 0.025659338993640257, -0.838349464333634, 0.40557804052068591]], [[-0.4854407584023076, -0.88521617700453992, 0.096788561178693749, -3.3157460664971485], [-20.670278569856585, -0.95387015464706482, -0.639071375178759, 0.30794335180706028], [1.424051188873851, -1.7140507730275618, -1.8652261007447259, -0.041208939563251952]]], [[[0.21996778398453079, 0.12592227711206636, 0.67027422416571791, 2.3956254577305427], [1.1337701953005952, -0.92975505280177284, -0.48268794847898938, -4.3262399917540026], [-1.1990598877685452, 34.869968191827361, 1.9315107987443956, -0.074494299457255372]], [[-1.1459793777042182, 0.67145948223597229, 2.4607173780972249, -0.18929830112676227], [-0.38787984292852556, 0.67623515765737563, -0.43597139105411825, -1.347154072942536], [0.77083210552891446, 0.28207155798679279, 0.23861953894585738, -1.3609273105084734]]]])+(1.-msk_ref)*numarray.array([[[[0.8203210826961963, 1.0579323015045374, -1.2566080653543301, -0.65993829534282367], [-0.77064001256084758, -0.41685276551841866, 0.685250930671087, -0.73548833276958014], [1.0222962063529455, -1.9604524686802109, -1.8949492079739731, -0.59184023184600243]], [[-0.39433825957466079, -6.9405770518071943, 3.0531891433316649, -0.22071999300834846], [-2.3097714896703185, 1.4363092116977587, -2.8456677537051931, 12.802117562981163], [0.077818363276234315, -0.83556963420777008, -1.4791509000894001, -1.1270229620268317]]], [[[-5.3527743409022301, 0.20142335775380743, 1.1281916129921568, 5.5094086919827943], [-1.1529307065078596, 1.4925850227955995, -2.2599130684623412, -3.1184233225476694], [1.7221094893801794, -1.1840236986307995, -1.6099972747433566, -1.8854624793603227]], [[-0.035020500439188612, 0.08247603577395235, 2.7413329858415314, 5.6443899480947], [-0.16793013907553811, 0.12688917727850529, 0.16387261077667453, 0.55726874764729639], [0.83500573142233636, -0.56867117876362849, -5.515616032439369, -2.6224634314369446]]], [[[-1.8393383318200336, -0.69891803586472612, 0.46879194601541641, -0.082006640580465112], [3.8040614584837846, -0.74899761893649319, -0.066459583531547961, 0.59021705235946476], [-0.92290303671789942, -4.0638616875833575, 0.70198180480383865, 1.104874483453403]], [[-1.0663645211045643, 3.5715023500457224, 11.297448261094702, 1.1382424389434205], [1.8856464123778653, 1.6394312852548316, 1.894336504822461, 2.9906206280851917], [1.201312622775534, -0.93353781989863727, -0.36992604906733889, -0.76017402796126632]]]])        ref=msk_ref*numarray.array([[[[-9.5341340483149146, -2.3858287546874735, -1.3011459856233696, -1.0733277863488335], [-0.12196368631966395, -1.0713295428319618, -0.49469404058306365, -0.38840582836956228], [0.11582715031519521, 0.97488954435709119, -28.817119266245655, 0.34319702938118068]], [[1.0865296915228628, -10.624451304495452, 1.4045973745734486, -0.1295333563776985], [8.0111398662889162, -0.87514382662755918, 2.3383840254027199, 22.579909643837418], [0.15648711341530555, -0.10754451432820419, 1.7179954419137207, 1.4771769825574057]]], [[[458.15167815104343, 0.92572364214857694, -0.92064216261957255, -0.52592499029755513], [-2.0692496902467457, -0.31126511533623052, -1.0789538268455727, 0.11641016288543125], [12.987250293301139, 0.025659338993640257, -0.838349464333634, 0.40557804052068591]], [[-0.4854407584023076, -0.88521617700453992, 0.096788561178693749, -3.3157460664971485], [-20.670278569856585, -0.95387015464706482, -0.639071375178759, 0.30794335180706028], [1.424051188873851, -1.7140507730275618, -1.8652261007447259, -0.041208939563251952]]], [[[0.21996778398453079, 0.12592227711206636, 0.67027422416571791, 2.3956254577305427], [1.1337701953005952, -0.92975505280177284, -0.48268794847898938, -4.3262399917540026], [-1.1990598877685452, 34.869968191827361, 1.9315107987443956, -0.074494299457255372]], [[-1.1459793777042182, 0.67145948223597229, 2.4607173780972249, -0.18929830112676227], [-0.38787984292852556, 0.67623515765737563, -0.43597139105411825, -1.347154072942536], [0.77083210552891446, 0.28207155798679279, 0.23861953894585738, -1.3609273105084734]]]])+(1.-msk_ref)*numarray.array([[[[0.8203210826961963, 1.0579323015045374, -1.2566080653543301, -0.65993829534282367], [-0.77064001256084758, -0.41685276551841866, 0.685250930671087, -0.73548833276958014], [1.0222962063529455, -1.9604524686802109, -1.8949492079739731, -0.59184023184600243]], [[-0.39433825957466079, -6.9405770518071943, 3.0531891433316649, -0.22071999300834846], [-2.3097714896703185, 1.4363092116977587, -2.8456677537051931, 12.802117562981163], [0.077818363276234315, -0.83556963420777008, -1.4791509000894001, -1.1270229620268317]]], [[[-5.3527743409022301, 0.20142335775380743, 1.1281916129921568, 5.5094086919827943], [-1.1529307065078596, 1.4925850227955995, -2.2599130684623412, -3.1184233225476694], [1.7221094893801794, -1.1840236986307995, -1.6099972747433566, -1.8854624793603227]], [[-0.035020500439188612, 0.08247603577395235, 2.7413329858415314, 5.6443899480947], [-0.16793013907553811, 0.12688917727850529, 0.16387261077667453, 0.55726874764729639], [0.83500573142233636, -0.56867117876362849, -5.515616032439369, -2.6224634314369446]]], [[[-1.8393383318200336, -0.69891803586472612, 0.46879194601541641, -0.082006640580465112], [3.8040614584837846, -0.74899761893649319, -0.066459583531547961, 0.59021705235946476], [-0.92290303671789942, -4.0638616875833575, 0.70198180480383865, 1.104874483453403]], [[-1.0663645211045643, 3.5715023500457224, 11.297448261094702, 1.1382424389434205], [1.8856464123778653, 1.6394312852548316, 1.894336504822461, 2.9906206280851917], [1.201312622775534, -0.93353781989863727, -0.36992604906733889, -0.76017402796126632]]]])
4495        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
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()
4503        arg1=Data(-3.10456481797,self.functionspace)        arg1=Data(-3.10456481797,self.functionspace)
4504        arg1.setTaggedValue(1,1.29136218186)        arg1.setTaggedValue(1,1.29136218186)
4505        res=arg0/arg1        res=arg0/arg1
4506        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4507        ref=msk_ref*(1.33019919131)+(1.-msk_ref)*(-1.33939608803)        ref=msk_ref*(1.33019919131)+(1.-msk_ref)*(-1.33939608803)
4508        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
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     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++