/[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 553 by gross, Wed Jan 11 05:53:40 2006 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 4018  class Test_util_overloaded_binary_with_t Line 4018  class Test_util_overloaded_binary_with_t
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.")
# Line 4031  class Test_util_overloaded_binary_with_t Line 4031  class Test_util_overloaded_binary_with_t
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.")
# Line 4044  class Test_util_overloaded_binary_with_t Line 4044  class Test_util_overloaded_binary_with_t
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.")
# Line 4057  class Test_util_overloaded_binary_with_t Line 4057  class Test_util_overloaded_binary_with_t
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.")
# Line 4070  class Test_util_overloaded_binary_with_t Line 4070  class Test_util_overloaded_binary_with_t
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.")
# Line 4162  class Test_util_overloaded_binary_with_t Line 4162  class Test_util_overloaded_binary_with_t
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.")
# Line 4175  class Test_util_overloaded_binary_with_t Line 4175  class Test_util_overloaded_binary_with_t
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.")
# Line 4267  class Test_util_overloaded_binary_with_t Line 4267  class Test_util_overloaded_binary_with_t
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.")
# Line 4280  class Test_util_overloaded_binary_with_t Line 4280  class Test_util_overloaded_binary_with_t
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.")
# Line 4372  class Test_util_overloaded_binary_with_t Line 4372  class Test_util_overloaded_binary_with_t
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.")
# Line 4385  class Test_util_overloaded_binary_with_t Line 4385  class Test_util_overloaded_binary_with_t
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.")
# Line 4477  class Test_util_overloaded_binary_with_t Line 4477  class Test_util_overloaded_binary_with_t
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.")
# Line 4490  class Test_util_overloaded_binary_with_t Line 4490  class Test_util_overloaded_binary_with_t
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.")
# Line 4503  class Test_util_overloaded_binary_with_t Line 4503  class Test_util_overloaded_binary_with_t
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.")
# Line 4516  class Test_util_overloaded_binary_with_t Line 4516  class Test_util_overloaded_binary_with_t
4516        arg1=Data(numarray.array([-2.6164972762677499, -2.6528750496634421]),self.functionspace)        arg1=Data(numarray.array([-2.6164972762677499, -2.6528750496634421]),self.functionspace)
4517        arg1.setTaggedValue(1,numarray.array([-0.11614518376840355, -0.059741595713548534]))        arg1.setTaggedValue(1,numarray.array([-0.11614518376840355, -0.059741595713548534]))
4518        res=arg0/arg1        res=arg0/arg1
4519        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4520        ref=msk_ref*numarray.array([-0.014055120854218167, -0.013862388821268223])+(1.-msk_ref)*numarray.array([42.563533138081972, 82.748867336229168])        ref=msk_ref*numarray.array([-0.014055120854218167, -0.013862388821268223])+(1.-msk_ref)*numarray.array([42.563533138081972, 82.748867336229168])
4521        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4522        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 4529  class Test_util_overloaded_binary_with_t Line 4529  class Test_util_overloaded_binary_with_t
4529        arg1=Data(numarray.array([[4.1498514876446855, -3.2456663280838693, 4.5088785525076407, 0.75946303636479495, -1.4986518775274318], [3.0095576573692213, -3.3886692706995856, 3.1850844454519258, 0.97508530369414004, -3.8262027335319528], [0.53268033792245095, 4.0851839571624922, 0.71525638051950313, -1.4188863847470223, 2.0862178015925048], [0.29121898990595607, -3.3605966297556988, 4.3353019660981236, 0.13986451797169064, 3.2013412168685598]]),self.functionspace)        arg1=Data(numarray.array([[4.1498514876446855, -3.2456663280838693, 4.5088785525076407, 0.75946303636479495, -1.4986518775274318], [3.0095576573692213, -3.3886692706995856, 3.1850844454519258, 0.97508530369414004, -3.8262027335319528], [0.53268033792245095, 4.0851839571624922, 0.71525638051950313, -1.4188863847470223, 2.0862178015925048], [0.29121898990595607, -3.3605966297556988, 4.3353019660981236, 0.13986451797169064, 3.2013412168685598]]),self.functionspace)
4530        arg1.setTaggedValue(1,numarray.array([[2.8527248556524762, -3.8730440400221156, 4.7919295191627036, -0.78426100465738635, 3.3398017962952125], [-3.9383739423785755, 0.64261679114026649, 1.0760252850611813, 3.360389816270505, 2.0161157999485475], [4.0959086888463574, -0.64528059903429558, 3.1611232626129624, 4.7119555188258371, 2.281529591040341], [-4.2884423287907749, -0.36166849833389136, -2.0477593514387102, -2.544584732230295, 0.95350297951106722]]))        arg1.setTaggedValue(1,numarray.array([[2.8527248556524762, -3.8730440400221156, 4.7919295191627036, -0.78426100465738635, 3.3398017962952125], [-3.9383739423785755, 0.64261679114026649, 1.0760252850611813, 3.360389816270505, 2.0161157999485475], [4.0959086888463574, -0.64528059903429558, 3.1611232626129624, 4.7119555188258371, 2.281529591040341], [-4.2884423287907749, -0.36166849833389136, -2.0477593514387102, -2.544584732230295, 0.95350297951106722]]))
4531        res=arg0/arg1        res=arg0/arg1
4532        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4533        ref=msk_ref*numarray.array([[0.43814342237859694, -0.56020242050974334, 0.40325551286989852, 2.3940995757510426, -1.2132438229479834], [0.60415195193467219, -0.53656169661673225, 0.57085774782387877, 1.8646882752423144, -0.47520485969679738], [3.41336070381531, 0.44507913284337625, 2.5420676874478803, -1.2814487140799029, 0.87154377254935544], [6.2435150047966275, -0.54104384830372576, 0.4194010353553308, 12.999938508547066, 0.56795886785791727]])+(1.-msk_ref)*numarray.array([[1.5708086391085796, -1.1569930013584606, 0.93513162711159159, -5.7137672556042745, 1.3417217911642181], [-1.1378007557993186, 6.9731835676241793, 4.1644791348968138, 1.3335014963329381, 2.2226326723757861], [1.0940392446885372, -6.9443972978033441, 1.4175609351451395, 0.95100321519489184, 1.9640704489900491], [-1.0449213268357582, -12.390033605088162, -2.1882868439157046, -1.761027955367426, 4.6996023552610975]])        ref=msk_ref*numarray.array([[0.43814342237859694, -0.56020242050974334, 0.40325551286989852, 2.3940995757510426, -1.2132438229479834], [0.60415195193467219, -0.53656169661673225, 0.57085774782387877, 1.8646882752423144, -0.47520485969679738], [3.41336070381531, 0.44507913284337625, 2.5420676874478803, -1.2814487140799029, 0.87154377254935544], [6.2435150047966275, -0.54104384830372576, 0.4194010353553308, 12.999938508547066, 0.56795886785791727]])+(1.-msk_ref)*numarray.array([[1.5708086391085796, -1.1569930013584606, 0.93513162711159159, -5.7137672556042745, 1.3417217911642181], [-1.1378007557993186, 6.9731835676241793, 4.1644791348968138, 1.3335014963329381, 2.2226326723757861], [1.0940392446885372, -6.9443972978033441, 1.4175609351451395, 0.95100321519489184, 1.9640704489900491], [-1.0449213268357582, -12.390033605088162, -2.1882868439157046, -1.761027955367426, 4.6996023552610975]])
4534        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4535        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 4542  class Test_util_overloaded_binary_with_t Line 4542  class Test_util_overloaded_binary_with_t
4542        arg1=Data(numarray.array([[[-0.58934798387711318, -2.2361029645356831], [0.77195512619175588, -4.6806657038207327]], [[-0.33727862900882144, -4.5142348163788357], [0.74666189053042231, -3.8861314112606458]], [[2.418469626214911, 3.7253571400330134], [-4.6141328918439228, 4.693524313540653]], [[0.94629349558305975, -1.7838291414729324], [3.6905534200475607, -2.448625457728788]], [[-4.3889613884432706, 0.40850133686284984], [-0.10803919545509366, 4.5026581410215698]], [[0.28276346851600742, -3.6652309584428244], [3.5949010884691042, 4.122734655852982]]]),self.functionspace)        arg1=Data(numarray.array([[[-0.58934798387711318, -2.2361029645356831], [0.77195512619175588, -4.6806657038207327]], [[-0.33727862900882144, -4.5142348163788357], [0.74666189053042231, -3.8861314112606458]], [[2.418469626214911, 3.7253571400330134], [-4.6141328918439228, 4.693524313540653]], [[0.94629349558305975, -1.7838291414729324], [3.6905534200475607, -2.448625457728788]], [[-4.3889613884432706, 0.40850133686284984], [-0.10803919545509366, 4.5026581410215698]], [[0.28276346851600742, -3.6652309584428244], [3.5949010884691042, 4.122734655852982]]]),self.functionspace)
4543        arg1.setTaggedValue(1,numarray.array([[[-1.0963577196794305, -1.5262017098981495], [-0.39982091968566813, 3.7626300521115379]], [[-2.4303983930945439, 4.0846463754439473], [-2.9783159508744159, 4.7366187705427514]], [[1.6874300777753426, -2.6626093795185781], [-3.031505072978633, -4.6147436112724671]], [[-0.11460111978431264, 3.5358874454114968], [2.8301209696702596, -3.1766108472332744]], [[-1.9366014263388442, -2.9035390190756019], [-0.53780204629059103, 4.2461489969624306]], [[-3.607078311862979, -2.285942668294755], [-2.8433368580136098, 3.9753843047283652]]]))        arg1.setTaggedValue(1,numarray.array([[[-1.0963577196794305, -1.5262017098981495], [-0.39982091968566813, 3.7626300521115379]], [[-2.4303983930945439, 4.0846463754439473], [-2.9783159508744159, 4.7366187705427514]], [[1.6874300777753426, -2.6626093795185781], [-3.031505072978633, -4.6147436112724671]], [[-0.11460111978431264, 3.5358874454114968], [2.8301209696702596, -3.1766108472332744]], [[-1.9366014263388442, -2.9035390190756019], [-0.53780204629059103, 4.2461489969624306]], [[-3.607078311862979, -2.285942668294755], [-2.8433368580136098, 3.9753843047283652]]]))
4544        res=arg0/arg1        res=arg0/arg1
4545        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4546        ref=msk_ref*numarray.array([[[-3.7078665777553992, -0.97724645364853657], [2.8307651804395944, -0.46686173086484728]], [[-6.4789865237157427, -0.48407399724908134], [2.9266575940190429, -0.56231338079650728]], [[0.90355639301764445, 0.58658099343090386], [-0.47359357506762356, 0.46558269353823989]], [[2.3092451784623624, -1.2250184960433521], [0.592112738489317, -0.8924287237103099]], [[-0.49789084448076154, 5.3493672967321091], [-20.226212189758122, 0.48531858818615287]], [[7.7280976342308829, -0.59620354538691045], [0.60786754303052537, 0.53004228370194717]]])+(1.-msk_ref)*numarray.array([[[3.504949832084006, 2.5178053337070785], [9.610999865928644, -1.0212746808148103]], [[1.5810900864700093, -0.94076168468237975], [1.2902186567433305, -0.81127044240761337]], [[-2.2772373540718776, 1.4432003564072218], [1.2675811892073678, 0.8326960562029676]], [[33.530901030693379, -1.086765024288612], [-1.3577789948470431, 1.2096788024385401]], [[1.9842383431261998, 1.3234465871644512], [7.1451546754028268, -0.90497973769723172]], [[1.065316157083865, 1.6810040158885295], [1.3514680100826908, -0.96661819611349276]]])        ref=msk_ref*numarray.array([[[-3.7078665777553992, -0.97724645364853657], [2.8307651804395944, -0.46686173086484728]], [[-6.4789865237157427, -0.48407399724908134], [2.9266575940190429, -0.56231338079650728]], [[0.90355639301764445, 0.58658099343090386], [-0.47359357506762356, 0.46558269353823989]], [[2.3092451784623624, -1.2250184960433521], [0.592112738489317, -0.8924287237103099]], [[-0.49789084448076154, 5.3493672967321091], [-20.226212189758122, 0.48531858818615287]], [[7.7280976342308829, -0.59620354538691045], [0.60786754303052537, 0.53004228370194717]]])+(1.-msk_ref)*numarray.array([[[3.504949832084006, 2.5178053337070785], [9.610999865928644, -1.0212746808148103]], [[1.5810900864700093, -0.94076168468237975], [1.2902186567433305, -0.81127044240761337]], [[-2.2772373540718776, 1.4432003564072218], [1.2675811892073678, 0.8326960562029676]], [[33.530901030693379, -1.086765024288612], [-1.3577789948470431, 1.2096788024385401]], [[1.9842383431261998, 1.3234465871644512], [7.1451546754028268, -0.90497973769723172]], [[1.065316157083865, 1.6810040158885295], [1.3514680100826908, -0.96661819611349276]]])
4547        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4548        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 4555  class Test_util_overloaded_binary_with_t Line 4555  class Test_util_overloaded_binary_with_t
4555        arg1=Data(numarray.array([[[[-2.5678977689892446, -1.4146034733013355, 1.6176730610171948, -2.3336896498739277], [-1.2700582414717765, -4.7328882915711112, 3.6664932824798981, 4.3095107137890913], [1.5794346821419234, -3.2871559049254175, -0.74615254924107166, 4.8868295823469676]], [[-2.4809326122231212, 3.0998018598858721, 4.6328477280319973, -1.5100852606144022], [0.23002071752390307, -0.52231946255543349, 4.5311274262032448, -1.7417875649104229], [1.1512324334691515, -1.0779632169188549, -1.3896274842498513, -4.2695599667674475]]], [[[-3.186836414901256, -2.5543201410653769, -4.5488836036119817, 0.80510781962833367], [-3.9166757675945418, -1.4771472773175343, -2.1229639232944542, 4.0149579913902667], [-4.5943776437204198, 1.4819255034645984, 2.874302750042947, -2.5117747157954051]], [[4.7154114628391728, -1.2201987875649953, -1.4449625136201192, 4.4324172251981313], [-3.1316034375305679, -1.3739622479806601, -1.0788458974346993, 4.1390202590453384], [-4.8847457028863381, -1.7672643762257167, 3.4797662352725709, 1.8869923593673956]]], [[[4.9488943729897024, 1.4687427639516581, -2.2842875850128594, 2.2185919426199119], [1.3242798681853447, -0.36185840470592812, 4.5787703451987962, -4.122155367545747], [4.0935193107613319, 2.7025616626538129, -4.5367617559169044, -0.055178771339468469]], [[4.0752882653246409, 1.8819950914008645, -0.55425869049498644, 1.7071645054085565], [-1.7030868654477063, -2.3690146375611629, 3.6284216470420709, 1.7063461079156923], [0.30643086261595798, -1.2126258283475835, -4.8763030766069857, -4.210740832950739]]]]),self.functionspace)        arg1=Data(numarray.array([[[[-2.5678977689892446, -1.4146034733013355, 1.6176730610171948, -2.3336896498739277], [-1.2700582414717765, -4.7328882915711112, 3.6664932824798981, 4.3095107137890913], [1.5794346821419234, -3.2871559049254175, -0.74615254924107166, 4.8868295823469676]], [[-2.4809326122231212, 3.0998018598858721, 4.6328477280319973, -1.5100852606144022], [0.23002071752390307, -0.52231946255543349, 4.5311274262032448, -1.7417875649104229], [1.1512324334691515, -1.0779632169188549, -1.3896274842498513, -4.2695599667674475]]], [[[-3.186836414901256, -2.5543201410653769, -4.5488836036119817, 0.80510781962833367], [-3.9166757675945418, -1.4771472773175343, -2.1229639232944542, 4.0149579913902667], [-4.5943776437204198, 1.4819255034645984, 2.874302750042947, -2.5117747157954051]], [[4.7154114628391728, -1.2201987875649953, -1.4449625136201192, 4.4324172251981313], [-3.1316034375305679, -1.3739622479806601, -1.0788458974346993, 4.1390202590453384], [-4.8847457028863381, -1.7672643762257167, 3.4797662352725709, 1.8869923593673956]]], [[[4.9488943729897024, 1.4687427639516581, -2.2842875850128594, 2.2185919426199119], [1.3242798681853447, -0.36185840470592812, 4.5787703451987962, -4.122155367545747], [4.0935193107613319, 2.7025616626538129, -4.5367617559169044, -0.055178771339468469]], [[4.0752882653246409, 1.8819950914008645, -0.55425869049498644, 1.7071645054085565], [-1.7030868654477063, -2.3690146375611629, 3.6284216470420709, 1.7063461079156923], [0.30643086261595798, -1.2126258283475835, -4.8763030766069857, -4.210740832950739]]]]),self.functionspace)
4556        arg1.setTaggedValue(1,numarray.array([[[[1.2576419575915683, -3.1734410535496327, 1.1998368884802568, 1.8809640200061164], [-1.5534830497522223, -0.074458935168450147, -4.8656989205361976, 1.1513605983392381], [-4.9316080457519407, -1.106751969906894, -4.3241632161091541, 2.9487241377101512]], [[2.684920500518917, -3.3015742861809541, 0.26807855318930596, 0.72426106112888267], [2.9843646577044787, -3.391757642398435, 3.4068219310691656, -4.2171147083882401], [-2.1101656815317247, 2.1493771799605774, -4.8659685283014635, -0.47502010404155293]]], [[[4.357422863201716, 4.8510390845117453, -3.2000802947853311, -1.5766514301139747], [2.5748422719196062, 1.3200525174339797, 0.75054651268471595, 2.4957757625035288], [1.3182269435296758, -1.707815738827243, 1.5488302633830724, 2.1659951909025761]], [[4.4241808668635585, -2.4893221650545252, 3.7902761731452728, -3.0402619177931642], [-3.53059600279374, -3.1933839027234621, 3.8255384537489885, -3.8863403237800629], [2.3298445020327456, 4.426470393079514, 1.0966490048561965, -0.36363363199562571]]], [[[-2.6044100079333665, -3.3935436253310525, -2.8393413542188215, 3.8956967282837294], [3.803375915903553, -1.4190438212963397, -1.7531101231160195, -3.4260698733482564], [-0.046790672564496205, 3.6861638454596175, -4.0215592083433567, -4.3028955712819705]], [[-4.7965337564571833, 1.0822074210317867, -4.4106501483342058, -3.5342536347694073], [-2.2246442836483049, 0.95669920182634094, 3.5448979332746493, 0.49409799357663786], [-4.6286448050733808, -1.1561475904911633, 2.3982135982311057, 0.63020238611320778]]]]))        arg1.setTaggedValue(1,numarray.array([[[[1.2576419575915683, -3.1734410535496327, 1.1998368884802568, 1.8809640200061164], [-1.5534830497522223, -0.074458935168450147, -4.8656989205361976, 1.1513605983392381], [-4.9316080457519407, -1.106751969906894, -4.3241632161091541, 2.9487241377101512]], [[2.684920500518917, -3.3015742861809541, 0.26807855318930596, 0.72426106112888267], [2.9843646577044787, -3.391757642398435, 3.4068219310691656, -4.2171147083882401], [-2.1101656815317247, 2.1493771799605774, -4.8659685283014635, -0.47502010404155293]]], [[[4.357422863201716, 4.8510390845117453, -3.2000802947853311, -1.5766514301139747], [2.5748422719196062, 1.3200525174339797, 0.75054651268471595, 2.4957757625035288], [1.3182269435296758, -1.707815738827243, 1.5488302633830724, 2.1659951909025761]], [[4.4241808668635585, -2.4893221650545252, 3.7902761731452728, -3.0402619177931642], [-3.53059600279374, -3.1933839027234621, 3.8255384537489885, -3.8863403237800629], [2.3298445020327456, 4.426470393079514, 1.0966490048561965, -0.36363363199562571]]], [[[-2.6044100079333665, -3.3935436253310525, -2.8393413542188215, 3.8956967282837294], [3.803375915903553, -1.4190438212963397, -1.7531101231160195, -3.4260698733482564], [-0.046790672564496205, 3.6861638454596175, -4.0215592083433567, -4.3028955712819705]], [[-4.7965337564571833, 1.0822074210317867, -4.4106501483342058, -3.5342536347694073], [-2.2246442836483049, 0.95669920182634094, 3.5448979332746493, 0.49409799357663786], [-4.6286448050733808, -1.1561475904911633, 2.3982135982311057, 0.63020238611320778]]]]))
4557        res=arg0/arg1        res=arg0/arg1
4558        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4559        ref=msk_ref*numarray.array([[[[1.2336780243216203, 2.2394678834721882, -1.9583432045994085, 1.3574894358715133], [2.4943415529003099, 0.66935005669760361, -0.86402968783399547, -0.73510875287305033], [-2.005755022430161, 0.96373860502318509, 4.2457256891084123, -0.64826468632145162]], [[1.2769226502560236, -1.0219875945306984, -0.68380383562752567, 2.0978676694172971], [-13.772494410106093, 6.0651751914573424, -0.6991547022020228, 1.8187976020310321], [-2.7517979464495661, 2.9388377976027171, 2.2797181850621464, 0.74198724715536912]]], [[[0.9940764550993455, 1.2402357070970866, 0.69642561172395601, -3.9348258321090337], [0.80883872811666901, 2.1446467085255634, 1.4922340467239081, -0.78903915136844882], [0.68952952760348374, -2.1377316463615519, -1.1021660979377392, 1.2612433059321357]], [[-0.67183088289799076, 2.5962647058750683, 2.1924160775422057, -0.7147249199143112], [1.0116092632739757, 2.3057104014048133, 2.936433325500317, -0.76538863016757375], [0.64854124226664212, 1.7925778898300686, -0.91039421389707254, -1.6788404206197154]]], [[[-0.6401347063693209, -2.1569189132773268, 1.3868477275328333, -1.427914248424403], [-2.3922126450865626, 8.7546924573468363, -0.69187987330013268, 0.76852004930437412], [-0.77389620172998663, -1.1722060184912606, 0.69828640266922848, 57.412642025259423]], [[-0.7773582726065601, -1.6832982512980281, 5.715668695203262, -1.8556846960383562], [1.8601276955264152, 1.3372475611074639, -0.87309561965850979, -1.8565747192849524], [-10.338250590237937, 2.6124786164446543, 0.64966409932642399, 0.75235194280208251]]]])+(1.-msk_ref)*numarray.array([[[[-3.7759228153980078, 1.4964068596642506, -3.9578371084145547, -2.5246410408511561], [3.0568463312356289, 63.776885212346791, 0.97596646213130378, -4.1244758315696997], [0.96292302981425515, 4.2907165204063817, 1.0981914243155488, -1.6104453110895252]], [[-1.7686776797875465, 1.438331701681888, -17.714057707251349, -6.5566951147008741], [-1.5912127055292495, 1.4000879372718966, -1.3938970270105986, 1.1260682456244515], [2.2504199565148801, -2.2093651154139988, 0.97591238694867577, 9.9969641723972451]]], [[[-1.0898090707181347, -0.9789158319572222, 1.4839499399468583, 3.01192696785778], [-1.8442912069062403, -3.5974015416468594, -6.327068184336019, -1.9027185986085167], [-3.6023834777315131, 2.7806038165058653, -3.0660292954885948, -2.19241436048295]], [[-1.073364562655948, 1.9076514193042593, -1.2528794062336541, 1.5619571897669919], [1.3450304020947599, 1.4870617207100782, -1.2413308658858417, 1.2219102203208285], [-2.0382300008127636, -1.0728093807418613, -4.3302450831973545, 13.059185244254143]]], [[[1.8233530614636284, 1.3993510871128283, 1.6724861046439154, -1.2189755241455635], [-1.248564187782546, 3.3464498347441314, 2.7087625008012957, 1.3860659988907091], [101.48943584271274, -1.2882658395993536, 1.180825325515479, 1.1036193843433224]], [[0.99003972501578841, -4.3880303063753763, 1.076657363782368, 1.3436384176150531], [2.1346149567265154, -4.9636907318480299, -1.3396038618480288, -9.6109658873473087], [1.0259501779153113, 4.1073985711931575, -1.9801234405369252, -7.535291940990466]]]])        ref=msk_ref*numarray.array([[[[1.2336780243216203, 2.2394678834721882, -1.9583432045994085, 1.3574894358715133], [2.4943415529003099, 0.66935005669760361, -0.86402968783399547, -0.73510875287305033], [-2.005755022430161, 0.96373860502318509, 4.2457256891084123, -0.64826468632145162]], [[1.2769226502560236, -1.0219875945306984, -0.68380383562752567, 2.0978676694172971], [-13.772494410106093, 6.0651751914573424, -0.6991547022020228, 1.8187976020310321], [-2.7517979464495661, 2.9388377976027171, 2.2797181850621464, 0.74198724715536912]]], [[[0.9940764550993455, 1.2402357070970866, 0.69642561172395601, -3.9348258321090337], [0.80883872811666901, 2.1446467085255634, 1.4922340467239081, -0.78903915136844882], [0.68952952760348374, -2.1377316463615519, -1.1021660979377392, 1.2612433059321357]], [[-0.67183088289799076, 2.5962647058750683, 2.1924160775422057, -0.7147249199143112], [1.0116092632739757, 2.3057104014048133, 2.936433325500317, -0.76538863016757375], [0.64854124226664212, 1.7925778898300686, -0.91039421389707254, -1.6788404206197154]]], [[[-0.6401347063693209, -2.1569189132773268, 1.3868477275328333, -1.427914248424403], [-2.3922126450865626, 8.7546924573468363, -0.69187987330013268, 0.76852004930437412], [-0.77389620172998663, -1.1722060184912606, 0.69828640266922848, 57.412642025259423]], [[-0.7773582726065601, -1.6832982512980281, 5.715668695203262, -1.8556846960383562], [1.8601276955264152, 1.3372475611074639, -0.87309561965850979, -1.8565747192849524], [-10.338250590237937, 2.6124786164446543, 0.64966409932642399, 0.75235194280208251]]]])+(1.-msk_ref)*numarray.array([[[[-3.7759228153980078, 1.4964068596642506, -3.9578371084145547, -2.5246410408511561], [3.0568463312356289, 63.776885212346791, 0.97596646213130378, -4.1244758315696997], [0.96292302981425515, 4.2907165204063817, 1.0981914243155488, -1.6104453110895252]], [[-1.7686776797875465, 1.438331701681888, -17.714057707251349, -6.5566951147008741], [-1.5912127055292495, 1.4000879372718966, -1.3938970270105986, 1.1260682456244515], [2.2504199565148801, -2.2093651154139988, 0.97591238694867577, 9.9969641723972451]]], [[[-1.0898090707181347, -0.9789158319572222, 1.4839499399468583, 3.01192696785778], [-1.8442912069062403, -3.5974015416468594, -6.327068184336019, -1.9027185986085167], [-3.6023834777315131, 2.7806038165058653, -3.0660292954885948, -2.19241436048295]], [[-1.073364562655948, 1.9076514193042593, -1.2528794062336541, 1.5619571897669919], [1.3450304020947599, 1.4870617207100782, -1.2413308658858417, 1.2219102203208285], [-2.0382300008127636, -1.0728093807418613, -4.3302450831973545, 13.059185244254143]]], [[[1.8233530614636284, 1.3993510871128283, 1.6724861046439154, -1.2189755241455635], [-1.248564187782546, 3.3464498347441314, 2.7087625008012957, 1.3860659988907091], [101.48943584271274, -1.2882658395993536, 1.180825325515479, 1.1036193843433224]], [[0.99003972501578841, -4.3880303063753763, 1.076657363782368, 1.3436384176150531], [2.1346149567265154, -4.9636907318480299, -1.3396038618480288, -9.6109658873473087], [1.0259501779153113, 4.1073985711931575, -1.9801234405369252, -7.535291940990466]]]])
4560        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4561        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 4568  class Test_util_overloaded_binary_with_t Line 4568  class Test_util_overloaded_binary_with_t
4568        arg1=Data(1.41235011135,self.functionspace)        arg1=Data(1.41235011135,self.functionspace)
4569        arg1.setTaggedValue(1,2.22264086313)        arg1.setTaggedValue(1,2.22264086313)
4570        res=arg0/arg1        res=arg0/arg1
4571        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4572        ref=msk_ref*numarray.array([0.036017648908669923, 0.40389523951389567])+(1.-msk_ref)*numarray.array([1.1636418769603551, 0.90101593510957845])        ref=msk_ref*numarray.array([0.036017648908669923, 0.40389523951389567])+(1.-msk_ref)*numarray.array([1.1636418769603551, 0.90101593510957845])
4573        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4574        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 4581  class Test_util_overloaded_binary_with_t Line 4581  class Test_util_overloaded_binary_with_t
4581        arg1=Data(numarray.array([0.7462327499260315, -2.0762693673285479]),self.functionspace)        arg1=Data(numarray.array([0.7462327499260315, -2.0762693673285479]),self.functionspace)
4582        arg1.setTaggedValue(1,numarray.array([4.7923993807431291, 0.74413505833569893]))        arg1.setTaggedValue(1,numarray.array([4.7923993807431291, 0.74413505833569893]))
4583        res=arg0/arg1        res=arg0/arg1
4584        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4585        ref=msk_ref*numarray.array([4.9116183238933422, -0.34131137411220819])+(1.-msk_ref)*numarray.array([0.54550028271644757, -2.1681729295207743])        ref=msk_ref*numarray.array([4.9116183238933422, -0.34131137411220819])+(1.-msk_ref)*numarray.array([0.54550028271644757, -2.1681729295207743])
4586        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4587        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 4594  class Test_util_overloaded_binary_with_t Line 4594  class Test_util_overloaded_binary_with_t
4594        arg1=Data(-3.7285469824,self.functionspace)        arg1=Data(-3.7285469824,self.functionspace)
4595        arg1.setTaggedValue(1,1.55743413509)        arg1.setTaggedValue(1,1.55743413509)
4596        res=arg0/arg1        res=arg0/arg1
4597        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4598        ref=msk_ref*numarray.array([[-0.13498470831432896, -0.21891407292608303, -1.3138150913796285, -0.5002003720965198, 0.5270506384030984], [-1.062124197050003, 0.17564336214594561, -1.0359824189186062, 0.95593528191210175, -0.095875406749329289], [-1.2308797835139351, -1.2246379658895785, 0.44293502910466304, 0.84372235557676545, 0.34287683707111871], [-0.46634888933402785, -0.1224052505403701, 0.49590832542404756, 0.94831230131785449, 0.038047141929742567]])+(1.-msk_ref)*numarray.array([[2.7888313506497542, 0.15291696238991431, -0.048790432401805986, 0.77879078179326677, 1.8361498987065981], [2.3455540094257548, 3.0216073287858025, 3.1509500025736203, 0.5021713836191829, 2.5410338915466135], [-3.176968460899583, -2.0641409033208773, 0.2848901858880834, 0.77558835618507593, 2.8517454294323783], [2.2797512453518824, 0.86830931690084756, -1.4079207462137391, 2.6040962546567044, 2.7390229121418534]])        ref=msk_ref*numarray.array([[-0.13498470831432896, -0.21891407292608303, -1.3138150913796285, -0.5002003720965198, 0.5270506384030984], [-1.062124197050003, 0.17564336214594561, -1.0359824189186062, 0.95593528191210175, -0.095875406749329289], [-1.2308797835139351, -1.2246379658895785, 0.44293502910466304, 0.84372235557676545, 0.34287683707111871], [-0.46634888933402785, -0.1224052505403701, 0.49590832542404756, 0.94831230131785449, 0.038047141929742567]])+(1.-msk_ref)*numarray.array([[2.7888313506497542, 0.15291696238991431, -0.048790432401805986, 0.77879078179326677, 1.8361498987065981], [2.3455540094257548, 3.0216073287858025, 3.1509500025736203, 0.5021713836191829, 2.5410338915466135], [-3.176968460899583, -2.0641409033208773, 0.2848901858880834, 0.77558835618507593, 2.8517454294323783], [2.2797512453518824, 0.86830931690084756, -1.4079207462137391, 2.6040962546567044, 2.7390229121418534]])
4599        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4600        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 4607  class Test_util_overloaded_binary_with_t Line 4607  class Test_util_overloaded_binary_with_t
4607        arg1=Data(numarray.array([[3.5904965592721503, -4.0969200652107229, 0.13519588987666165, 4.5989242210065413, -2.4810960709590377], [-2.6708628061686812, -3.5426823959031117, -2.9176177701412023, -2.3344246474935648, -3.8725295525774706], [-3.3091824253461768, 0.14937134666940466, -0.83524802606278836, 0.82731354324827855, 1.6546135110356905], [-0.39919686576574342, -1.4316867371910558, 1.3850758797184781, -1.8784215202605949, -0.99132472582778774]]),self.functionspace)        arg1=Data(numarray.array([[3.5904965592721503, -4.0969200652107229, 0.13519588987666165, 4.5989242210065413, -2.4810960709590377], [-2.6708628061686812, -3.5426823959031117, -2.9176177701412023, -2.3344246474935648, -3.8725295525774706], [-3.3091824253461768, 0.14937134666940466, -0.83524802606278836, 0.82731354324827855, 1.6546135110356905], [-0.39919686576574342, -1.4316867371910558, 1.3850758797184781, -1.8784215202605949, -0.99132472582778774]]),self.functionspace)
4608        arg1.setTaggedValue(1,numarray.array([[-2.6785140028087682, 1.6373359988751783, 1.4834758385338178, 2.8575139683345085, 4.230591955174452], [-4.3395029753126959, -2.8810557377997972, 3.863424540479139, -1.8677914034693455, -0.43576547631716789], [-1.6708464521944064, -1.7001809938700339, 3.7001567886970523, -4.4533154122154937, 2.6998503289551614], [2.1421439727116534, 2.3355944236634887, 2.0104913340889476, -4.8442208307652663, -1.7706845888283116]]))        arg1.setTaggedValue(1,numarray.array([[-2.6785140028087682, 1.6373359988751783, 1.4834758385338178, 2.8575139683345085, 4.230591955174452], [-4.3395029753126959, -2.8810557377997972, 3.863424540479139, -1.8677914034693455, -0.43576547631716789], [-1.6708464521944064, -1.7001809938700339, 3.7001567886970523, -4.4533154122154937, 2.6998503289551614], [2.1421439727116534, 2.3355944236634887, 2.0104913340889476, -4.8442208307652663, -1.7706845888283116]]))
4609        res=arg0/arg1        res=arg0/arg1
4610        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4611        ref=msk_ref*numarray.array([[-0.77221443327848549, 0.13582719295804277, 15.046985324131597, 0.014525081862784783, -1.9215423060580117], [-1.758155479958021, -1.1245435566082089, 0.49917177642775329, 0.30411036264041313, -0.70195041793012758], [1.3747694260170507, -7.737886621272243, -4.9789745672836014, 4.9824951489919282, -2.7835561706740188], [1.7231459096344601, -2.295878314435178, -3.3968267967668058, -0.017496925058092132, -0.9162598283268123]])+(1.-msk_ref)*numarray.array([[0.11724057997519734, -1.4881890831070697, -2.4665347666481163, 1.1962793170277417, 0.11435354142216658], [0.89580695669496169, -1.0457822560799557, -0.45089606472908061, -2.2131182299482219, -0.57090912192998011], [2.2153128829435156, -0.74738726039757264, 0.14691551877494757, -1.040563159450077, 0.97280992155776158], [-1.4608279357291714, -0.26329582068700919, 0.5477804485559975, -0.17491979365551619, 2.2002681640457831]])        ref=msk_ref*numarray.array([[-0.77221443327848549, 0.13582719295804277, 15.046985324131597, 0.014525081862784783, -1.9215423060580117], [-1.758155479958021, -1.1245435566082089, 0.49917177642775329, 0.30411036264041313, -0.70195041793012758], [1.3747694260170507, -7.737886621272243, -4.9789745672836014, 4.9824951489919282, -2.7835561706740188], [1.7231459096344601, -2.295878314435178, -3.3968267967668058, -0.017496925058092132, -0.9162598283268123]])+(1.-msk_ref)*numarray.array([[0.11724057997519734, -1.4881890831070697, -2.4665347666481163, 1.1962793170277417, 0.11435354142216658], [0.89580695669496169, -1.0457822560799557, -0.45089606472908061, -2.2131182299482219, -0.57090912192998011], [2.2153128829435156, -0.74738726039757264, 0.14691551877494757, -1.040563159450077, 0.97280992155776158], [-1.4608279357291714, -0.26329582068700919, 0.5477804485559975, -0.17491979365551619, 2.2002681640457831]])
4612        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4613        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 4620  class Test_util_overloaded_binary_with_t Line 4620  class Test_util_overloaded_binary_with_t
4620        arg1=Data(2.95706331809,self.functionspace)        arg1=Data(2.95706331809,self.functionspace)
4621        arg1.setTaggedValue(1,2.21817342115)        arg1.setTaggedValue(1,2.21817342115)
4622        res=arg0/arg1        res=arg0/arg1
4623        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4624        ref=msk_ref*numarray.array([[[-1.5393002796190276, 1.326975665892131], [0.72034926512343422, -1.3992275058864994]], [[0.21997117270591807, 1.3273324165657019], [-1.3418053116967052, -0.18130678239530448]], [[-1.4045150625646128, -1.670764004591786], [-0.7221086469949215, 1.527996200340072]], [[-0.27326837212879074, -1.355279759952831], [0.203085416884457, -0.91538212753707815]], [[1.6373593398564841, 1.0674478408423922], [0.1803740974530465, 0.23196993242825018]], [[0.34464525949048935, 0.79379678805254084], [1.0836967853835819, 1.493394617509209]]])+(1.-msk_ref)*numarray.array([[[0.17697308137187651, -0.3224994786957921], [1.6567067527693649, 0.32486815241968958]], [[-0.82409021899961676, -1.0247118715895138], [-0.63082710547705989, -0.25645185901865303]], [[-0.6168581245868614, -2.1674006986145598], [-1.4413991523545804, -1.0024967517873473]], [[0.5790937296971097, -0.39982863992927675], [1.245586524342543, -1.6703451104743032]], [[-2.0478081806324764, 1.7164723011861083], [-0.098389720597023264, -1.1860716859231386]], [[-1.6062281758764747, 1.8156128405356802], [-1.3280738088757058, -2.0118252443081501]]])        ref=msk_ref*numarray.array([[[-1.5393002796190276, 1.326975665892131], [0.72034926512343422, -1.3992275058864994]], [[0.21997117270591807, 1.3273324165657019], [-1.3418053116967052, -0.18130678239530448]], [[-1.4045150625646128, -1.670764004591786], [-0.7221086469949215, 1.527996200340072]], [[-0.27326837212879074, -1.355279759952831], [0.203085416884457, -0.91538212753707815]], [[1.6373593398564841, 1.0674478408423922], [0.1803740974530465, 0.23196993242825018]], [[0.34464525949048935, 0.79379678805254084], [1.0836967853835819, 1.493394617509209]]])+(1.-msk_ref)*numarray.array([[[0.17697308137187651, -0.3224994786957921], [1.6567067527693649, 0.32486815241968958]], [[-0.82409021899961676, -1.0247118715895138], [-0.63082710547705989, -0.25645185901865303]], [[-0.6168581245868614, -2.1674006986145598], [-1.4413991523545804, -1.0024967517873473]], [[0.5790937296971097, -0.39982863992927675], [1.245586524342543, -1.6703451104743032]], [[-2.0478081806324764, 1.7164723011861083], [-0.098389720597023264, -1.1860716859231386]], [[-1.6062281758764747, 1.8156128405356802], [-1.3280738088757058, -2.0118252443081501]]])
4625        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4626        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 4633  class Test_util_overloaded_binary_with_t Line 4633  class Test_util_overloaded_binary_with_t
4633        arg1=Data(numarray.array([[[1.4599040646635189, -0.13823582259597345], [1.0744688931585991, 2.5822963189878179]], [[2.4319519119804767, -2.2233302081961703], [0.89128069195950399, -0.80935163107648656]], [[-1.633143453634498, 4.9694257564589677], [-0.39934410191271663, 3.1382399196898429]], [[1.1564311812897721, 2.5133082615251308], [1.8161038476244986, -4.197184166416438]], [[-4.7903399932213446, 2.8323337189533149], [4.1170427348897878, 0.30383659941813779]], [[0.55976971588727586, 1.4549797538865583], [4.3140940804267771, -4.7406405385059536]]]),self.functionspace)        arg1=Data(numarray.array([[[1.4599040646635189, -0.13823582259597345], [1.0744688931585991, 2.5822963189878179]], [[2.4319519119804767, -2.2233302081961703], [0.89128069195950399, -0.80935163107648656]], [[-1.633143453634498, 4.9694257564589677], [-0.39934410191271663, 3.1382399196898429]], [[1.1564311812897721, 2.5133082615251308], [1.8161038476244986, -4.197184166416438]], [[-4.7903399932213446, 2.8323337189533149], [4.1170427348897878, 0.30383659941813779]], [[0.55976971588727586, 1.4549797538865583], [4.3140940804267771, -4.7406405385059536]]]),self.functionspace)
4634        arg1.setTaggedValue(1,numarray.array([[[-1.2742614889129666, -1.865705335597708], [4.3493655135768954, 4.9283987240172884]], [[-1.6547908255858923, 1.5125735740088633], [2.4602944768024448, -3.2645878625951132]], [[-2.559359816592611, 4.2572246050859661], [-0.8559816906283757, 0.98963688714277964]], [[0.69459201540592197, -3.8457753717777754], [1.1488012652590172, 2.5508213488692917]], [[3.9143983543602605, -0.95568185491149205], [-2.3875228795187118, -3.9521687246019721]], [[4.5806326105572595, 1.6528180049556571], [4.1311927984022763, 2.7665306288878071]]]))        arg1.setTaggedValue(1,numarray.array([[[-1.2742614889129666, -1.865705335597708], [4.3493655135768954, 4.9283987240172884]], [[-1.6547908255858923, 1.5125735740088633], [2.4602944768024448, -3.2645878625951132]], [[-2.559359816592611, 4.2572246050859661], [-0.8559816906283757, 0.98963688714277964]], [[0.69459201540592197, -3.8457753717777754], [1.1488012652590172, 2.5508213488692917]], [[3.9143983543602605, -0.95568185491149205], [-2.3875228795187118, -3.9521687246019721]], [[4.5806326105572595, 1.6528180049556571], [4.1311927984022763, 2.7665306288878071]]]))
4635        res=arg0/arg1        res=arg0/arg1
4636        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4637        ref=msk_ref*numarray.array([[[-0.14678393055801994, 8.534913169186586], [-0.94532823163253332, 0.77286494082393797]], [[0.73045739984755009, 0.24449198811145967], [-1.4859591572664319, -2.3380745781043459]], [[-1.7797651762446787, 0.55897274855119616], [6.6560059835327525, -1.4640877741325773]], [[2.8750076848277017, -1.1284064502739073], [-0.07642144107747266, -0.42147190487180131]], [[0.95737600574389203, 1.2906396000341618], [1.2117868199086108, -1.3613337755796584]], [[-8.8108860966446212, 2.0233324921371811], [0.39109723949459418, -0.80414353310380227]]])+(1.-msk_ref)*numarray.array([[[2.9739902054717651, 2.4291166193710128], [-0.26177629489693705, -0.79756269185489514]], [[-2.4415282872409794, 2.7955660548995795], [1.4786501311321938, 0.58648161916961705]], [[-0.45453555981343835, -0.6706796364619495], [-3.326315866790885, -2.3342298285799941]], [[5.5474074228751595, -0.047923896572387076], [4.0011731010255609, -0.74564371593184942]], [[0.089109785417117351, 1.107951489952403], [0.41950186395315331, 0.4136895436424648]], [[0.46517156476176824, -0.093761049201147237], [0.98527488788700113, -0.12297049209764503]]])        ref=msk_ref*numarray.array([[[-0.14678393055801994, 8.534913169186586], [-0.94532823163253332, 0.77286494082393797]], [[0.73045739984755009, 0.24449198811145967], [-1.4859591572664319, -2.3380745781043459]], [[-1.7797651762446787, 0.55897274855119616], [6.6560059835327525, -1.4640877741325773]], [[2.8750076848277017, -1.1284064502739073], [-0.07642144107747266, -0.42147190487180131]], [[0.95737600574389203, 1.2906396000341618], [1.2117868199086108, -1.3613337755796584]], [[-8.8108860966446212, 2.0233324921371811], [0.39109723949459418, -0.80414353310380227]]])+(1.-msk_ref)*numarray.array([[[2.9739902054717651, 2.4291166193710128], [-0.26177629489693705, -0.79756269185489514]], [[-2.4415282872409794, 2.7955660548995795], [1.4786501311321938, 0.58648161916961705]], [[-0.45453555981343835, -0.6706796364619495], [-3.326315866790885, -2.3342298285799941]], [[5.5474074228751595, -0.047923896572387076], [4.0011731010255609, -0.74564371593184942]], [[0.089109785417117351, 1.107951489952403], [0.41950186395315331, 0.4136895436424648]], [[0.46517156476176824, -0.093761049201147237], [0.98527488788700113, -0.12297049209764503]]])
4638        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4639        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 4646  class Test_util_overloaded_binary_with_t Line 4646  class Test_util_overloaded_binary_with_t
4646        arg1=Data(3.09131147493,self.functionspace)        arg1=Data(3.09131147493,self.functionspace)
4647        arg1.setTaggedValue(1,4.15261466341)        arg1.setTaggedValue(1,4.15261466341)
4648        res=arg0/arg1        res=arg0/arg1
4649        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4650        ref=msk_ref*numarray.array([[[[-1.0045103666911936, 0.93528347108387344, -1.0943535799646062, 1.3557614434473706], [0.75419852758420325, 1.5220360490418405, -0.6054574783855633, -0.9307301296510363], [-0.23820755972545513, 0.17034384637579258, 0.020724743526709253, -1.0008846560876641]], [[-1.0430336860192717, 0.61501958942186841, 1.4174195534312273, -0.82722864569142784], [1.0999364651141437, 0.90555644125493528, -0.4695390614824988, -1.4994215527281491], [1.0641510038416484, -1.1273617324146812, -1.5806617050901524, 0.45962927762027506]]], [[[-0.64420434222424305, 1.4310988967060441, 0.16237245977197873, 0.54136529094727803], [-1.1531218864343413, 0.27331953412556403, -1.2811230122976631, -1.6107821395843787], [0.46347013383354391, 1.4817612533169191, 0.00020441391673063481, -0.85780866644509546]], [[-0.91728522176275584, 0.92426973589507111, -0.027717898252208713, -0.49917666144914913], [-0.17334808995709938, 0.45219305050714037, -1.2705192487749311, -0.34223731599190288], [1.3403283418192866, 1.1971092240033396, 1.4487728197346457, -0.86272193649818818]]], [[[-1.0643750260690201, 0.17386069489038061, -1.0261073123770286, 0.48716091634293518], [0.86662797586728912, 1.0380158096138008, 0.75340451680684983, 1.2135285721851448], [0.95448552094246886, 1.3227443821056646, 1.2219274966893079, 1.1653586951178454]], [[0.27985601657091386, 1.3950266771160365, 1.3425755185126473, 0.69841457816013219], [1.0667527819098483, -1.4144072768925355, 0.6710653372244989, 0.94795202299488757], [0.049590300523557902, -0.66718619892425901, 0.40763460625081321, -1.0737096487725637]]]])+(1.-msk_ref)*numarray.array([[[[0.14476661653876957, -0.80535558858917833, -1.0211399788542901, -0.92216051783385344], [-1.0228162955331033, 0.40633932774461018, -0.2237271893802352, 0.92086454859560152], [-0.20071542961832703, -1.1601385886083861, -0.2289969533319762, 0.50037407287424984]], [[-1.0442769305528175, -0.076275760265854892, 1.0703529771673421, -0.36504529311902811], [0.77761246023196995, -0.9713753749162638, -1.0585540482935671, 0.61985914944845055], [-0.70259932857078777, 0.95237731742167198, 0.85283915407663025, -0.25414191740955294]]], [[[-1.0747976143468521, -1.1326401100979409, 0.092289690159937363, -0.8758205932049965], [0.49536916676549964, -1.003087501620672, 0.55357664792546046, -0.57001358754155351], [0.47379607073432511, -1.1215676361599654, 0.56141909232461307, 0.26046032191182478]], [[0.80629318754329715, 0.055260978674370624, -0.44979996914994325, -1.1424792362508878], [1.0582224960218336, 1.1734413138526407, 0.45446082158920104, 0.27386535787886679], [-0.40805796373676662, 1.0166861865906531, 0.40522645270024016, -1.0662925917375679]]], [[[0.35658778379628625, 0.62245936693167681, -1.1117986936713509, 0.0066118137262807328], [0.67960807017017244, 0.37864664058431952, -0.9151803863781427, 0.95809602832892782], [0.40282512124329978, 0.58894231215566739, 0.35292055845834419, -0.19852046600239145]], [[-0.074207245252311413, -0.87092340463802609, -0.48671138877722825, -0.314578946427094], [0.26139802438820431, -0.80602873520484675, -0.94258757246606695, 0.8184845863723369], [0.57021444760949402, -0.39372974679570433, -0.85234063485136768, 0.088777286644305911]]]])        ref=msk_ref*numarray.array([[[[-1.0045103666911936, 0.93528347108387344, -1.0943535799646062, 1.3557614434473706], [0.75419852758420325, 1.5220360490418405, -0.6054574783855633, -0.9307301296510363], [-0.23820755972545513, 0.17034384637579258, 0.020724743526709253, -1.0008846560876641]], [[-1.0430336860192717, 0.61501958942186841, 1.4174195534312273, -0.82722864569142784], [1.0999364651141437, 0.90555644125493528, -0.4695390614824988, -1.4994215527281491], [1.0641510038416484, -1.1273617324146812, -1.5806617050901524, 0.45962927762027506]]], [[[-0.64420434222424305, 1.4310988967060441, 0.16237245977197873, 0.54136529094727803], [-1.1531218864343413, 0.27331953412556403, -1.2811230122976631, -1.6107821395843787], [0.46347013383354391, 1.4817612533169191, 0.00020441391673063481, -0.85780866644509546]], [[-0.91728522176275584, 0.92426973589507111, -0.027717898252208713, -0.49917666144914913], [-0.17334808995709938, 0.45219305050714037, -1.2705192487749311, -0.34223731599190288], [1.3403283418192866, 1.1971092240033396, 1.4487728197346457, -0.86272193649818818]]], [[[-1.0643750260690201, 0.17386069489038061, -1.0261073123770286, 0.48716091634293518], [0.86662797586728912, 1.0380158096138008, 0.75340451680684983, 1.2135285721851448], [0.95448552094246886, 1.3227443821056646, 1.2219274966893079, 1.1653586951178454]], [[0.27985601657091386, 1.3950266771160365, 1.3425755185126473, 0.69841457816013219], [1.0667527819098483, -1.4144072768925355, 0.6710653372244989, 0.94795202299488757], [0.049590300523557902, -0.66718619892425901, 0.40763460625081321, -1.0737096487725637]]]])+(1.-msk_ref)*numarray.array([[[[0.14476661653876957, -0.80535558858917833, -1.0211399788542901, -0.92216051783385344], [-1.0228162955331033, 0.40633932774461018, -0.2237271893802352, 0.92086454859560152], [-0.20071542961832703, -1.1601385886083861, -0.2289969533319762, 0.50037407287424984]], [[-1.0442769305528175, -0.076275760265854892, 1.0703529771673421, -0.36504529311902811], [0.77761246023196995, -0.9713753749162638, -1.0585540482935671, 0.61985914944845055], [-0.70259932857078777, 0.95237731742167198, 0.85283915407663025, -0.25414191740955294]]], [[[-1.0747976143468521, -1.1326401100979409, 0.092289690159937363, -0.8758205932049965], [0.49536916676549964, -1.003087501620672, 0.55357664792546046, -0.57001358754155351], [0.47379607073432511, -1.1215676361599654, 0.56141909232461307, 0.26046032191182478]], [[0.80629318754329715, 0.055260978674370624, -0.44979996914994325, -1.1424792362508878], [1.0582224960218336, 1.1734413138526407, 0.45446082158920104, 0.27386535787886679], [-0.40805796373676662, 1.0166861865906531, 0.40522645270024016, -1.0662925917375679]]], [[[0.35658778379628625, 0.62245936693167681, -1.1117986936713509, 0.0066118137262807328], [0.67960807017017244, 0.37864664058431952, -0.9151803863781427, 0.95809602832892782], [0.40282512124329978, 0.58894231215566739, 0.35292055845834419, -0.19852046600239145]], [[-0.074207245252311413, -0.87092340463802609, -0.48671138877722825, -0.314578946427094], [0.26139802438820431, -0.80602873520484675, -0.94258757246606695, 0.8184845863723369], [0.57021444760949402, -0.39372974679570433, -0.85234063485136768, 0.088777286644305911]]]])
4651        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4652        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 4659  class Test_util_overloaded_binary_with_t Line 4659  class Test_util_overloaded_binary_with_t
4659        arg1=Data(numarray.array([[[[1.6473977568317624, 3.060632074996974, -3.4388164535238297, 4.6130496534091474], [-3.6830738780041927, -1.443653760068826, 4.5043689212016549, -4.7368412320166273], [-4.5363279042074955, 1.1097214485937998, 0.77462567371884994, 4.981110241026995]], [[-4.5025507630992383, -4.6221706793689599, -3.6007662094140436, -0.78458562298234291], [-2.9535617848572193, 1.2767662607458661, 1.7066013942805416, -2.9979545360221147], [4.1323090465127432, -3.9266093748624353, 4.7236256766037972, 3.4439797336283391]]], [[[-4.1105280308664742, -1.9135755271518304, 1.3722717679177956, -2.7578492586999284], [-1.8660256922079355, -3.4967466137142909, 3.4128758531494992, 0.74755011128158699], [1.3606430798212799, 2.270840767531034, 1.9924091780622009, 3.4882598183819482]], [[-3.600286676105747, 2.3273940125745565, 2.5335245025984046, 3.4362502720317831], [-1.4972840741765525, 0.14677687739010459, -1.8108476791716721, -3.1112785809977108], [3.5748082069738238, -3.054665072333572, -3.0141021764705855, -4.5404816279108919]]], [[[3.0901204588456768, 4.36356065832992, -4.9043258938503325, 1.9780565000570434], [-0.74356942097228007, -3.4613688307243908, 1.5690542756061649, 1.3987339178483413], [-2.9886008448921411, 4.2498910274808352, -3.8464996624489132, -0.77542036480722487]], [[-2.1356871008085321, 4.685343460071433, -4.5548813476343311, -0.79068766942125635], [1.6135390387166462, -1.451365730195342, -1.4688266440715223, -2.3535062808820983], [-3.0054980918538132, -1.0976577965155823, 3.1234943395225052, -2.7885287508377798]]]]),self.functionspace)        arg1=Data(numarray.array([[[[1.6473977568317624, 3.060632074996974, -3.4388164535238297, 4.6130496534091474], [-3.6830738780041927, -1.443653760068826, 4.5043689212016549, -4.7368412320166273], [-4.5363279042074955, 1.1097214485937998, 0.77462567371884994, 4.981110241026995]], [[-4.5025507630992383, -4.6221706793689599, -3.6007662094140436, -0.78458562298234291], [-2.9535617848572193, 1.2767662607458661, 1.7066013942805416, -2.9979545360221147], [4.1323090465127432, -3.9266093748624353, 4.7236256766037972, 3.4439797336283391]]], [[[-4.1105280308664742, -1.9135755271518304, 1.3722717679177956, -2.7578492586999284], [-1.8660256922079355, -3.4967466137142909, 3.4128758531494992, 0.74755011128158699], [1.3606430798212799, 2.270840767531034, 1.9924091780622009, 3.4882598183819482]], [[-3.600286676105747, 2.3273940125745565, 2.5335245025984046, 3.4362502720317831], [-1.4972840741765525, 0.14677687739010459, -1.8108476791716721, -3.1112785809977108], [3.5748082069738238, -3.054665072333572, -3.0141021764705855, -4.5404816279108919]]], [[[3.0901204588456768, 4.36356065832992, -4.9043258938503325, 1.9780565000570434], [-0.74356942097228007, -3.4613688307243908, 1.5690542756061649, 1.3987339178483413], [-2.9886008448921411, 4.2498910274808352, -3.8464996624489132, -0.77542036480722487]], [[-2.1356871008085321, 4.685343460071433, -4.5548813476343311, -0.79068766942125635], [1.6135390387166462, -1.451365730195342, -1.4688266440715223, -2.3535062808820983], [-3.0054980918538132, -1.0976577965155823, 3.1234943395225052, -2.7885287508377798]]]]),self.functionspace)
4660        arg1.setTaggedValue(1,numarray.array([[[[-2.7503292812648539, -3.1594867423525219, -2.9333466069425396, -0.29335160182062126], [-0.053607625217670041, 1.1424838107167421, -0.35330217119188401, 0.34222049332923454], [-0.40602786427555326, -0.99865436647965122, -1.3798205623216786, -4.6670142170881519]], [[-0.77387429567850408, 4.0395903871128187, -3.802753215142137, -1.8319944285501801], [2.3416652977089294, 2.0421663768151745, 0.1791968970504465, 3.3974888365598694], [-4.87062469047713, 1.3082266328209888, 4.4945915139349921, -1.2411683823455411]]], [[[3.5483728428512169, 1.1807640737743128, 2.5750798072298533, 1.6480034934010312], [0.22277966902912461, 2.6736525238013211, -3.4732939026664433, -4.0565332315808345], [0.94094765563978022, -3.9228802614079603, -3.298064398465077, 2.9226886859579562]], [[2.4081210249600478, -1.8371910666413194, -2.5510655783199923, -4.8771638029284468], [1.8920393402083882, -0.35503479565201879, 1.8742490774270983, 1.9919708652865591], [-4.8705605094668663, 0.5757868473299288, -0.1111587185467755, 2.4388512148069914]]], [[[-1.3826455408569096, 4.7259176489527217, -0.62041882416843741, 0.095067423200346113], [-4.1200009954384615, 3.23017785174304, 1.206595167640014, -1.0839684154592577], [4.268229044833701, 4.9914238010719831, -1.6521981468596758, 0.036000073658897236]], [[4.1932188772326686, 0.50975552795114343, -2.6028706435713689, 0.95210978345192387], [2.866997878411615, 0.41788855501294186, -2.6903527037118682, -1.7075122318845892], [-4.9102704449009735, 1.8799405727585441, 3.7501203233456977, -4.439977575196858]]]]))        arg1.setTaggedValue(1,numarray.array([[[[-2.7503292812648539, -3.1594867423525219, -2.9333466069425396, -0.29335160182062126], [-0.053607625217670041, 1.1424838107167421, -0.35330217119188401, 0.34222049332923454], [-0.40602786427555326, -0.99865436647965122, -1.3798205623216786, -4.6670142170881519]], [[-0.77387429567850408, 4.0395903871128187, -3.802753215142137, -1.8319944285501801], [2.3416652977089294, 2.0421663768151745, 0.1791968970504465, 3.3974888365598694], [-4.87062469047713, 1.3082266328209888, 4.4945915139349921, -1.2411683823455411]]], [[[3.5483728428512169, 1.1807640737743128, 2.5750798072298533, 1.6480034934010312], [0.22277966902912461, 2.6736525238013211, -3.4732939026664433, -4.0565332315808345], [0.94094765563978022, -3.9228802614079603, -3.298064398465077, 2.9226886859579562]], [[2.4081210249600478, -1.8371910666413194, -2.5510655783199923, -4.8771638029284468], [1.8920393402083882, -0.35503479565201879, 1.8742490774270983, 1.9919708652865591], [-4.8705605094668663, 0.5757868473299288, -0.1111587185467755, 2.4388512148069914]]], [[[-1.3826455408569096, 4.7259176489527217, -0.62041882416843741, 0.095067423200346113], [-4.1200009954384615, 3.23017785174304, 1.206595167640014, -1.0839684154592577], [4.268229044833701, 4.9914238010719831, -1.6521981468596758, 0.036000073658897236]], [[4.1932188772326686, 0.50975552795114343, -2.6028706435713689, 0.95210978345192387], [2.866997878411615, 0.41788855501294186, -2.6903527037118682, -1.7075122318845892], [-4.9102704449009735, 1.8799405727585441, 3.7501203233456977, -4.439977575196858]]]]))
4661        res=arg0/arg1        res=arg0/arg1
4662        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4663        ref=msk_ref*numarray.array([[[[-0.59075196723262668, 1.0873161404426213, -0.1254130998981903, -0.91381051723617457], [-0.10825032545267814, 3.0795739797219164, 0.47596536249277133, 0.37654612781030705], [0.83252088299487081, 0.26309590165978353, -0.99186913482249195, -0.38179814506481791]], [[-0.0067410938155536212, 0.63876463607065714, -0.15279188275986519, 1.5391492506575097], [1.4987356360943997, -2.1290628948814536, 0.47950011906733064, -0.79982221656047991], [0.24454592081609527, -0.52649144102637202, 0.21423121375675269, 0.15643644037402915]]], [[[-0.7623919687648858, 0.93812241365934368, -3.522029383687951, -1.3745800960140531], [1.1153768058562041, 1.0158391319286291, -0.69460162883836118, -1.4704343344110902], [0.22933681745303966, 0.67729881221484189, -2.0553496154073709, -0.21672502159848753]], [[-1.0032151402317464, 0.13721836515134447, -1.5815582583073404, -1.1602744335188235], [-0.60143678046829163, -0.17879154971936828, 0.75492342767150067, 1.2742682084899697], [-0.49894371407761057, -1.3510431627646964, -1.4561836665318713, 0.078004052052145251]]], [[[0.5076939135146642, -0.47832184273148454, -0.32936904005987194, -0.9675536279797522], [-5.5563678327094701, 0.048109980507218653, -2.0639872904807941, -1.4632393585488299], [-0.76548939557626139, -0.47774008536181328, 0.20478625211769619, 1.6989450908865456]], [[-1.324122158229327, -0.34836181561351087, 0.34654976701016715, -1.4380934741311207], [-2.6346604201739159, -2.0780624958701166, -2.3764562272625964, 1.3073104210317137], [-1.6416351041108141, -4.239604161833932, 1.3114938259415012, 1.5654376464566071]]]])+(1.-msk_ref)*numarray.array([[[[-1.0932655374000622, -0.56402095241875272, 1.1052948079474789, -6.8263992038321302], [10.282666119531441, 3.809093357894358, -0.99735552963205054, -7.9592277673537204], [4.5933568765791915, -0.60589858617172709, 0.3759924679410705, -0.56451003374841835]], [[4.5048413245640715, 0.51438786699457661, 0.94648771124506137, -1.6155627722284864], [0.31598141298022531, -1.28091961152204, -11.997072544411369, -0.61307909548715811], [-0.76325414380962264, -0.0035002833714103451, 0.3453460027673475, 0.96338722471232896]]], [[[-0.18035249989052124, -3.1396201196871711, -0.57625686926656217, 2.9529475613387151], [-3.0881326084502039, -0.91983616542759272, 0.11441129746133057, 1.0794244497599199], [1.9164975472347003, 0.84096876262826648, 0.74312802239381437, 0.62617323454887153]], [[0.71550094729288727, 1.1934368106453219, -1.4097405935206679, 0.88336035680599956], [2.5400082299334583, -2.0169511601394499, -1.0000291491296418, 1.3879511578461685], [-0.61287938512701989, -0.46733977406768196, -10.491033097010263, -1.8518250648170755]]], [[[-0.29897131828394197, 0.77108404573678946, 1.9082374896569554, -4.1827896726290517], [0.1156018282509679, -1.2858582691498568, 2.3968003975965728, 3.6320351512864337], [0.94002690973071235, -0.57925483108365106, 1.0986248479205121, 112.72392322528532]], [[-1.0928932828671074, 3.3052984507487406, 0.14507024363732401, -5.1318093777943181], [-1.357439703660503, 4.0262275866355459, 1.5554602580473238, -1.9204194839054707], [0.85863082824144266, -0.21310587108996273, 0.3075222879053931, 0.84649955063507554]]]])        ref=msk_ref*numarray.array([[[[-0.59075196723262668, 1.0873161404426213, -0.1254130998981903, -0.91381051723617457], [-0.10825032545267814, 3.0795739797219164, 0.47596536249277133, 0.37654612781030705], [0.83252088299487081, 0.26309590165978353, -0.99186913482249195, -0.38179814506481791]], [[-0.0067410938155536212, 0.63876463607065714, -0.15279188275986519, 1.5391492506575097], [1.4987356360943997, -2.1290628948814536, 0.47950011906733064, -0.79982221656047991], [0.24454592081609527, -0.52649144102637202, 0.21423121375675269, 0.15643644037402915]]], [[[-0.7623919687648858, 0.93812241365934368, -3.522029383687951, -1.3745800960140531], [1.1153768058562041, 1.0158391319286291, -0.69460162883836118, -1.4704343344110902], [0.22933681745303966, 0.67729881221484189, -2.0553496154073709, -0.21672502159848753]], [[-1.0032151402317464, 0.13721836515134447, -1.5815582583073404, -1.1602744335188235], [-0.60143678046829163, -0.17879154971936828, 0.75492342767150067, 1.2742682084899697], [-0.49894371407761057, -1.3510431627646964, -1.4561836665318713, 0.078004052052145251]]], [[[0.5076939135146642, -0.47832184273148454, -0.32936904005987194, -0.9675536279797522], [-5.5563678327094701, 0.048109980507218653, -2.0639872904807941, -1.4632393585488299], [-0.76548939557626139, -0.47774008536181328, 0.20478625211769619, 1.6989450908865456]], [[-1.324122158229327, -0.34836181561351087, 0.34654976701016715, -1.4380934741311207], [-2.6346604201739159, -2.0780624958701166, -2.3764562272625964, 1.3073104210317137], [-1.6416351041108141, -4.239604161833932, 1.3114938259415012, 1.5654376464566071]]]])+(1.-msk_ref)*numarray.array([[[[-1.0932655374000622, -0.56402095241875272, 1.1052948079474789, -6.8263992038321302], [10.282666119531441, 3.809093357894358, -0.99735552963205054, -7.9592277673537204], [4.5933568765791915, -0.60589858617172709, 0.3759924679410705, -0.56451003374841835]], [[4.5048413245640715, 0.51438786699457661, 0.94648771124506137, -1.6155627722284864], [0.31598141298022531, -1.28091961152204, -11.997072544411369, -0.61307909548715811], [-0.76325414380962264, -0.0035002833714103451, 0.3453460027673475, 0.96338722471232896]]], [[[-0.18035249989052124, -3.1396201196871711, -0.57625686926656217, 2.9529475613387151], [-3.0881326084502039, -0.91983616542759272, 0.11441129746133057, 1.0794244497599199], [1.9164975472347003, 0.84096876262826648, 0.74312802239381437, 0.62617323454887153]], [[0.71550094729288727, 1.1934368106453219, -1.4097405935206679, 0.88336035680599956], [2.5400082299334583, -2.0169511601394499, -1.0000291491296418, 1.3879511578461685], [-0.61287938512701989, -0.46733977406768196, -10.491033097010263, -1.8518250648170755]]], [[[-0.29897131828394197, 0.77108404573678946, 1.9082374896569554, -4.1827896726290517], [0.1156018282509679, -1.2858582691498568, 2.3968003975965728, 3.6320351512864337], [0.94002690973071235, -0.57925483108365106, 1.0986248479205121, 112.72392322528532]], [[-1.0928932828671074, 3.3052984507487406, 0.14507024363732401, -5.1318093777943181], [-1.357439703660503, 4.0262275866355459, 1.5554602580473238, -1.9204194839054707], [0.85863082824144266, -0.21310587108996273, 0.3075222879053931, 0.84649955063507554]]]])
4664        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4665        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 5220  class Test_util_overloaded_binary_with_t Line 5220  class Test_util_overloaded_binary_with_t
5220        arg1.setTaggedValue(1,4.816864027)        arg1.setTaggedValue(1,4.816864027)
5221        arg1.expand()        arg1.expand()
5222        res=arg0**arg1        res=arg0**arg1
5223        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5224        ref=msk_ref*(73.0987740155)+(1.-msk_ref)*(14.1951132038)        ref=msk_ref*(73.0987740155)+(1.-msk_ref)*(14.1951132038)
5225        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5226        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
# Line 5233  class Test_util_overloaded_binary_with_t Line 5233  class Test_util_overloaded_binary_with_t
5233        arg1.setTaggedValue(1,numarray.array([3.9999132692681911, 2.0721097048777364]))        arg1.setTaggedValue(1,numarray.array([3.9999132692681911, 2.0721097048777364]))
5234        arg1.expand()        arg1.expand()
5235        res=arg0**arg1        res=arg0**arg1
5236        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5237        ref=msk_ref*numarray.array([1.2917726176082942, 1.5314543452979588])+(1.-msk_ref)*numarray.array([25.358425915468093, 5.3381359334964946])        ref=msk_ref*numarray.array([1.2917726176082942, 1.5314543452979588])+(1.-msk_ref)*numarray.array([25.358425915468093, 5.3381359334964946])
5238        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5239        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 5246  class Test_util_overloaded_binary_with_t Line 5246  class Test_util_overloaded_binary_with_t
5246        arg1.setTaggedValue(1,numarray.array([[3.1239324751267064, 3.4809739309258196, 1.4112941734411537, 0.039563555075591117, 0.58107453346624494], [4.9708550631497239, 1.213139976324106, 2.4172145938873451, 3.4039633746423013, 4.333830255379711], [0.34428406352133611, 1.9502545826945228, 4.8964875966211059, 2.4147552832036197, 4.8681965220162544], [1.9449496319390729, 1.1160196781210647, 1.0249037802568783, 2.7288166571750736, 2.0755468692040084]]))        arg1.setTaggedValue(1,numarray.array([[3.1239324751267064, 3.4809739309258196, 1.4112941734411537, 0.039563555075591117, 0.58107453346624494], [4.9708550631497239, 1.213139976324106, 2.4172145938873451, 3.4039633746423013, 4.333830255379711], [0.34428406352133611, 1.9502545826945228, 4.8964875966211059, 2.4147552832036197, 4.8681965220162544], [1.9449496319390729, 1.1160196781210647, 1.0249037802568783, 2.7288166571750736, 2.0755468692040084]]))
5247        arg1.expand()        arg1.expand()
5248        res=arg0**arg1        res=arg0**arg1
5249        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5250        ref=msk_ref*numarray.array([[88.714211039130902, 126.25574549416665, 5.9386840418017899, 8.4914452988238427, 9.4711341882098807], [14.465733745152068, 32.707134132362938, 62.118922960962301, 11.027151701072485, 47.763898404287232], [1.046569773485599, 88.627829217330515, 5.7613509778849732, 41.153244322366497, 3.2459618098143546], [1.0243879403057392, 8.9368322200127732, 5.6805225091670026, 24.895072574022457, 11.701353491750318]])+(1.-msk_ref)*numarray.array([[1.8586125890290954e-05, 5.3517220228500979e-06, 0.0072906916060129969, 0.87113581002028895, 0.13183604288120293], [2.9665522485270356e-08, 0.014549526623742901, 0.00021848724920803684, 7.0002984100250989e-06, 2.7349390031899468e-07], [0.30103997752598211, 0.0011132162654362197, 3.8447877873069375e-08, 0.00022036895900483895, 4.2434171116006171e-08], [0.0011340004791706075, 0.020413881906445323, 0.028048484940973173, 7.3712838547312522e-05, 0.00071918364235304985]])        ref=msk_ref*numarray.array([[88.714211039130902, 126.25574549416665, 5.9386840418017899, 8.4914452988238427, 9.4711341882098807], [14.465733745152068, 32.707134132362938, 62.118922960962301, 11.027151701072485, 47.763898404287232], [1.046569773485599, 88.627829217330515, 5.7613509778849732, 41.153244322366497, 3.2459618098143546], [1.0243879403057392, 8.9368322200127732, 5.6805225091670026, 24.895072574022457, 11.701353491750318]])+(1.-msk_ref)*numarray.array([[1.8586125890290954e-05, 5.3517220228500979e-06, 0.0072906916060129969, 0.87113581002028895, 0.13183604288120293], [2.9665522485270356e-08, 0.014549526623742901, 0.00021848724920803684, 7.0002984100250989e-06, 2.7349390031899468e-07], [0.30103997752598211, 0.0011132162654362197, 3.8447877873069375e-08, 0.00022036895900483895, 4.2434171116006171e-08], [0.0011340004791706075, 0.020413881906445323, 0.028048484940973173, 7.3712838547312522e-05, 0.00071918364235304985]])
5251        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5252        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 5259  class Test_util_overloaded_binary_with_t Line 5259  class Test_util_overloaded_binary_with_t
5259        arg1.setTaggedValue(1,numarray.array([[[0.050221431580143742, 2.4907276736842365], [4.4291586271828836, 3.3025675277309379]], [[1.6687198274535662, 3.253294291940215], [3.4757442065819371, 2.8174336161223272]], [[4.0351290406667566, 3.4993553515798146], [4.906206524143915, 4.2011630559652087]], [[1.2803468872425623, 2.2915794816737627], [3.7017030656912611, 4.0026703252775091]], [[1.4924179590620326, 1.8528404727467638], [1.1050003430295463, 2.5967863307288503]], [[2.7192119475894523, 1.1068311500790913], [2.2898625185296466, 4.7143383540581647]]]))        arg1.setTaggedValue(1,numarray.array([[[0.050221431580143742, 2.4907276736842365], [4.4291586271828836, 3.3025675277309379]], [[1.6687198274535662, 3.253294291940215], [3.4757442065819371, 2.8174336161223272]], [[4.0351290406667566, 3.4993553515798146], [4.906206524143915, 4.2011630559652087]], [[1.2803468872425623, 2.2915794816737627], [3.7017030656912611, 4.0026703252775091]], [[1.4924179590620326, 1.8528404727467638], [1.1050003430295463, 2.5967863307288503]], [[2.7192119475894523, 1.1068311500790913], [2.2898625185296466, 4.7143383540581647]]]))
5260        arg1.expand()        arg1.expand()
5261        res=arg0**arg1        res=arg0**arg1
5262        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5263        ref=msk_ref*numarray.array([[[1266.3118885530519, 2.1757646435524571], [5.6916104332406752, 33.283010134999778]], [[149.39081680176324, 1473.0223542485878], [158.52319307447112, 92.710976133867504]], [[736.30056746198477, 7.2219431736791542], [1471.2675837287354, 503.08787873473102]], [[1.9238610537060634, 2.9517779707273806], [90.80517149784437, 5.4003350296754853]], [[14.009544228543763, 11.66279701536917], [12.505769818985179, 314.41763845123199]], [[6.9425244459890489, 2.2289708723234423], [3.7343643064384322, 54.426040333336417]]])+(1.-msk_ref)*numarray.array([[[1.0639483708385502, 21.633291655555208], [236.69748405323637, 58.924911729906825]], [[7.8432462122703139, 55.44809819009901], [72.96726648064643, 32.377933976552946]], [[145.53891687181496, 75.125007465674074], [426.49018869026571, 178.64034205717104]], [[4.8563895722770036, 16.918886336387391], [96.438494844254194, 139.82346512099693]], [[6.3094498739498635, 9.8444477320164854], [3.9113011273088434, 24.658916353329051]], [[28.681289174525578, 3.9201495366107415], [16.88306982843822, 336.5585085798067]]])        ref=msk_ref*numarray.array([[[1266.3118885530519, 2.1757646435524571], [5.6916104332406752, 33.283010134999778]], [[149.39081680176324, 1473.0223542485878], [158.52319307447112, 92.710976133867504]], [[736.30056746198477, 7.2219431736791542], [1471.2675837287354, 503.08787873473102]], [[1.9238610537060634, 2.9517779707273806], [90.80517149784437, 5.4003350296754853]], [[14.009544228543763, 11.66279701536917], [12.505769818985179, 314.41763845123199]], [[6.9425244459890489, 2.2289708723234423], [3.7343643064384322, 54.426040333336417]]])+(1.-msk_ref)*numarray.array([[[1.0639483708385502, 21.633291655555208], [236.69748405323637, 58.924911729906825]], [[7.8432462122703139, 55.44809819009901], [72.96726648064643, 32.377933976552946]], [[145.53891687181496, 75.125007465674074], [426.49018869026571, 178.64034205717104]], [[4.8563895722770036, 16.918886336387391], [96.438494844254194, 139.82346512099693]], [[6.3094498739498635, 9.8444477320164854], [3.9113011273088434, 24.658916353329051]], [[28.681289174525578, 3.9201495366107415], [16.88306982843822, 336.5585085798067]]])
5264        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5265        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 5272  class Test_util_overloaded_binary_with_t Line 5272  class Test_util_overloaded_binary_with_t
5272        arg1.setTaggedValue(1,numarray.array([[[[1.7821088009324646, 3.7906162996273864, 1.7580472152217821, 1.5280952210885532], [1.3143490237941766, 2.2210311532168157, 0.52135477349236825, 0.68447991635801586], [4.9055363443236564, 1.1721864996704046, 1.7617550666356561, 2.8172137454736403]], [[1.4824043238698299, 2.806426778148456, 2.0867978451995777, 0.95972609993561542], [4.1571594236615397, 1.470685567422408, 3.510500460595845, 3.3567297131761449], [0.44293616905220345, 3.1422964763604657, 0.53768420021666341, 0.47327343986226739]]], [[[3.0202800236273406, 2.1976884415794733, 2.9833632449708318, 1.9835285639893561], [1.314282396901135, 2.2214995616794946, 4.9174124228854623, 1.3236134754649567], [2.1924609253692511, 4.5813222244802052, 2.5761340089543308, 1.832897997627307]], [[2.9715392354732182, 3.7388230416504955, 0.62722291374262107, 1.4234230215647099], [3.1792755674221489, 4.5409927418232359, 3.2000153932041169, 2.7728820972510908], [2.7648745956569876, 0.51556446256311339, 0.27983267803286427, 1.9283844536378811]]], [[[0.51485153711893661, 3.2422166117084821, 3.4064311362381101, 1.5765091938193925], [3.9959106155854309, 3.6955188909878709, 1.4754736537791167, 0.58237123318943707], [3.9278604832011843, 4.9559904900044245, 3.9360565720921565, 1.5434808352294027]], [[4.3234791692048056, 4.6818133595012235, 2.1745153413071816, 1.4293488480210579], [4.6579315269574622, 3.685181388285506, 1.3182992729307219, 3.5889148738862677], [0.22600693652777096, 2.9692543061709391, 3.3425859124871895, 4.9716123315006815]]]]))        arg1.setTaggedValue(1,numarray.array([[[[1.7821088009324646, 3.7906162996273864, 1.7580472152217821, 1.5280952210885532], [1.3143490237941766, 2.2210311532168157, 0.52135477349236825, 0.68447991635801586], [4.9055363443236564, 1.1721864996704046, 1.7617550666356561, 2.8172137454736403]], [[1.4824043238698299, 2.806426778148456, 2.0867978451995777, 0.95972609993561542], [4.1571594236615397, 1.470685567422408, 3.510500460595845, 3.3567297131761449], [0.44293616905220345, 3.1422964763604657, 0.53768420021666341, 0.47327343986226739]]], [[[3.0202800236273406, 2.1976884415794733, 2.9833632449708318, 1.9835285639893561], [1.314282396901135, 2.2214995616794946, 4.9174124228854623, 1.3236134754649567], [2.1924609253692511, 4.5813222244802052, 2.5761340089543308, 1.832897997627307]], [[2.9715392354732182, 3.7388230416504955, 0.62722291374262107, 1.4234230215647099], [3.1792755674221489, 4.5409927418232359, 3.2000153932041169, 2.7728820972510908], [2.7648745956569876, 0.51556446256311339, 0.27983267803286427, 1.9283844536378811]]], [[[0.51485153711893661, 3.2422166117084821, 3.4064311362381101, 1.5765091938193925], [3.9959106155854309, 3.6955188909878709, 1.4754736537791167, 0.58237123318943707], [3.9278604832011843, 4.9559904900044245, 3.9360565720921565, 1.5434808352294027]], [[4.3234791692048056, 4.6818133595012235, 2.1745153413071816, 1.4293488480210579], [4.6579315269574622, 3.685181388285506, 1.3182992729307219, 3.5889148738862677], [0.22600693652777096, 2.9692543061709391, 3.3425859124871895, 4.9716123315006815]]]]))
5273        arg1.expand()        arg1.expand()
5274        res=arg0**arg1        res=arg0**arg1
5275        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5276        ref=msk_ref*numarray.array([[[[0.82524514585780506, 0.76872382870575318, 0.36569534928891967, 0.30002363614310773], [0.6259259838793696, 0.56377942906067346, 0.29500672107831222, 0.47467579750605915], [0.82760739498894154, 0.45024483700618823, 0.83720325778327487, 0.47805824615124731]], [[0.31840362664359934, 0.71594315584635881, 0.57555292128485158, 0.73672518450956692], [0.41696062089988473, 0.3962966537310636, 0.53436594337046173, 0.45006462629303517], [0.333204937585447, 0.32259844747299515, 0.50756918280239938, 0.49281436049988714]]], [[[0.44236088241594618, 0.28112589119292475, 0.55231233901691645, 0.28945885439136543], [0.50689797644297807, 0.41731617642562197, 0.41252397649621703, 0.74344436247216594], [0.55892469868681749, 0.44862810314039953, 0.96197551399081838, 0.33394299150530499]], [[0.27794086217386171, 0.26953325773576653, 0.88583015686549926, 0.3606443033494548], [0.89088399679410879, 0.4888336364752095, 0.34499899128127365, 0.60141857881590366], [0.33254404658972164, 0.28191420348027513, 0.32338364486201754, 0.57171144108216698]]], [[[0.61082917977206996, 0.30568285489937796, 0.31398511245521754, 0.3058598384285765], [0.49471148238364582, 0.77901289002106411, 0.91382976996638077, 0.95409177631767805], [0.40724704809162177, 0.41132528119979139, 0.3580778047649652, 0.75647760698089461]], [[0.56863537398625019, 0.59638205110684095, 0.83114785029302229, 0.91898050069388793], [0.34078842303959372, 0.68111049598395357, 0.61241004192557369, 0.88590207016925837], [0.94741639574229963, 0.52705430210475535, 0.49341889440841097, 0.85238212836777816]]]])+(1.-msk_ref)*numarray.array([[[[0.4500427060283903, 0.1830024427905301, 0.45492039597563733, 0.5042865021638202], [0.55496565259495956, 0.36970239967725993, 0.79169810041901212, 0.73590239962694182], [0.11105191217082759, 0.59146190274683841, 0.45416532055039682, 0.28304309630303437]], [[0.51471574894882399, 0.28441427810770731, 0.3926179462243975, 0.65052704793319716], [0.15528814813471295, 0.5174252094400994, 0.20747187889005342, 0.22226881388486286], [0.82000702076711718, 0.24468140795114249, 0.78592729846472731, 0.80893723224950387]]], [[[0.25842933224188158, 0.37358899866570922, 0.26273911412344586, 0.41120968042754158], [0.55498221850976404, 0.36962482415485348, 0.11046261070512944, 0.55266697471750426], [0.374464973041363, 0.12841289299786546, 0.31532589366222141, 0.43991790099580474]], [[0.26413462616186195, 0.18729851787021012, 0.7550240018683102, 0.52849817729069182], [0.24066111297035186, 0.13075417611191159, 0.23843530250412998, 0.28872089092917386], [0.28975853345880359, 0.79375455062202971, 0.88217092860643909, 0.42149532469952072]]], [[[0.79400811776488633, 0.23396960059731442, 0.21737424572295089, 0.49346618772302425], [0.1669216291684246, 0.19096776372950597, 0.51631645057245446, 0.77034910736112772], [0.17208902781311416, 0.1085698253539135, 0.17145827964128493, 0.50082240934807065]], [[0.14413762134114269, 0.12275974941085002, 0.37748777076105644, 0.52709694760744075], [0.12408026137946886, 0.19185425619673638, 0.55398435751345665, 0.20030974939240048], [0.90370286156873203, 0.26440515507593793, 0.22368172436465525, 0.10781261638250678]]]])        ref=msk_ref*numarray.array([[[[0.82524514585780506, 0.76872382870575318, 0.36569534928891967, 0.30002363614310773], [0.6259259838793696, 0.56377942906067346, 0.29500672107831222, 0.47467579750605915], [0.82760739498894154, 0.45024483700618823, 0.83720325778327487, 0.47805824615124731]], [[0.31840362664359934, 0.71594315584635881, 0.57555292128485158, 0.73672518450956692], [0.41696062089988473, 0.3962966537310636, 0.53436594337046173, 0.45006462629303517], [0.333204937585447, 0.32259844747299515, 0.50756918280239938, 0.49281436049988714]]], [[[0.44236088241594618, 0.28112589119292475, 0.55231233901691645, 0.28945885439136543], [0.50689797644297807, 0.41731617642562197, 0.41252397649621703, 0.74344436247216594], [0.55892469868681749, 0.44862810314039953, 0.96197551399081838, 0.33394299150530499]], [[0.27794086217386171, 0.26953325773576653, 0.88583015686549926, 0.3606443033494548], [0.89088399679410879, 0.4888336364752095, 0.34499899128127365, 0.60141857881590366], [0.33254404658972164, 0.28191420348027513, 0.32338364486201754, 0.57171144108216698]]], [[[0.61082917977206996, 0.30568285489937796, 0.31398511245521754, 0.3058598384285765], [0.49471148238364582, 0.77901289002106411, 0.91382976996638077, 0.95409177631767805], [0.40724704809162177, 0.41132528119979139, 0.3580778047649652, 0.75647760698089461]], [[0.56863537398625019, 0.59638205110684095, 0.83114785029302229, 0.91898050069388793], [0.34078842303959372, 0.68111049598395357, 0.61241004192557369, 0.88590207016925837], [0.94741639574229963, 0.52705430210475535, 0.49341889440841097, 0.85238212836777816]]]])+(1.-msk_ref)*numarray.array([[[[0.4500427060283903, 0.1830024427905301, 0.45492039597563733, 0.5042865021638202], [0.55496565259495956, 0.36970239967725993, 0.79169810041901212, 0.73590239962694182], [0.11105191217082759, 0.59146190274683841, 0.45416532055039682, 0.28304309630303437]], [[0.51471574894882399, 0.28441427810770731, 0.3926179462243975, 0.65052704793319716], [0.15528814813471295, 0.5174252094400994, 0.20747187889005342, 0.22226881388486286], [0.82000702076711718, 0.24468140795114249, 0.78592729846472731, 0.80893723224950387]]], [[[0.25842933224188158, 0.37358899866570922, 0.26273911412344586, 0.41120968042754158], [0.55498221850976404, 0.36962482415485348, 0.11046261070512944, 0.55266697471750426], [0.374464973041363, 0.12841289299786546, 0.31532589366222141, 0.43991790099580474]], [[0.26413462616186195, 0.18729851787021012, 0.7550240018683102, 0.52849817729069182], [0.24066111297035186, 0.13075417611191159, 0.23843530250412998, 0.28872089092917386], [0.28975853345880359, 0.79375455062202971, 0.88217092860643909, 0.42149532469952072]]], [[[0.79400811776488633, 0.23396960059731442, 0.21737424572295089, 0.49346618772302425], [0.1669216291684246, 0.19096776372950597, 0.51631645057245446, 0.77034910736112772], [0.17208902781311416, 0.1085698253539135, 0.17145827964128493, 0.50082240934807065]], [[0.14413762134114269, 0.12275974941085002, 0.37748777076105644, 0.52709694760744075], [0.12408026137946886, 0.19185425619673638, 0.55398435751345665, 0.20030974939240048], [0.90370286156873203, 0.26440515507593793, 0.22368172436465525, 0.10781261638250678]]]])
5277        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5278        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 5364  class Test_util_overloaded_binary_with_t Line 5364  class Test_util_overloaded_binary_with_t
5364        arg1.setTaggedValue(1,4.8003197762)        arg1.setTaggedValue(1,4.8003197762)
5365        arg1.expand()        arg1.expand()
5366        res=arg0**arg1        res=arg0**arg1
5367        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5368        ref=msk_ref*numarray.array([506.75113534073648, 2.333231626512922])+(1.-msk_ref)*numarray.array([0.66473055520547764, 771.98569434535182])        ref=msk_ref*numarray.array([506.75113534073648, 2.333231626512922])+(1.-msk_ref)*numarray.array([0.66473055520547764, 771.98569434535182])
5369        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5370        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 5377  class Test_util_overloaded_binary_with_t Line 5377  class Test_util_overloaded_binary_with_t
5377        arg1.setTaggedValue(1,numarray.array([4.0446291245465531, 1.7951910398996451]))        arg1.setTaggedValue(1,numarray.array([4.0446291245465531, 1.7951910398996451]))
5378        arg1.expand()        arg1.expand()
5379        res=arg0**arg1        res=arg0**arg1
5380        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5381        ref=msk_ref*numarray.array([179.12982232493241, 1.1569366120028122])+(1.-msk_ref)*numarray.array([354.01283531313993, 0.10530406568993145])        ref=msk_ref*numarray.array([179.12982232493241, 1.1569366120028122])+(1.-msk_ref)*numarray.array([354.01283531313993, 0.10530406568993145])
5382        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5383        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 5469  class Test_util_overloaded_binary_with_t Line 5469  class Test_util_overloaded_binary_with_t
5469        arg1.setTaggedValue(1,3.23410267738)        arg1.setTaggedValue(1,3.23410267738)
5470        arg1.expand()        arg1.expand()
5471        res=arg0**arg1        res=arg0**arg1
5472        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5473        ref=msk_ref*numarray.array([[199.89842595325612, 141.6501509891842, 2.3477840595312447, 40.748640183975631, 175.76877265299274], [0.75034087413563977, 11.062887267948579, 0.4697348298457073, 274.72670817537033, 122.41357556322613], [0.58893757797917168, 0.22861510803670357, 85.0214382779142, 39.30831601390102, 5.4574156095609165], [2.0809666153445114, 3.1486858967620932e-05, 0.24112684697418837, 232.5587062292891, 357.7842778743925]])+(1.-msk_ref)*numarray.array([[0.33669813219391831, 69.585616626834891, 70.634985952867439, 141.46543384798528, 0.59210343769692908], [143.69971622274483, 0.5682579134333462, 21.988187992124548, 79.420702930590238, 28.334358273086103], [161.88000049797174, 0.50710562725918906, 6.9843791887762983, 2.0576594781453923, 3.1426890484953813], [3.2311849419108611, 179.39776628519786, 34.735329081635015, 3.3692158184920502, 0.30716831119392624]])        ref=msk_ref*numarray.array([[199.89842595325612, 141.6501509891842, 2.3477840595312447, 40.748640183975631, 175.76877265299274], [0.75034087413563977, 11.062887267948579, 0.4697348298457073, 274.72670817537033, 122.41357556322613], [0.58893757797917168, 0.22861510803670357, 85.0214382779142, 39.30831601390102, 5.4574156095609165], [2.0809666153445114, 3.1486858967620932e-05, 0.24112684697418837, 232.5587062292891, 357.7842778743925]])+(1.-msk_ref)*numarray.array([[0.33669813219391831, 69.585616626834891, 70.634985952867439, 141.46543384798528, 0.59210343769692908], [143.69971622274483, 0.5682579134333462, 21.988187992124548, 79.420702930590238, 28.334358273086103], [161.88000049797174, 0.50710562725918906, 6.9843791887762983, 2.0576594781453923, 3.1426890484953813], [3.2311849419108611, 179.39776628519786, 34.735329081635015, 3.3692158184920502, 0.30716831119392624]])
5474        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5475        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 5482  class Test_util_overloaded_binary_with_t Line 5482  class Test_util_overloaded_binary_with_t
5482        arg1.setTaggedValue(1,numarray.array([[2.6915568796352578, 0.94988973341759131, 0.28188747814901488, 2.3235980905204738, 2.6137950574488795], [2.4827265563240539, 3.7587194013434968, 2.2486204003634431, 0.53099350588101712, 3.843320160578247], [0.36950698155264994, 1.952212129567402, 2.1184073134608217, 4.352473794128989, 1.0282991416611476], [1.6747174249717549, 4.210622165831416, 4.6474173072189098, 1.6346281995892338, 1.303052391408666]]))        arg1.setTaggedValue(1,numarray.array([[2.6915568796352578, 0.94988973341759131, 0.28188747814901488, 2.3235980905204738, 2.6137950574488795], [2.4827265563240539, 3.7587194013434968, 2.2486204003634431, 0.53099350588101712, 3.843320160578247], [0.36950698155264994, 1.952212129567402, 2.1184073134608217, 4.352473794128989, 1.0282991416611476], [1.6747174249717549, 4.210622165831416, 4.6474173072189098, 1.6346281995892338, 1.303052391408666]]))
5483        arg1.expand()        arg1.expand()
5484        res=arg0**arg1        res=arg0**arg1
5485        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5486        ref=msk_ref*numarray.array([[1.108129870574931, 43.159921110205516, 3.1831454077970185, 19.201746704366965, 3.1841660858025644], [5.7735641550892627, 0.18544473980572632, 1.5741097499065619, 0.00058633451720968327, 122.38650233430513], [31.479941837362507, 1.1824694968821152, 25.882655115912652, 0.61099921355741682, 2780.9149126486845], [261.10191704916178, 98.663652124429404, 4.5967406771713053, 168.97444089767563, 18.267080770525403]])+(1.-msk_ref)*numarray.array([[21.066683529362159, 2.2401493016060496, 1.1823079173293956, 2.5489396210754496, 3.9654774987683981], [10.112355181660909, 1.2799127117690554, 3.3225406264964161, 0.54711324815497864, 26.36862932513128], [1.492713552959394, 6.4363413763362605, 0.7863068689085273, 719.50778086573109, 1.5914314078296035], [2.5348547508415353, 681.55941292289356, 700.66829879140903, 1.716223037944089, 4.1432245250993116]])        ref=msk_ref*numarray.array([[1.108129870574931, 43.159921110205516, 3.1831454077970185, 19.201746704366965, 3.1841660858025644], [5.7735641550892627, 0.18544473980572632, 1.5741097499065619, 0.00058633451720968327, 122.38650233430513], [31.479941837362507, 1.1824694968821152, 25.882655115912652, 0.61099921355741682, 2780.9149126486845], [261.10191704916178, 98.663652124429404, 4.5967406771713053, 168.97444089767563, 18.267080770525403]])+(1.-msk_ref)*numarray.array([[21.066683529362159, 2.2401493016060496, 1.1823079173293956, 2.5489396210754496, 3.9654774987683981], [10.112355181660909, 1.2799127117690554, 3.3225406264964161, 0.54711324815497864, 26.36862932513128], [1.492713552959394, 6.4363413763362605, 0.7863068689085273, 719.50778086573109, 1.5914314078296035], [2.5348547508415353, 681.55941292289356, 700.66829879140903, 1.716223037944089, 4.1432245250993116]])
5487        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5488        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 5574  class Test_util_overloaded_binary_with_t Line 5574  class Test_util_overloaded_binary_with_t
5574        arg1.setTaggedValue(1,4.05821349019)        arg1.setTaggedValue(1,4.05821349019)
5575        arg1.expand()        arg1.expand()
5576        res=arg0**arg1        res=arg0**arg1
5577        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5578        ref=msk_ref*numarray.array([[[232.32044918468279, 4.1487265676296561], [410.57477186614307, 627.96884874966554]], [[26.698265887881927, 50.209846096299501], [79.76853544413791, 135.91313578590345]], [[20.717044837326295, 188.56505866471244], [0.011366388252276004, 181.5732579492136]], [[0.10237915132495139, 42.67265850794076], [0.0044145431623930234, 682.24016396166974]], [[0.0092579522324572235, 7.0766888839707782], [649.02001023875425, 396.07800741507373]], [[38.643117816729955, 0.016274903197017705], [0.64169077883166414, 293.29773076882168]]])+(1.-msk_ref)*numarray.array([[[454.12706575450949, 229.07383886035743], [331.32767316772561, 0.001265205924052193]], [[63.313773653221737, 15.219695724497546], [8.5784841978759321, 56.468216519952314]], [[1.3374953721484764, 0.086913799939067254], [0.091403807034493578, 17.687918713314179]], [[0.14243158791014748, 139.9878969566378], [334.06159254971277, 50.019823714663993]], [[0.22046030462692781, 259.78825292566609], [632.19931739143806, 0.53557270027973636]], [[568.80503582538802, 28.41590251192763], [172.96176857484787, 101.36567176808036]]])        ref=msk_ref*numarray.array([[[232.32044918468279, 4.1487265676296561], [410.57477186614307, 627.96884874966554]], [[26.698265887881927, 50.209846096299501], [79.76853544413791, 135.91313578590345]], [[20.717044837326295, 188.56505866471244], [0.011366388252276004, 181.5732579492136]], [[0.10237915132495139, 42.67265850794076], [0.0044145431623930234, 682.24016396166974]], [[0.0092579522324572235, 7.0766888839707782], [649.02001023875425, 396.07800741507373]], [[38.643117816729955, 0.016274903197017705], [0.64169077883166414, 293.29773076882168]]])+(1.-msk_ref)*numarray.array([[[454.12706575450949, 229.07383886035743], [331.32767316772561, 0.001265205924052193]], [[63.313773653221737, 15.219695724497546], [8.5784841978759321, 56.468216519952314]], [[1.3374953721484764, 0.086913799939067254], [0.091403807034493578, 17.687918713314179]], [[0.14243158791014748, 139.9878969566378], [334.06159254971277, 50.019823714663993]], [[0.22046030462692781, 259.78825292566609], [632.19931739143806, 0.53557270027973636]], [[568.80503582538802, 28.41590251192763], [172.96176857484787, 101.36567176808036]]])
5579        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5580        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 5587  class Test_util_overloaded_binary_with_t Line 5587  class Test_util_overloaded_binary_with_t
5587        arg1.setTaggedValue(1,numarray.array([[[3.6979780164758131, 0.96134121049183652], [0.54592536320549301, 3.3973937228872804]], [[4.6764291776768214, 4.4382022925059301], [3.4125695914047447, 0.19276793861857722]], [[0.81478685407168105, 1.8617068815166189], [3.5967791442630963, 4.4146716091036966]], [[4.4361773886929443, 2.4438931184795387], [0.73654345996827741, 3.0012147219701104]], [[4.6393517107510389, 0.077293632310860019], [4.1485438923723779, 1.2786003153954237]], [[3.4345423056861488, 2.865307216796309], [3.6207434275516817, 4.4523579389007226]]]))        arg1.setTaggedValue(1,numarray.array([[[3.6979780164758131, 0.96134121049183652], [0.54592536320549301, 3.3973937228872804]], [[4.6764291776768214, 4.4382022925059301], [3.4125695914047447, 0.19276793861857722]], [[0.81478685407168105, 1.8617068815166189], [3.5967791442630963, 4.4146716091036966]], [[4.4361773886929443, 2.4438931184795387], [0.73654345996827741, 3.0012147219701104]], [[4.6393517107510389, 0.077293632310860019], [4.1485438923723779, 1.2786003153954237]], [[3.4345423056861488, 2.865307216796309], [3.6207434275516817, 4.4523579389007226]]]))
5588        arg1.expand()        arg1.expand()
5589        res=arg0**arg1        res=arg0**arg1
5590        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5591        ref=msk_ref*numarray.array([[[6.1209574826066833, 1.4896710444620067], [35.42692087085576, 3.8113287234185149]], [[4.4599708159898208, 1.7795823857911082], [0.16586849158495021, 1.3858567766400827]], [[2.3065772557648034, 77.142247130524908], [457.97004167970778, 458.02973469237588]], [[98.269606078378374, 1.6669069768985575e-07], [570.43824173841062, 0.7975730739417356]], [[1.4544811630563834, 94.668515180462364], [17.987278641851333, 1.5228608517995024]], [[47.540394801158371, 134.71903011327225], [75.73877634139815, 29.659274594042305]]])+(1.-msk_ref)*numarray.array([[[0.47858847193026338, 3.1759351430375355], [1.7348047742266142, 50.687844472191898]], [[207.08950352014597, 922.6050780460946], [172.83351185173467, 1.3138360992765103]], [[1.6335075750261965, 15.066125692893872], [0.027527544370467838, 27.731793629836986]], [[22.194826060309506, 8.9973564856444348], [0.49695633402592465, 14.697765072874603]], [[562.79492210842898, 0.97776312487888528], [280.80477209528948, 2.7066356160028358]], [[174.26475265768315, 4.9661858745299918], [1.4921485556306071, 9.0723885413574621]]])        ref=msk_ref*numarray.array([[[6.1209574826066833, 1.4896710444620067], [35.42692087085576, 3.8113287234185149]], [[4.4599708159898208, 1.7795823857911082], [0.16586849158495021, 1.3858567766400827]], [[2.3065772557648034, 77.142247130524908], [457.97004167970778, 458.02973469237588]], [[98.269606078378374, 1.6669069768985575e-07], [570.43824173841062, 0.7975730739417356]], [[1.4544811630563834, 94.668515180462364], [17.987278641851333, 1.5228608517995024]], [[47.540394801158371, 134.71903011327225], [75.73877634139815, 29.659274594042305]]])+(1.-msk_ref)*numarray.array([[[0.47858847193026338, 3.1759351430375355], [1.7348047742266142, 50.687844472191898]], [[207.08950352014597, 922.6050780460946], [172.83351185173467, 1.3138360992765103]], [[1.6335075750261965, 15.066125692893872], [0.027527544370467838, 27.731793629836986]], [[22.194826060309506, 8.9973564856444348], [0.49695633402592465, 14.697765072874603]], [[562.79492210842898, 0.97776312487888528], [280.80477209528948, 2.7066356160028358]], [[174.26475265768315, 4.9661858745299918], [1.4921485556306071, 9.0723885413574621]]])
5592        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5593        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 5679  class Test_util_overloaded_binary_with_t Line 5679  class Test_util_overloaded_binary_with_t
5679        arg1.setTaggedValue(1,3.45497215567)        arg1.setTaggedValue(1,3.45497215567)
5680        arg1.expand()        arg1.expand()
5681        res=arg0**arg1        res=arg0**arg1
5682        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5683        ref=msk_ref*numarray.array([[[[6.1166179185276155, 0.37584366613809556, 3.3883032411799094, 0.45148841842403031], [3.5258031639054219, 0.77140630397499044, 0.23269420520583237, 5.7551328527838983], [1.4658981484172815, 0.64400374647813641, 6.3073517264766386, 2.096901719494709]], [[0.031354908718072866, 4.8064427620275891, 2.3514340145100352, 3.2715924738395348], [1.5724409896932079, 4.7239199269108969, 2.1485406459632479, 4.5023028704489576], [0.65550584572919268, 0.83537279588750701, 4.2348770068300245, 1.0264026675391773]]], [[[3.8289214131120981, 1.8837820418427573, 4.3485876671594559, 2.0292962819917002], [5.6895385104679006, 3.0693063686444866, 4.5341001533242871, 2.1703567630997238], [1.3000826432711752, 4.6641982632023646, 1.1239899543775511, 1.4480141258543229]], [[3.8296281520277486, 0.49699700753713827, 5.0506474723162595, 4.2825828453888022], [0.22172201204456515, 1.1038523887730924, 6.2619043809421679, 3.0611455982003188], [1.0927569135304127, 5.1087123265222907, 4.011245025704695, 5.2806816700707602]]], [[[0.12991120171352902, 1.9549674382279643, 1.9547962410714121, 3.459878848685829], [6.2598396122974211, 1.3226233592711616, 5.9465363673834934, 3.5451768570014015], [4.7512212391163766, 2.5430186766749334, 0.56083075725833009, 0.92820589557577926]], [[1.3508721686520673, 4.8465899340934273, 2.7801360389325671, 5.4006479596608479], [4.3558533403527795, 0.4244255426490276, 1.2328084952866856, 0.9217452902658605], [1.7086307276322232, 4.0385934788323059, 0.10266717719702377, 2.0349071351575221]]]])+(1.-msk_ref)*numarray.array([[[[25.434162765851514, 19.907912008942663, 0.0043631145918506019, 2.6981156838658666], [0.032945143858882454, 231.75173765928162, 0.74314104139739534, 0.00065068464700576505], [22.19844659881662, 258.98665220363063, 164.47831334931246, 25.365383830921338]], [[169.48340467481066, 2.6143200005948324, 2.133732037680856, 0.74897545947899014], [14.826609653284514, 12.236679336995941, 192.84573338130326, 28.611620830908809], [5.3462285979068449, 105.69123116901204, 216.45075010182066, 2.3512951328109564]]], [[[0.18061482722312208, 1.3295017950984174, 22.316340830679774, 0.2964261626079579], [87.388722325700101, 37.961930236485436, 178.68468512340945, 0.67766256923206725], [25.85675954026253, 21.187062970423945, 29.557281786197183, 2.0987157788092996]], [[0.5183645609443055, 97.242278202081039, 1.6928458824452899, 2.5311341035552832], [6.7788803816320371, 2.8474305832694151, 92.131537703459969, 119.35109997159408], [28.421969386784838, 40.607466660202093, 0.018995426620507114, 0.028765613356059778]]], [[[203.92318948287294, 11.060616663247151, 2.760758307390355, 239.19071329276937], [55.995743880800951, 135.11206430317, 18.346339207665899, 50.604430950735747], [0.0055450440165044877, 0.00042052877429901427, 0.0098863945433602003, 5.4844139469360549]], [[46.843253944242406, 0.34853720974737129, 1.1320057080594867, 37.173711504177973], [0.022555389115923252, 0.94225560279293974, 2.4510943944161498, 39.767118835617808], [0.062858907897853963, 0.0017334664821821656, 122.27451297995837, 0.081635249562683906]]]])        ref=msk_ref*numarray.array([[[[6.1166179185276155, 0.37584366613809556, 3.3883032411799094, 0.45148841842403031], [3.5258031639054219, 0.77140630397499044, 0.23269420520583237, 5.7551328527838983], [1.4658981484172815, 0.64400374647813641, 6.3073517264766386, 2.096901719494709]], [[0.031354908718072866, 4.8064427620275891, 2.3514340145100352, 3.2715924738395348], [1.5724409896932079, 4.7239199269108969, 2.1485406459632479, 4.5023028704489576], [0.65550584572919268, 0.83537279588750701, 4.2348770068300245, 1.0264026675391773]]], [[[3.8289214131120981, 1.8837820418427573, 4.3485876671594559, 2.0292962819917002], [5.6895385104679006, 3.0693063686444866, 4.5341001533242871, 2.1703567630997238], [1.3000826432711752, 4.6641982632023646, 1.1239899543775511, 1.4480141258543229]], [[3.8296281520277486, 0.49699700753713827, 5.0506474723162595, 4.2825828453888022], [0.22172201204456515, 1.1038523887730924, 6.2619043809421679, 3.0611455982003188], [1.0927569135304127, 5.1087123265222907, 4.011245025704695, 5.2806816700707602]]], [[[0.12991120171352902, 1.9549674382279643, 1.9547962410714121, 3.459878848685829], [6.2598396122974211, 1.3226233592711616, 5.9465363673834934, 3.5451768570014015], [4.7512212391163766, 2.5430186766749334, 0.56083075725833009, 0.92820589557577926]], [[1.3508721686520673, 4.8465899340934273, 2.7801360389325671, 5.4006479596608479], [4.3558533403527795, 0.4244255426490276, 1.2328084952866856, 0.9217452902658605], [1.7086307276322232, 4.0385934788323059, 0.10266717719702377, 2.0349071351575221]]]])+(1.-msk_ref)*numarray.array([[[[25.434162765851514, 19.907912008942663, 0.0043631145918506019, 2.6981156838658666], [0.032945143858882454, 231.75173765928162, 0.74314104139739534, 0.00065068464700576505], [22.19844659881662, 258.98665220363063, 164.47831334931246, 25.365383830921338]], [[169.48340467481066, 2.6143200005948324, 2.133732037680856, 0.74897545947899014], [14.826609653284514, 12.236679336995941, 192.84573338130326, 28.611620830908809], [5.3462285979068449, 105.69123116901204, 216.45075010182066, 2.3512951328109564]]], [[[0.18061482722312208, 1.3295017950984174, 22.316340830679774, 0.2964261626079579], [87.388722325700101, 37.961930236485436, 178.68468512340945, 0.67766256923206725], [25.85675954026253, 21.187062970423945, 29.557281786197183, 2.0987157788092996]], [[0.5183645609443055, 97.242278202081039, 1.6928458824452899, 2.5311341035552832], [6.7788803816320371, 2.8474305832694151, 92.131537703459969, 119.35109997159408], [28.421969386784838, 40.607466660202093, 0.018995426620507114, 0.028765613356059778]]], [[[203.92318948287294, 11.060616663247151, 2.760758307390355, 239.19071329276937], [55.995743880800951, 135.11206430317, 18.346339207665899, 50.604430950735747], [0.0055450440165044877, 0.00042052877429901427, 0.0098863945433602003, 5.4844139469360549]], [[46.843253944242406, 0.34853720974737129, 1.1320057080594867, 37.173711504177973], [0.022555389115923252, 0.94225560279293974, 2.4510943944161498, 39.767118835617808], [0.062858907897853963, 0.0017334664821821656, 122.27451297995837, 0.081635249562683906]]]])
5684        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5685        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 5692  class Test_util_overloaded_binary_with_t Line 5692  class Test_util_overloaded_binary_with_t
5692        arg1.setTaggedValue(1,numarray.array([[[[2.9298935142459261, 3.3421541410507594, 2.8918333362494106, 4.4436898755847656], [1.8186689023176217, 4.9558032340528158, 4.6457943294848576, 3.7549994090481058], [1.1913739886050232, 0.44731978363422725, 3.8895312591174296, 2.7552819428809201]], [[2.075040627624622, 1.4777244226679211, 3.908514740586662, 0.42453272737545983], [3.5020529722251985, 1.7067525241963422, 1.2369515684664472, 3.8638990167748322], [0.22301210801524712, 1.7043411700929016, 0.13601856376726254, 0.60306003340398717]]], [[[0.66347407134438952, 0.020576546168177792, 3.4606951280560359, 0.21902215644681217], [1.4416898912057428, 2.8868236359851154, 1.7591655724937492, 1.6000287611945772], [2.5517251022726963, 0.69715495463545218, 0.071666504450347626, 0.33963743633910892]], [[3.1883864225608649, 1.4857941340632896, 0.34008069780420597, 3.8874893025250508], [2.8828816349376094, 2.9302825087986184, 3.8018260808697213, 3.121719724485974], [4.9473496035476776, 1.7891081503884838, 1.5007997529837316, 1.5824885384691958]]], [[[2.6164767479073023, 3.0897577818084505, 3.3688005542235713, 3.3553686356714563], [4.2703963548807673, 1.3974472005433536, 3.192755939298292, 3.1159470818743253], [2.2383852003437701, 0.24560136285705272, 0.13351161205219708, 0.49899177900215824]], [[4.3057859324180612, 1.8305860826995559, 1.1680189954141567, 2.3195399662422211], [2.5805957682176581, 3.6174894003234677, 2.7471759412600125, 3.3412916160096682], [2.7272406260492081, 4.2353981799307716, 3.9773263243112575, 4.1316346948696383]]]]))        arg1.setTaggedValue(1,numarray.array([[[[2.9298935142459261, 3.3421541410507594, 2.8918333362494106, 4.4436898755847656], [1.8186689023176217, 4.9558032340528158, 4.6457943294848576, 3.7549994090481058], [1.1913739886050232, 0.44731978363422725, 3.8895312591174296, 2.7552819428809201]], [[2.075040627624622, 1.4777244226679211, 3.908514740586662, 0.42453272737545983], [3.5020529722251985, 1.7067525241963422, 1.2369515684664472, 3.8638990167748322], [0.22301210801524712, 1.7043411700929016, 0.13601856376726254, 0.60306003340398717]]], [[[0.66347407134438952, 0.020576546168177792, 3.4606951280560359, 0.21902215644681217], [1.4416898912057428, 2.8868236359851154, 1.7591655724937492, 1.6000287611945772], [2.5517251022726963, 0.69715495463545218, 0.071666504450347626, 0.33963743633910892]], [[3.1883864225608649, 1.4857941340632896, 0.34008069780420597, 3.8874893025250508], [2.8828816349376094, 2.9302825087986184, 3.8018260808697213, 3.121719724485974], [4.9473496035476776, 1.7891081503884838, 1.5007997529837316, 1.5824885384691958]]], [[[2.6164767479073023, 3.0897577818084505, 3.3688005542235713, 3.3553686356714563], [4.2703963548807673, 1.3974472005433536, 3.192755939298292, 3.1159470818743253], [2.2383852003437701, 0.24560136285705272, 0.13351161205219708, 0.49899177900215824]], [[4.3057859324180612, 1.8305860826995559, 1.1680189954141567, 2.3195399662422211], [2.5805957682176581, 3.6174894003234677, 2.7471759412600125, 3.3412916160096682], [2.7272406260492081, 4.2353981799307716, 3.9773263243112575, 4.1316346948696383]]]]))
5693        arg1.expand()        arg1.expand()
5694        res=arg0**arg1        res=arg0**arg1
5695        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5696        ref=msk_ref*numarray.array([[[[0.97587376345987442, 1.4320669766847127, 10.894611831238015, 6.6947870513651893], [4.5603386388695917, 21.155761343120062, 8.131358195920374e-07, 1.0805385717545057], [275.66488647050426, 1.8666546810355016, 581.43404485487133, 1.1904893093046953]], [[1.0514686669467947, 0.1575447690086027, 1.0261681947920389, 5.0794580821880393], [2.819565233168928, 3.7666578022284996, 0.00014892139499701225, 17.735645563259581], [7.1970035173465794, 17.541954598025285, 1.2952008476977661, 2.1077270987168757]]], [[[0.026791931672011549, 48.949844751157535, 808.11789749611137, 0.94948960023279194], [1059.3069642933922, 127.79352529856791, 4.7007937556450079, 2.5719768915996633], [77.839059186923464, 52.722778276189516, 101.34394932996443, 0.0052822564005967432]], [[9.45196003288574, 197.05803207140988, 87.867895722700609, 233.27509158076413], [1.2511478990854137, 3.820750849217291, 0.00083751142793879138, 15.654011137218063], [10.073291292134815, 107.34648296699453, 3.377977531446358, 0.75275248233462422]]], [[[4.428671175881373, 117.76331899817947, 1.1014729879572045, 242.66623241633388], [1.3899571761707874, 2.3209167816180614, 0.10173577892730397, 157.75463372997123], [15.201287165806118, 1.3575512085450514, 7.2340244822022557, 0.36027648322290012]], [[2.0702967923256868, 3.864168678062283, 14.88952633253419, 1.820683176743769], [12.809258079181612, 288.34987407292539, 3.5327418914492488, 0.20471239097386237], [1.7202114362579621, 1.3863565574704111, 0.70073726724891017, 6.895786307433224]]]])+(1.-msk_ref)*numarray.array([[[[42.817595727578293, 138.08254839592053, 5.30668624367192, 0.030047561455100867], [0.0069285280969342451, 163.46854191700626, 1534.3299093198627, 192.97224835329598], [2.6758007406530098, 0.97873724099166215, 42.380507601164759, 4.7906053441170862]], [[18.384977102441695, 1.2334647274275945, 289.31059442466341, 0.78182938008265868], [75.776185075565664, 5.2487280497081086, 6.4453513413525858, 5.0233499625398732], [0.89834735054307036, 0.084401373214573583, 1.0630272778984502, 2.1817213008662781]]], [[[2.2654104662310428, 1.0118090993325235, 0.19790211437921015, 1.3079311047648305], [7.9707605691837271, 7.1262966550835971, 0.61927606604710828, 10.334687241329886], [14.501081782557815, 2.1428022615223186, 1.1208223895704073, 1.0176041071174904]], [[11.779778230586256, 3.4225618530283066, 1.2702970136091969, 0.087175037893126028], [3.8327686360383248, 7.1293247372715829, 293.77132429445601, 27.441079039363576], [8.3145469157469858, 3.2562725857345289, 3.0632211718767555, 6.8016136320886025]]], [[[1.8548799147867556, 0.043333929782993746, 0.15283884233434614, 1.8935427843665384], [510.80356262658773, 0.96264341378579055, 2.2253741877564579, 50.630235803247828], [1.874702585282076, 1.3420880769420969, 1.1762078754127001, 1.9642141684456083]], [[58.17287056571098, 5.1192798657056677, 4.4811002179872759, 23.837890809602168], [0.23761309627935118, 286.0568013634267, 47.588640250962747, 87.349611061522509], [0.33351110783366955, 54.771978176011942, 122.77900102393954, 403.69541404793375]]]])        ref=msk_ref*numarray.array([[[[0.97587376345987442, 1.4320669766847127, 10.894611831238015, 6.6947870513651893], [4.5603386388695917, 21.155761343120062, 8.131358195920374e-07, 1.0805385717545057], [275.66488647050426, 1.8666546810355016, 581.43404485487133, 1.1904893093046953]], [[1.0514686669467947, 0.1575447690086027, 1.0261681947920389, 5.0794580821880393], [2.819565233168928, 3.7666578022284996, 0.00014892139499701225, 17.735645563259581], [7.1970035173465794, 17.541954598025285, 1.2952008476977661, 2.1077270987168757]]], [[[0.026791931672011549, 48.949844751157535, 808.11789749611137, 0.94948960023279194], [1059.3069642933922, 127.79352529856791, 4.7007937556450079, 2.5719768915996633], [77.839059186923464, 52.722778276189516, 101.34394932996443, 0.0052822564005967432]], [[9.45196003288574, 197.05803207140988, 87.867895722700609, 233.27509158076413], [1.2511478990854137, 3.820750849217291, 0.00083751142793879138, 15.654011137218063], [10.073291292134815, 107.34648296699453, 3.377977531446358, 0.75275248233462422]]], [[[4.428671175881373, 117.76331899817947, 1.1014729879572045, 242.66623241633388], [1.3899571761707874, 2.3209167816180614, 0.10173577892730397, 157.75463372997123], [15.201287165806118, 1.3575512085450514, 7.2340244822022557, 0.36027648322290012]], [[2.0702967923256868, 3.864168678062283, 14.88952633253419, 1.820683176743769], [12.809258079181612, 288.34987407292539, 3.5327418914492488, 0.20471239097386237], [1.7202114362579621, 1.3863565574704111, 0.70073726724891017, 6.895786307433224]]]])+(1.-msk_ref)*numarray.array([[[[42.817595727578293, 138.08254839592053, 5.30668624367192, 0.030047561455100867], [0.0069285280969342451, 163.46854191700626, 1534.3299093198627, 192.97224835329598], [2.6758007406530098, 0.97873724099166215, 42.380507601164759, 4.7906053441170862]], [[18.384977102441695, 1.2334647274275945, 289.31059442466341, 0.78182938008265868], [75.776185075565664, 5.2487280497081086, 6.4453513413525858, 5.0233499625398732], [0.89834735054307036, 0.084401373214573583, 1.0630272778984502, 2.1817213008662781]]], [[[2.2654104662310428, 1.0118090993325235, 0.19790211437921015, 1.3079311047648305], [7.9707605691837271, 7.1262966550835971, 0.61927606604710828, 10.334687241329886], [14.501081782557815, 2.1428022615223186, 1.1208223895704073, 1.0176041071174904]], [[11.779778230586256, 3.4225618530283066, 1.2702970136091969, 0.087175037893126028], [3.8327686360383248, 7.1293247372715829, 293.77132429445601, 27.441079039363576], [8.3145469157469858, 3.2562725857345289, 3.0632211718767555, 6.8016136320886025]]], [[[1.8548799147867556, 0.043333929782993746, 0.15283884233434614, 1.8935427843665384], [510.80356262658773, 0.96264341378579055, 2.2253741877564579, 50.630235803247828], [1.874702585282076, 1.3420880769420969, 1.1762078754127001, 1.9642141684456083]], [[58.17287056571098, 5.1192798657056677, 4.4811002179872759, 23.837890809602168], [0.23761309627935118, 286.0568013634267, 47.588640250962747, 87.349611061522509], [0.33351110783366955, 54.771978176011942, 122.77900102393954, 403.69541404793375]]]])
5697        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5698        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 5705  class Test_util_overloaded_binary_with_t Line 5705  class Test_util_overloaded_binary_with_t
5705        arg1=Data(2.87944550352,self.functionspace)        arg1=Data(2.87944550352,self.functionspace)
5706        arg1.setTaggedValue(1,2.68423693728)        arg1.setTaggedValue(1,2.68423693728)
5707        res=arg0**arg1        res=arg0**arg1
5708        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5709        ref=msk_ref*(0.0285902234267)+(1.-msk_ref)*(51.1887858657)        ref=msk_ref*(0.0285902234267)+(1.-msk_ref)*(51.1887858657)
5710        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5711        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
# Line 5718  class Test_util_overloaded_binary_with_t Line 5718  class Test_util_overloaded_binary_with_t
5718        arg1=Data(numarray.array([1.2129035203196619, 0.6408520041688891]),self.functionspace)        arg1=Data(numarray.array([1.2129035203196619, 0.6408520041688891]),self.functionspace)
5719        arg1.setTaggedValue(1,numarray.array([0.16130243586340109, 2.9807586690757684]))        arg1.setTaggedValue(1,numarray.array([0.16130243586340109, 2.9807586690757684]))
5720        res=arg0**arg1        res=arg0**arg1
5721        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5722        ref=msk_ref*numarray.array([4.828742413101911, 2.2977980131132441])+(1.-msk_ref)*numarray.array([0.80526541078777147, 0.018273338360333315])        ref=msk_ref*numarray.array([4.828742413101911, 2.2977980131132441])+(1.-msk_ref)*numarray.array([0.80526541078777147, 0.018273338360333315])
5723        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5724        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 5731  class Test_util_overloaded_binary_with_t Line 5731  class Test_util_overloaded_binary_with_t
5731        arg1=Data(numarray.array([[0.049140579953681339, 1.9478799151148214, 2.8538301583648402, 1.6150789116044209, 3.9764770067026123], [0.14184127381272654, 2.9945639775316319, 3.6667792892098445, 0.049854388563718051, 4.2739507075436132], [1.681702986758588, 3.4292769369795493, 1.1457686065402337, 3.0035868311864462, 1.5011726544103006], [4.9055846693043232, 2.6070135673466477, 3.5853479684538607, 1.019915640982572, 2.6767526929524741]]),self.functionspace)        arg1=Data(numarray.array([[0.049140579953681339, 1.9478799151148214, 2.8538301583648402, 1.6150789116044209, 3.9764770067026123], [0.14184127381272654, 2.9945639775316319, 3.6667792892098445, 0.049854388563718051, 4.2739507075436132], [1.681702986758588, 3.4292769369795493, 1.1457686065402337, 3.0035868311864462, 1.5011726544103006], [4.9055846693043232, 2.6070135673466477, 3.5853479684538607, 1.019915640982572, 2.6767526929524741]]),self.functionspace)
5732        arg1.setTaggedValue(1,numarray.array([[1.5250751478882203, 2.598988094472221, 3.3830444660225245, 4.8222858246721723, 3.3382545876578398], [2.7199819355727457, 1.2390967609641523, 3.6629805518941558, 1.1696266770771038, 1.4974765373712176], [0.058115190493916245, 0.023733434607369167, 1.6109454077767253, 2.4490252787162956, 1.8997826296768394], [0.41233748718478463, 4.2765851601643403, 3.6169911698535939, 0.76644592371932374, 0.39346503881117628]]))        arg1.setTaggedValue(1,numarray.array([[1.5250751478882203, 2.598988094472221, 3.3830444660225245, 4.8222858246721723, 3.3382545876578398], [2.7199819355727457, 1.2390967609641523, 3.6629805518941558, 1.1696266770771038, 1.4974765373712176], [0.058115190493916245, 0.023733434607369167, 1.6109454077767253, 2.4490252787162956, 1.8997826296768394], [0.41233748718478463, 4.2765851601643403, 3.6169911698535939, 0.76644592371932374, 0.39346503881117628]]))
5733        res=arg0**arg1        res=arg0**arg1
5734        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5735        ref=msk_ref*numarray.array([[1.0062209393799328, 1.2786790079992163, 1.4335599138422392, 1.2260862261841985, 1.6517606143205812], [1.0180619168063862, 1.4592487895360631, 1.5884474604280334, 1.0063115883794047, 1.7149496370866695], [1.2364387826820069, 1.5415427236809713, 1.1555760718899237, 1.4609113937090406, 1.2085869894794572], [1.8572512379565849, 1.3895943974354514, 1.5722068265304749, 1.1373670786036605, 1.4018785568449759]])+(1.-msk_ref)*numarray.array([[1.6058896294174243, 2.241685169223107, 2.8597963797611272, 4.4717012496131581, 2.8202879710899285], [2.3275303005091943, 1.4694011872061947, 3.1195746307183909, 1.4380356209898071, 1.5921828716882835], [1.018214068979288, 1.0073986780999193, 1.6492961208928243, 2.1396675529309408, 1.804095693038984], [1.1366316522507964, 3.7745381935446636, 3.0753314046830176, 1.2687762475107272, 1.1299886004246051]])        ref=msk_ref*numarray.array([[1.0062209393799328, 1.2786790079992163, 1.4335599138422392, 1.2260862261841985, 1.6517606143205812], [1.0180619168063862, 1.4592487895360631, 1.5884474604280334, 1.0063115883794047, 1.7149496370866695], [1.2364387826820069, 1.5415427236809713, 1.1555760718899237, 1.4609113937090406, 1.2085869894794572], [1.8572512379565849, 1.3895943974354514, 1.5722068265304749, 1.1373670786036605, 1.4018785568449759]])+(1.-msk_ref)*numarray.array([[1.6058896294174243, 2.241685169223107, 2.8597963797611272, 4.4717012496131581, 2.8202879710899285], [2.3275303005091943, 1.4694011872061947, 3.1195746307183909, 1.4380356209898071, 1.5921828716882835], [1.018214068979288, 1.0073986780999193, 1.6492961208928243, 2.1396675529309408, 1.804095693038984], [1.1366316522507964, 3.7745381935446636, 3.0753314046830176, 1.2687762475107272, 1.1299886004246051]])
5736        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5737        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 5744  class Test_util_overloaded_binary_with_t Line 5744  class Test_util_overloaded_binary_with_t
5744        arg1=Data(numarray.array([[[2.614717589012538, 1.4331698200280711], [1.485876742403974, 1.8009865340771538]], [[0.82479162184122223, 0.34201465764318179], [0.2772860498381533, 4.7796936329011448]], [[0.89463931304663546, 1.8447725319085986], [2.4982145845884762, 2.794471868169667]], [[1.0526619599072593, 3.608724317581677], [0.46217779263847075, 3.4049695072692598]], [[1.0964011703137477, 3.4302981899476248], [2.7477611175196346, 3.0489415192368372]], [[1.5018122639408436, 1.7866017134779382], [0.71054734952859067, 2.0913444416061022]]]),self.functionspace)        arg1=Data(numarray.array([[[2.614717589012538, 1.4331698200280711], [1.485876742403974, 1.8009865340771538]], [[0.82479162184122223, 0.34201465764318179], [0.2772860498381533, 4.7796936329011448]], [[0.89463931304663546, 1.8447725319085986], [2.4982145845884762, 2.794471868169667]], [[1.0526619599072593, 3.608724317581677], [0.46217779263847075, 3.4049695072692598]], [[1.0964011703137477, 3.4302981899476248], [2.7477611175196346, 3.0489415192368372]], [[1.5018122639408436, 1.7866017134779382], [0.71054734952859067, 2.0913444416061022]]]),self.functionspace)
5745        arg1.setTaggedValue(1,numarray.array([[[3.3934324263721183, 3.4144492522544074], [4.834801548307655, 3.2671376960498653]], [[1.4412276227188501, 1.6600380529227996], [4.6031863836552676, 3.6202640128406598]], [[1.3978596354389083, 1.5279815017234732], [2.2838301920697788, 2.4665656870642034]], [[1.0305356470116074, 1.5536868663855166], [4.9729042848201566, 0.17787706014311994]], [[0.93076829111447512, 4.1076214014703911], [0.56016987241340588, 3.0783602720110506]], [[4.3224413173161009, 0.17410856679419506], [2.0291032136716094, 0.61295388932027206]]]))        arg1.setTaggedValue(1,numarray.array([[[3.3934324263721183, 3.4144492522544074], [4.834801548307655, 3.2671376960498653]], [[1.4412276227188501, 1.6600380529227996], [4.6031863836552676, 3.6202640128406598]], [[1.3978596354389083, 1.5279815017234732], [2.2838301920697788, 2.4665656870642034]], [[1.0305356470116074, 1.5536868663855166], [4.9729042848201566, 0.17787706014311994]], [[0.93076829111447512, 4.1076214014703911], [0.56016987241340588, 3.0783602720110506]], [[4.3224413173161009, 0.17410856679419506], [2.0291032136716094, 0.61295388932027206]]]))
5746        res=arg0**arg1        res=arg0**arg1
5747        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5748        ref=msk_ref*numarray.array([[[30.688224153617799, 6.5318129049170857], [6.9985456159793555, 10.573251207350758]], [[2.9447828470608592, 1.5649532330555238], [1.4377740912446446, 522.61108591270954]], [[3.2268232114198039, 11.197197639043543], [26.346158917133238, 38.832626842947072]], [[3.9686386311495823, 112.78633643478274], [1.8316281313863381, 86.37390259069123]], [[4.2025775976295456, 89.286703456081227], [36.528571560699298, 54.189094637123524]], [[7.1461185762583685, 10.375953168891614], [2.5356152170804296, 15.464400149793622]]])+(1.-msk_ref)*numarray.array([[[9.9097611732132247, 10.051530356993913], [26.250862701083484, 9.0989715359195742]], [[2.648737124731356, 3.0708992820311001], [22.447001429005535, 11.551658094676128]], [[2.5722264180684786, 2.8086876376175995], [4.6812868264212693, 5.2966711160047923]], [[2.0067338577986256, 2.85791070267376], [28.81910091601344, 1.1277469862656915]], [[1.8758814575067817, 16.058196060511307], [1.460242019896741, 8.0090514372116477]], [[18.567445062381751, 1.1248782551627159], [3.9409059424085369, 1.513276759740295]]])        ref=msk_ref*numarray.array([[[30.688224153617799, 6.5318129049170857], [6.9985456159793555, 10.573251207350758]], [[2.9447828470608592, 1.5649532330555238], [1.4377740912446446, 522.61108591270954]], [[3.2268232114198039, 11.197197639043543], [26.346158917133238, 38.832626842947072]], [[3.9686386311495823, 112.78633643478274], [1.8316281313863381, 86.37390259069123]], [[4.2025775976295456, 89.286703456081227], [36.528571560699298, 54.189094637123524]], [[7.1461185762583685, 10.375953168891614], [2.5356152170804296, 15.464400149793622]]])+(1.-msk_ref)*numarray.array([[[9.9097611732132247, 10.051530356993913], [26.250862701083484, 9.0989715359195742]], [[2.648737124731356, 3.0708992820311001], [22.447001429005535, 11.551658094676128]], [[2.5722264180684786, 2.8086876376175995], [4.6812868264212693, 5.2966711160047923]], [[2.0067338577986256, 2.85791070267376], [28.81910091601344, 1.1277469862656915]], [[1.8758814575067817, 16.058196060511307], [1.460242019896741, 8.0090514372116477]], [[18.567445062381751, 1.1248782551627159], [3.9409059424085369, 1.513276759740295]]])
5749        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5750        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 5757  class Test_util_overloaded_binary_with_t Line 5757  class Test_util_overloaded_binary_with_t
5757        arg1=Data(numarray.array([[[[1.2290339953863241, 3.9770670450888996, 0.19060256664459632, 4.5759764736689048], [0.57859829269889695, 3.6448775276079632, 0.012906110615228738, 1.7025687306169721], [4.8064049312722608, 2.352747090838665, 3.7191366310274434, 4.125718709856562]], [[2.6060559875940328, 1.2133214535508734, 1.8927039692205638, 0.99085549211502644], [4.0661289840988593, 0.81941694331193715, 2.5008007402410968, 3.3567118107840632], [0.16325672960023926, 1.7051846964512758, 0.36881937324615371, 0.25260556446842258]]], [[[3.5148054722538853, 3.0189279117899233, 4.0586056415707841, 2.8654694519983246], [0.96837632820701103, 3.3183848744669966, 1.1715863950258805, 2.188989465847988], [2.0845513930801749, 4.6504392023104622, 0.80937836720073031, 2.4275338730084446]], [[4.3738886548009317, 1.1830459534010012, 2.7947935341719168, 2.4127883187988917], [2.1976269348487572, 4.842612070386517, 0.86169835807335926, 3.0783413757345639], [2.3182109917874723, 2.7640370217159314, 4.3609083143086869, 3.9055810827930841]]], [[[3.4646714771074865, 2.3359610299416143, 4.4329582831624599, 0.96322118708699789], [4.0404455084062239, 2.3143201360225674, 2.3183335689983795, 1.6011534260758671], [1.3147841996862206, 4.1872271125391975, 4.0875606736791887, 1.1625915492053573]], [[0.90744069607284872, 3.943248496682036, 3.9177151083537942, 0.20987143460120961], [2.6204270514908958, 2.0749404487560699, 1.9351743065377902, 1.1390464737765298], [4.2215433837221399, 4.375555133341714, 2.6690874390134813, 3.0135341491662158]]]]),self.functionspace)        arg1=Data(numarray.array([[[[1.2290339953863241, 3.9770670450888996, 0.19060256664459632, 4.5759764736689048], [0.57859829269889695, 3.6448775276079632, 0.012906110615228738, 1.7025687306169721], [4.8064049312722608, 2.352747090838665, 3.7191366310274434, 4.125718709856562]], [[2.6060559875940328, 1.2133214535508734, 1.8927039692205638, 0.99085549211502644], [4.0661289840988593, 0.81941694331193715, 2.5008007402410968, 3.3567118107840632], [0.16325672960023926, 1.7051846964512758, 0.36881937324615371, 0.25260556446842258]]], [[[3.5148054722538853, 3.0189279117899233, 4.0586056415707841, 2.8654694519983246], [0.96837632820701103, 3.3183848744669966, 1.1715863950258805, 2.188989465847988], [2.0845513930801749, 4.6504392023104622, 0.80937836720073031, 2.4275338730084446]], [[4.3738886548009317, 1.1830459534010012, 2.7947935341719168, 2.4127883187988917], [2.1976269348487572, 4.842612070386517, 0.86169835807335926, 3.0783413757345639], [2.3182109917874723, 2.7640370217159314, 4.3609083143086869, 3.9055810827930841]]], [[[3.4646714771074865, 2.3359610299416143, 4.4329582831624599, 0.96322118708699789], [4.0404455084062239, 2.3143201360225674, 2.3183335689983795, 1.6011534260758671], [1.3147841996862206, 4.1872271125391975, 4.0875606736791887, 1.1625915492053573]], [[0.90744069607284872, 3.943248496682036, 3.9177151083537942, 0.20987143460120961], [2.6204270514908958, 2.0749404487560699, 1.9351743065377902, 1.1390464737765298], [4.2215433837221399, 4.375555133341714, 2.6690874390134813, 3.0135341491662158]]]]),self.functionspace)
5758        arg1.setTaggedValue(1,numarray.array([[[[3.3438159891438453, 0.15422530790010724, 2.094175501307153, 2.8542340411635663], [0.74077514957206836, 0.66323769318626913, 3.6448799704887747, 4.9251673855914673], [3.2045131446283937, 0.86414715738159542, 2.8368640431245313, 3.9234020138010748]], [[0.83952723449920896, 1.0823986821829952, 4.8325400305832291, 3.5212828422917197], [1.6093565350668955, 1.3784767646923228, 2.4236462081199677, 2.6907313642434398], [4.9086602581733025, 4.0972003646165076, 1.6228821628859387, 1.2061431496345567]]], [[[0.59099799989906809, 1.3330447349998142, 4.6943674707120309, 4.5468883386162036], [0.52200427378409031, 2.573945076274716, 3.1077515050414015, 1.9218113431036583], [0.944397915678026, 3.1448511211622923, 0.42742257372754111, 1.8672627812995219]], [[3.5320490376136333, 3.6376604579892202, 4.6797398330841746, 2.6501881748619294], [1.6814847696596846, 3.2720127716058931, 1.2243030345135724, 0.023287513351529121], [4.7437978187626317, 3.2832796669824775, 0.43085966986009844, 4.8949180034116786]]], [[[1.2371039877816559, 4.1621564317908479, 0.95504725431048942, 1.2664964340496423], [1.8799602167507268, 4.3333504665276932, 3.3742329821035839, 4.4866043906777664], [2.2585156850514072, 4.3568191394543669, 1.6207013742717002, 0.68063425643107944]], [[4.851803337279045, 4.5056351498155855, 0.11453714250732401, 3.5971342478892194], [0.9749405351435626, 2.8775081138097645, 2.0402970685117645, 1.491314881810093], [1.9805301389099217, 1.614276967512617, 3.1875718144167995, 1.9130086746663639]]]]))        arg1.setTaggedValue(1,numarray.array([[[[3.3438159891438453, 0.15422530790010724, 2.094175501307153, 2.8542340411635663], [0.74077514957206836, 0.66323769318626913, 3.6448799704887747, 4.9251673855914673], [3.2045131446283937, 0.86414715738159542, 2.8368640431245313, 3.9234020138010748]], [[0.83952723449920896, 1.0823986821829952, 4.8325400305832291, 3.5212828422917197], [1.6093565350668955, 1.3784767646923228, 2.4236462081199677, 2.6907313642434398], [4.9086602581733025, 4.0972003646165076, 1.6228821628859387, 1.2061431496345567]]], [[[0.59099799989906809, 1.3330447349998142, 4.6943674707120309, 4.5468883386162036], [0.52200427378409031, 2.573945076274716, 3.1077515050414015, 1.9218113431036583], [0.944397915678026, 3.1448511211622923, 0.42742257372754111, 1.8672627812995219]], [[3.5320490376136333, 3.6376604579892202, 4.6797398330841746, 2.6501881748619294], [1.6814847696596846, 3.2720127716058931, 1.2243030345135724, 0.023287513351529121], [4.7437978187626317, 3.2832796669824775, 0.43085966986009844, 4.8949180034116786]]], [[[1.2371039877816559, 4.1621564317908479, 0.95504725431048942, 1.2664964340496423], [1.8799602167507268, 4.3333504665276932, 3.3742329821035839, 4.4866043906777664], [2.2585156850514072, 4.3568191394543669, 1.6207013742717002, 0.68063425643107944]], [[4.851803337279045, 4.5056351498155855, 0.11453714250732401, 3.5971342478892194], [0.9749405351435626, 2.8775081138097645, 2.0402970685117645, 1.491314881810093], [1.9805301389099217, 1.614276967512617, 3.1875718144167995, 1.9130086746663639]]]]))
5759        res=arg0**arg1        res=arg0**arg1
5760        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5761        ref=msk_ref*numarray.array([[[[0.68005101828135861, 0.2871548313537533, 0.94195464816442986, 0.23796519415628301], [0.83399749815400293, 0.31869676737004432, 0.99595912478679072, 0.5861670163282976], [0.22136913637531178, 0.47800582378610257, 0.31135776204519694, 0.27407032896793337]], [[0.44148841323717308, 0.68341162597789196, 0.55222370442898472, 0.73281411292242671], [0.2792423269654824, 0.77330833779049857, 0.45631060495988274, 0.34885170684714739], [0.95007069441472558, 0.58568613906503841, 0.89073306333717628, 0.9238084975858355]]], [[[0.33197108161370603, 0.3878507444009538, 0.2799022050758424, 0.40698056649518011], [0.73800050443253029, 0.35307175726029028, 0.69241880385034371, 0.50320565582162813], [0.51996657171957894, 0.23247043816361251, 0.77574765274936996, 0.46692091638047983]], [[0.25354108030225692, 0.68993386746110841, 0.4161054620086313, 0.46908596859745577], [0.50184388911020916, 0.21886875665184249, 0.76311810927825752, 0.38068820232148382], [0.48321321737549128, 0.4201400251078401, 0.25457569352098713, 0.2936677410521133]]], [[[0.33723381633018723, 0.48052979881795888, 0.24888571666341286, 0.73919506305085625], [0.28150147627601418, 0.48380342937445642, 0.48319463508728022, 0.60511710396162066], [0.66199978274096583, 0.26883225188834642, 0.2773710527991573, 0.69437555008386564]], [[0.75224492867874726, 0.29021775417593298, 0.29255192200947278, 0.93627746187434324], [0.43950237065313968, 0.5215367732915851, 0.54491450800753138, 0.69952378705645724], [0.2659534967379456, 0.25340855660660971, 0.43284373941660098, 0.38850761975654513]]]])+(1.-msk_ref)*numarray.array([[[[3.2048419093792866, 1.0551861662369193, 2.0738538211964128, 2.7023983706209243], [1.2943576725545944, 1.259869318435727, 3.5591594124398878, 5.5591930655186053], [3.0530561235481297, 1.3511897040792433, 2.6860981352790492, 3.9217367151745806]], [[1.339652513033456, 1.45790902334869, 5.3827023039747894, 3.4091912271286584], [1.7516259837059522, 1.6162816954826078, 2.3260334181150952, 2.5528008065307284], [5.527322248788284, 4.166470050250541, 1.7598974026697767, 1.5221196388281089]]], [[[1.2285648052513687, 1.5909067347840793, 5.129789118797567, 4.872938071021423], [1.1993933746521837, 2.4510439621470135, 2.9518753503717856, 1.9530135476537258], [1.3894904336760883, 2.9902667753800554, 1.160525328598615, 1.9162576330518772]], [[3.4219993643720641, 3.5502208595751767, 5.1037200414485193, 2.5170051890659662], [1.7961886540512655, 3.1256849775708626, 1.5317777881068828, 1.008144106332195], [5.2188721398793199, 3.1379751992541882, 1.1619154864184369, 5.5009290732969234]]], [[[1.5386226459969077, 4.2618084593377379, 1.394653904296508, 1.5544551866881773], [1.9247511671082504, 4.5236585045471482, 3.2389756019277423, 4.7716871664379967], [2.1960249485695447, 4.5607874302373661, 1.7585611339198255, 1.2675263987292902]], [[5.4189388487115728, 4.8034212563117711, 1.0407001272352228, 3.5004600240344343], [1.404350876278299, 2.7243942361729165, 2.035298680400162, 1.6810694543853704], [1.9933677597833623, 1.7546305007606446, 3.0350939280178508, 1.9470347780670707]]]])        ref=msk_ref*numarray.array([[[[0.68005101828135861, 0.2871548313537533, 0.94195464816442986, 0.23796519415628301], [0.83399749815400293, 0.31869676737004432, 0.99595912478679072, 0.5861670163282976], [0.22136913637531178, 0.47800582378610257, 0.31135776204519694, 0.27407032896793337]], [[0.44148841323717308, 0.68341162597789196, 0.55222370442898472, 0.73281411292242671], [0.2792423269654824, 0.77330833779049857, 0.45631060495988274, 0.34885170684714739], [0.95007069441472558, 0.58568613906503841, 0.89073306333717628, 0.9238084975858355]]], [[[0.33197108161370603, 0.3878507444009538, 0.2799022050758424, 0.40698056649518011], [0.73800050443253029, 0.35307175726029028, 0.69241880385034371, 0.50320565582162813], [0.51996657171957894, 0.23247043816361251, 0.77574765274936996, 0.46692091638047983]], [[0.25354108030225692, 0.68993386746110841, 0.4161054620086313, 0.46908596859745577], [0.50184388911020916, 0.21886875665184249, 0.76311810927825752, 0.38068820232148382], [0.48321321737549128, 0.4201400251078401, 0.25457569352098713, 0.2936677410521133]]], [[[0.33723381633018723, 0.48052979881795888, 0.24888571666341286, 0.73919506305085625], [0.28150147627601418, 0.48380342937445642, 0.48319463508728022, 0.60511710396162066], [0.66199978274096583, 0.26883225188834642, 0.2773710527991573, 0.69437555008386564]], [[0.75224492867874726, 0.29021775417593298, 0.29255192200947278, 0.93627746187434324], [0.43950237065313968, 0.5215367732915851, 0.54491450800753138, 0.69952378705645724], [0.2659534967379456, 0.25340855660660971, 0.43284373941660098, 0.38850761975654513]]]])+(1.-msk_ref)*numarray.array([[[[3.2048419093792866, 1.0551861662369193, 2.0738538211964128, 2.7023983706209243], [1.2943576725545944, 1.259869318435727, 3.5591594124398878, 5.5591930655186053], [3.0530561235481297, 1.3511897040792433, 2.6860981352790492, 3.9217367151745806]], [[1.339652513033456, 1.45790902334869, 5.3827023039747894, 3.4091912271286584], [1.7516259837059522, 1.6162816954826078, 2.3260334181150952, 2.5528008065307284], [5.527322248788284, 4.166470050250541, 1.7598974026697767, 1.5221196388281089]]], [[[1.2285648052513687, 1.5909067347840793, 5.129789118797567, 4.872938071021423], [1.1993933746521837, 2.4510439621470135, 2.9518753503717856, 1.9530135476537258], [1.3894904336760883, 2.9902667753800554, 1.160525328598615, 1.9162576330518772]], [[3.4219993643720641, 3.5502208595751767, 5.1037200414485193, 2.5170051890659662], [1.7961886540512655, 3.1256849775708626, 1.5317777881068828, 1.008144106332195], [5.2188721398793199, 3.1379751992541882, 1.1619154864184369, 5.5009290732969234]]], [[[1.5386226459969077, 4.2618084593377379, 1.394653904296508, 1.5544551866881773], [1.9247511671082504, 4.5236585045471482, 3.2389756019277423, 4.7716871664379967], [2.1960249485695447, 4.5607874302373661, 1.7585611339198255, 1.2675263987292902]], [[5.4189388487115728, 4.8034212563117711, 1.0407001272352228, 3.5004600240344343], [1.404350876278299, 2.7243942361729165, 2.035298680400162, 1.6810694543853704], [1.9933677597833623, 1.7546305007606446, 3.0350939280178508, 1.9470347780670707]]]])
5762        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5763        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 5770  class Test_util_overloaded_binary_with_t Line 5770  class Test_util_overloaded_binary_with_t
5770        arg1=Data(4.03780846025,self.functionspace)        arg1=Data(4.03780846025,self.functionspace)
5771        arg1.setTaggedValue(1,3.52615815834)        arg1.setTaggedValue(1,3.52615815834)
5772        res=arg0**arg1        res=arg0**arg1
5773        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5774        ref=msk_ref*numarray.array([104.72635549052796, 17.655625164955055])+(1.-msk_ref)*numarray.array([48.072958543179119, 117.56807993958545])        ref=msk_ref*numarray.array([104.72635549052796, 17.655625164955055])+(1.-msk_ref)*numarray.array([48.072958543179119, 117.56807993958545])
5775        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5776        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 5783  class Test_util_overloaded_binary_with_t Line 5783  class Test_util_overloaded_binary_with_t
5783        arg1=Data(numarray.array([4.8630386052774952, 2.438043971650234]),self.functionspace)        arg1=Data(numarray.array([4.8630386052774952, 2.438043971650234]),self.functionspace)
5784        arg1.setTaggedValue(1,numarray.array([3.984367679131966, 2.217029829800643]))        arg1.setTaggedValue(1,numarray.array([3.984367679131966, 2.217029829800643]))
5785        res=arg0**arg1        res=arg0**arg1
5786        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5787        ref=msk_ref*numarray.array([2106.0324321877029, 0.43810620730388589])+(1.-msk_ref)*numarray.array([147.82362455309129, 3.4218420130188876])        ref=msk_ref*numarray.array([2106.0324321877029, 0.43810620730388589])+(1.-msk_ref)*numarray.array([147.82362455309129, 3.4218420130188876])
5788        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5789        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 5796  class Test_util_overloaded_binary_with_t Line 5796  class Test_util_overloaded_binary_with_t
5796        arg1=Data(3.72919937737,self.functionspace)        arg1=Data(3.72919937737,self.functionspace)
5797        arg1.setTaggedValue(1,4.61014763846)        arg1.setTaggedValue(1,4.61014763846)
5798        res=arg0**arg1        res=arg0**arg1
5799        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5800        ref=msk_ref*numarray.array([[327.15610444558808, 0.0046012996189977815, 388.42284580845109, 10.624941647026404, 214.78977637370474], [283.75401063748217, 72.465811230664414, 3.6013720776011347e-07, 0.0029227174401894461, 241.9487929071947], [0.35730370106158998, 189.45272406294862, 306.53261892970005, 333.73863607695017, 0.37033953473613684], [147.89513496795149, 1.5857481285465851, 9.9237043672577414, 115.15693141585031, 18.220563220850952]])+(1.-msk_ref)*numarray.array([[28.687628312676111, 996.26632021487001, 0.063277391505582897, 4.1263852791987858, 0.0017679253190124868], [0.82247466759127252, 1.5356985701084267, 77.094784559929607, 0.0088397533618402562, 731.07056705740195], [2.8914881448464107, 121.78440191286083, 2.7342072378541529, 2.1532185789698763, 37.601373032230576], [0.038993591922357587, 22.989024605786593, 0.00035259674283432378, 410.45022241739042, 26.495805787296593]])        ref=msk_ref*numarray.array([[327.15610444558808, 0.0046012996189977815, 388.42284580845109, 10.624941647026404, 214.78977637370474], [283.75401063748217, 72.465811230664414, 3.6013720776011347e-07, 0.0029227174401894461, 241.9487929071947], [0.35730370106158998, 189.45272406294862, 306.53261892970005, 333.73863607695017, 0.37033953473613684], [147.89513496795149, 1.5857481285465851, 9.9237043672577414, 115.15693141585031, 18.220563220850952]])+(1.-msk_ref)*numarray.array([[28.687628312676111, 996.26632021487001, 0.063277391505582897, 4.1263852791987858, 0.0017679253190124868], [0.82247466759127252, 1.5356985701084267, 77.094784559929607, 0.0088397533618402562, 731.07056705740195], [2.8914881448464107, 121.78440191286083, 2.7342072378541529, 2.1532185789698763, 37.601373032230576], [0.038993591922357587, 22.989024605786593, 0.00035259674283432378, 410.45022241739042, 26.495805787296593]])
5801        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5802        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 5809  class Test_util_overloaded_binary_with_t Line 5809  class Test_util_overloaded_binary_with_t
5809        arg1=Data(numarray.array([[3.8141721363253707, 0.8194556436698105, 3.9494604233624742, 1.3071816097515467, 1.0895073144002956], [1.7940293096160496, 4.4884546091156698, 1.7734415833506132, 4.1308852274429322, 0.61944018117960442], [2.4485484115944103, 1.8604880253120417, 0.49305605076871506, 4.1878349942453754, 0.040445256883769688], [3.5714028114536487, 3.6483205191618575, 0.87716166214784796, 3.876026600558045, 4.5127051828088716]]),self.functionspace)        arg1=Data(numarray.array([[3.8141721363253707, 0.8194556436698105, 3.9494604233624742, 1.3071816097515467, 1.0895073144002956], [1.7940293096160496, 4.4884546091156698, 1.7734415833506132, 4.1308852274429322, 0.61944018117960442], [2.4485484115944103, 1.8604880253120417, 0.49305605076871506, 4.1878349942453754, 0.040445256883769688], [3.5714028114536487, 3.6483205191618575, 0.87716166214784796, 3.876026600558045, 4.5127051828088716]]),self.functionspace)
5810        arg1.setTaggedValue(1,numarray.array([[3.8992893521742706, 2.945221949474957, 0.1794385033086755, 0.091407530859525452, 2.7867241733559318], [3.1087790912976585, 1.9054705994746313, 4.6483421787599557, 4.4627512744205982, 4.9508429436798842], [2.5990653626636178, 0.97114420364719956, 0.75717842701781601, 4.392564743156699, 2.9667122206287004], [0.45676313562750653, 2.6368349774578359, 0.33508218001785339, 3.8720242185185954, 3.8327741137337825]]))        arg1.setTaggedValue(1,numarray.array([[3.8992893521742706, 2.945221949474957, 0.1794385033086755, 0.091407530859525452, 2.7867241733559318], [3.1087790912976585, 1.9054705994746313, 4.6483421787599557, 4.4627512744205982, 4.9508429436798842], [2.5990653626636178, 0.97114420364719956, 0.75717842701781601, 4.392564743156699, 2.9667122206287004], [0.45676313562750653, 2.6368349774578359, 0.33508218001785339, 3.8720242185185954, 3.8327741137337825]]))
5811        res=arg0**arg1        res=arg0**arg1
5812        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5813        ref=msk_ref*numarray.array([[2.147240030022862, 3.2026994550797365, 7.2869070950443113e-06, 2.5688826616086518, 2.154610479209583], [6.8723164962092307, 1177.8592969636186, 5.9815975202737786, 450.85898950224765, 0.83627790063584695], [22.538675192565915, 3.2508817054425836, 1.1977773396050797, 0.071514135578589086, 1.0500223939526865], [107.22950404712837, 340.44517774784515, 1.2204099248635834, 71.913909319362034, 29.547889101958393]])+(1.-msk_ref)*numarray.array([[207.20137144222255, 47.796748156682547, 1.3005567944732468, 0.96862648121202244, 3.1621885267504917], [52.094623457776962, 6.4717009673682178, 52.48064119450337, 389.80277874820047, 68.850385169326884], [2.1661566957275915, 0.55383760979076957, 1.1236548581321422, 24.402608947995613, 1.6084781712795404], [2.0120706411359683, 1.8914368044494225, 0.79810501468180128, 5.8755016518619767, 0.0052468284002347735]])        ref=msk_ref*numarray.array([[2.147240030022862, 3.2026994550797365, 7.2869070950443113e-06, 2.5688826616086518, 2.154610479209583], [6.8723164962092307, 1177.8592969636186, 5.9815975202737786, 450.85898950224765, 0.83627790063584695], [22.538675192565915, 3.2508817054425836, 1.1977773396050797, 0.071514135578589086, 1.0500223939526865], [107.22950404712837, 340.44517774784515, 1.2204099248635834, 71.913909319362034, 29.547889101958393]])+(1.-msk_ref)*numarray.array([[207.20137144222255, 47.796748156682547, 1.3005567944732468, 0.96862648121202244, 3.1621885267504917], [52.094623457776962, 6.4717009673682178, 52.48064119450337, 389.80277874820047, 68.850385169326884], [2.1661566957275915, 0.55383760979076957, 1.1236548581321422, 24.402608947995613, 1.6084781712795404], [2.0120706411359683, 1.8914368044494225, 0.79810501468180128, 5.8755016518619767, 0.0052468284002347735]])
5814        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5815        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 5822  class Test_util_overloaded_binary_with_t Line 5822  class Test_util_overloaded_binary_with_t
5822        arg1=Data(4.44672927732,self.functionspace)        arg1=Data(4.44672927732,self.functionspace)
5823        arg1.setTaggedValue(1,1.61565798989)        arg1.setTaggedValue(1,1.61565798989)
5824        res=arg0**arg1        res=arg0**arg1
5825        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5826        ref=msk_ref*numarray.array([[[1.6026836622508347, 0.053560967260344386], [3.5317494204049189, 171.70668222019577]], [[11.720574468723932, 818.1400683316856], [224.30362640523549, 1.1159883850407162e-05]], [[2.2172454832791546e-06, 948.05328049691718], [0.35988327127282216, 544.31776991364859]], [[468.59247451458873, 414.60085614456881], [3.8905889451168352, 13.083750674727526]], [[774.56888780772351, 178.05867777981641], [846.65581977837155, 0.35461396110702298]], [[537.73675251965426, 627.17067672071744], [313.04485196633323, 22.704549053940006]]])+(1.-msk_ref)*numarray.array([[[0.006803835660044933, 0.43375791773537387], [10.035896605393662, 8.348891209918671]], [[5.8543196752425422, 12.485046722908082], [8.9430286251236417, 11.046234581210502]], [[1.7147520302508854, 6.6088464361126915], [10.277118893801184, 3.7371770136715869]], [[12.444178272135638, 2.6211233381788919], [0.33191247255859896, 4.5865357976083905]], [[2.6115580365765481, 9.6703941348183093], [0.53446131289541776, 4.3534739372876441]], [[4.8460491701859087, 2.1825977105206618], [1.8445250410480061, 5.9218871817048555]]])        ref=msk_ref*numarray.array([[[1.6026836622508347, 0.053560967260344386], [3.5317494204049189, 171.70668222019577]], [[11.720574468723932, 818.1400683316856], [224.30362640523549, 1.1159883850407162e-05]], [[2.2172454832791546e-06, 948.05328049691718], [0.35988327127282216, 544.31776991364859]], [[468.59247451458873, 414.60085614456881], [3.8905889451168352, 13.083750674727526]], [[774.56888780772351, 178.05867777981641], [846.65581977837155, 0.35461396110702298]], [[537.73675251965426, 627.17067672071744], [313.04485196633323, 22.704549053940006]]])+(1.-msk_ref)*numarray.array([[[0.006803835660044933, 0.43375791773537387], [10.035896605393662, 8.348891209918671]], [[5.8543196752425422, 12.485046722908082], [8.9430286251236417, 11.046234581210502]], [[1.7147520302508854, 6.6088464361126915], [10.277118893801184, 3.7371770136715869]], [[12.444178272135638, 2.6211233381788919], [0.33191247255859896, 4.5865357976083905]], [[2.6115580365765481, 9.6703941348183093], [0.53446131289541776, 4.3534739372876441]], [[4.8460491701859087, 2.1825977105206618], [1.8445250410480061, 5.9218871817048555]]])
5827        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5828        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 5835  class Test_util_overloaded_binary_with_t Line 5835  class Test_util_overloaded_binary_with_t
5835        arg1=Data(numarray.array([[[1.7298250853133232, 0.58780224705705619], [4.1573161057130559, 0.69473816645079012]], [[2.4634794939865374, 2.3547913805173923], [3.7206945628283945, 3.7732636992026798]], [[1.623352088147106, 1.4354000100341291], [2.2774417274986036, 1.7180437485615785]], [[1.3456747520743881, 1.0345286355587673], [0.95710352358503903, 1.31662846222279]], [[1.9450902806665276, 2.1367207096405725], [4.2646516368223786, 2.1366913867848454]], [[4.3536801552667663, 1.8741181390136004], [1.9919622536089663, 3.811292546229641]]]),self.functionspace)        arg1=Data(numarray.array([[[1.7298250853133232, 0.58780224705705619], [4.1573161057130559, 0.69473816645079012]], [[2.4634794939865374, 2.3547913805173923], [3.7206945628283945, 3.7732636992026798]], [[1.623352088147106, 1.4354000100341291], [2.2774417274986036, 1.7180437485615785]], [[1.3456747520743881, 1.0345286355587673], [0.95710352358503903, 1.31662846222279]], [[1.9450902806665276, 2.1367207096405725], [4.2646516368223786, 2.1366913867848454]], [[4.3536801552667663, 1.8741181390136004], [1.9919622536089663, 3.811292546229641]]]),self.functionspace)
5836        arg1.setTaggedValue(1,numarray.array([[[0.71288488908586733, 2.9880925579509334], [3.4429735882980257, 1.2714836370691041]], [[1.071644158248942, 3.3334798857116343], [4.2219557067171198, 2.9081610735464412]], [[0.43184501531074954, 3.6170644783151467], [3.429299808036383, 1.7701181051148689]], [[4.7865636553069608, 1.7953556939999786], [0.33087615333104714, 3.103957304402654]], [[1.7015837987511115, 4.336203317746258], [0.041905172485572413, 1.2053284289769686]], [[3.3905395294228304, 1.6705878579191957], [4.9839813490695848, 0.97736995816174232]]]))        arg1.setTaggedValue(1,numarray.array([[[0.71288488908586733, 2.9880925579509334], [3.4429735882980257, 1.2714836370691041]], [[1.071644158248942, 3.3334798857116343], [4.2219557067171198, 2.9081610735464412]], [[0.43184501531074954, 3.6170644783151467], [3.429299808036383, 1.7701181051148689]], [[4.7865636553069608, 1.7953556939999786], [0.33087615333104714, 3.103957304402654]], [[1.7015837987511115, 4.336203317746258], [0.041905172485572413, 1.2053284289769686]], [[3.3905395294228304, 1.6705878579191957], [4.9839813490695848, 0.97736995816174232]]]))
5837        res=arg0**arg1        res=arg0**arg1
5838        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5839        ref=msk_ref*numarray.array([[[14.196912946434132, 1.9150962352955425], [204.18484851713336, 2.8431209904256955]], [[5.8969804927152163, 9.8549777928457427], [0.01957677751834748, 330.42314745876439]], [[11.38900105345952, 7.6977471927084533], [4.628027788648315, 14.018444898141569]], [[2.8212843548408961, 0.59745880006222307], [4.453211629831535, 5.0021741548938898]], [[1.3987429438864021, 0.0064780899001835252], [0.46901289237895966, 26.636487676180515]], [[554.86252979472044, 2.0079900159624811], [3.8075466022824829, 354.33567243615533]]])+(1.-msk_ref)*numarray.array([[[2.6234278888841822, 1.7985758849322315], [2.0708651189664704, 1.8980764100291567]], [[5.2720030471168053, 0.49301240890753417], [80.957375586665322, 2.1482905653733391]], [[1.4815001995162445, 31.239361400192259], [14.270690924947404, 0.68421446175824641]], [[0.086628295665784033, 2.0921083039642956], [1.4741302895693158, 49.395451255542156]], [[0.91422475744259402, 601.17519883386672], [1.0603131911140993, 0.090392324636910451]], [[73.980764764350496, 7.2062889224954727], [0.5146339914614243, 3.7602105299349033]]])        ref=msk_ref*numarray.array([[[14.196912946434132, 1.9150962352955425], [204.18484851713336, 2.8431209904256955]], [[5.8969804927152163, 9.8549777928457427], [0.01957677751834748, 330.42314745876439]], [[11.38900105345952, 7.6977471927084533], [4.628027788648315, 14.018444898141569]], [[2.8212843548408961, 0.59745880006222307], [4.453211629831535, 5.0021741548938898]], [[1.3987429438864021, 0.0064780899001835252], [0.46901289237895966, 26.636487676180515]], [[554.86252979472044, 2.0079900159624811], [3.8075466022824829, 354.33567243615533]]])+(1.-msk_ref)*numarray.array([[[2.6234278888841822, 1.7985758849322315], [2.0708651189664704, 1.8980764100291567]], [[5.2720030471168053, 0.49301240890753417], [80.957375586665322, 2.1482905653733391]], [[1.4815001995162445, 31.239361400192259], [14.270690924947404, 0.68421446175824641]], [[0.086628295665784033, 2.0921083039642956], [1.4741302895693158, 49.395451255542156]], [[0.91422475744259402, 601.17519883386672], [1.0603131911140993, 0.090392324636910451]], [[73.980764764350496, 7.2062889224954727], [0.5146339914614243, 3.7602105299349033]]])
5840        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5841        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 5848  class Test_util_overloaded_binary_with_t Line 5848  class Test_util_overloaded_binary_with_t
5848        arg1=Data(0.661316768979,self.functionspace)        arg1=Data(0.661316768979,self.functionspace)
5849        arg1.setTaggedValue(1,4.22836995859)        arg1.setTaggedValue(1,4.22836995859)
5850        res=arg0**arg1        res=arg0**arg1
5851        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5852        ref=msk_ref*numarray.array([[[[2.2500453042982169, 0.47500897654993829, 2.6431115234598233, 0.51952944607446561], [2.7939037771701618, 2.4253614075164664, 1.0283705639211196, 1.2201338446351364], [2.4487557383473373, 2.8518937202381167, 2.6071889076130037, 2.4015330994639315]], [[2.1039297324203075, 1.790694188966609, 2.3197754170088349, 1.131471486340673], [2.5555862615727842, 2.4351132260172892, 0.88755350963570168, 0.54804356025966761], [1.1625583000897139, 1.2849462702175436, 1.0862834925208602, 2.098086566434211]]], [[[1.6022208377245237, 1.6382188197326093, 2.7946922706451378, 1.898653766835986], [2.4171508248236924, 1.0968758183513119, 2.7083810110948665, 1.2585726288258476], [1.862078562782628, 1.484906138966662, 2.87282899454839, 0.26756914389460584]], [[2.1577496165146619, 1.7277684847315191, 0.32729687093086979, 0.38950962614205642], [1.4811193095844144, 1.6927010914184066, 2.1945188106313251, 2.4778656453623951], [2.6466060301810286, 2.7316373577643769, 2.2348411061785516, 2.2320351916531811]]], [[[1.9299913912969391, 2.2716002807285869, 2.2366579300655567, 2.3366430248615222], [2.1129689644067686, 0.49394408316514044, 2.8441862814230903, 2.1872429880314437], [2.6441113143864174, 1.4197162115705431, 0.78483517337178776, 2.783090026298217]], [[1.489446163468459, 2.0903047910325259, 1.3888451480842816, 1.5186670756715144], [2.8277723417617029, 2.50361167681671, 2.480263441232109, 2.4136259202708263], [0.60023163194367479, 0.9870627652767654, 2.3024973187007336, 2.650915591644897]]]])+(1.-msk_ref)*numarray.array([[[[633.31949830881672, 855.24359113962305, 0.00015434765699074468, 6.1262738994691039], [0.015874717381308967, 0.0013754197758514594, 10.256641627565545, 0.0034218013810192768], [30.520582014663397, 40.044288267347021, 138.40050504416101, 336.45365615695704]], [[12.445588157519836, 209.54813355015793, 42.030029938342444, 252.6943236226021], [3.2488507293899982, 0.0018511733025864357, 17.737910399496542, 1.315922065729475], [321.07280972265045, 614.7198082821468, 12.110587229893266, 33.087371216069229]]], [[[2.1438157469656449, 0.13132718895082998, 20.176537641850274, 29.541773223503576], [0.52372619221697625, 1.3615670340016617, 0.76386216822371067, 489.66362609264593], [0.15104698324200261, 1.6930392154436797, 0.0889122529804897, 13.51407015452213]], [[241.03170017182563, 47.800938833856371, 117.51810556501806, 57.804028142625114], [0.17959384287215308, 11.666004331233175, 37.801425975143914, 599.20104129926267], [135.96579410157986, 16.583268400415371, 202.18002961122338, 142.50577570589837]]], [[[625.30651050062136, 149.86386231820541, 20.119577873424483, 386.16649178119764], [19.689644886944492, 299.03857214688458, 14.138145094464431, 0.02192274272483009], [183.71890248654043, 0.00010387818732527204, 1.1240579448970762, 0.045592555660689454]], [[529.9946934081928, 0.1841123668474732, 28.266962602577681, 190.30562902832051], [0.61007547356094727, 4.3195780640768984, 166.09985895841058, 96.694098270597038], [0.42604601578857598, 0.024494916935938041, 471.84235023859912, 474.36976215126481]]]])        ref=msk_ref*numarray.array([[[[2.2500453042982169, 0.47500897654993829, 2.6431115234598233, 0.51952944607446561], [2.7939037771701618, 2.4253614075164664, 1.0283705639211196, 1.2201338446351364], [2.4487557383473373, 2.8518937202381167, 2.6071889076130037, 2.4015330994639315]], [[2.1039297324203075, 1.790694188966609, 2.3197754170088349, 1.131471486340673], [2.5555862615727842, 2.4351132260172892, 0.88755350963570168, 0.54804356025966761], [1.1625583000897139, 1.2849462702175436, 1.0862834925208602, 2.098086566434211]]], [[[1.6022208377245237, 1.6382188197326093, 2.7946922706451378, 1.898653766835986], [2.4171508248236924, 1.0968758183513119, 2.7083810110948665, 1.2585726288258476], [1.862078562782628, 1.484906138966662, 2.87282899454839, 0.26756914389460584]], [[2.1577496165146619, 1.7277684847315191, 0.32729687093086979, 0.38950962614205642], [1.4811193095844144, 1.6927010914184066, 2.1945188106313251, 2.4778656453623951], [2.6466060301810286, 2.7316373577643769, 2.2348411061785516, 2.2320351916531811]]], [[[1.9299913912969391, 2.2716002807285869, 2.2366579300655567, 2.3366430248615222], [2.1129689644067686, 0.49394408316514044, 2.8441862814230903, 2.1872429880314437], [2.6441113143864174, 1.4197162115705431, 0.78483517337178776, 2.783090026298217]], [[1.489446163468459, 2.0903047910325259, 1.3888451480842816, 1.5186670756715144], [2.8277723417617029, 2.50361167681671, 2.480263441232109, 2.4136259202708263], [0.60023163194367479, 0.9870627652767654, 2.3024973187007336, 2.650915591644897]]]])+(1.-msk_ref)*numarray.array([[[[633.31949830881672, 855.24359113962305, 0.00015434765699074468, 6.1262738994691039], [0.015874717381308967, 0.0013754197758514594, 10.256641627565545, 0.0034218013810192768], [30.520582014663397, 40.044288267347021, 138.40050504416101, 336.45365615695704]], [[12.445588157519836, 209.54813355015793, 42.030029938342444, 252.6943236226021], [3.2488507293899982, 0.0018511733025864357, 17.737910399496542, 1.315922065729475], [321.07280972265045, 614.7198082821468, 12.110587229893266, 33.087371216069229]]], [[[2.1438157469656449, 0.13132718895082998, 20.176537641850274, 29.541773223503576], [0.52372619221697625, 1.3615670340016617, 0.76386216822371067, 489.66362609264593], [0.15104698324200261, 1.6930392154436797, 0.0889122529804897, 13.51407015452213]], [[241.03170017182563, 47.800938833856371, 117.51810556501806, 57.804028142625114], [0.17959384287215308, 11.666004331233175, 37.801425975143914, 599.20104129926267], [135.96579410157986, 16.583268400415371, 202.18002961122338, 142.50577570589837]]], [[[625.30651050062136, 149.86386231820541, 20.119577873424483, 386.16649178119764], [19.689644886944492, 299.03857214688458, 14.138145094464431, 0.02192274272483009], [183.71890248654043, 0.00010387818732527204, 1.1240579448970762, 0.045592555660689454]], [[529.9946934081928, 0.1841123668474732, 28.266962602577681, 190.30562902832051], [0.61007547356094727, 4.3195780640768984, 166.09985895841058, 96.694098270597038], [0.42604601578857598, 0.024494916935938041, 471.84235023859912, 474.36976215126481]]]])
5853        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5854        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 5861  class Test_util_overloaded_binary_with_t Line 5861  class Test_util_overloaded_binary_with_t
5861        arg1=Data(numarray.array([[[[4.8437845810534279, 1.5715362326496751, 1.4386538611494084, 3.6536744605495635], [4.8643590599846815, 3.3734211806014063, 4.6310454957024376, 4.1276942249253539], [2.4321727066451562, 3.8054321412424859, 2.9420600579406244, 4.7934022110342882]], [[0.84033026583373716, 2.9736079150205881, 0.70739031432168253, 3.1059298047737425], [3.1346906018532916, 4.2449852544694702, 3.7907856703555876, 0.97420374473699634], [4.9803116354394366, 4.174148843391106, 4.7549805410665433, 2.5670271743224236]]], [[[3.9957601236819764, 2.5472136139352162, 2.5500266848181412, 1.3101848629572359], [3.078468241243141, 4.4889782447519204, 3.1276462024401113, 0.23175862249726042], [3.3127872007180952, 3.9400824554022535, 1.875740223174623, 0.095601376668153992]], [[4.142824967642726, 0.57774102988950526, 0.94749534311817218, 3.8539940813540836], [3.9956653155085493, 0.89605336362717214, 1.4581185369348182, 4.8714132059709403], [3.5125753696443467, 1.5236927683896921, 3.10002975595309, 2.4105164887910409]]], [[[1.6945896343889169, 4.2045644498304906, 3.751465142175324, 2.6103338128114233], [0.76438975649267471, 0.68163078289497048, 4.6930818585424801, 0.6851962518968453], [0.5517992852642819, 3.1471227359809362, 0.74081474539848047, 3.1688796558443664]], [[0.4401070583813555, 0.98338040258547355, 2.1636006225981435, 1.980221387208823], [3.3066636712819748, 3.4046016644200638, 3.9786707005142175, 3.4748482526793016], [2.5881170748386446, 0.29032271323941605, 4.2599655418490325, 0.11584659317393138]]]]),self.functionspace)        arg1=Data(numarray.array([[[[4.8437845810534279, 1.5715362326496751, 1.4386538611494084, 3.6536744605495635], [4.8643590599846815, 3.3734211806014063, 4.6310454957024376, 4.1276942249253539], [2.4321727066451562, 3.8054321412424859, 2.9420600579406244, 4.7934022110342882]], [[0.84033026583373716, 2.9736079150205881, 0.70739031432168253, 3.1059298047737425], [3.1346906018532916, 4.2449852544694702, 3.7907856703555876, 0.97420374473699634], [4.9803116354394366, 4.174148843391106, 4.7549805410665433, 2.5670271743224236]]], [[[3.9957601236819764, 2.5472136139352162, 2.5500266848181412, 1.3101848629572359], [3.078468241243141, 4.4889782447519204, 3.1276462024401113, 0.23175862249726042], [3.3127872007180952, 3.9400824554022535, 1.875740223174623, 0.095601376668153992]], [[4.142824967642726, 0.57774102988950526, 0.94749534311817218, 3.8539940813540836], [3.9956653155085493, 0.89605336362717214, 1.4581185369348182, 4.8714132059709403], [3.5125753696443467, 1.5236927683896921, 3.10002975595309, 2.4105164887910409]]], [[[1.6945896343889169, 4.2045644498304906, 3.751465142175324, 2.6103338128114233], [0.76438975649267471, 0.68163078289497048, 4.6930818585424801, 0.6851962518968453], [0.5517992852642819, 3.1471227359809362, 0.74081474539848047, 3.1688796558443664]], [[0.4401070583813555, 0.98338040258547355, 2.1636006225981435, 1.980221387208823], [3.3066636712819748, 3.4046016644200638, 3.9786707005142175, 3.4748482526793016], [2.5881170748386446, 0.29032271323941605, 4.2599655418490325, 0.11584659317393138]]]]),self.functionspace)
5862        arg1.setTaggedValue(1,numarray.array([[[[3.5269262146260809, 0.88975694543990891, 0.62366012397079007, 1.900217985293986], [0.061312700118894461, 4.8433943404324946, 4.9295191010850941, 1.2319515886268293], [3.2854875450450765, 1.3407051227989604, 1.1478059159462932, 3.9580673281004386]], [[3.9419594371892015, 1.5860875022975038, 2.4887881941345813, 3.0133539159818987], [3.2674500418015882, 2.629285704252792, 2.4289846330278468, 2.5821532019157161], [4.8242650351135081, 1.0917355098454273, 2.2633612512435834, 4.9219680944233479]]], [[[0.16658897873599804, 0.65623610488601058, 2.4047870125122102, 0.33726524899786009], [0.91215381398810447, 0.22823238952032532, 1.2714026112147603, 1.2074506875347299], [3.9499868920734644, 1.0464721937927419, 1.1078566577586468, 1.229229207588449]], [[4.2473896981285106, 2.7976195315915495, 2.074467250540494, 4.0448352838338542], [1.7068318924081152, 3.9799229093316355, 3.6298271008316725, 0.50900036396903503], [1.8771884668624439, 3.7101424788114756, 2.9165429744283342, 1.8868993410808803]]], [[[4.9493819596171589, 2.2920620380272987, 1.0446028702438328, 2.4180263121587595], [2.871849913114692, 3.8445810081970038, 3.5112345501990982, 2.8804703923092041], [1.6150686584666465, 1.7809804307403305, 2.7033607425281141, 3.057473069363311]], [[1.9529102633192408, 4.0920796406110744, 1.5783707442983108, 4.0881574066074622], [4.4763491941003108, 0.30874540139038137, 0.17419439879595935, 2.6866005326812123], [2.4867015852038263, 2.6875314195153561, 4.1334170413838578, 2.0017696332697636]]]]))        arg1.setTaggedValue(1,numarray.array([[[[3.5269262146260809, 0.88975694543990891, 0.62366012397079007, 1.900217985293986], [0.061312700118894461, 4.8433943404324946, 4.9295191010850941, 1.2319515886268293], [3.2854875450450765, 1.3407051227989604, 1.1478059159462932, 3.9580673281004386]], [[3.9419594371892015, 1.5860875022975038, 2.4887881941345813, 3.0133539159818987], [3.2674500418015882, 2.629285704252792, 2.4289846330278468, 2.5821532019157161], [4.8242650351135081, 1.0917355098454273, 2.2633612512435834, 4.9219680944233479]]], [[[0.16658897873599804, 0.65623610488601058, 2.4047870125122102, 0.33726524899786009], [0.91215381398810447, 0.22823238952032532, 1.2714026112147603, 1.2074506875347299], [3.9499868920734644, 1.0464721937927419, 1.1078566577586468, 1.229229207588449]], [[4.2473896981285106, 2.7976195315915495, 2.074467250540494, 4.0448352838338542], [1.7068318924081152, 3.9799229093316355, 3.6298271008316725, 0.50900036396903503], [1.8771884668624439, 3.7101424788114756, 2.9165429744283342, 1.8868993410808803]]], [[[4.9493819596171589, 2.2920620380272987, 1.0446028702438328, 2.4180263121587595], [2.871849913114692, 3.8445810081970038, 3.5112345501990982, 2.8804703923092041], [1.6150686584666465, 1.7809804307403305, 2.7033607425281141, 3.057473069363311]], [[1.9529102633192408, 4.0920796406110744, 1.5783707442983108, 4.0881574066074622], [4.4763491941003108, 0.30874540139038137, 0.17419439879595935, 2.6866005326812123], [2.4867015852038263, 2.6875314195153561, 4.1334170413838578, 2.0017696332697636]]]]))
5863        res=arg0**arg1        res=arg0**arg1
5864        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
5865        ref=msk_ref*numarray.array([[[[3.3321267943905228, 0.41760408250499198, 6.7244404870333492, 133.92776018404052], [1.3305099294837668, 198.13952593196277, 34.242769943555409, 1.4178821744525116e-05], [31.238048943885595, 56.843972440626807, 8.5203021976157505, 2088.3044949836849]], [[2.8862148361126372, 0.11470542532130426, 0.55286871308828101, 33.220305721512418], [14.872437744746906, 234.4678872075952, 35.873094843616855, 4.048510173322291], [0.74735886704781784, 54.560885335824217, 1434.8528163967158, 31.290521954752581]]], [[[1.2332690831491147, 38.734142717688115, 14.267168105058111, 7.4548760680055493], [1.2040516202508778, 984.62712385386646, 2.7693078974816796, 1.1101845342919774], [3.0158584274528328, 87.101301612264322, 1.6027758441930624, 0.96571957826986277]], [[9.7192120532873059, 2.120192948738747, 4.4631473505860679, 101.88750911521464], [450.44734072337877, 0.51580144888824919, 0.047709602884676391, 17.615800700038633], [11.204848755336414, 3.0152357399427259, 0.8424655988769878, 2.2225051869202348]]], [[[4.6524795361703895, 22.314162863175945, 281.26958682972196, 40.692996489834066], [3.175127797741379, 1.1567058933568559, 1.7444972872696267, 0.41609847472895994], [2.2007722179430913, 120.48453036886261, 2.4101494393990563, 119.34980950002986]], [[1.4474705494095539, 4.20091224298932, 0.028808694592014881, 10.643558811257895], [66.863203038579073, 144.44824714485787, 0.79577171804004065, 35.257936901068859], [47.641448443842272, 1.2492215851193771, 794.03443628342472, 1.1615159434922919]]]])+(1.-msk_ref)*numarray.array([[[[98.861817660141156, 2.6559208221055575, 0.92781396036543273, 0.18134776403563416], [1.0485762339671856, 766.83912983462164, 18.450902621497409, 0.019536617390137269], [53.598070172115833, 4.4695642433437648, 3.1331243962854844, 3.570853264137142]], [[445.31148466400282, 0.043786263662659489, 0.2402015257667334, 0.44604711786020446], [41.976191127206313, 34.222056607798834, 29.062972669366072, 9.4476182473392534], [37.476826726267532, 5.2687731136617231, 2.7465017852370899, 13.97348884693089]]], [[[1.0265203422028608, 2.4114671706649919, 0.91032234697095948, 1.5521795913087899], [3.8685941748341177, 1.3150443420172147, 0.86971824763970229, 5.2286592791645532], [193.98066604398645, 0.68775189468285081, 3.3634118522281757, 7.0235024174551812]], [[439.29762675635328, 20.779089784257721, 6.1291425833274449, 297.46024759074629], [5.9440989475798602, 0.00017142737502985481, 0.0074495754381368549, 1.8823943167863619], [0.29294195936829015, 2.3607656512482755, 97.411398228320209, 19.429086710146027]]], [[[16.291203266933032, 0.34633851471100841, 2.6706646006903898, 0.00087704143398615513], [39.379814805212682, 2.0028984419197839, 0.37190475745362245, 1.3963084534300367], [5.0440235274127616, 5.3142025232569576, 20.185236066341929, 133.71240214436162]], [[0.033551333964232759, 0.35067779097829088, 3.1912560565676436, 3.2417126605753483], [202.95427738158952, 1.5079268192195761, 1.208174276544064, 2.7336912367481814], [14.719598594574739, 22.040483514277231, 19.832475844911905, 3.1574261676387616]]]])        ref=msk_ref*numarray.array([[[[3.3321267943905228, 0.41760408250499198, 6.7244404870333492, 133.92776018404052], [1.3305099294837668, 198.13952593196277, 34.242769943555409, 1.4178821744525116e-05], [31.238048943885595, 56.843972440626807, 8.5203021976157505, 2088.3044949836849]], [[2.8862148361126372, 0.11470542532130426, 0.55286871308828101, 33.220305721512418], [14.872437744746906, 234.4678872075952, 35.873094843616855, 4.048510173322291], [0.74735886704781784, 54.560885335824217, 1434.8528163967158, 31.290521954752581]]], [[[1.2332690831491147, 38.734142717688115, 14.267168105058111, 7.4548760680055493], [1.2040516202508778, 984.62712385386646, 2.7693078974816796, 1.1101845342919774], [3.0158584274528328, 87.101301612264322, 1.6027758441930624, 0.96571957826986277]], [[9.7192120532873059, 2.120192948738747, 4.4631473505860679, 101.88750911521464], [450.44734072337877, 0.51580144888824919, 0.047709602884676391, 17.615800700038633], [11.204848755336414, 3.0152357399427259, 0.8424655988769878, 2.2225051869202348]]], [[[4.6524795361703895, 22.314162863175945, 281.26958682972196, 40.692996489834066], [3.175127797741379, 1.1567058933568559, 1.7444972872696267, 0.41609847472895994], [2.2007722179430913, 120.48453036886261, 2.4101494393990563, 119.34980950002986]], [[1.4474705494095539, 4.20091224298932, 0.028808694592014881, 10.643558811257895], [66.863203038579073, 144.44824714485787, 0.79577171804004065, 35.257936901068859], [47.641448443842272, 1.2492215851193771, 794.03443628342472, 1.1615159434922919]]]])+(1.-msk_ref)*numarray.array([[[[98.861817660141156, 2.6559208221055575, 0.92781396036543273, 0.18134776403563416], [1.0485762339671856, 766.83912983462164, 18.450902621497409, 0.019536617390137269], [53.598070172115833, 4.4695642433437648, 3.1331243962854844, 3.570853264137142]], [[445.31148466400282, 0.043786263662659489, 0.2402015257667334, 0.44604711786020446], [41.976191127206313, 34.222056607798834, 29.062972669366072, 9.4476182473392534], [37.476826726267532, 5.2687731136617231, 2.7465017852370899, 13.97348884693089]]], [[[1.0265203422028608, 2.4114671706649919, 0.91032234697095948, 1.5521795913087899], [3.8685941748341177, 1.3150443420172147, 0.86971824763970229, 5.2286592791645532], [193.98066604398645, 0.68775189468285081, 3.3634118522281757, 7.0235024174551812]], [[439.29762675635328, 20.779089784257721, 6.1291425833274449, 297.46024759074629], [5.9440989475798602, 0.00017142737502985481, 0.0074495754381368549, 1.8823943167863619], [0.29294195936829015, 2.3607656512482755, 97.411398228320209, 19.429086710146027]]], [[[16.291203266933032, 0.34633851471100841, 2.6706646006903898, 0.00087704143398615513], [39.379814805212682, 2.0028984419197839, 0.37190475745362245, 1.3963084534300367], [5.0440235274127616, 5.3142025232569576, 20.185236066341929, 133.71240214436162]], [[0.033551333964232759, 0.35067779097829088, 3.1912560565676436, 3.2417126605753483], [202.95427738158952, 1.5079268192195761, 1.208174276544064, 2.7336912367481814], [14.719598594574739, 22.040483514277231, 19.832475844911905, 3.1574261676387616]]]])
5866        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5867        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")

Legend:
Removed from v.553  
changed lines
  Added in v.554

  ViewVC Help
Powered by ViewVC 1.1.26