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

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

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

revision 4083 by jfenwick, Fri Sep 21 02:47:54 2012 UTC revision 4084 by jfenwick, Tue Nov 20 06:22:07 2012 UTC
# Line 68  class Test_util_overloaded_binary_with_t Line 68  class Test_util_overloaded_binary_with_t
68     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
69     def test_add_overloaded_float_rank0_taggedData_rank2(self):     def test_add_overloaded_float_rank0_taggedData_rank2(self):
70        arg0=-0.780040057582        arg0=-0.780040057582
71        arg1=Data(numpy.array([[-0.43060722082989589, 4.9082210391037382, 3.0578289131250784, 3.7154492608955145, -2.3626698799747436], [-0.57744974579734798, 2.4341887960972821, 4.392772957150715, 1.1127940295848067, 0.44760835221981043], [-1.2193145533313352, -4.152462252060988, -4.2706830150788546, 4.5776144799277265, 0.65256256561792725], [-3.5327414050156101, 2.3429801833558228, 1.4911702077299269, 2.8354223660854627, -0.26430257253103662]]),self.functionspace)        arg1=Data(numpy.array([[-0.43060722082989589, 4.9082210391037382, 3.0578289131250784, 3.7154492608955145,
72        arg1.setTaggedValue(1,numpy.array([[0.62130507833962412, -0.60045590874861698, 3.6234790358177822, -3.2788882822646626, -1.7438996590963152], [1.6721327727259316, 2.5390633030555261, 0.2829910346978437, 4.4539799434081377, 4.8840434912316528], [1.0851664329233426, -4.1944097108842797, 4.48550041534744, -0.7995182652802324, 3.135820962425024], [-4.5233071721581997, -1.5517102324890244, 4.3016103217286847, 1.7505119284463921, -1.705700729131002]]))  -2.3626698799747436], [-0.57744974579734798, 2.4341887960972821, 4.392772957150715, 1.1127940295848067, 0.44760835221981043],
73        res=arg0+arg1  [-1.2193145533313352, -4.152462252060988, -4.2706830150788546, 4.5776144799277265, 0.65256256561792725], [-3.5327414050156101,
74        ref=Data(numpy.array([[-1.2106472784119626, 4.1281809815216715, 2.2777888555430117, 2.9354092033134478, -3.1427099375568104], [-1.3574898033794147, 1.6541487385152154, 3.6127328995686483, 0.33275397200273993, -0.3324317053622563], [-1.9993546109134019, -4.9325023096430547, -5.0507230726609214, 3.7975744223456598, -0.12747749196413949], [-4.3127814625976768, 1.5629401257737561, 0.71113015014786018, 2.055382308503396, -1.0443426301131034]]),self.functionspace)  2.3429801833558228, 1.4911702077299269, 2.8354223660854627, -0.26430257253103662]]),self.functionspace)
75        ref.setTaggedValue(1,numpy.array([[-0.15873497924244262, -1.3804959663306837, 2.8434389782357155, -4.0589283398467293, -2.5239397166783819], [0.8920927151438649, 1.7590232454734593, -0.49704902288422304, 3.673939885826071, 4.1040034336495861], [0.30512637534127585, -4.9744497684663465, 3.7054603577653733, -1.5795583228622991, 2.3557809048429572], [-5.3033472297402664, -2.3317502900710911, 3.521570264146618, 0.9704718708643254, -2.4857407867130688]]))        arg1.setTaggedValue(1,numpy.array([[0.62130507833962412, -0.60045590874861698, 3.6234790358177822, -3.2788882822646626,
76    -1.7438996590963152], [1.6721327727259316, 2.5390633030555261, 0.2829910346978437, 4.4539799434081377, 4.8840434912316528],
77    [1.0851664329233426, -4.1944097108842797, 4.48550041534744, -0.7995182652802324, 3.135820962425024], [-4.5233071721581997,
78    -1.5517102324890244, 4.3016103217286847, 1.7505119284463921, -1.705700729131002]]))
79          res=arg0+arg1
80          ref=Data(numpy.array([[-1.2106472784119626, 4.1281809815216715, 2.2777888555430117, 2.9354092033134478,
81    -3.1427099375568104], [-1.3574898033794147, 1.6541487385152154, 3.6127328995686483, 0.33275397200273993, -0.3324317053622563],
82    [-1.9993546109134019, -4.9325023096430547, -5.0507230726609214, 3.7975744223456598, -0.12747749196413949],
83    [-4.3127814625976768, 1.5629401257737561, 0.71113015014786018, 2.055382308503396, -1.0443426301131034]]),self.functionspace)
84          ref.setTaggedValue(1,numpy.array([[-0.15873497924244262, -1.3804959663306837, 2.8434389782357155, -4.0589283398467293,
85    -2.5239397166783819], [0.8920927151438649, 1.7590232454734593, -0.49704902288422304, 3.673939885826071, 4.1040034336495861],
86    [0.30512637534127585, -4.9744497684663465, 3.7054603577653733, -1.5795583228622991, 2.3557809048429572], [-5.3033472297402664,
87    -2.3317502900710911, 3.521570264146618, 0.9704718708643254, -2.4857407867130688]]))
88        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
89        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
90        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
91     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
92     def test_add_overloaded_float_rank0_taggedData_rank3(self):     def test_add_overloaded_float_rank0_taggedData_rank3(self):
93        arg0=-1.25914761233        arg0=-1.25914761233
94        arg1=Data(numpy.array([[[0.19880757909490221, 4.8460446335920828], [-3.1936192381699593, -1.1635220076802821]], [[1.4494533624381942, 2.5120339844502562], [-0.35838448192140149, 1.4590384789751418]], [[1.0904907042678804, -0.067519620819761705], [4.1431187422890794, 4.5472209967452688]], [[-2.5307687929933698, 3.6280121891219128], [1.8967142492061004, -4.9774431504202123]], [[-2.7027107601548082, 4.0579406806771487], [4.7102647693500383, 1.8455023011836724]], [[-0.15878543942385726, -4.674729135281984], [2.4553707998877892, -1.5005871755549594]]]),self.functionspace)        arg1=Data(numpy.array([[[0.19880757909490221, 4.8460446335920828], [-3.1936192381699593, -1.1635220076802821]],
95        arg1.setTaggedValue(1,numpy.array([[[-4.4150211333004101, -4.6483235818952746], [-2.8399942762013075, 4.5545530874004285]], [[-1.0494102272714168, 0.38330716008635868], [0.47865871849273134, 1.9327811922167619]], [[-3.0520059219429161, 4.7770058078546924], [0.42240461921480588, -3.8976847108053612]], [[-0.29672647979847788, -2.6943000503383074], [1.1002722489088104, -3.3713019279768011]], [[2.2759639615152256, 2.2169706569433547], [0.66018965728197632, 1.7904065463009822]], [[-3.4048208571366354, -0.72965243796581802], [-4.2087531569166874, -4.3094586983873393]]]))  [[1.4494533624381942, 2.5120339844502562], [-0.35838448192140149, 1.4590384789751418]], [[1.0904907042678804,
96        res=arg0+arg1  -0.067519620819761705], [4.1431187422890794, 4.5472209967452688]], [[-2.5307687929933698, 3.6280121891219128],
97        ref=Data(numpy.array([[[-1.0603400332361872, 3.5868970212609934], [-4.4527668505010487, -2.4226696200113715]], [[0.19030575010710482, 1.2528863721191668], [-1.6175320942524909, 0.19989086664405242]], [[-0.16865690806320899, -1.3266672331508511], [2.88397112995799, 3.2880733844141794]], [[-3.7899164053244592, 2.3688645767908234], [0.63756663687501103, -6.2365907627513018]], [[-3.9618583724858976, 2.7987930683460593], [3.4511171570189489, 0.58635468885258302]], [[-1.4179330517549467, -5.9338767476130734], [1.1962231875566998, -2.7597347878860488]]]),self.functionspace)  [1.8967142492061004, -4.9774431504202123]], [[-2.7027107601548082, 4.0579406806771487], [4.7102647693500383,
98        ref.setTaggedValue(1,numpy.array([[[-5.6741687456314995, -5.907471194226364], [-4.0991418885323974, 3.2954054750693391]], [[-2.3085578396025062, -0.87584045224473073], [-0.78048889383835807, 0.67363357988567252]], [[-4.3111535342740055, 3.517858195523603], [-0.83674299311628353, -5.1568323231364506]], [[-1.5558740921295673, -3.9534476626693968], [-0.15887536342227904, -4.6304495403078905]], [[1.0168163491841362, 0.95782304461226531], [-0.59895795504911309, 0.53125893396989277]], [[-4.6639684694677248, -1.9888000502969074], [-5.4679007692477768, -5.5686063107184287]]]))  1.8455023011836724]], [[-0.15878543942385726, -4.674729135281984], [2.4553707998877892,
99    -1.5005871755549594]]]),self.functionspace)
100          arg1.setTaggedValue(1,numpy.array([[[-4.4150211333004101, -4.6483235818952746], [-2.8399942762013075,
101    4.5545530874004285]], [[-1.0494102272714168, 0.38330716008635868], [0.47865871849273134, 1.9327811922167619]],
102    [[-3.0520059219429161, 4.7770058078546924], [0.42240461921480588, -3.8976847108053612]], [[-0.29672647979847788,
103    -2.6943000503383074], [1.1002722489088104, -3.3713019279768011]], [[2.2759639615152256, 2.2169706569433547],
104    [0.66018965728197632, 1.7904065463009822]], [[-3.4048208571366354, -0.72965243796581802], [-4.2087531569166874,
105    -4.3094586983873393]]]))
106          res=arg0+arg1
107          ref=Data(numpy.array([[[-1.0603400332361872, 3.5868970212609934], [-4.4527668505010487, -2.4226696200113715]],
108    [[0.19030575010710482, 1.2528863721191668], [-1.6175320942524909, 0.19989086664405242]], [[-0.16865690806320899,
109    -1.3266672331508511], [2.88397112995799, 3.2880733844141794]], [[-3.7899164053244592, 2.3688645767908234],
110    [0.63756663687501103, -6.2365907627513018]], [[-3.9618583724858976, 2.7987930683460593], [3.4511171570189489,
111    0.58635468885258302]], [[-1.4179330517549467, -5.9338767476130734], [1.1962231875566998,
112    -2.7597347878860488]]]),self.functionspace)
113          ref.setTaggedValue(1,numpy.array([[[-5.6741687456314995, -5.907471194226364], [-4.0991418885323974, 3.2954054750693391]],
114    [[-2.3085578396025062, -0.87584045224473073], [-0.78048889383835807, 0.67363357988567252]], [[-4.3111535342740055,
115    3.517858195523603], [-0.83674299311628353, -5.1568323231364506]], [[-1.5558740921295673, -3.9534476626693968],
116    [-0.15887536342227904, -4.6304495403078905]], [[1.0168163491841362, 0.95782304461226531], [-0.59895795504911309,
117    0.53125893396989277]], [[-4.6639684694677248, -1.9888000502969074], [-5.4679007692477768, -5.5686063107184287]]]))
118        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
119        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
120        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
121     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
122     def test_add_overloaded_float_rank0_taggedData_rank4(self):     def test_add_overloaded_float_rank0_taggedData_rank4(self):
123        arg0=0.258837220901        arg0=0.258837220901
124        arg1=Data(numpy.array([[[[3.8062917703913275, 1.5925302766342977, 2.375938618782051, 4.8408768651589646], [2.3442481475157093, -2.7496872132044894, 0.42271389992884512, -4.6454317947654209], [0.25224402422534897, 4.4179040454873881, -4.1624635493109476, -2.8403555046960669]], [[-1.7402014581620042, -0.39647776942146074, 1.6582392346191055, 0.95100047115282837], [-2.5115869863610718, -4.0631674532788677, -3.3491982210982729, -0.79371461870273752], [-3.8811105449584025, -4.7756827547949623, -3.0355606009359448, -3.4495126246826024]]], [[[0.54052831056647754, 1.3131371291603413, 1.5109369820155161, -4.5038693330152828], [-2.7757717507070034, -3.4702732547886708, -4.0345723932511053, -1.5176135064856702], [0.20132378821251606, -1.3011996084005704, -3.3627285656617367, -3.8790318668262955]], [[-2.8343704701651595, -3.2040830091023831, 1.7955913209143679, -1.1120062362187557], [2.4678677745222242, 4.6779889710192393, -2.9039968423280191, 4.5620672547251822], [-2.9707917064914815, 0.40203349974764357, -4.1595643750239395, -4.8398423972146425]]], [[[0.90209465588452176, 0.25241726058184, 0.82206430484315174, 0.23910272220713846], [1.1998005688428934, 2.7432470837000986, 3.405738144982422, 2.2153056603059262], [4.2665609582282773, -2.4440559784399052, -0.21844804372131499, -2.6740342714550636]], [[-0.35286002435519581, -3.2544391698145017, 1.6101760802462861, 2.852727295232742], [3.3031205880381211, -4.0910259111112541, -3.572261502523383, -1.6576439736314965], [-4.0708535566068971, 0.89830610466834404, -2.1444076751959695, -4.5363920893045249]]]]),self.functionspace)        arg1=Data(numpy.array([[[[3.8062917703913275, 1.5925302766342977, 2.375938618782051, 4.8408768651589646],
125        arg1.setTaggedValue(1,numpy.array([[[[3.1767399278718287, -4.6569253000973454, -3.0756556601909657, -1.1833991361679908], [1.0050292771371456, 4.4691598561558283, -1.7916826017675005, -4.7342403422875856], [-0.7786507136749119, 1.6960644379951892, 3.3133891953253585, 1.7522779008527145]], [[4.3662508335717725, -0.48897498526348748, -3.8147567535836204, 1.6120397979566716], [-3.1407449215468439, 3.783252247124409, 0.53165610812556174, -4.8767350509416021], [3.3399571491607158, -3.5835576415323525, -4.7823600282016088, -3.9888663220494758]]], [[[-0.70505421666153545, -0.96931454128354222, 3.5579576363997862, -4.8922170382559234], [-1.0101891756408499, 4.0449327618070345, 1.4287287933352335, 2.7932127127424602], [-1.1844659178082537, -3.1172167429375932, 3.7586512122849509, -1.9672827094129763]], [[-0.19893429465188639, -4.5909962617427658, 4.8074518840957854, 0.3484829166820882], [-4.6647394483178628, -2.4786438939387256, 3.3568201792741235, -2.64715841657718], [-1.2323878832119703, 4.4122940094846452, 4.1747597400695202, 1.495047169558279]]], [[[-1.2345115692788191, 2.7793548546816895, -4.1091272044165015, 0.99053747681914128], [1.9767217399787373, 0.56366188553849472, -2.4759659981403725, -0.57675651539819661], [-2.3169645738968283, 1.2766938617838406, 4.2235507133142391, -1.8551394597968351]], [[-4.7213055834195528, 4.5081688737256265, 2.9347524827688005, 0.84567000788663726], [4.9663286321498799, -2.4877697764151128, 3.1377121807484567, -3.4121462498955077], [-0.99483360775740248, -1.9631730125917768, 0.015480068819933024, -3.8237441774442193]]]]))  [2.3442481475157093, -2.7496872132044894, 0.42271389992884512, -4.6454317947654209], [0.25224402422534897, 4.4179040454873881,
126        res=arg0+arg1  -4.1624635493109476, -2.8403555046960669]], [[-1.7402014581620042, -0.39647776942146074, 1.6582392346191055,
127        ref=Data(numpy.array([[[[4.0651289912922941, 1.8513674975352643, 2.6347758396830177, 5.0997140860599313], [2.6030853684166759, -2.4908499923035228, 0.68155112082981173, -4.3865945738644543], [0.51108124512631559, 4.6767412663883547, -3.903626328409981, -2.5815182837951003]], [[-1.4813642372610376, -0.13764054852049412, 1.9170764555200721, 1.209837692053795], [-2.2527497654601052, -3.8043302323779011, -3.0903610001973063, -0.5348773978017709], [-3.6222733240574359, -4.5168455338939957, -2.7767233800349782, -3.1906754037816358]]], [[[0.79936553146744416, 1.5719743500613079, 1.7697742029164827, -4.2450321121143162], [-2.5169345298060368, -3.2114360338877042, -3.7757351723501387, -1.2587762855847036], [0.46016100911348268, -1.0423623874996037, -3.1038913447607701, -3.6201946459253289]], [[-2.5755332492641929, -2.9452457882014165, 2.0544285418153345, -0.8531690153177891], [2.7267049954231908, 4.9368261919202059, -2.6451596214270525, 4.8209044756261488], [-2.7119544855905149, 0.66087072064861019, -3.9007271541229729, -4.5810051763136759]]], [[[1.1609318767854884, 0.51125448148280661, 1.0809015257441184, 0.49793994310810508], [1.45863778974386, 3.0020843046010652, 3.6645753658833886, 2.4741428812068929], [4.5253981791292439, -2.1852187575389386, 0.040389177179651625, -2.4151970505540969]], [[-0.094022803454229198, -2.995601948913535, 1.8690133011472527, 3.1115645161337087], [3.5619578089390878, -3.8321886902102875, -3.3134242816224164, -1.3988067527305299], [-3.8120163357059305, 1.1571433255693107, -1.8855704542950029, -4.2775548684035583]]]]),self.functionspace)  0.95100047115282837], [-2.5115869863610718, -4.0631674532788677, -3.3491982210982729, -0.79371461870273752],
128        ref.setTaggedValue(1,numpy.array([[[[3.4355771487727953, -4.3980880791963788, -2.8168184392899991, -0.92456191526702414], [1.2638664980381122, 4.727997077056795, -1.5328453808665339, -4.475403121386619], [-0.51981349277394528, 1.9549016588961559, 3.5722264162263251, 2.0111151217536811]], [[4.6250880544727391, -0.23013776436252087, -3.5559195326826538, 1.8708770188576382], [-2.8819077006458773, 4.0420894680253756, 0.79049332902652836, -4.6178978300406355], [3.5987943700616825, -3.3247204206313858, -4.5235228073006422, -3.7300291011485092]]], [[[-0.44621699576056884, -0.71047732038257561, 3.8167948573007529, -4.6333798173549567], [-0.75135195473988325, 4.3037699827080012, 1.6875660142362001, 3.0520499336434268], [-0.92562869690728711, -2.8583795220366266, 4.0174884331859175, -1.7084454885120097]], [[0.059902926249080224, -4.3321590408417991, 5.066289104996752, 0.60732013758305481], [-4.4059022274168962, -2.219806673037759, 3.6156574001750901, -2.3883211956762134], [-0.97355066231100373, 4.6711312303856118, 4.4335969609704868, 1.7538843904592456]]], [[[-0.9756743483778525, 3.0381920755826561, -3.8502899835155349, 1.2493746977201079], [2.235558960879704, 0.82249910643946134, -2.2171287772394059, -0.31791929449723], [-2.0581273529958617, 1.5355310826848072, 4.4823879342152058, -1.5963022388958685]], [[-4.4624683625185861, 4.7670060946265931, 3.1935897036697671, 1.1045072287876039], [5.2251658530508465, -2.2289325555141462, 3.3965494016494233, -3.1533090289945411], [-0.73599638685643587, -1.7043357916908102, 0.27431728972089964, -3.5649069565432527]]]]))  [-3.8811105449584025, -4.7756827547949623, -3.0355606009359448, -3.4495126246826024]]], [[[0.54052831056647754,
129    1.3131371291603413, 1.5109369820155161, -4.5038693330152828], [-2.7757717507070034, -3.4702732547886708, -4.0345723932511053,
130    -1.5176135064856702], [0.20132378821251606, -1.3011996084005704, -3.3627285656617367, -3.8790318668262955]],
131    [[-2.8343704701651595, -3.2040830091023831, 1.7955913209143679, -1.1120062362187557], [2.4678677745222242, 4.6779889710192393,
132    -2.9039968423280191, 4.5620672547251822], [-2.9707917064914815, 0.40203349974764357, -4.1595643750239395,
133    -4.8398423972146425]]], [[[0.90209465588452176, 0.25241726058184, 0.82206430484315174, 0.23910272220713846],
134    [1.1998005688428934, 2.7432470837000986, 3.405738144982422, 2.2153056603059262], [4.2665609582282773, -2.4440559784399052,
135    -0.21844804372131499, -2.6740342714550636]], [[-0.35286002435519581, -3.2544391698145017, 1.6101760802462861,
136    2.852727295232742], [3.3031205880381211, -4.0910259111112541, -3.572261502523383, -1.6576439736314965], [-4.0708535566068971,
137    0.89830610466834404, -2.1444076751959695, -4.5363920893045249]]]]),self.functionspace)
138          arg1.setTaggedValue(1,numpy.array([[[[3.1767399278718287, -4.6569253000973454, -3.0756556601909657, -1.1833991361679908],
139    [1.0050292771371456, 4.4691598561558283, -1.7916826017675005, -4.7342403422875856], [-0.7786507136749119, 1.6960644379951892,
140    3.3133891953253585, 1.7522779008527145]], [[4.3662508335717725, -0.48897498526348748, -3.8147567535836204, 1.6120397979566716],
141    [-3.1407449215468439, 3.783252247124409, 0.53165610812556174, -4.8767350509416021], [3.3399571491607158, -3.5835576415323525,
142    -4.7823600282016088, -3.9888663220494758]]], [[[-0.70505421666153545, -0.96931454128354222, 3.5579576363997862,
143    -4.8922170382559234], [-1.0101891756408499, 4.0449327618070345, 1.4287287933352335, 2.7932127127424602], [-1.1844659178082537,
144    -3.1172167429375932, 3.7586512122849509, -1.9672827094129763]], [[-0.19893429465188639, -4.5909962617427658,
145    4.8074518840957854, 0.3484829166820882], [-4.6647394483178628, -2.4786438939387256, 3.3568201792741235, -2.64715841657718],
146    [-1.2323878832119703, 4.4122940094846452, 4.1747597400695202, 1.495047169558279]]], [[[-1.2345115692788191, 2.7793548546816895,
147    -4.1091272044165015, 0.99053747681914128], [1.9767217399787373, 0.56366188553849472, -2.4759659981403725,
148    -0.57675651539819661], [-2.3169645738968283, 1.2766938617838406, 4.2235507133142391, -1.8551394597968351]],
149    [[-4.7213055834195528, 4.5081688737256265, 2.9347524827688005, 0.84567000788663726], [4.9663286321498799, -2.4877697764151128,
150    3.1377121807484567, -3.4121462498955077], [-0.99483360775740248, -1.9631730125917768, 0.015480068819933024,
151    -3.8237441774442193]]]]))
152          res=arg0+arg1
153          ref=Data(numpy.array([[[[4.0651289912922941, 1.8513674975352643, 2.6347758396830177, 5.0997140860599313],
154    [2.6030853684166759, -2.4908499923035228, 0.68155112082981173, -4.3865945738644543], [0.51108124512631559, 4.6767412663883547,
155    -3.903626328409981, -2.5815182837951003]], [[-1.4813642372610376, -0.13764054852049412, 1.9170764555200721, 1.209837692053795],
156    [-2.2527497654601052, -3.8043302323779011, -3.0903610001973063, -0.5348773978017709], [-3.6222733240574359,
157    -4.5168455338939957, -2.7767233800349782, -3.1906754037816358]]], [[[0.79936553146744416, 1.5719743500613079,
158    1.7697742029164827, -4.2450321121143162], [-2.5169345298060368, -3.2114360338877042, -3.7757351723501387, -1.2587762855847036],
159    [0.46016100911348268, -1.0423623874996037, -3.1038913447607701, -3.6201946459253289]], [[-2.5755332492641929,
160    -2.9452457882014165, 2.0544285418153345, -0.8531690153177891], [2.7267049954231908, 4.9368261919202059, -2.6451596214270525,
161    4.8209044756261488], [-2.7119544855905149, 0.66087072064861019, -3.9007271541229729, -4.5810051763136759]]],
162    [[[1.1609318767854884, 0.51125448148280661, 1.0809015257441184, 0.49793994310810508], [1.45863778974386, 3.0020843046010652,
163    3.6645753658833886, 2.4741428812068929], [4.5253981791292439, -2.1852187575389386, 0.040389177179651625, -2.4151970505540969]],
164    [[-0.094022803454229198, -2.995601948913535, 1.8690133011472527, 3.1115645161337087], [3.5619578089390878, -3.8321886902102875,
165    -3.3134242816224164, -1.3988067527305299], [-3.8120163357059305, 1.1571433255693107, -1.8855704542950029,
166    -4.2775548684035583]]]]),self.functionspace)
167          ref.setTaggedValue(1,numpy.array([[[[3.4355771487727953, -4.3980880791963788, -2.8168184392899991, -0.92456191526702414],
168    [1.2638664980381122, 4.727997077056795, -1.5328453808665339, -4.475403121386619], [-0.51981349277394528, 1.9549016588961559,
169    3.5722264162263251, 2.0111151217536811]], [[4.6250880544727391, -0.23013776436252087, -3.5559195326826538, 1.8708770188576382],
170    [-2.8819077006458773, 4.0420894680253756, 0.79049332902652836, -4.6178978300406355], [3.5987943700616825, -3.3247204206313858,
171    -4.5235228073006422, -3.7300291011485092]]], [[[-0.44621699576056884, -0.71047732038257561, 3.8167948573007529,
172    -4.6333798173549567], [-0.75135195473988325, 4.3037699827080012, 1.6875660142362001, 3.0520499336434268],
173    [-0.92562869690728711, -2.8583795220366266, 4.0174884331859175, -1.7084454885120097]], [[0.059902926249080224,
174    -4.3321590408417991, 5.066289104996752, 0.60732013758305481], [-4.4059022274168962, -2.219806673037759, 3.6156574001750901,
175    -2.3883211956762134], [-0.97355066231100373, 4.6711312303856118, 4.4335969609704868, 1.7538843904592456]]],
176    [[[-0.9756743483778525, 3.0381920755826561, -3.8502899835155349, 1.2493746977201079], [2.235558960879704, 0.82249910643946134,
177    -2.2171287772394059, -0.31791929449723], [-2.0581273529958617, 1.5355310826848072, 4.4823879342152058, -1.5963022388958685]],
178    [[-4.4624683625185861, 4.7670060946265931, 3.1935897036697671, 1.1045072287876039], [5.2251658530508465, -2.2289325555141462,
179    3.3965494016494233, -3.1533090289945411], [-0.73599638685643587, -1.7043357916908102, 0.27431728972089964,
180    -3.5649069565432527]]]]))
181        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
182        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
183        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
# Line 123  class Test_util_overloaded_binary_with_t Line 206  class Test_util_overloaded_binary_with_t
206     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
207     def test_add_overloaded_constData_rank0_taggedData_rank2(self):     def test_add_overloaded_constData_rank0_taggedData_rank2(self):
208        arg0=Data(4.19816380923,self.functionspace)        arg0=Data(4.19816380923,self.functionspace)
209        arg1=Data(numpy.array([[-4.7192788556165777, 0.96664005764470229, -3.5536084501834408, -4.0765460640065072, -1.661066134307092], [-1.8698305076456467, 1.3585630353673768, -2.9520256153421887, -4.0115384815141901, 4.1648807596676622], [0.52651496482039839, 4.5335182579006243, 1.5182681645431, -2.0386298757410359, 1.3497292187808991], [3.3327260230683571, -0.49979354291428546, 2.1074572526054176, -2.3550325002712693, 2.273541867139822]]),self.functionspace)        arg1=Data(numpy.array([[-4.7192788556165777, 0.96664005764470229, -3.5536084501834408, -4.0765460640065072,
210        arg1.setTaggedValue(1,numpy.array([[2.0517873872737935, 0.38787431151255269, 3.5863158456115105, 2.3662852559311744, 4.0659321476022274], [-3.1739511723873095, -1.2814654983823082, 1.0017851807449105, -3.5533612778457471, -2.2221538754612635], [0.84394690277536544, -3.1120306326191924, 0.27412555780823489, -2.035372239239428, -0.66379142365820076], [3.9021924769148715, 3.0731542562026597, -1.1750835017113772, -3.8392491786372251, -1.8483038189693612]]))  -1.661066134307092], [-1.8698305076456467, 1.3585630353673768, -2.9520256153421887, -4.0115384815141901, 4.1648807596676622],
211        res=arg0+arg1  [0.52651496482039839, 4.5335182579006243, 1.5182681645431, -2.0386298757410359, 1.3497292187808991], [3.3327260230683571,
212        ref=Data(numpy.array([[-0.52111504638209638, 5.1648038668791836, 0.64455535905104044, 0.12161774522797408, 2.5370976749273892], [2.3283333015888346, 5.5567268446018581, 1.2461381938922926, 0.18662532772029117, 8.3630445689021435], [4.7246787740548797, 8.7316820671351056, 5.7164319737775813, 2.1595339334934454, 5.5478930280153804], [7.5308898323028384, 3.6983702663201958, 6.3056210618398989, 1.843131308963212, 6.4717056763743033]]),self.functionspace)  -0.49979354291428546, 2.1074572526054176, -2.3550325002712693, 2.273541867139822]]),self.functionspace)
213        ref.setTaggedValue(1,numpy.array([[6.2499511965082748, 4.586038120747034, 7.7844796548459918, 6.5644490651656557, 8.2640959568367087], [1.0242126368471718, 2.9166983108521731, 5.1999489899793918, 0.64480253138873422, 1.9760099337732178], [5.0421107120098467, 1.0861331766152889, 4.4722893670427162, 2.1627915699950533, 3.5343723855762805], [8.1003562861493528, 7.271318065437141, 3.0230803075231041, 0.35891463059725615, 2.34985999026512]]))        arg1.setTaggedValue(1,numpy.array([[2.0517873872737935, 0.38787431151255269, 3.5863158456115105, 2.3662852559311744,
214    4.0659321476022274], [-3.1739511723873095, -1.2814654983823082, 1.0017851807449105, -3.5533612778457471, -2.2221538754612635],
215    [0.84394690277536544, -3.1120306326191924, 0.27412555780823489, -2.035372239239428, -0.66379142365820076], [3.9021924769148715,
216    3.0731542562026597, -1.1750835017113772, -3.8392491786372251, -1.8483038189693612]]))
217          res=arg0+arg1
218          ref=Data(numpy.array([[-0.52111504638209638, 5.1648038668791836, 0.64455535905104044, 0.12161774522797408,
219    2.5370976749273892], [2.3283333015888346, 5.5567268446018581, 1.2461381938922926, 0.18662532772029117, 8.3630445689021435],
220    [4.7246787740548797, 8.7316820671351056, 5.7164319737775813, 2.1595339334934454, 5.5478930280153804], [7.5308898323028384,
221    3.6983702663201958, 6.3056210618398989, 1.843131308963212, 6.4717056763743033]]),self.functionspace)
222          ref.setTaggedValue(1,numpy.array([[6.2499511965082748, 4.586038120747034, 7.7844796548459918, 6.5644490651656557,
223    8.2640959568367087], [1.0242126368471718, 2.9166983108521731, 5.1999489899793918, 0.64480253138873422, 1.9760099337732178],
224    [5.0421107120098467, 1.0861331766152889, 4.4722893670427162, 2.1627915699950533, 3.5343723855762805], [8.1003562861493528,
225    7.271318065437141, 3.0230803075231041, 0.35891463059725615, 2.34985999026512]]))
226        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
227        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
228        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
229     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
230     def test_add_overloaded_constData_rank0_taggedData_rank3(self):     def test_add_overloaded_constData_rank0_taggedData_rank3(self):
231        arg0=Data(3.89946370173,self.functionspace)        arg0=Data(3.89946370173,self.functionspace)
232        arg1=Data(numpy.array([[[-2.958761930822206, 3.1298083647148758], [1.0740766505503316, -0.56319010720496898]], [[-1.7943140652533938, 3.690403381090702], [0.36937042492057159, 3.2658468930198374]], [[1.8835789033218173, -1.4148302296368787], [-3.5673817752537063, -2.2485863527891392]], [[0.16128627738663681, 3.0703162517774825], [3.7378380068614732, 3.9111432927270524]], [[-2.1021476970927955, 3.0961226816017913], [0.68225570534855073, 3.1886903197536505]], [[-3.2791062855901467, 1.0997870451532412], [-3.4354171329994623, -4.2682463123274079]]]),self.functionspace)        arg1=Data(numpy.array([[[-2.958761930822206, 3.1298083647148758], [1.0740766505503316, -0.56319010720496898]],
233        arg1.setTaggedValue(1,numpy.array([[[-2.0234674745266847, -3.7749655132841555], [-2.1362659699809128, 2.474175793074985]], [[2.5297943416808, -2.1243559170453974], [-3.4313241405664572, 0.34198337719133054]], [[-3.9325455447252953, 4.7074989384395032], [3.9514592903761727, 0.92749369879626808]], [[2.3893484525653763, -2.9348922671770907], [3.4801665184590522, 1.4061197053956462]], [[3.2979060909501019, -3.4211971590117596], [-2.634829438986559, -2.6073070108817142]], [[-2.1869149767885343, 4.8263853115242767], [0.23104772756879122, 2.7034659990243881]]]))  [[-1.7943140652533938, 3.690403381090702], [0.36937042492057159, 3.2658468930198374]], [[1.8835789033218173,
234        res=arg0+arg1  -1.4148302296368787], [-3.5673817752537063, -2.2485863527891392]], [[0.16128627738663681, 3.0703162517774825],
235        ref=Data(numpy.array([[[0.94070177090306473, 7.0292720664401465], [4.9735403522756023, 3.3362735945203017]], [[2.1051496364718769, 7.5898670828159727], [4.2688341266458423, 7.1653105947451081]], [[5.783042605047088, 2.484633472088392], [0.33208192647156443, 1.6508773489361315]], [[4.0607499791119075, 6.9697799535027531], [7.6373017085867438, 7.8106069944523231]], [[1.7973160046324752, 6.995586383327062], [4.5817194070738214, 7.0881540214789212]], [[0.62035741613512396, 4.9992507468785119], [0.46404656872580841, -0.36878261060213724]]]),self.functionspace)  [3.7378380068614732, 3.9111432927270524]], [[-2.1021476970927955, 3.0961226816017913], [0.68225570534855073,
236        ref.setTaggedValue(1,numpy.array([[[1.8759962271985859, 0.12449818844111515], [1.7631977317443579, 6.3736394948002557]], [[6.4292580434060707, 1.7751077846798733], [0.4681395611588135, 4.2414470789166012]], [[-0.033081843000024591, 8.6069626401647739], [7.8509229921014434, 4.8269574005215388]], [[6.288812154290647, 0.96457143454817995], [7.3796302201843229, 5.3055834071209169]], [[7.1973697926753726, 0.4782665427135111], [1.2646342627387117, 1.2921566908435564]], [[1.7125487249367364, 8.7258490132495474], [4.1305114292940619, 6.6029297007496588]]]))  3.1886903197536505]], [[-3.2791062855901467, 1.0997870451532412], [-3.4354171329994623,
237    -4.2682463123274079]]]),self.functionspace)
238          arg1.setTaggedValue(1,numpy.array([[[-2.0234674745266847, -3.7749655132841555], [-2.1362659699809128,
239    2.474175793074985]], [[2.5297943416808, -2.1243559170453974], [-3.4313241405664572, 0.34198337719133054]],
240    [[-3.9325455447252953, 4.7074989384395032], [3.9514592903761727, 0.92749369879626808]], [[2.3893484525653763,
241    -2.9348922671770907], [3.4801665184590522, 1.4061197053956462]], [[3.2979060909501019, -3.4211971590117596],
242    [-2.634829438986559, -2.6073070108817142]], [[-2.1869149767885343, 4.8263853115242767], [0.23104772756879122,
243    2.7034659990243881]]]))
244          res=arg0+arg1
245          ref=Data(numpy.array([[[0.94070177090306473, 7.0292720664401465], [4.9735403522756023, 3.3362735945203017]],
246    [[2.1051496364718769, 7.5898670828159727], [4.2688341266458423, 7.1653105947451081]], [[5.783042605047088, 2.484633472088392],
247    [0.33208192647156443, 1.6508773489361315]], [[4.0607499791119075, 6.9697799535027531], [7.6373017085867438,
248    7.8106069944523231]], [[1.7973160046324752, 6.995586383327062], [4.5817194070738214, 7.0881540214789212]],
249    [[0.62035741613512396, 4.9992507468785119], [0.46404656872580841, -0.36878261060213724]]]),self.functionspace)
250          ref.setTaggedValue(1,numpy.array([[[1.8759962271985859, 0.12449818844111515], [1.7631977317443579, 6.3736394948002557]],
251    [[6.4292580434060707, 1.7751077846798733], [0.4681395611588135, 4.2414470789166012]], [[-0.033081843000024591,
252    8.6069626401647739], [7.8509229921014434, 4.8269574005215388]], [[6.288812154290647, 0.96457143454817995], [7.3796302201843229,
253    5.3055834071209169]], [[7.1973697926753726, 0.4782665427135111], [1.2646342627387117, 1.2921566908435564]],
254    [[1.7125487249367364, 8.7258490132495474], [4.1305114292940619, 6.6029297007496588]]]))
255        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
256        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
257        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
258     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
259     def test_add_overloaded_constData_rank0_taggedData_rank4(self):     def test_add_overloaded_constData_rank0_taggedData_rank4(self):
260        arg0=Data(4.13858568877,self.functionspace)        arg0=Data(4.13858568877,self.functionspace)
261        arg1=Data(numpy.array([[[[0.13175013949509395, 1.3587679164977704, 1.230138204659478, 1.6198580303286221], [1.5153336575053098, -4.2526602333060337, -2.3168164343901312, 1.3904766393917001], [-4.7958861831605004, 1.2701544083884784, -1.6823608322632033, -1.7201124691387335]], [[4.6468317780236443, 4.4127955763926092, 0.31673493242051265, -2.8905384569080228], [-2.7913299715813524, -0.3374615600001647, -0.01446183703812487, 1.2161604506861723], [-0.91940202299142371, -1.9567662570206745, 0.031137893828368846, -2.5209323098234182]]], [[[-0.031722186835536625, -1.1948269447712869, 3.9794746474538361, 0.98566305681893951], [2.2904104445616404, -4.0514518037958602, -4.7984963012094486, 3.2249867504024508], [1.0109233879894894, 2.2623268701952393, -1.4339465114083092, 2.0614584017864592]], [[4.3344566195583063, 1.6406524222057639, 1.5922292351054921, 3.3529595245331709], [-0.15022125891499183, -3.6179617746160773, 4.2196942009020848, 1.4409116931856261], [4.4422587441753301, 2.0033045455934273, 3.7037373472747142, -2.504798746956578]]], [[[-3.3600706973199337, 1.6542963995949487, -3.3948661029138405, -0.97633586924857152], [3.2449158099150548, -1.0094062333732468, -1.9883401045866114, -2.8575077660346269], [3.8328322929814416, -0.36894673930713928, -2.1777279139379679, 3.9748750412071558]], [[0.71205519166902143, 2.7874466298425258, -4.3775332948678507, 2.7582637172786972], [3.0658466748756403, -3.7775671377240618, -4.3030172803829023, -4.1024191753816339], [3.4660156077327304, -1.5408899094499242, -0.45273239596408921, 4.1942719729845308]]]]),self.functionspace)        arg1=Data(numpy.array([[[[0.13175013949509395, 1.3587679164977704, 1.230138204659478, 1.6198580303286221],
262        arg1.setTaggedValue(1,numpy.array([[[[1.7078293929986188, 1.597184054166445, 0.53172139995994705, 0.37598767762412866], [-4.7153868472501923, -4.836115964305848, 3.3382192795335737, 0.32916380702422288], [-1.042832518792137, -2.5933137193252485, -4.9571485633186949, 2.38472674259289]], [[-2.5277161336880551, 2.3036719277395008, 1.8451909915911973, -1.7104640528407842], [4.789616256307923, 4.615854384167438, 1.4240273080754857, -1.5109891694225466], [3.5444680569850604, 3.2153528591575338, -1.8778645807771688, -3.4211520168783571]]], [[[2.0279600181836734, 1.3913400074142395, 4.7266972207219258, -0.041751739987586411], [4.4694412096063054, -0.20301014054466915, -1.4400390824000087, -1.3937378294351612], [-4.2164692430070074, 0.32301335083063698, -0.38037743922377842, 3.394970950833363]], [[-0.42098850226019113, 3.4618707762478937, -3.2891591601163315, -4.6415242845849694], [3.7322526190152701, -0.37586050159968831, 1.0289109951324695, 0.37112092161696086], [-4.6466108515169324, -3.4039550614647771, 0.38514840891958535, -4.1255144542454589]]], [[[4.4409907142382679, -4.0885450651543387, 2.5510413569729584, 2.0454434817263518], [4.4376165821152895, -2.6852229033020136, 0.21782034539436257, 2.4970368184639957], [-3.0162244468929513, -2.38809874101951, 3.8343147304687317, 0.52050559575242428]], [[2.5529377889837477, 0.38395922477480493, -3.9715068749558267, 2.6328023561731193], [0.60295943010967434, -1.3993044422742642, 4.7889894291480886, 0.3603777140784814], [-2.6294316083078542, 2.4753104938309303, 0.45790305184353119, 2.1547344969887909]]]]))  [1.5153336575053098, -4.2526602333060337, -2.3168164343901312, 1.3904766393917001], [-4.7958861831605004, 1.2701544083884784,
263        res=arg0+arg1  -1.6823608322632033, -1.7201124691387335]], [[4.6468317780236443, 4.4127955763926092, 0.31673493242051265,
264        ref=Data(numpy.array([[[[4.2703358282612038, 5.4973536052638803, 5.3687238934255879, 5.758443719094732], [5.6539193462714197, -0.11407454453992383, 1.8217692543759787, 5.52906232815781], [-0.65730049439439053, 5.4087400971545883, 2.4562248565029066, 2.4184732196273764]], [[8.7854174667897542, 8.5513812651587191, 4.4553206211866225, 1.2480472318580871], [1.3472557171847575, 3.8011241287659452, 4.124123851727985, 5.3547461394522822], [3.2191836657746862, 2.1818194317454354, 4.1697235825944787, 1.6176533789426917]]], [[[4.1068635019305733, 2.943758743994823, 8.1180603362199459, 5.1242487455850494], [6.4289961333277503, 0.087133884970249653, -0.65991061244333871, 7.3635724391685606], [5.1495090767555993, 6.4009125589613491, 2.7046391773578007, 6.2000440905525691]], [[8.4730423083244162, 5.7792381109718738, 5.730814923871602, 7.4915452132992808], [3.9883644298511181, 0.52062391415003262, 8.3582798896681947, 5.5794973819517359], [8.5808444329414399, 6.1418902343595372, 7.842323036040824, 1.6337869418095319]]], [[[0.7785149914461762, 5.7928820883610586, 0.74371958585226938, 3.1622498195175384], [7.3835014986811647, 3.1291794553928631, 2.1502455841794985, 1.281077922731483], [7.9714179817475515, 3.7696389494589706, 1.9608577748281419, 8.1134607299732657]], [[4.8506408804351313, 6.9260323186086357, -0.23894760610174082, 6.8968494060448071], [7.2044323636417502, 0.36101855104204805, -0.16443159161679244, 0.036166513384475962], [7.6046012964988403, 2.5976957793161857, 3.6858532928020207, 8.3328576617506407]]]]),self.functionspace)  -2.8905384569080228], [-2.7913299715813524, -0.3374615600001647, -0.01446183703812487, 1.2161604506861723],
265        ref.setTaggedValue(1,numpy.array([[[[5.8464150817647287, 5.7357697429325549, 4.6703070887260569, 4.5145733663902385], [-0.57680115848408242, -0.69753027553973812, 7.4768049682996836, 4.4677494957903328], [3.0957531699739729, 1.5452719694408614, -0.81856287455258503, 6.5233124313589999]], [[1.6108695550780547, 6.4422576165056107, 5.9837766803573071, 2.4281216359253257], [8.9282019450740329, 8.7544400729335479, 5.5626129968415956, 2.6275965193435633], [7.6830537457511703, 7.3539385479236437, 2.2607211079889411, 0.71743367188775276]]], [[[6.1665457069497833, 5.5299256961803493, 8.8652829094880357, 4.0968339487785235], [8.6080268983724153, 3.9355755482214407, 2.6985466063661012, 2.7448478593309487], [-0.077883554240897546, 4.4615990395967469, 3.7582082495423315, 7.5335566395994729]], [[3.7175971865059187, 7.6004564650140036, 0.84942652864977841, -0.50293859581885947], [7.8708383077813799, 3.7627251871664216, 5.1674966838985794, 4.5097066103830707], [-0.50802516275082255, 0.73463062730133277, 4.5237340976856952, 0.013071234520650954]]], [[[8.5795764030043777, 0.050040623611771196, 6.6896270457390683, 6.1840291704924617], [8.5762022708813994, 1.4533627854640963, 4.3564060341604725, 6.6356225072301056], [1.1223612418731586, 1.7504869477465999, 7.9729004192348416, 4.6590912845185342]], [[6.6915234777498576, 4.5225449135409148, 0.16707881381028322, 6.7713880449392292], [4.7415451188757842, 2.7392812464918457, 8.9275751179141984, 4.4989634028445913], [1.5091540804582557, 6.6138961825970402, 4.5964887406096411, 6.2933201857549008]]]]))  [-0.91940202299142371, -1.9567662570206745, 0.031137893828368846, -2.5209323098234182]]], [[[-0.031722186835536625,
266    -1.1948269447712869, 3.9794746474538361, 0.98566305681893951], [2.2904104445616404, -4.0514518037958602, -4.7984963012094486,
267    3.2249867504024508], [1.0109233879894894, 2.2623268701952393, -1.4339465114083092, 2.0614584017864592]], [[4.3344566195583063,
268    1.6406524222057639, 1.5922292351054921, 3.3529595245331709], [-0.15022125891499183, -3.6179617746160773, 4.2196942009020848,
269    1.4409116931856261], [4.4422587441753301, 2.0033045455934273, 3.7037373472747142, -2.504798746956578]]],
270    [[[-3.3600706973199337, 1.6542963995949487, -3.3948661029138405, -0.97633586924857152], [3.2449158099150548,
271    -1.0094062333732468, -1.9883401045866114, -2.8575077660346269], [3.8328322929814416, -0.36894673930713928, -2.1777279139379679,
272    3.9748750412071558]], [[0.71205519166902143, 2.7874466298425258, -4.3775332948678507, 2.7582637172786972], [3.0658466748756403,
273    -3.7775671377240618, -4.3030172803829023, -4.1024191753816339], [3.4660156077327304, -1.5408899094499242, -0.45273239596408921,
274    4.1942719729845308]]]]),self.functionspace)
275          arg1.setTaggedValue(1,numpy.array([[[[1.7078293929986188, 1.597184054166445, 0.53172139995994705, 0.37598767762412866],
276    [-4.7153868472501923, -4.836115964305848, 3.3382192795335737, 0.32916380702422288], [-1.042832518792137, -2.5933137193252485,
277    -4.9571485633186949, 2.38472674259289]], [[-2.5277161336880551, 2.3036719277395008, 1.8451909915911973, -1.7104640528407842],
278    [4.789616256307923, 4.615854384167438, 1.4240273080754857, -1.5109891694225466], [3.5444680569850604, 3.2153528591575338,
279    -1.8778645807771688, -3.4211520168783571]]], [[[2.0279600181836734, 1.3913400074142395, 4.7266972207219258,
280    -0.041751739987586411], [4.4694412096063054, -0.20301014054466915, -1.4400390824000087, -1.3937378294351612],
281    [-4.2164692430070074, 0.32301335083063698, -0.38037743922377842, 3.394970950833363]], [[-0.42098850226019113,
282    3.4618707762478937, -3.2891591601163315, -4.6415242845849694], [3.7322526190152701, -0.37586050159968831, 1.0289109951324695,
283    0.37112092161696086], [-4.6466108515169324, -3.4039550614647771, 0.38514840891958535, -4.1255144542454589]]],
284    [[[4.4409907142382679, -4.0885450651543387, 2.5510413569729584, 2.0454434817263518], [4.4376165821152895, -2.6852229033020136,
285    0.21782034539436257, 2.4970368184639957], [-3.0162244468929513, -2.38809874101951, 3.8343147304687317, 0.52050559575242428]],
286    [[2.5529377889837477, 0.38395922477480493, -3.9715068749558267, 2.6328023561731193], [0.60295943010967434, -1.3993044422742642,
287    4.7889894291480886, 0.3603777140784814], [-2.6294316083078542, 2.4753104938309303, 0.45790305184353119, 2.1547344969887909]]]]))
288          res=arg0+arg1
289          ref=Data(numpy.array([[[[4.2703358282612038, 5.4973536052638803, 5.3687238934255879, 5.758443719094732],
290    [5.6539193462714197, -0.11407454453992383, 1.8217692543759787, 5.52906232815781], [-0.65730049439439053, 5.4087400971545883,
291    2.4562248565029066, 2.4184732196273764]], [[8.7854174667897542, 8.5513812651587191, 4.4553206211866225, 1.2480472318580871],
292    [1.3472557171847575, 3.8011241287659452, 4.124123851727985, 5.3547461394522822], [3.2191836657746862, 2.1818194317454354,
293    4.1697235825944787, 1.6176533789426917]]], [[[4.1068635019305733, 2.943758743994823, 8.1180603362199459, 5.1242487455850494],
294    [6.4289961333277503, 0.087133884970249653, -0.65991061244333871, 7.3635724391685606], [5.1495090767555993, 6.4009125589613491,
295    2.7046391773578007, 6.2000440905525691]], [[8.4730423083244162, 5.7792381109718738, 5.730814923871602, 7.4915452132992808],
296    [3.9883644298511181, 0.52062391415003262, 8.3582798896681947, 5.5794973819517359], [8.5808444329414399, 6.1418902343595372,
297    7.842323036040824, 1.6337869418095319]]], [[[0.7785149914461762, 5.7928820883610586, 0.74371958585226938, 3.1622498195175384],
298    [7.3835014986811647, 3.1291794553928631, 2.1502455841794985, 1.281077922731483], [7.9714179817475515, 3.7696389494589706,
299    1.9608577748281419, 8.1134607299732657]], [[4.8506408804351313, 6.9260323186086357, -0.23894760610174082, 6.8968494060448071],
300    [7.2044323636417502, 0.36101855104204805, -0.16443159161679244, 0.036166513384475962], [7.6046012964988403, 2.5976957793161857,
301    3.6858532928020207, 8.3328576617506407]]]]),self.functionspace)
302          ref.setTaggedValue(1,numpy.array([[[[5.8464150817647287, 5.7357697429325549, 4.6703070887260569, 4.5145733663902385],
303    [-0.57680115848408242, -0.69753027553973812, 7.4768049682996836, 4.4677494957903328], [3.0957531699739729, 1.5452719694408614,
304    -0.81856287455258503, 6.5233124313589999]], [[1.6108695550780547, 6.4422576165056107, 5.9837766803573071, 2.4281216359253257],
305    [8.9282019450740329, 8.7544400729335479, 5.5626129968415956, 2.6275965193435633], [7.6830537457511703, 7.3539385479236437,
306    2.2607211079889411, 0.71743367188775276]]], [[[6.1665457069497833, 5.5299256961803493, 8.8652829094880357, 4.0968339487785235],
307    [8.6080268983724153, 3.9355755482214407, 2.6985466063661012, 2.7448478593309487], [-0.077883554240897546, 4.4615990395967469,
308    3.7582082495423315, 7.5335566395994729]], [[3.7175971865059187, 7.6004564650140036, 0.84942652864977841, -0.50293859581885947],
309    [7.8708383077813799, 3.7627251871664216, 5.1674966838985794, 4.5097066103830707], [-0.50802516275082255, 0.73463062730133277,
310    4.5237340976856952, 0.013071234520650954]]], [[[8.5795764030043777, 0.050040623611771196, 6.6896270457390683,
311    6.1840291704924617], [8.5762022708813994, 1.4533627854640963, 4.3564060341604725, 6.6356225072301056], [1.1223612418731586,
312    1.7504869477465999, 7.9729004192348416, 4.6590912845185342]], [[6.6915234777498576, 4.5225449135409148, 0.16707881381028322,
313    6.7713880449392292], [4.7415451188757842, 2.7392812464918457, 8.9275751179141984, 4.4989634028445913], [1.5091540804582557,
314    6.6138961825970402, 4.5964887406096411, 6.2933201857549008]]]]))
315        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
316        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
317        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
# Line 177  class Test_util_overloaded_binary_with_t Line 339  class Test_util_overloaded_binary_with_t
339        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
340     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
341     def test_add_overloaded_constData_rank2_taggedData_rank0(self):     def test_add_overloaded_constData_rank2_taggedData_rank0(self):
342        arg0=Data(numpy.array([[-1.3415049980194151, 1.3459186798218408, 1.9114294317354288, 2.9179835052428356, -2.3044429511392064], [-1.9007005643963581, -4.3338357233493765, 0.94077516828007823, 4.0387790864748414, -1.2725002850564615], [4.243575031818219, 0.64089360532133988, -1.8118570052736027, -4.1902989094547962, -2.957929628039182], [4.3122818225512596, -1.947482103007653, -1.9434128036289944, -2.7112973647894343, 3.3719312192315645]]),self.functionspace)        arg0=Data(numpy.array([[-1.3415049980194151, 1.3459186798218408, 1.9114294317354288, 2.9179835052428356,
343    -2.3044429511392064], [-1.9007005643963581, -4.3338357233493765, 0.94077516828007823, 4.0387790864748414, -1.2725002850564615],
344    [4.243575031818219, 0.64089360532133988, -1.8118570052736027, -4.1902989094547962, -2.957929628039182], [4.3122818225512596,
345    -1.947482103007653, -1.9434128036289944, -2.7112973647894343, 3.3719312192315645]]),self.functionspace)
346        arg1=Data(3.38131858631,self.functionspace)        arg1=Data(3.38131858631,self.functionspace)
347        arg1.setTaggedValue(1,-2.24010374318)        arg1.setTaggedValue(1,-2.24010374318)
348        res=arg0+arg1        res=arg0+arg1
349        ref=Data(numpy.array([[2.0398135882931143, 4.7272372661343702, 5.2927480180479582, 6.299302091555365, 1.0768756351733231], [1.4806180219161713, -0.95251713703684704, 4.3220937545926077, 7.4200976727873709, 2.108818301256068], [7.6248936181307485, 4.0222121916338693, 1.5694615810389267, -0.80898032314226676, 0.42338895827334744], [7.693600408863789, 1.4338364833048765, 1.4379057826835351, 0.67002122152309518, 6.7532498055440939]]),self.functionspace)        ref=Data(numpy.array([[2.0398135882931143, 4.7272372661343702, 5.2927480180479582, 6.299302091555365,
350        ref.setTaggedValue(1,numpy.array([[-3.581608741203584, -0.89418506336232806, -0.32867431144874004, 0.67787976205866673, -4.5445466943233752], [-4.1408043075805274, -6.5739394665335453, -1.2993285749040906, 1.7986753432906726, -3.5126040282406303], [2.0034712886340502, -1.599210137862829, -4.0519607484577715, -6.430402652638965, -5.1980333712233513], [2.0721780793670908, -4.1875858461918218, -4.1835165468131628, -4.9514011079736031, 1.1318274760473956]]))  1.0768756351733231], [1.4806180219161713, -0.95251713703684704, 4.3220937545926077, 7.4200976727873709, 2.108818301256068],
351    [7.6248936181307485, 4.0222121916338693, 1.5694615810389267, -0.80898032314226676, 0.42338895827334744], [7.693600408863789,
352    1.4338364833048765, 1.4379057826835351, 0.67002122152309518, 6.7532498055440939]]),self.functionspace)
353          ref.setTaggedValue(1,numpy.array([[-3.581608741203584, -0.89418506336232806, -0.32867431144874004, 0.67787976205866673,
354    -4.5445466943233752], [-4.1408043075805274, -6.5739394665335453, -1.2993285749040906, 1.7986753432906726, -3.5126040282406303],
355    [2.0034712886340502, -1.599210137862829, -4.0519607484577715, -6.430402652638965, -5.1980333712233513], [2.0721780793670908,
356    -4.1875858461918218, -4.1835165468131628, -4.9514011079736031, 1.1318274760473956]]))
357        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
358        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
359        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
360     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
361     def test_add_overloaded_constData_rank2_taggedData_rank2(self):     def test_add_overloaded_constData_rank2_taggedData_rank2(self):
362        arg0=Data(numpy.array([[-2.6226681875421876, -0.43563964563251734, -1.4626141982483021, 1.0662819329818385, -0.69420446751041176], [-1.2707395630813445, 1.3375857552296422, -4.5642260803519559, -1.1361520399586924, -0.68323132594976776], [-3.0170524494571516, -4.9703645483246675, -2.4863945922654676, 4.9784873698674375, 1.8479915169807821], [1.5490113944965085, -1.0077428228109255, 1.5359630073957211, -4.7057403097533301, 4.0675177351019869]]),self.functionspace)        arg0=Data(numpy.array([[-2.6226681875421876, -0.43563964563251734, -1.4626141982483021, 1.0662819329818385,
363        arg1=Data(numpy.array([[-0.040763387896243231, 0.60676905546922022, -3.3009918603427013, 0.3984414318528362, 1.4046712983461234], [4.612933819098787, 4.0243208678834339, 2.8784202902614089, 1.4754979228393053, 1.8208651871692805], [-2.9887385211383197, 4.0131064195259167, -2.9346520178259738, 2.5683381317973151, 2.9637756504799819], [1.6083685448216078, -1.7585502037053713, -1.47587346390329, 2.056837208721614, -4.2067142370058583]]),self.functionspace)  -0.69420446751041176], [-1.2707395630813445, 1.3375857552296422, -4.5642260803519559, -1.1361520399586924,
364        arg1.setTaggedValue(1,numpy.array([[4.2084992139808168, 4.1492653597313272, 0.41940775480631309, -1.3432384465213651, 3.7094693015752451], [0.17022165623481023, 4.9532436500597985, -1.0113318446498187, 4.2710146112490364, -4.0530763504693477], [1.8658547298935266, 0.19133091000646729, -4.1563396395827423, 0.62695789643655431, 3.543936176447259], [1.0428723192529255, 4.2374508021339281, -3.0218647799829155, -4.433868685270081, 4.4695313555926024]]))  -0.68323132594976776], [-3.0170524494571516, -4.9703645483246675, -2.4863945922654676, 4.9784873698674375, 1.8479915169807821],
365        res=arg0+arg1  [1.5490113944965085, -1.0077428228109255, 1.5359630073957211, -4.7057403097533301, 4.0675177351019869]]),self.functionspace)
366        ref=Data(numpy.array([[-2.6634315754384308, 0.17112940983670288, -4.7636060585910034, 1.4647233648346747, 0.7104668308357116], [3.3421942560174425, 5.3619066231130761, -1.685805790090547, 0.33934588288061285, 1.1376338612195127], [-6.0057909705954717, -0.95725812879875072, -5.421046610091441, 7.5468255016647525, 4.811767167460764], [3.1573799393181163, -2.7662930265162968, 0.060089543492431119, -2.6489031010317161, -0.13919650190387145]]),self.functionspace)        arg1=Data(numpy.array([[-0.040763387896243231, 0.60676905546922022, -3.3009918603427013, 0.3984414318528362,
367        ref.setTaggedValue(1,numpy.array([[1.5858310264386293, 3.7136257140988098, -1.043206443441989, -0.27695651353952666, 3.0152648340648334], [-1.1005179068465343, 6.2908294052894407, -5.5755579250017746, 3.134862571290344, -4.7363076764191154], [-1.1511977195636249, -4.7790336383182002, -6.6427342318482099, 5.6054452663039918, 5.3919276934280411], [2.5918837137494339, 3.2297079793230026, -1.4859017725871944, -9.1396089950234121, 8.5370490906945893]]))  1.4046712983461234], [4.612933819098787, 4.0243208678834339, 2.8784202902614089, 1.4754979228393053, 1.8208651871692805],
368    [-2.9887385211383197, 4.0131064195259167, -2.9346520178259738, 2.5683381317973151, 2.9637756504799819], [1.6083685448216078,
369    -1.7585502037053713, -1.47587346390329, 2.056837208721614, -4.2067142370058583]]),self.functionspace)
370          arg1.setTaggedValue(1,numpy.array([[4.2084992139808168, 4.1492653597313272, 0.41940775480631309, -1.3432384465213651,
371    3.7094693015752451], [0.17022165623481023, 4.9532436500597985, -1.0113318446498187, 4.2710146112490364, -4.0530763504693477],
372    [1.8658547298935266, 0.19133091000646729, -4.1563396395827423, 0.62695789643655431, 3.543936176447259], [1.0428723192529255,
373    4.2374508021339281, -3.0218647799829155, -4.433868685270081, 4.4695313555926024]]))
374          res=arg0+arg1
375          ref=Data(numpy.array([[-2.6634315754384308, 0.17112940983670288, -4.7636060585910034, 1.4647233648346747,
376    0.7104668308357116], [3.3421942560174425, 5.3619066231130761, -1.685805790090547, 0.33934588288061285, 1.1376338612195127],
377    [-6.0057909705954717, -0.95725812879875072, -5.421046610091441, 7.5468255016647525, 4.811767167460764], [3.1573799393181163,
378    -2.7662930265162968, 0.060089543492431119, -2.6489031010317161, -0.13919650190387145]]),self.functionspace)
379          ref.setTaggedValue(1,numpy.array([[1.5858310264386293, 3.7136257140988098, -1.043206443441989, -0.27695651353952666,
380    3.0152648340648334], [-1.1005179068465343, 6.2908294052894407, -5.5755579250017746, 3.134862571290344, -4.7363076764191154],
381    [-1.1511977195636249, -4.7790336383182002, -6.6427342318482099, 5.6054452663039918, 5.3919276934280411], [2.5918837137494339,
382    3.2297079793230026, -1.4859017725871944, -9.1396089950234121, 8.5370490906945893]]))
383        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
384        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
385        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
386     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
387     def test_add_overloaded_constData_rank3_taggedData_rank0(self):     def test_add_overloaded_constData_rank3_taggedData_rank0(self):
388        arg0=Data(numpy.array([[[2.0861950273295804, 2.4920761560019047], [-4.0767262373503979, -1.7275341661236698]], [[4.6406069429505195, 4.0345928257798782], [0.37803900859143447, 2.4445371923229517]], [[1.85363770864444, 3.6585915234726212], [2.0214578834221006, 0.56085179178200306]], [[2.402010491646239, 4.6824728700135161], [0.6414001733226975, 0.94107549517639644]], [[2.3300385491886431, 4.4807079902307159], [-0.92067660734824752, 3.0509292574928253]], [[1.2602889332645431, -1.9292487970408709], [0.086280004211073624, -1.510551626961151]]]),self.functionspace)        arg0=Data(numpy.array([[[2.0861950273295804, 2.4920761560019047], [-4.0767262373503979, -1.7275341661236698]],
389    [[4.6406069429505195, 4.0345928257798782], [0.37803900859143447, 2.4445371923229517]], [[1.85363770864444, 3.6585915234726212],
390    [2.0214578834221006, 0.56085179178200306]], [[2.402010491646239, 4.6824728700135161], [0.6414001733226975,
391    0.94107549517639644]], [[2.3300385491886431, 4.4807079902307159], [-0.92067660734824752, 3.0509292574928253]],
392    [[1.2602889332645431, -1.9292487970408709], [0.086280004211073624, -1.510551626961151]]]),self.functionspace)
393        arg1=Data(-0.0456895613642,self.functionspace)        arg1=Data(-0.0456895613642,self.functionspace)
394        arg1.setTaggedValue(1,-4.19507957525)        arg1.setTaggedValue(1,-4.19507957525)
395        res=arg0+arg1        res=arg0+arg1
396        ref=Data(numpy.array([[[2.040505465965424, 2.4463865946377483], [-4.1224157987145542, -1.7732237274878262]], [[4.5949173815863631, 3.9889032644157218], [0.33234944722727811, 2.3988476309587954]], [[1.8079481472802836, 3.6129019621084648], [1.9757683220579443, 0.5151622304178467]], [[2.3563209302820827, 4.6367833086493597], [0.59571061195854114, 0.89538593381224008]], [[2.2843489878244867, 4.4350184288665595], [-0.96636616871240388, 3.0052396961286689]], [[1.2145993719003867, -1.9749383584050273], [0.040590442846917263, -1.5562411883253073]]]),self.functionspace)        ref=Data(numpy.array([[[2.040505465965424, 2.4463865946377483], [-4.1224157987145542, -1.7732237274878262]],
397        ref.setTaggedValue(1,numpy.array([[[-2.1088845479219822, -1.7030034192496579], [-8.2718058126019613, -5.9226137413752324]], [[0.44552736769895684, -0.1604867494716844], [-3.8170405666601281, -1.7505423829286109]], [[-2.3414418666071226, -0.53648805177894143], [-2.173621691829462, -3.6342277834695595]], [[-1.7930690836053236, 0.48739329476195348], [-3.5536794019288651, -3.2540040800751662]], [[-1.8650410260629195, 0.28562841497915326], [-5.1157561825998101, -1.1441503177587373]], [[-2.9347906419870196, -6.1243283722924335], [-4.108799571040489, -5.7056312022127136]]]))  [[4.5949173815863631, 3.9889032644157218], [0.33234944722727811, 2.3988476309587954]], [[1.8079481472802836,
398    3.6129019621084648], [1.9757683220579443, 0.5151622304178467]], [[2.3563209302820827, 4.6367833086493597],
399    [0.59571061195854114, 0.89538593381224008]], [[2.2843489878244867, 4.4350184288665595], [-0.96636616871240388,
400    3.0052396961286689]], [[1.2145993719003867, -1.9749383584050273], [0.040590442846917263,
401    -1.5562411883253073]]]),self.functionspace)
402          ref.setTaggedValue(1,numpy.array([[[-2.1088845479219822, -1.7030034192496579], [-8.2718058126019613,
403    -5.9226137413752324]], [[0.44552736769895684, -0.1604867494716844], [-3.8170405666601281, -1.7505423829286109]],
404    [[-2.3414418666071226, -0.53648805177894143], [-2.173621691829462, -3.6342277834695595]], [[-1.7930690836053236,
405    0.48739329476195348], [-3.5536794019288651, -3.2540040800751662]], [[-1.8650410260629195, 0.28562841497915326],
406    [-5.1157561825998101, -1.1441503177587373]], [[-2.9347906419870196, -6.1243283722924335], [-4.108799571040489,
407    -5.7056312022127136]]]))
408        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
409        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
410        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
411     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
412     def test_add_overloaded_constData_rank3_taggedData_rank3(self):     def test_add_overloaded_constData_rank3_taggedData_rank3(self):
413        arg0=Data(numpy.array([[[0.12269628182933001, 1.4672076166497297], [-1.7618606919578217, -0.41822274378038404]], [[-3.4777278267882261, 0.91150063442493234], [-3.2215653702862177, -4.7251769553640743]], [[-3.6955005566118668, -4.0386807920581376], [0.20974179785768499, 4.971379194453883]], [[-4.6416039854065438, -2.4174671355821378], [-0.93956661100576255, -4.5631114286217205]], [[-2.4447858378665765, -3.8232081969915432], [0.73666084872135418, -1.0254596806300853]], [[-2.257416342898372, -2.4415592322477275], [-3.9887385162301858, 0.4695282522578168]]]),self.functionspace)        arg0=Data(numpy.array([[[0.12269628182933001, 1.4672076166497297], [-1.7618606919578217, -0.41822274378038404]],
414        arg1=Data(numpy.array([[[-4.5676240214260098, 0.41306837628522963], [4.9465358871512777, 2.2848713951104838]], [[4.362008173640664, 3.9502909364101217], [2.071996380966926, 3.7834488332881868]], [[-0.49584216533182879, -3.4801056681326905], [4.9917325907476382, 1.4377979885864516]], [[2.886717011735934, -2.6277020978762042], [4.6176020186796425, 4.7990380634049767]], [[-0.52564559772442099, 4.7895678381879687], [1.5708429802060175, -3.0844085844104274]], [[-1.2250025565880893, 4.6458577871452373], [-4.4222951788247409, 4.0433895321815427]]]),self.functionspace)  [[-3.4777278267882261, 0.91150063442493234], [-3.2215653702862177, -4.7251769553640743]], [[-3.6955005566118668,
415        arg1.setTaggedValue(1,numpy.array([[[-0.1370599544392892, -2.8015059749984528], [-1.9961054277296473, -0.36073771651563291]], [[1.3182553792598579, -4.0991476254507635], [-0.44276061226265018, 1.6680349385432987]], [[-3.4001027933348835, -4.8109813236985541], [-2.0495682790514227, 1.8167133342381812]], [[-3.7963346870977945, -4.5535645028017635], [-1.1522389797685193, 1.3511939157749344]], [[-4.8040131382947049, 0.90793035526919397], [1.484793978312382, -1.5421914315510179]], [[1.3343050159588525, 2.4655013863417548], [-0.32507168642112561, 4.3599790448251685]]]))  -4.0386807920581376], [0.20974179785768499, 4.971379194453883]], [[-4.6416039854065438, -2.4174671355821378],
416        res=arg0+arg1  [-0.93956661100576255, -4.5631114286217205]], [[-2.4447858378665765, -3.8232081969915432], [0.73666084872135418,
417        ref=Data(numpy.array([[[-4.4449277395966797, 1.8802759929349593], [3.184675195193456, 1.8666486513300997]], [[0.88428034685243784, 4.8617915708350541], [-1.1495689893192917, -0.94172812207588752]], [[-4.1913427219436956, -7.5187864601908281], [5.2014743886053232, 6.4091771830403346]], [[-1.7548869736706099, -5.045169233458342], [3.6780354076738799, 0.23592663478325626]], [[-2.9704314355909975, 0.96635964119642548], [2.3075038289273717, -4.1098682650405127]], [[-3.4824188994864613, 2.2042985548975098], [-8.4110336950549272, 4.5129177844393595]]]),self.functionspace)  -1.0254596806300853]], [[-2.257416342898372, -2.4415592322477275], [-3.9887385162301858,
418        ref.setTaggedValue(1,numpy.array([[[-0.014363672609959188, -1.3342983583487231], [-3.757966119687469, -0.77896046029601695]], [[-2.1594724475283682, -3.1876469910258312], [-3.6643259825488679, -3.0571420168207757]], [[-7.0956033499467503, -8.8496621157566917], [-1.8398264811937377, 6.7880925286920641]], [[-8.4379386725043375, -6.9710316383839013], [-2.0918055907742819, -3.2119175128467861]], [[-7.2487989761612814, -2.9152778417223493], [2.2214548270337362, -2.5676511121811032]], [[-0.92311132693951947, 0.023942154094027224], [-4.313810202651311, 4.8295072970829853]]]))  0.4695282522578168]]]),self.functionspace)
419          arg1=Data(numpy.array([[[-4.5676240214260098, 0.41306837628522963], [4.9465358871512777, 2.2848713951104838]],
420    [[4.362008173640664, 3.9502909364101217], [2.071996380966926, 3.7834488332881868]], [[-0.49584216533182879,
421    -3.4801056681326905], [4.9917325907476382, 1.4377979885864516]], [[2.886717011735934, -2.6277020978762042],
422    [4.6176020186796425, 4.7990380634049767]], [[-0.52564559772442099, 4.7895678381879687], [1.5708429802060175,
423    -3.0844085844104274]], [[-1.2250025565880893, 4.6458577871452373], [-4.4222951788247409,
424    4.0433895321815427]]]),self.functionspace)
425          arg1.setTaggedValue(1,numpy.array([[[-0.1370599544392892, -2.8015059749984528], [-1.9961054277296473,
426    -0.36073771651563291]], [[1.3182553792598579, -4.0991476254507635], [-0.44276061226265018, 1.6680349385432987]],
427    [[-3.4001027933348835, -4.8109813236985541], [-2.0495682790514227, 1.8167133342381812]], [[-3.7963346870977945,
428    -4.5535645028017635], [-1.1522389797685193, 1.3511939157749344]], [[-4.8040131382947049, 0.90793035526919397],
429    [1.484793978312382, -1.5421914315510179]], [[1.3343050159588525, 2.4655013863417548], [-0.32507168642112561,
430    4.3599790448251685]]]))
431          res=arg0+arg1
432          ref=Data(numpy.array([[[-4.4449277395966797, 1.8802759929349593], [3.184675195193456, 1.8666486513300997]],
433    [[0.88428034685243784, 4.8617915708350541], [-1.1495689893192917, -0.94172812207588752]], [[-4.1913427219436956,
434    -7.5187864601908281], [5.2014743886053232, 6.4091771830403346]], [[-1.7548869736706099, -5.045169233458342],
435    [3.6780354076738799, 0.23592663478325626]], [[-2.9704314355909975, 0.96635964119642548], [2.3075038289273717,
436    -4.1098682650405127]], [[-3.4824188994864613, 2.2042985548975098], [-8.4110336950549272,
437    4.5129177844393595]]]),self.functionspace)
438          ref.setTaggedValue(1,numpy.array([[[-0.014363672609959188, -1.3342983583487231], [-3.757966119687469,
439    -0.77896046029601695]], [[-2.1594724475283682, -3.1876469910258312], [-3.6643259825488679, -3.0571420168207757]],
440    [[-7.0956033499467503, -8.8496621157566917], [-1.8398264811937377, 6.7880925286920641]], [[-8.4379386725043375,
441    -6.9710316383839013], [-2.0918055907742819, -3.2119175128467861]], [[-7.2487989761612814, -2.9152778417223493],
442    [2.2214548270337362, -2.5676511121811032]], [[-0.92311132693951947, 0.023942154094027224], [-4.313810202651311,
443    4.8295072970829853]]]))
444        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
445        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
446        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
447     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
448     def test_add_overloaded_constData_rank4_taggedData_rank0(self):     def test_add_overloaded_constData_rank4_taggedData_rank0(self):
449        arg0=Data(numpy.array([[[[-2.1127878043948121, -2.6734038420995878, -3.7174721921481515, -2.8921743181221125], [0.2764377633408408, 3.9296684147946799, -4.9171677374972944, -4.9642653378267347], [-0.61947409364464079, -4.015974028229059, -0.18805511679418441, 1.5629814684169734]], [[-4.0866231608688022, 3.2830805381014763, -4.2608142895301615, 0.15599594849717491], [1.1040385772304564, -1.5708094985664434, -4.9568379032803538, 1.241738387463192], [1.3931769799891995, -2.5248595019765432, 2.8757000225849128, -4.3771668987515238]]], [[[-1.2735518422958148, -4.1105568099668019, 0.48891138673857082, 1.4980039331184702], [0.35357088368984879, 2.5316174846688497, -4.1543988785548382, -4.1135564535496218], [-3.9584256991852951, -2.1520765455378479, 2.3736171509491202, -4.6215845057314446]], [[-2.0397394988533204, 2.2745130371463276, 2.8688375760074738, -4.2614754860809034], [4.0992062066155928, -3.4288780684757336, 4.1516896671562513, 0.75074434486774599], [-3.193022825807692, -0.53192123868369112, 3.0812135258882254, 0.39050867400707112]]], [[[-4.2892765756816296, -4.9695959583850904, 3.9513254018501112, -3.3406585194566842], [4.5700536659667463, 4.6852713683538294, -0.36959280283832463, -0.9385962664742884], [-4.9454116885258355, 0.89580928044739849, 3.0409142595966561, 2.2367353588478478]], [[-4.0564078271004345, -4.0254892597622485, -4.8815665092731431, 4.0704491239176814], [-3.2284258591070278, -1.8775365569400213, 3.4160847683724587, 0.86462311694064553], [-3.9639979460065278, 0.33482686945185947, -4.5669429197924236, 2.3298939078133687]]]]),self.functionspace)        arg0=Data(numpy.array([[[[-2.1127878043948121, -2.6734038420995878, -3.7174721921481515, -2.8921743181221125],
450    [0.2764377633408408, 3.9296684147946799, -4.9171677374972944, -4.9642653378267347], [-0.61947409364464079, -4.015974028229059,
451    -0.18805511679418441, 1.5629814684169734]], [[-4.0866231608688022, 3.2830805381014763, -4.2608142895301615,
452    0.15599594849717491], [1.1040385772304564, -1.5708094985664434, -4.9568379032803538, 1.241738387463192], [1.3931769799891995,
453    -2.5248595019765432, 2.8757000225849128, -4.3771668987515238]]], [[[-1.2735518422958148, -4.1105568099668019,
454    0.48891138673857082, 1.4980039331184702], [0.35357088368984879, 2.5316174846688497, -4.1543988785548382, -4.1135564535496218],
455    [-3.9584256991852951, -2.1520765455378479, 2.3736171509491202, -4.6215845057314446]], [[-2.0397394988533204,
456    2.2745130371463276, 2.8688375760074738, -4.2614754860809034], [4.0992062066155928, -3.4288780684757336, 4.1516896671562513,
457    0.75074434486774599], [-3.193022825807692, -0.53192123868369112, 3.0812135258882254, 0.39050867400707112]]],
458    [[[-4.2892765756816296, -4.9695959583850904, 3.9513254018501112, -3.3406585194566842], [4.5700536659667463, 4.6852713683538294,
459    -0.36959280283832463, -0.9385962664742884], [-4.9454116885258355, 0.89580928044739849, 3.0409142595966561,
460    2.2367353588478478]], [[-4.0564078271004345, -4.0254892597622485, -4.8815665092731431, 4.0704491239176814],
461    [-3.2284258591070278, -1.8775365569400213, 3.4160847683724587, 0.86462311694064553], [-3.9639979460065278, 0.33482686945185947,
462    -4.5669429197924236, 2.3298939078133687]]]]),self.functionspace)
463        arg1=Data(-0.392470993711,self.functionspace)        arg1=Data(-0.392470993711,self.functionspace)
464        arg1.setTaggedValue(1,-4.1075693295)        arg1.setTaggedValue(1,-4.1075693295)
465        res=arg0+arg1        res=arg0+arg1
466        ref=Data(numpy.array([[[[-2.5052587981061238, -3.0658748358108996, -4.1099431858594633, -3.2846453118334242], [-0.11603323037047097, 3.5371974210833681, -5.3096387312086062, -5.3567363315380465], [-1.0119450873559526, -4.4084450219403708, -0.58052611050549618, 1.1705104747056616]], [[-4.479094154580114, 2.8906095443901645, -4.6532852832414733, -0.23647504521413687], [0.71156758351914462, -1.9632804922777551, -5.3493088969916656, 0.84926739375188021], [1.0007059862778878, -2.917330495687855, 2.483229028873601, -4.7696378924628355]]], [[[-1.6660228360071265, -4.5030278036781137, 0.096440393027259042, 1.1055329394071585], [-0.038900110021462986, 2.1391464909575379, -4.54686987226615, -4.5060274472609336], [-4.3508966928966064, -2.5445475392491597, 1.9811461572378084, -5.0140554994427564]], [[-2.4322104925646322, 1.8820420434350158, 2.476366582296162, -4.6539464797922152], [3.706735212904281, -3.8213490621870454, 3.7592186734449395, 0.35827335115643422], [-3.5854938195190038, -0.9243922323950029, 2.6887425321769136, -0.0019623197042406559]]], [[[-4.6817475693929413, -5.3620669520964022, 3.5588544081387994, -3.733129513167996], [4.1775826722554346, 4.2928003746425176, -0.76206379654963641, -1.3310672601856002], [-5.3378826822371472, 0.50333828673608672, 2.6484432658853443, 1.844264365136536]], [[-4.4488788208117462, -4.4179602534735603, -5.2740375029844548, 3.6779781302063697], [-3.6208968528183396, -2.2700075506513331, 3.0236137746611469, 0.47215212322933375], [-4.3564689397178391, -0.057644124259452312, -4.9594139135037354, 1.9374229141020569]]]]),self.functionspace)        ref=Data(numpy.array([[[[-2.5052587981061238, -3.0658748358108996, -4.1099431858594633, -3.2846453118334242],
467        ref.setTaggedValue(1,numpy.array([[[[-6.2203571338967052, -6.7809731716014809, -7.8250415216500446, -6.9997436476240056], [-3.8311315661610523, -0.17790091470721325, -9.0247370669991867, -9.071834667328627], [-4.7270434231465339, -8.1235433577309522, -4.2956244462960775, -2.5445878610849197]], [[-8.1941924903706962, -0.82448879140041686, -8.3683836190320555, -3.9515733810047182], [-3.0035307522714367, -5.678378828068336, -9.0644072327822478, -2.8658309420387011], [-2.7143923495126936, -6.6324288314784363, -1.2318693069169804, -8.4847362282534178]]], [[[-5.3811211717977079, -8.2181261394686942, -3.6186579427633223, -2.6095653963834229], [-3.7539984458120443, -1.5759518448330434, -8.2619682080567323, -8.2211257830515159], [-8.0659950286871887, -6.259645875039741, -1.7339521785527729, -8.7291538352333369]], [[-6.1473088283552135, -1.8330562923555656, -1.2387317534944193, -8.3690448155827966], [-0.008363122886300367, -7.5364473979776267, 0.044120337654358188, -3.3568249846341471], [-7.3005921553095856, -4.6394905681855843, -1.0263558036136677, -3.717060655494822]]], [[[-8.3968459051835218, -9.0771652878869844, -0.15624392765178197, -7.4482278489585774], [0.46248433646485321, 0.57770203885193627, -4.4771621323402178, -5.0461655959761815], [-9.0529810180277295, -3.2117600490544946, -1.0666550699052371, -1.8708339706540453]], [[-8.1639771566023285, -8.1330585892641416, -8.9891358387750362, -0.037120205584211696], [-7.335995188608921, -5.9851058864419144, -0.69148456112943446, -3.2429462125612476], [-8.0715672755084213, -3.7727424600500337, -8.6745122492943167, -1.7776754216885244]]]]))  [-0.11603323037047097, 3.5371974210833681, -5.3096387312086062, -5.3567363315380465], [-1.0119450873559526,
468    -4.4084450219403708, -0.58052611050549618, 1.1705104747056616]], [[-4.479094154580114, 2.8906095443901645, -4.6532852832414733,
469    -0.23647504521413687], [0.71156758351914462, -1.9632804922777551, -5.3493088969916656, 0.84926739375188021],
470    [1.0007059862778878, -2.917330495687855, 2.483229028873601, -4.7696378924628355]]], [[[-1.6660228360071265,
471    -4.5030278036781137, 0.096440393027259042, 1.1055329394071585], [-0.038900110021462986, 2.1391464909575379, -4.54686987226615,
472    -4.5060274472609336], [-4.3508966928966064, -2.5445475392491597, 1.9811461572378084, -5.0140554994427564]],
473    [[-2.4322104925646322, 1.8820420434350158, 2.476366582296162, -4.6539464797922152], [3.706735212904281, -3.8213490621870454,
474    3.7592186734449395, 0.35827335115643422], [-3.5854938195190038, -0.9243922323950029, 2.6887425321769136,
475    -0.0019623197042406559]]], [[[-4.6817475693929413, -5.3620669520964022, 3.5588544081387994, -3.733129513167996],
476    [4.1775826722554346, 4.2928003746425176, -0.76206379654963641, -1.3310672601856002], [-5.3378826822371472, 0.50333828673608672,
477    2.6484432658853443, 1.844264365136536]], [[-4.4488788208117462, -4.4179602534735603, -5.2740375029844548, 3.6779781302063697],
478    [-3.6208968528183396, -2.2700075506513331, 3.0236137746611469, 0.47215212322933375], [-4.3564689397178391,
479    -0.057644124259452312, -4.9594139135037354, 1.9374229141020569]]]]),self.functionspace)
480          ref.setTaggedValue(1,numpy.array([[[[-6.2203571338967052, -6.7809731716014809, -7.8250415216500446, -6.9997436476240056],
481    [-3.8311315661610523, -0.17790091470721325, -9.0247370669991867, -9.071834667328627], [-4.7270434231465339,
482    -8.1235433577309522, -4.2956244462960775, -2.5445878610849197]], [[-8.1941924903706962, -0.82448879140041686,
483    -8.3683836190320555, -3.9515733810047182], [-3.0035307522714367, -5.678378828068336, -9.0644072327822478, -2.8658309420387011],
484    [-2.7143923495126936, -6.6324288314784363, -1.2318693069169804, -8.4847362282534178]]], [[[-5.3811211717977079,
485    -8.2181261394686942, -3.6186579427633223, -2.6095653963834229], [-3.7539984458120443, -1.5759518448330434, -8.2619682080567323,
486    -8.2211257830515159], [-8.0659950286871887, -6.259645875039741, -1.7339521785527729, -8.7291538352333369]],
487    [[-6.1473088283552135, -1.8330562923555656, -1.2387317534944193, -8.3690448155827966], [-0.008363122886300367,
488    -7.5364473979776267, 0.044120337654358188, -3.3568249846341471], [-7.3005921553095856, -4.6394905681855843,
489    -1.0263558036136677, -3.717060655494822]]], [[[-8.3968459051835218, -9.0771652878869844, -0.15624392765178197,
490    -7.4482278489585774], [0.46248433646485321, 0.57770203885193627, -4.4771621323402178, -5.0461655959761815],
491    [-9.0529810180277295, -3.2117600490544946, -1.0666550699052371, -1.8708339706540453]], [[-8.1639771566023285,
492    -8.1330585892641416, -8.9891358387750362, -0.037120205584211696], [-7.335995188608921, -5.9851058864419144,
493    -0.69148456112943446, -3.2429462125612476], [-8.0715672755084213, -3.7727424600500337, -8.6745122492943167,
494    -1.7776754216885244]]]]))
495        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
496        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
497        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
498     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
499     def test_add_overloaded_constData_rank4_taggedData_rank4(self):     def test_add_overloaded_constData_rank4_taggedData_rank4(self):
500        arg0=Data(numpy.array([[[[-3.8003570791748298, 4.8039102010737356, -0.9012319374709632, -2.714251428030491], [-0.13737907408573857, -2.5873579113483403, -0.056424615348640295, 2.5619294488986437], [-1.2194985042398065, 3.6964005336565648, 0.01956618682329303, -3.8152983947862182]], [[-4.5942303653681336, 1.2221344064392001, -3.1401340907797506, 3.0332806597492041], [-0.30067217703961013, -1.8502913620814132, 4.6304390527587529, -2.9091770278724027], [-2.915704726643499, -0.58894436293405761, -1.6459855274088921, 4.2171038502583507]]], [[[-1.661264209710259, -3.5924830185239909, -3.926714691053216, 4.6488313215887835], [0.83917305781474383, -1.747805522640109, -2.3037471044809568, -4.723628872515131], [-1.3382488286504115, -4.476446065957167, -0.99674404736242117, -4.3661969295354117]], [[1.0598595170076077, -0.19226332818609659, 1.2647338833662918, 2.6316764694963517], [3.8022221337176685, 3.3216545470545302, 1.6558043870946477, -3.192283503714922], [4.6471912279344192, -2.2585314149952729, -3.3396046798740664, 2.9535871562084974]]], [[[2.4927259412055687, -1.7682078466809212, -3.8436595638128401, 1.8856569517823241], [-3.5778072979055366, -1.4520098978531992, -1.8690036465447903, -2.1824703474806597], [-2.9494885498413606, -4.8915793099194635, -3.4081990339500292, -0.8325694914483126]], [[3.7007217572430982, -0.85098659594840331, 3.5872717949533595, 0.5736466573049519], [-0.26908808722230049, -3.7092505231319697, -2.7143082150073807, -2.5313662195555042], [-2.4795935752348308, 2.9266176041709162, 4.384995828125648, -0.63102761878910663]]]]),self.functionspace)        arg0=Data(numpy.array([[[[-3.8003570791748298, 4.8039102010737356, -0.9012319374709632, -2.714251428030491],
501        arg1=Data(numpy.array([[[[-3.2508426969032245, -1.0024100704270476, 3.4982723131945033, -1.9964708455849953], [-0.17088222487315718, -4.1965255167604374, -3.7888777373790661, -2.4246951783662607], [1.1505367855332729, 0.28395927321886116, -1.7554266087733303, 0.94491437841475978]], [[-0.89427035290860957, 1.8691557996484756, -1.9158166741239491, -1.5451752659177087], [-4.6771609087788333, 3.4028194286871418, -3.5294614439386374, 4.0704745267453557], [-1.0631533489506384, -4.9816737586177524, -2.4923293159836248, -3.7317207478568291]]], [[[-0.37541928486144993, -3.9155448396414849, -3.4686214797886672, 2.5161469033474919], [2.934519412599137, 2.4688331676196551, 0.37822121190445301, 4.6859180214754375], [0.78377840608527816, 2.7151033454639864, -4.6497212398777554, -2.3740861584197459]], [[-3.0821070954331709, 1.0016455130728072, 4.8011875842658664, 0.64487679809045062], [-3.0532069302855316, 3.3985897915071916, -2.7489875284261869, -1.0364823343231322], [-0.49636722863105032, 0.29453601459294632, -3.8802708526396454, 0.77885118565126987]]], [[[-4.7626905454198702, 0.90176813974784054, 4.9948206097093522, -3.1295052840376449], [1.2834126334200455, 3.3715963540365195, 2.691170782305595, 1.648946257595143], [-2.4182052053755179, 3.2858262338086952, -4.7506720266598901, -1.1427747305253986]], [[2.3960188186004681, -1.9529728608578023, 3.5793004760451623, 3.5066349819851972], [0.015787978368537736, 4.9429338610678588, -4.6168224651124508, 3.0778272166624312], [4.8412694957514155, 0.49646030889916126, 4.8390734364274763, 3.7965138490932322]]]]),self.functionspace)  [-0.13737907408573857, -2.5873579113483403, -0.056424615348640295, 2.5619294488986437], [-1.2194985042398065,
502        arg1.setTaggedValue(1,numpy.array([[[[-4.0512216409646857, -2.2488251354790876, 2.5741189624243601, -3.1464509962959553], [3.5415207508726958, -0.11521243824542182, -4.4855498595431964, -0.12427356351934904], [1.1501777533571165, -1.3551735389474553, -3.9489356911688231, 0.29907845937935384]], [[4.670218220299132, -3.5990452055623399, -0.40586052741102385, 1.7019941790632975], [-3.7963057399912046, 1.3670161485907508, 0.037023966175839362, 4.6917488690819038], [1.1524780921030517, 2.8803462050022404, 3.2171956094985568, 4.4310334421540123]]], [[[-0.74645446908803592, 1.487833202764878, 4.2525680945504511, 1.4866479997013213], [-3.105845513592703, -1.3728295712031069, -0.29708694386510448, -2.4105997731600115], [-1.841124729214505, -3.3249823745199869, -3.0105601297540776, 0.45738474091793258]], [[3.4778516956290044, 1.5583028940067232, -4.9202667144405607, 0.7768547421186609], [4.3208195532293594, -1.4519944496992023, -3.1798996962547554, -0.62587527866007164], [-0.74085414403452354, 0.7874909108666337, 2.2525577786747597, -2.23785743903401]]], [[[4.3433251772547781, 4.365892846063538, 2.4671798191855299, 1.1895325637549146], [-0.52970986057913017, 4.2827660014035924, -3.8150353293719927, 4.709830625622887], [-0.75876286632995615, -0.22282821598760449, -2.8025089483451913, 0.50702160519610828]], [[-0.63931412488187611, 3.0113958705998272, -3.8428191253982069, -0.44348303745008], [1.3044314495288791, 0.85661911039063199, 3.0504178786209266, 0.98856020664162081], [1.8826398310117467, -1.0396561564326445, 2.0962423161913426, -1.0118098533838027]]]]))  3.6964005336565648, 0.01956618682329303, -3.8152983947862182]], [[-4.5942303653681336, 1.2221344064392001, -3.1401340907797506,
503        res=arg0+arg1  3.0332806597492041], [-0.30067217703961013, -1.8502913620814132, 4.6304390527587529, -2.9091770278724027], [-2.915704726643499,
504        ref=Data(numpy.array([[[[-7.0511997760780538, 3.801500130646688, 2.5970403757235401, -4.7107222736154863], [-0.30826129895889576, -6.7838834281087781, -3.8453023527277064, 0.13723427053238302], [-0.06896171870653367, 3.980359806875426, -1.7358604219500373, -2.8703840163714585]], [[-5.4885007182767431, 3.0912902060876757, -5.0559507649036997, 1.4881053938314954], [-4.9778330858184434, 1.5525280666057286, 1.1009776088201155, 1.161297498872953], [-3.9788580755941374, -5.57061812155181, -4.138314843392517, 0.4853831024015216]]], [[[-2.0366834945717089, -7.5080278581654758, -7.3953361708418832, 7.1649782249362755], [3.7736924704138808, 0.72102764497954608, -1.9255258925765038, -0.037710851039693516], [-0.55447042256513335, -1.7613427204931806, -5.6464652872401766, -6.7402830879551576]], [[-2.0222475784255631, 0.80938218488671065, 6.0659214676321582, 3.2765532675868023], [0.7490152034321369, 6.7202443385617219, -1.0931831413315392, -4.2287658380380542], [4.1508239993033689, -1.9639954004023266, -7.2198755325137114, 3.7324383418597673]]], [[[-2.2699646042143016, -0.8664397069330807, 1.151161045896512, -1.2438483322553209], [-2.2943946644854911, 1.9195864561833202, 0.82216713576080469, -0.53352408988551669], [-5.3676937552168784, -1.6057530761107683, -8.1588710606099184, -1.9753442219737112]], [[6.0967405758435662, -2.8039594568062056, 7.1665722709985218, 4.0802816392901491], [-0.25330010885376275, 1.2336833379358891, -7.3311306801198315, 0.54646099710692697], [2.3616759205165847, 3.4230779130700775, 9.2240692645531244, 3.1654862303041256]]]]),self.functionspace)  -0.58894436293405761, -1.6459855274088921, 4.2171038502583507]]], [[[-1.661264209710259, -3.5924830185239909,
505        ref.setTaggedValue(1,numpy.array([[[[-7.851578720139516, 2.555085065594648, 1.6728870249533969, -5.8607024243264458], [3.4041416767869572, -2.7025703495937621, -4.5419744748918367, 2.4376558853792947], [-0.069320750882690074, 2.3412269947091096, -3.9293695043455301, -3.5162199354068644]], [[0.075987854930998466, -2.3769107991231397, -3.5459946181907744, 4.7352748388125017], [-4.0969779170308147, -0.48327521349066238, 4.6674630189345923, 1.7825718412095011], [-1.7632266345404473, 2.2914018420681828, 1.5712100820896646, 8.648137292412363]]], [[[-2.4077186787982949, -2.1046498157591129, 0.32585340349723513, 6.1354793212901049], [-2.2666724557779592, -3.1206350938432159, -2.6008340483460612, -7.134228645675142], [-3.1793735578649165, -7.8014284404771539, -4.0073041771164988, -3.9088121886174791]], [[4.5377112126366121, 1.3660395658206266, -3.655532831074269, 3.4085312116150126], [8.1230416869470279, 1.8696600973553279, -1.5240953091601077, -3.8181587823749936], [3.9063370838998956, -1.4710405041286392, -1.0870469011993067, 0.71572971717448741]]], [[[6.8360511184603467, 2.5976849993826168, -1.3764797446273103, 3.0751895155372386], [-4.1075171584846668, 2.8307561035503932, -5.6840389759167831, 2.5273602781422273], [-3.7082514161713167, -5.114407525907068, -6.2107079822952205, -0.32554788625220432]], [[3.061407632361222, 2.1604092746514238, -0.25554733044484745, 0.1301636198548719], [1.0353433623065786, -2.8526314127413377, 0.33610966361354588, -1.5428060129138834], [-0.59695374422308412, 1.8869614477382717, 6.4812381443169906, -1.6428374721729093]]]]))  -3.926714691053216, 4.6488313215887835], [0.83917305781474383, -1.747805522640109, -2.3037471044809568, -4.723628872515131],
506    [-1.3382488286504115, -4.476446065957167, -0.99674404736242117, -4.3661969295354117]], [[1.0598595170076077,
507    -0.19226332818609659, 1.2647338833662918, 2.6316764694963517], [3.8022221337176685, 3.3216545470545302, 1.6558043870946477,
508    -3.192283503714922], [4.6471912279344192, -2.2585314149952729, -3.3396046798740664, 2.9535871562084974]]],
509    [[[2.4927259412055687, -1.7682078466809212, -3.8436595638128401, 1.8856569517823241], [-3.5778072979055366,
510    -1.4520098978531992, -1.8690036465447903, -2.1824703474806597], [-2.9494885498413606, -4.8915793099194635, -3.4081990339500292,
511    -0.8325694914483126]], [[3.7007217572430982, -0.85098659594840331, 3.5872717949533595, 0.5736466573049519],
512    [-0.26908808722230049, -3.7092505231319697, -2.7143082150073807, -2.5313662195555042], [-2.4795935752348308,
513    2.9266176041709162, 4.384995828125648, -0.63102761878910663]]]]),self.functionspace)
514          arg1=Data(numpy.array([[[[-3.2508426969032245, -1.0024100704270476, 3.4982723131945033, -1.9964708455849953],
515    [-0.17088222487315718, -4.1965255167604374, -3.7888777373790661, -2.4246951783662607], [1.1505367855332729,
516    0.28395927321886116, -1.7554266087733303, 0.94491437841475978]], [[-0.89427035290860957, 1.8691557996484756,
517    -1.9158166741239491, -1.5451752659177087], [-4.6771609087788333, 3.4028194286871418, -3.5294614439386374, 4.0704745267453557],
518    [-1.0631533489506384, -4.9816737586177524, -2.4923293159836248, -3.7317207478568291]]], [[[-0.37541928486144993,
519    -3.9155448396414849, -3.4686214797886672, 2.5161469033474919], [2.934519412599137, 2.4688331676196551, 0.37822121190445301,
520    4.6859180214754375], [0.78377840608527816, 2.7151033454639864, -4.6497212398777554, -2.3740861584197459]],
521    [[-3.0821070954331709, 1.0016455130728072, 4.8011875842658664, 0.64487679809045062], [-3.0532069302855316, 3.3985897915071916,
522    -2.7489875284261869, -1.0364823343231322], [-0.49636722863105032, 0.29453601459294632, -3.8802708526396454,
523    0.77885118565126987]]], [[[-4.7626905454198702, 0.90176813974784054, 4.9948206097093522, -3.1295052840376449],
524    [1.2834126334200455, 3.3715963540365195, 2.691170782305595, 1.648946257595143], [-2.4182052053755179, 3.2858262338086952,
525    -4.7506720266598901, -1.1427747305253986]], [[2.3960188186004681, -1.9529728608578023, 3.5793004760451623, 3.5066349819851972],
526    [0.015787978368537736, 4.9429338610678588, -4.6168224651124508, 3.0778272166624312], [4.8412694957514155, 0.49646030889916126,
527    4.8390734364274763, 3.7965138490932322]]]]),self.functionspace)
528          arg1.setTaggedValue(1,numpy.array([[[[-4.0512216409646857, -2.2488251354790876, 2.5741189624243601, -3.1464509962959553],
529    [3.5415207508726958, -0.11521243824542182, -4.4855498595431964, -0.12427356351934904], [1.1501777533571165,
530    -1.3551735389474553, -3.9489356911688231, 0.29907845937935384]], [[4.670218220299132, -3.5990452055623399,
531    -0.40586052741102385, 1.7019941790632975], [-3.7963057399912046, 1.3670161485907508, 0.037023966175839362, 4.6917488690819038],
532    [1.1524780921030517, 2.8803462050022404, 3.2171956094985568, 4.4310334421540123]]], [[[-0.74645446908803592, 1.487833202764878,
533    4.2525680945504511, 1.4866479997013213], [-3.105845513592703, -1.3728295712031069, -0.29708694386510448, -2.4105997731600115],
534    [-1.841124729214505, -3.3249823745199869, -3.0105601297540776, 0.45738474091793258]], [[3.4778516956290044, 1.5583028940067232,
535    -4.9202667144405607, 0.7768547421186609], [4.3208195532293594, -1.4519944496992023, -3.1798996962547554, -0.62587527866007164],
536    [-0.74085414403452354, 0.7874909108666337, 2.2525577786747597, -2.23785743903401]]], [[[4.3433251772547781, 4.365892846063538,
537    2.4671798191855299, 1.1895325637549146], [-0.52970986057913017, 4.2827660014035924, -3.8150353293719927, 4.709830625622887],
538    [-0.75876286632995615, -0.22282821598760449, -2.8025089483451913, 0.50702160519610828]], [[-0.63931412488187611,
539    3.0113958705998272, -3.8428191253982069, -0.44348303745008], [1.3044314495288791, 0.85661911039063199, 3.0504178786209266,
540    0.98856020664162081], [1.8826398310117467, -1.0396561564326445, 2.0962423161913426, -1.0118098533838027]]]]))
541          res=arg0+arg1
542          ref=Data(numpy.array([[[[-7.0511997760780538, 3.801500130646688, 2.5970403757235401, -4.7107222736154863],
543    [-0.30826129895889576, -6.7838834281087781, -3.8453023527277064, 0.13723427053238302], [-0.06896171870653367,
544    3.980359806875426, -1.7358604219500373, -2.8703840163714585]], [[-5.4885007182767431, 3.0912902060876757, -5.0559507649036997,
545    1.4881053938314954], [-4.9778330858184434, 1.5525280666057286, 1.1009776088201155, 1.161297498872953], [-3.9788580755941374,
546    -5.57061812155181, -4.138314843392517, 0.4853831024015216]]], [[[-2.0366834945717089, -7.5080278581654758, -7.3953361708418832,
547    7.1649782249362755], [3.7736924704138808, 0.72102764497954608, -1.9255258925765038, -0.037710851039693516],
548    [-0.55447042256513335, -1.7613427204931806, -5.6464652872401766, -6.7402830879551576]], [[-2.0222475784255631,
549    0.80938218488671065, 6.0659214676321582, 3.2765532675868023], [0.7490152034321369, 6.7202443385617219, -1.0931831413315392,
550    -4.2287658380380542], [4.1508239993033689, -1.9639954004023266, -7.2198755325137114, 3.7324383418597673]]],
551    [[[-2.2699646042143016, -0.8664397069330807, 1.151161045896512, -1.2438483322553209], [-2.2943946644854911, 1.9195864561833202,
552    0.82216713576080469, -0.53352408988551669], [-5.3676937552168784, -1.6057530761107683, -8.1588710606099184,
553    -1.9753442219737112]], [[6.0967405758435662, -2.8039594568062056, 7.1665722709985218, 4.0802816392901491],
554    [-0.25330010885376275, 1.2336833379358891, -7.3311306801198315, 0.54646099710692697], [2.3616759205165847, 3.4230779130700775,
555    9.2240692645531244, 3.1654862303041256]]]]),self.functionspace)
556          ref.setTaggedValue(1,numpy.array([[[[-7.851578720139516, 2.555085065594648, 1.6728870249533969, -5.8607024243264458],
557    [3.4041416767869572, -2.7025703495937621, -4.5419744748918367, 2.4376558853792947], [-0.069320750882690074, 2.3412269947091096,
558    -3.9293695043455301, -3.5162199354068644]], [[0.075987854930998466, -2.3769107991231397, -3.5459946181907744,
559    4.7352748388125017], [-4.0969779170308147, -0.48327521349066238, 4.6674630189345923, 1.7825718412095011], [-1.7632266345404473,
560    2.2914018420681828, 1.5712100820896646, 8.648137292412363]]], [[[-2.4077186787982949, -2.1046498157591129, 0.32585340349723513,
561    6.1354793212901049], [-2.2666724557779592, -3.1206350938432159, -2.6008340483460612, -7.134228645675142], [-3.1793735578649165,
562    -7.8014284404771539, -4.0073041771164988, -3.9088121886174791]], [[4.5377112126366121, 1.3660395658206266, -3.655532831074269,
563    3.4085312116150126], [8.1230416869470279, 1.8696600973553279, -1.5240953091601077, -3.8181587823749936], [3.9063370838998956,
564    -1.4710405041286392, -1.0870469011993067, 0.71572971717448741]]], [[[6.8360511184603467, 2.5976849993826168,
565    -1.3764797446273103, 3.0751895155372386], [-4.1075171584846668, 2.8307561035503932, -5.6840389759167831, 2.5273602781422273],
566    [-3.7082514161713167, -5.114407525907068, -6.2107079822952205, -0.32554788625220432]], [[3.061407632361222, 2.1604092746514238,
567    -0.25554733044484745, 0.1301636198548719], [1.0353433623065786, -2.8526314127413377, 0.33610966361354588, -1.5428060129138834],
568    [-0.59695374422308412, 1.8869614477382717, 6.4812381443169906, -1.6428374721729093]]]]))
569        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
570        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
571        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
# Line 278  class Test_util_overloaded_binary_with_t Line 606  class Test_util_overloaded_binary_with_t
606     def test_add_overloaded_taggedData_rank0_array_rank2(self):     def test_add_overloaded_taggedData_rank0_array_rank2(self):
607        arg0=Data(-2.4360484545,self.functionspace)        arg0=Data(-2.4360484545,self.functionspace)
608        arg0.setTaggedValue(1,4.51542461912)        arg0.setTaggedValue(1,4.51542461912)
609        arg1=numpy.array([[2.1081715059736279, 1.5276320644975154, -3.5919376793793631, 2.49668285250495, 2.0560683812000384], [-1.8968708676974897, -1.3909914778934382, -3.8972446549153341, 4.4648337345436762, -3.4134205109734883], [4.813110307018281, 2.5414393459775635, -3.7296494961802864, 3.5859706166020082, 4.7695162754414113], [1.5733478639386531, -4.8511134286581665, 3.5242887252078354, -2.4340148304684419, -3.5714922585679201]])        arg1=numpy.array([[2.1081715059736279, 1.5276320644975154, -3.5919376793793631, 2.49668285250495, 2.0560683812000384],
610        res=arg0+arg1  [-1.8968708676974897, -1.3909914778934382, -3.8972446549153341, 4.4648337345436762, -3.4134205109734883], [4.813110307018281,
611        ref=Data(numpy.array([[-0.32787694852410354, -0.90841639000021601, -6.0279861338770946, 0.060634398007218593, -0.37998007329769301], [-4.3329193221952211, -3.8270399323911697, -6.3332931094130656, 2.0287852800459447, -5.8494689654712193], [2.3770618525205496, 0.10539089147983205, -6.1656979506780178, 1.1499221621042768, 2.3334678209436799], [-0.86270059055907833, -7.287161883155898, 1.088240270710104, -4.8700632849661734, -6.0075407130656515]]),self.functionspace)  2.5414393459775635, -3.7296494961802864, 3.5859706166020082, 4.7695162754414113], [1.5733478639386531, -4.8511134286581665,
612        ref.setTaggedValue(1,numpy.array([[6.6235961250938011, 6.0430566836176887, 0.92348693974081009, 7.0121074716251233, 6.5714930003202117], [2.6185537514226835, 3.124433141226735, 0.61817996420483912, 8.9802583536638494, 1.1020041081466849], [9.3285349261384543, 7.0568639650977367, 0.78577512293988683, 8.1013952357221815, 9.2849408945615846], [6.0887724830588263, -0.33568880953799329, 8.0397133443280087, 2.0814097886517313, 0.94393236055225316]]))  3.5242887252078354, -2.4340148304684419, -3.5714922585679201]])
613          res=arg0+arg1
614          ref=Data(numpy.array([[-0.32787694852410354, -0.90841639000021601, -6.0279861338770946, 0.060634398007218593,
615    -0.37998007329769301], [-4.3329193221952211, -3.8270399323911697, -6.3332931094130656, 2.0287852800459447,
616    -5.8494689654712193], [2.3770618525205496, 0.10539089147983205, -6.1656979506780178, 1.1499221621042768, 2.3334678209436799],
617    [-0.86270059055907833, -7.287161883155898, 1.088240270710104, -4.8700632849661734, -6.0075407130656515]]),self.functionspace)
618          ref.setTaggedValue(1,numpy.array([[6.6235961250938011, 6.0430566836176887, 0.92348693974081009, 7.0121074716251233,
619    6.5714930003202117], [2.6185537514226835, 3.124433141226735, 0.61817996420483912, 8.9802583536638494, 1.1020041081466849],
620    [9.3285349261384543, 7.0568639650977367, 0.78577512293988683, 8.1013952357221815, 9.2849408945615846], [6.0887724830588263,
621    -0.33568880953799329, 8.0397133443280087, 2.0814097886517313, 0.94393236055225316]]))
622        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
623        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
624        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
# Line 289  class Test_util_overloaded_binary_with_t Line 626  class Test_util_overloaded_binary_with_t
626     def test_add_overloaded_taggedData_rank0_array_rank3(self):     def test_add_overloaded_taggedData_rank0_array_rank3(self):
627        arg0=Data(-3.24208975985,self.functionspace)        arg0=Data(-3.24208975985,self.functionspace)
628        arg0.setTaggedValue(1,2.62527982452)        arg0.setTaggedValue(1,2.62527982452)
629        arg1=numpy.array([[[-0.41404840239016316, 1.7801109686638803], [-1.2039450965390741, -2.3347839202577081]], [[-3.5114328978873468, 2.1533305358449084], [-4.6106167476145608, -0.62953884006243932]], [[-1.4956222356435731, 3.7031850577772545], [-3.2630348889887628, 2.3059455186166176]], [[4.8324963451520286, 2.942652657805878], [-3.5862292403076612, -3.9654056615935951]], [[-0.50974622785371348, -1.1838710587598564], [-2.8798848007442124, 1.5559414527111812]], [[2.5767525820163169, 3.0650856225295975], [3.1433748459083439, -2.1130873478359726]]])        arg1=numpy.array([[[-0.41404840239016316, 1.7801109686638803], [-1.2039450965390741, -2.3347839202577081]],
630        res=arg0+arg1  [[-3.5114328978873468, 2.1533305358449084], [-4.6106167476145608, -0.62953884006243932]], [[-1.4956222356435731,
631        ref=Data(numpy.array([[[-3.6561381622414144, -1.461978791187371], [-4.4460348563903249, -5.5768736801089593]], [[-6.7535226577385981, -1.0887592240063428], [-7.852706507465812, -3.8716285999136906]], [[-4.7377119954948244, 0.46109529792600323], [-6.5051246488400141, -0.93614424123463369]], [[1.5904065853007774, -0.29943710204537322], [-6.8283190001589125, -7.2074954214448468]], [[-3.7518359877049647, -4.4259608186111077], [-6.1219745605954632, -1.68614830714007]], [[-0.6653371778349344, -0.17700413732165377], [-0.098714913942907323, -5.3551771076872239]]]),self.functionspace)  3.7031850577772545], [-3.2630348889887628, 2.3059455186166176]], [[4.8324963451520286, 2.942652657805878],
632        ref.setTaggedValue(1,numpy.array([[[2.2112314221260982, 4.4053907931801417], [1.4213347279771873, 0.29049590425855332]], [[-0.8861530733710854, 4.7786103603611698], [-1.9853369230982993, 1.9957409844538221]], [[1.1296575888726883, 6.3284648822935159], [-0.63775506447250141, 4.931225343132879]], [[7.45777616966829, 5.5679324823221394], [-0.96094941579139981, -1.3401258370773337]], [[2.1155335966625479, 1.441408765756405], [-0.25460497622795097, 4.1812212772274426]], [[5.2020324065325783, 5.6903654470458589], [5.7686546704246053, 0.51219247668028878]]]))  [-3.5862292403076612, -3.9654056615935951]], [[-0.50974622785371348, -1.1838710587598564], [-2.8798848007442124,
633    1.5559414527111812]], [[2.5767525820163169, 3.0650856225295975], [3.1433748459083439, -2.1130873478359726]]])
634          res=arg0+arg1
635          ref=Data(numpy.array([[[-3.6561381622414144, -1.461978791187371], [-4.4460348563903249, -5.5768736801089593]],
636    [[-6.7535226577385981, -1.0887592240063428], [-7.852706507465812, -3.8716285999136906]], [[-4.7377119954948244,
637    0.46109529792600323], [-6.5051246488400141, -0.93614424123463369]], [[1.5904065853007774, -0.29943710204537322],
638    [-6.8283190001589125, -7.2074954214448468]], [[-3.7518359877049647, -4.4259608186111077], [-6.1219745605954632,
639    -1.68614830714007]], [[-0.6653371778349344, -0.17700413732165377], [-0.098714913942907323,
640    -5.3551771076872239]]]),self.functionspace)
641          ref.setTaggedValue(1,numpy.array([[[2.2112314221260982, 4.4053907931801417], [1.4213347279771873, 0.29049590425855332]],
642    [[-0.8861530733710854, 4.7786103603611698], [-1.9853369230982993, 1.9957409844538221]], [[1.1296575888726883,
643    6.3284648822935159], [-0.63775506447250141, 4.931225343132879]], [[7.45777616966829, 5.5679324823221394],
644    [-0.96094941579139981, -1.3401258370773337]], [[2.1155335966625479, 1.441408765756405], [-0.25460497622795097,
645    4.1812212772274426]], [[5.2020324065325783, 5.6903654470458589], [5.7686546704246053, 0.51219247668028878]]]))
646        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
647        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
648        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
# Line 300  class Test_util_overloaded_binary_with_t Line 650  class Test_util_overloaded_binary_with_t
650     def test_add_overloaded_taggedData_rank0_array_rank4(self):     def test_add_overloaded_taggedData_rank0_array_rank4(self):
651        arg0=Data(-2.19530486292,self.functionspace)        arg0=Data(-2.19530486292,self.functionspace)
652        arg0.setTaggedValue(1,-2.52768715312)        arg0.setTaggedValue(1,-2.52768715312)
653        arg1=numpy.array([[[[0.38393400062398442, -2.6147123620008395, 4.8241838964862076, -1.1882915245803547], [-4.8584169558915544, -4.2515286929515366, -3.3859152328281192, -2.0952380674002469], [0.61629231289259589, -1.9596662627806283, 0.4856917994251031, -1.5260646850614537]], [[-4.5619792635413425, 3.5356801539889666, -1.2989305375592961, -0.70326837185152513], [1.5284830556150446, -3.2136918579264586, 1.4558473460696941, 2.1187716690776579], [1.9160649368111882, -2.9242831605548969, 3.0296911633727355, -4.4653077280479092]]], [[[4.8996679916559458, 0.88461077080015027, -0.27560328112553911, -4.3227022752991759], [0.41423872610300982, 1.1100151635069704, -1.9738227060660538, -2.6025963782287374], [0.77693900848882702, -1.7199330644894273, 1.9446959337570879, -0.16278879482562836]], [[4.2852363930005097, 4.7709650025354264, -2.6703711254031282, 4.1494469236895721], [1.3543103275247157, -3.3369007278217633, -3.3113027260158736, -2.3541119413122216], [-0.99647461479252719, 1.5894087520747844, 0.54302955182696167, 1.1042832544674379]]], [[[-1.4721726792199084, 3.6742560454540119, -0.046524751054013436, 0.21301683274857908], [-0.18494596344052727, -4.8879168863640698, 1.4217501368556835, 3.6166116051506467], [3.5834284464806814, -2.6687331265922145, 2.7545281197211366, 0.29769138648064519]], [[-1.7029022954648418, -2.5974944149521271, 3.9562327933765697, 1.1432944512268648], [-2.0064742753156506, -4.6283696182621981, 0.52662000619486449, -4.0178647609846019], [3.7212667864529632, 1.1699706335673135, 2.0951843835822892, 1.0356135330496885]]]])        arg1=numpy.array([[[[0.38393400062398442, -2.6147123620008395, 4.8241838964862076, -1.1882915245803547],
654        res=arg0+arg1  [-4.8584169558915544, -4.2515286929515366, -3.3859152328281192, -2.0952380674002469], [0.61629231289259589,
655        ref=Data(numpy.array([[[[-1.8113708622929359, -4.8100172249177593, 2.6288790335692873, -3.383596387497275], [-7.0537218188084747, -6.4468335558684569, -5.5812200957450395, -4.2905429303171676], [-1.5790125500243244, -4.1549711256975481, -1.7096130634918172, -3.7213695479783739]], [[-6.7572841264582628, 1.3403752910720463, -3.4942354004762164, -2.8985732347684454], [-0.66682180730187568, -5.4089967208433789, -0.73945751684722616, -0.076533193839262381], [-0.27923992610573212, -5.1195880234718167, 0.83438630045581519, -6.6606125909648295]]], [[[2.7043631287390255, -1.31069409211677, -2.4709081440424594, -6.5180071382160962], [-1.7810661368139105, -1.0852896994099499, -4.1691275689829741, -4.7979012411456576], [-1.4183658544280933, -3.9152379274063476, -0.25060892915983235, -2.3580936577425486]], [[2.0899315300835895, 2.5756601396185062, -4.8656759883200484, 1.9541420607726518], [-0.84099453539220459, -5.532205590738684, -5.5066075889327939, -4.5494168042291419], [-3.1917794777094475, -0.6058961108421359, -1.6522753110899586, -1.0910216084494824]]], [[[-3.6674775421368286, 1.4789511825370916, -2.2418296139709337, -1.9822880301683412], [-2.3802508263574476, -7.0832217492809901, -0.77355472606123676, 1.4213067422337264], [1.3881235835637611, -4.8640379895091348, 0.55922325680421636, -1.8976134764362751]], [[-3.8982071583817621, -4.7927992778690474, 1.7609279304596495, -1.0520104116900555], [-4.2017791382325704, -6.8236744811791183, -1.6686848567220558, -6.2131696239015222], [1.5259619235360429, -1.0253342293496068, -0.10012047933463109, -1.1596913298672318]]]]),self.functionspace)  -1.9596662627806283, 0.4856917994251031, -1.5260646850614537]], [[-4.5619792635413425, 3.5356801539889666, -1.2989305375592961,
656        ref.setTaggedValue(1,numpy.array([[[[-2.143753152496318, -5.1423995151211415, 2.2964967433659051, -3.7159786777006572], [-7.3861041090118569, -6.779215846071839, -5.9136023859484217, -4.6229252205205498], [-1.9113948402277066, -4.4873534159009303, -2.0419953536951994, -4.0537518381817561]], [[-7.089666416661645, 1.0079930008686642, -3.8266176906795986, -3.2309555249718276], [-0.99920409750525785, -5.7413790110467611, -1.0718398070506083, -0.40891548404264455], [-0.61162221630911429, -5.4519703136751989, 0.50200401025243302, -6.9929948811682117]]], [[[2.3719808385356433, -1.6430763823201522, -2.8032904342458416, -6.8503894284194784], [-2.1134484270172926, -1.4176719896133321, -4.5015098591863563, -5.1302835313490398], [-1.7507481446314754, -4.2476202176097297, -0.58299121936321452, -2.6904759479459308]], [[1.7575492398802073, 2.243277849415124, -5.1980582785234306, 1.6217597705692697], [-1.1733768255955868, -5.8645878809420662, -5.8389898791361761, -4.881799094432524], [-3.5241617679128296, -0.93827840104551807, -1.9846576012933408, -1.4234038986528645]]], [[[-3.9998598323402108, 1.1465688923337094, -2.5742119041743159, -2.3146703203717234], [-2.7126331165608297, -7.4156040394843723, -1.1059370162646189, 1.0889244520303443], [1.0557412933603789, -5.196420279712517, 0.22684096660083419, -2.2299957666396573]], [[-4.2305894485851443, -5.1251815680724295, 1.4285456402562673, -1.3843927018934377], [-4.5341614284359526, -7.1560567713825005, -2.001067146925438, -6.5455519141049043], [1.1935796333326607, -1.357716519552989, -0.43250276953801325, -1.4920736200706139]]]]))  -0.70326837185152513], [1.5284830556150446, -3.2136918579264586, 1.4558473460696941, 2.1187716690776579], [1.9160649368111882,
657    -2.9242831605548969, 3.0296911633727355, -4.4653077280479092]]], [[[4.8996679916559458, 0.88461077080015027,
658    -0.27560328112553911, -4.3227022752991759], [0.41423872610300982, 1.1100151635069704, -1.9738227060660538,
659    -2.6025963782287374], [0.77693900848882702, -1.7199330644894273, 1.9446959337570879, -0.16278879482562836]],
660    [[4.2852363930005097, 4.7709650025354264, -2.6703711254031282, 4.1494469236895721], [1.3543103275247157, -3.3369007278217633,
661    -3.3113027260158736, -2.3541119413122216], [-0.99647461479252719, 1.5894087520747844, 0.54302955182696167,
662    1.1042832544674379]]], [[[-1.4721726792199084, 3.6742560454540119, -0.046524751054013436, 0.21301683274857908],
663    [-0.18494596344052727, -4.8879168863640698, 1.4217501368556835, 3.6166116051506467], [3.5834284464806814, -2.6687331265922145,
664    2.7545281197211366, 0.29769138648064519]], [[-1.7029022954648418, -2.5974944149521271, 3.9562327933765697, 1.1432944512268648],
665    [-2.0064742753156506, -4.6283696182621981, 0.52662000619486449, -4.0178647609846019], [3.7212667864529632, 1.1699706335673135,
666    2.0951843835822892, 1.0356135330496885]]]])
667          res=arg0+arg1
668          ref=Data(numpy.array([[[[-1.8113708622929359, -4.8100172249177593, 2.6288790335692873, -3.383596387497275],
669    [-7.0537218188084747, -6.4468335558684569, -5.5812200957450395, -4.2905429303171676], [-1.5790125500243244,
670    -4.1549711256975481, -1.7096130634918172, -3.7213695479783739]], [[-6.7572841264582628, 1.3403752910720463,
671    -3.4942354004762164, -2.8985732347684454], [-0.66682180730187568, -5.4089967208433789, -0.73945751684722616,
672    -0.076533193839262381], [-0.27923992610573212, -5.1195880234718167, 0.83438630045581519, -6.6606125909648295]]],
673    [[[2.7043631287390255, -1.31069409211677, -2.4709081440424594, -6.5180071382160962], [-1.7810661368139105, -1.0852896994099499,
674    -4.1691275689829741, -4.7979012411456576], [-1.4183658544280933, -3.9152379274063476, -0.25060892915983235,
675    -2.3580936577425486]], [[2.0899315300835895, 2.5756601396185062, -4.8656759883200484, 1.9541420607726518],
676    [-0.84099453539220459, -5.532205590738684, -5.5066075889327939, -4.5494168042291419], [-3.1917794777094475,
677    -0.6058961108421359, -1.6522753110899586, -1.0910216084494824]]], [[[-3.6674775421368286, 1.4789511825370916,
678    -2.2418296139709337, -1.9822880301683412], [-2.3802508263574476, -7.0832217492809901, -0.77355472606123676,
679    1.4213067422337264], [1.3881235835637611, -4.8640379895091348, 0.55922325680421636, -1.8976134764362751]],
680    [[-3.8982071583817621, -4.7927992778690474, 1.7609279304596495, -1.0520104116900555], [-4.2017791382325704,
681    -6.8236744811791183, -1.6686848567220558, -6.2131696239015222], [1.5259619235360429, -1.0253342293496068, -0.10012047933463109,
682    -1.1596913298672318]]]]),self.functionspace)
683          ref.setTaggedValue(1,numpy.array([[[[-2.143753152496318, -5.1423995151211415, 2.2964967433659051, -3.7159786777006572],
684    [-7.3861041090118569, -6.779215846071839, -5.9136023859484217, -4.6229252205205498], [-1.9113948402277066, -4.4873534159009303,
685    -2.0419953536951994, -4.0537518381817561]], [[-7.089666416661645, 1.0079930008686642, -3.8266176906795986,
686    -3.2309555249718276], [-0.99920409750525785, -5.7413790110467611, -1.0718398070506083, -0.40891548404264455],
687    [-0.61162221630911429, -5.4519703136751989, 0.50200401025243302, -6.9929948811682117]]], [[[2.3719808385356433,
688    -1.6430763823201522, -2.8032904342458416, -6.8503894284194784], [-2.1134484270172926, -1.4176719896133321, -4.5015098591863563,
689    -5.1302835313490398], [-1.7507481446314754, -4.2476202176097297, -0.58299121936321452, -2.6904759479459308]],
690    [[1.7575492398802073, 2.243277849415124, -5.1980582785234306, 1.6217597705692697], [-1.1733768255955868, -5.8645878809420662,
691    -5.8389898791361761, -4.881799094432524], [-3.5241617679128296, -0.93827840104551807, -1.9846576012933408,
692    -1.4234038986528645]]], [[[-3.9998598323402108, 1.1465688923337094, -2.5742119041743159, -2.3146703203717234],
693    [-2.7126331165608297, -7.4156040394843723, -1.1059370162646189, 1.0889244520303443], [1.0557412933603789, -5.196420279712517,
694    0.22684096660083419, -2.2299957666396573]], [[-4.2305894485851443, -5.1251815680724295, 1.4285456402562673,
695    -1.3843927018934377], [-4.5341614284359526, -7.1560567713825005, -2.001067146925438, -6.5455519141049043], [1.1935796333326607,
696    -1.357716519552989, -0.43250276953801325, -1.4920736200706139]]]]))
697        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
698        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
699        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
# Line 333  class Test_util_overloaded_binary_with_t Line 723  class Test_util_overloaded_binary_with_t
723     def test_add_overloaded_taggedData_rank0_constData_rank2(self):     def test_add_overloaded_taggedData_rank0_constData_rank2(self):
724        arg0=Data(2.7324622393,self.functionspace)        arg0=Data(2.7324622393,self.functionspace)
725        arg0.setTaggedValue(1,-4.50382859082)        arg0.setTaggedValue(1,-4.50382859082)
726        arg1=Data(numpy.array([[3.3641860429263062, -1.8077339556933514, -1.2834744556811017, -4.4787445140634405, -0.27698598603725344], [-1.2127736585101703, -3.4779249046318683, 2.0899273379433154, 3.4999307572361626, -0.47171298019905628], [-0.24400762141580135, -2.7594431028750286, 0.34535610045476872, 0.85446598867582235, 1.2445562714632903], [-1.9601875932982784, -2.9526655521925105, -4.1058310669425326, -1.5162723691050051, -0.55946914666192527]]),self.functionspace)        arg1=Data(numpy.array([[3.3641860429263062, -1.8077339556933514, -1.2834744556811017, -4.4787445140634405,
727        res=arg0+arg1  -0.27698598603725344], [-1.2127736585101703, -3.4779249046318683, 2.0899273379433154, 3.4999307572361626,
728        ref=Data(numpy.array([[6.096648282228764, 0.92472828360910642, 1.4489877836213561, -1.7462822747609827, 2.4554762532652044], [1.5196885807922875, -0.74546266532941052, 4.8223895772457732, 6.2323929965386204, 2.2607492591034015], [2.4884546178866565, -0.02698086357257079, 3.0778183397572265, 3.5869282279782801, 3.9770185107657481], [0.77227464600417939, -0.22020331289005268, -1.3733688276400748, 1.2161898701974527, 2.1729930926405325]]),self.functionspace)  -0.47171298019905628], [-0.24400762141580135, -2.7594431028750286, 0.34535610045476872, 0.85446598867582235,
729        ref.setTaggedValue(1,numpy.array([[-1.1396425478896504, -6.3115625465093075, -5.7873030464970583, -8.9825731048793962, -4.78081457685321], [-5.7166022493261268, -7.9817534954478244, -2.4139012528726411, -1.0038978335797939, -4.9755415710150128], [-4.7478362122317579, -7.2632716936909851, -4.1584724903611878, -3.6493626021401342, -3.2592723193526663], [-6.464016184114235, -7.4564941430084666, -8.6096596577584883, -6.0201009599209616, -5.0632977374778818]]))  1.2445562714632903], [-1.9601875932982784, -2.9526655521925105, -4.1058310669425326, -1.5162723691050051,
730    -0.55946914666192527]]),self.functionspace)
731          res=arg0+arg1
732          ref=Data(numpy.array([[6.096648282228764, 0.92472828360910642, 1.4489877836213561, -1.7462822747609827,
733    2.4554762532652044], [1.5196885807922875, -0.74546266532941052, 4.8223895772457732, 6.2323929965386204, 2.2607492591034015],
734    [2.4884546178866565, -0.02698086357257079, 3.0778183397572265, 3.5869282279782801, 3.9770185107657481], [0.77227464600417939,
735    -0.22020331289005268, -1.3733688276400748, 1.2161898701974527, 2.1729930926405325]]),self.functionspace)
736          ref.setTaggedValue(1,numpy.array([[-1.1396425478896504, -6.3115625465093075, -5.7873030464970583, -8.9825731048793962,
737    -4.78081457685321], [-5.7166022493261268, -7.9817534954478244, -2.4139012528726411, -1.0038978335797939, -4.9755415710150128],
738    [-4.7478362122317579, -7.2632716936909851, -4.1584724903611878, -3.6493626021401342, -3.2592723193526663], [-6.464016184114235,
739    -7.4564941430084666, -8.6096596577584883, -6.0201009599209616, -5.0632977374778818]]))
740        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
741        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
742        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
# Line 344  class Test_util_overloaded_binary_with_t Line 744  class Test_util_overloaded_binary_with_t
744     def test_add_overloaded_taggedData_rank0_constData_rank3(self):     def test_add_overloaded_taggedData_rank0_constData_rank3(self):
745        arg0=Data(2.19032016387,self.functionspace)        arg0=Data(2.19032016387,self.functionspace)
746        arg0.setTaggedValue(1,-2.56680802473)        arg0.setTaggedValue(1,-2.56680802473)
747        arg1=Data(numpy.array([[[-3.9751171199690436, 4.8899184336489103], [-3.9690433069117983, 1.6926749155014509]], [[1.4258065830516582, -4.4135341836058659], [1.8500348031722673, -1.1915908985412393]], [[3.544916706225667, -2.776918511293518], [4.9193199901841584, 3.1529485219215143]], [[-3.7019570594296858, -4.8151732460070686], [-4.1507319417463107, -0.34538259128676607]], [[1.8900885748804575, -4.230946658400395], [-1.6413217851779405, 0.16987378532215747]], [[1.4069100800246268, 3.9494846877176126], [3.7590990052833391, 3.9137483255036276]]]),self.functionspace)        arg1=Data(numpy.array([[[-3.9751171199690436, 4.8899184336489103], [-3.9690433069117983, 1.6926749155014509]],
748        res=arg0+arg1  [[1.4258065830516582, -4.4135341836058659], [1.8500348031722673, -1.1915908985412393]], [[3.544916706225667,
749        ref=Data(numpy.array([[[-1.784796956098651, 7.080238597519303], [-1.7787231430414057, 3.8829950793718435]], [[3.6161267469220508, -2.2232140197354733], [4.04035496704266, 0.99872926532915329]], [[5.7352368700960596, -0.58659834742312533], [7.1096401540545511, 5.3432686857919069]], [[-1.5116368955592931, -2.624853082136676], [-1.960411777875918, 1.8449375725836266]], [[4.0804087387508501, -2.0406264945300023], [0.54899837869245216, 2.3601939491925501]], [[3.5972302438950194, 6.1398048515880053], [5.9494191691537317, 6.1040684893740202]]]),self.functionspace)  -2.776918511293518], [4.9193199901841584, 3.1529485219215143]], [[-3.7019570594296858, -4.8151732460070686],
750        ref.setTaggedValue(1,numpy.array([[[-6.5419251447033178, 2.3231104089146362], [-6.5358513316460725, -0.87413310923282328]], [[-1.141001441682616, -6.9803422083401401], [-0.71677322156200685, -3.7583989232755135]], [[0.97810868149139285, -5.3437265360277921], [2.3525119654498843, 0.58614049718724015]], [[-6.2687650841639595, -7.3819812707413428], [-6.7175399664805848, -2.9121906160210402]], [[-0.67671944985381671, -6.7977546831346691], [-4.2081298099122151, -2.3969342394121167]], [[-1.1598979447096474, 1.3826766629833385], [1.1922909805490649, 1.3469403007693534]]]))  [-4.1507319417463107, -0.34538259128676607]], [[1.8900885748804575, -4.230946658400395], [-1.6413217851779405,
751    0.16987378532215747]], [[1.4069100800246268, 3.9494846877176126], [3.7590990052833391,
752    3.9137483255036276]]]),self.functionspace)
753          res=arg0+arg1
754          ref=Data(numpy.array([[[-1.784796956098651, 7.080238597519303], [-1.7787231430414057, 3.8829950793718435]],
755    [[3.6161267469220508, -2.2232140197354733], [4.04035496704266, 0.99872926532915329]], [[5.7352368700960596,
756    -0.58659834742312533], [7.1096401540545511, 5.3432686857919069]], [[-1.5116368955592931, -2.624853082136676],
757    [-1.960411777875918, 1.8449375725836266]], [[4.0804087387508501, -2.0406264945300023], [0.54899837869245216,
758    2.3601939491925501]], [[3.5972302438950194, 6.1398048515880053], [5.9494191691537317, 6.1040684893740202]]]),self.functionspace)
759          ref.setTaggedValue(1,numpy.array([[[-6.5419251447033178, 2.3231104089146362], [-6.5358513316460725,
760    -0.87413310923282328]], [[-1.141001441682616, -6.9803422083401401], [-0.71677322156200685, -3.7583989232755135]],
761    [[0.97810868149139285, -5.3437265360277921], [2.3525119654498843, 0.58614049718724015]], [[-6.2687650841639595,
762    -7.3819812707413428], [-6.7175399664805848, -2.9121906160210402]], [[-0.67671944985381671, -6.7977546831346691],
763    [-4.2081298099122151, -2.3969342394121167]], [[-1.1598979447096474, 1.3826766629833385], [1.1922909805490649,
764    1.3469403007693534]]]))
765        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
766        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
767        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
# Line 355  class Test_util_overloaded_binary_with_t Line 769  class Test_util_overloaded_binary_with_t
769     def test_add_overloaded_taggedData_rank0_constData_rank4(self):     def test_add_overloaded_taggedData_rank0_constData_rank4(self):
770        arg0=Data(-4.51699258956,self.functionspace)        arg0=Data(-4.51699258956,self.functionspace)
771        arg0.setTaggedValue(1,-1.9314688415)        arg0.setTaggedValue(1,-1.9314688415)
772        arg1=Data(numpy.array([[[[-4.6121210823866949, -0.39911898335550067, 1.0220065408994135, -3.2218202106106064], [-4.4798179661148883, 1.6143909899455444, -2.3591942868887896, -2.9651695050083071], [-3.8395108579430892, -1.1467597560894651, -1.8053166109441077, -3.8527182892474032]], [[4.3553230739546791, -1.8189069903443835, 2.7530356959031845, 4.8870107409366597], [-2.9869746864590274, 4.6069455536235466, -2.2979092144214155, -4.7536745870998223], [2.7714827290157151, -4.8302972276294343, 0.85624201495125618, -2.4558344865559869]]], [[[0.49954928283636946, 2.2844233040722539, -2.4563680004188804, -4.3546980978260494], [4.496792018950849, 0.63856672806402415, -4.9019667438169936, 4.4200698743379512], [0.3509823037673776, 3.8629058866223751, 3.9690404219111493, 2.7242082796739417]], [[0.55407991883350682, 4.8933550440969764, 3.1042639625705473, 1.5801801735882108], [3.358785928282531, -1.1342388303370043, 0.94125142292867814, -2.7267726407066739], [-2.2057107224085848, -0.71140132170168435, 0.83804467851579911, -3.4878274475552251]]], [[[0.54558900719122949, 4.7734486675017749, 0.30998287401196656, -3.4865707041166907], [-0.45750091834826456, 2.8340184453393551, -3.4634119343162881, -3.5403928817814165], [0.55810424653144697, -3.5771474761557887, 0.0016539868301510552, 3.1961208949540154]], [[-0.99132469275235646, -2.7321990677958894, 2.3084406702263518, 4.788854508284718], [3.7243726115726581, -1.9281248799270445, -3.5895232826834467, -4.4406635256688363], [-4.8095798476927962, -3.9675427987674583, -0.48206923849554961, 4.9910922710559742]]]]),self.functionspace)        arg1=Data(numpy.array([[[[-4.6121210823866949, -0.39911898335550067, 1.0220065408994135, -3.2218202106106064],
773        res=arg0+arg1  [-4.4798179661148883, 1.6143909899455444, -2.3591942868887896, -2.9651695050083071], [-3.8395108579430892, -1.1467597560894651,
774        ref=Data(numpy.array([[[[-9.1291136719436636, -4.9161115729124694, -3.4949860486575552, -7.7388128001675751], [-8.9968105556718569, -2.9026015996114243, -6.8761868764457583, -7.4821620945652754], [-8.3565034475000584, -5.6637523456464338, -6.3223092005010759, -8.3697108788043728]], [[-0.16166951560228959, -6.3358995799013522, -1.7639568936537842, 0.37001815137969096], [-7.5039672760159961, 0.089952964066577934, -6.8149018039783842, -9.2706671766567901], [-1.7455098605412536, -9.3472898171864038, -3.6607505746057125, -6.9728270761129556]]], [[[-4.0174433067205992, -2.2325692854847148, -6.9733605899758491, -8.871690687383019], [-0.020200570606119683, -3.8784258614929445, -9.4189593333739623, -0.096922715219017519], [-4.1660102857895911, -0.65408670293459359, -0.54795216764581944, -1.7927843098830269]], [[-3.9629126707234619, 0.37636245454000772, -1.4127286269864214, -2.9368124159687579], [-1.1582066612744377, -5.651231419893973, -3.5757411666282906, -7.2437652302636426], [-6.722703311965553, -5.228393911258653, -3.6789479110411696, -8.0048200371121929]]], [[[-3.9714035823657392, 0.25645607794480618, -4.2070097155450021, -8.0035632936736594], [-4.9744935079052333, -1.6829741442176136, -7.9804045238732568, -8.0573854713383852], [-3.9588883430255217, -8.0941400657127573, -4.5153386027268176, -1.3208716946029533]], [[-5.5083172823093252, -7.2491916573528581, -2.2085519193306169, 0.27186191872774934], [-0.79261997798431061, -6.4451174694840132, -8.1065158722404149, -8.9576561152258058], [-9.3265724372497658, -8.4845353883244279, -4.9990618280525183, 0.4740996814990055]]]]),self.functionspace)  -1.8053166109441077, -3.8527182892474032]], [[4.3553230739546791, -1.8189069903443835, 2.7530356959031845, 4.8870107409366597],
775        ref.setTaggedValue(1,numpy.array([[[[-6.5435899238906536, -2.3305878248594589, -0.9094623006045448, -5.1532890521145642], [-6.411286807618847, -0.31707785155841384, -4.2906631283927474, -4.8966383465122654], [-5.7709796994470475, -3.0782285975934234, -3.7367854524480659, -5.784187130751361]], [[2.4238542324507208, -3.7503758318483418, 0.82156685439922628, 2.9555418994327014], [-4.9184435279629852, 2.6754767121195884, -4.2293780559253733, -6.6851434286037801], [0.84001388751175687, -6.7617660691333921, -1.0752268265527021, -4.3873033280599447]]], [[[-1.4319195586675888, 0.35295446256829566, -4.3878368419228391, -6.2861669393300073], [2.5653231774468908, -1.2929021134399341, -6.8334355853209523, 2.4886010328339929], [-1.5804865377365807, 1.9314370451184169, 2.037571580407191, 0.79273943816998349]], [[-1.3773889226704514, 2.9618862025930182, 1.172795121066589, -0.35128866791574742], [1.4273170867785727, -3.0657076718409626, -0.99021741857528012, -4.6582414822106326], [-4.137179563912543, -2.6428701632056426, -1.0934241629881591, -5.4192962890591829]]], [[[-1.3858798343127288, 2.8419798259978166, -1.6214859674919917, -5.4180395456206494], [-2.3889697598522228, 0.90254960383539684, -5.3948807758202459, -5.4718617232853752], [-1.3733645949725113, -5.5086163176597474, -1.9298148546738072, 1.2646520534500572]], [[-2.9227935342563147, -4.6636679092998481, 0.37697182872239354, 2.8573856667807598], [1.7929037700686998, -3.8595937214310028, -5.5209921241874049, -6.3721323671727941], [-6.741048689196754, -5.8990116402714161, -2.4135380799995079, 3.0596234295520159]]]]))  [-2.9869746864590274, 4.6069455536235466, -2.2979092144214155, -4.7536745870998223], [2.7714827290157151, -4.8302972276294343,
776    0.85624201495125618, -2.4558344865559869]]], [[[0.49954928283636946, 2.2844233040722539, -2.4563680004188804,
777    -4.3546980978260494], [4.496792018950849, 0.63856672806402415, -4.9019667438169936, 4.4200698743379512], [0.3509823037673776,
778    3.8629058866223751, 3.9690404219111493, 2.7242082796739417]], [[0.55407991883350682, 4.8933550440969764, 3.1042639625705473,
779    1.5801801735882108], [3.358785928282531, -1.1342388303370043, 0.94125142292867814, -2.7267726407066739], [-2.2057107224085848,
780    -0.71140132170168435, 0.83804467851579911, -3.4878274475552251]]], [[[0.54558900719122949, 4.7734486675017749,
781    0.30998287401196656, -3.4865707041166907], [-0.45750091834826456, 2.8340184453393551, -3.4634119343162881,
782    -3.5403928817814165], [0.55810424653144697, -3.5771474761557887, 0.0016539868301510552, 3.1961208949540154]],
783    [[-0.99132469275235646, -2.7321990677958894, 2.3084406702263518, 4.788854508284718], [3.7243726115726581, -1.9281248799270445,
784    -3.5895232826834467, -4.4406635256688363], [-4.8095798476927962, -3.9675427987674583, -0.48206923849554961,
785    4.9910922710559742]]]]),self.functionspace)
786          res=arg0+arg1
787          ref=Data(numpy.array([[[[-9.1291136719436636, -4.9161115729124694, -3.4949860486575552, -7.7388128001675751],
788    [-8.9968105556718569, -2.9026015996114243, -6.8761868764457583, -7.4821620945652754], [-8.3565034475000584,
789    -5.6637523456464338, -6.3223092005010759, -8.3697108788043728]], [[-0.16166951560228959, -6.3358995799013522,
790    -1.7639568936537842, 0.37001815137969096], [-7.5039672760159961, 0.089952964066577934, -6.8149018039783842,
791    -9.2706671766567901], [-1.7455098605412536, -9.3472898171864038, -3.6607505746057125, -6.9728270761129556]]],
792    [[[-4.0174433067205992, -2.2325692854847148, -6.9733605899758491, -8.871690687383019], [-0.020200570606119683,
793    -3.8784258614929445, -9.4189593333739623, -0.096922715219017519], [-4.1660102857895911, -0.65408670293459359,
794    -0.54795216764581944, -1.7927843098830269]], [[-3.9629126707234619, 0.37636245454000772, -1.4127286269864214,
795    -2.9368124159687579], [-1.1582066612744377, -5.651231419893973, -3.5757411666282906, -7.2437652302636426], [-6.722703311965553,
796    -5.228393911258653, -3.6789479110411696, -8.0048200371121929]]], [[[-3.9714035823657392, 0.25645607794480618,
797    -4.2070097155450021, -8.0035632936736594], [-4.9744935079052333, -1.6829741442176136, -7.9804045238732568,
798    -8.0573854713383852], [-3.9588883430255217, -8.0941400657127573, -4.5153386027268176, -1.3208716946029533]],
799    [[-5.5083172823093252, -7.2491916573528581, -2.2085519193306169, 0.27186191872774934], [-0.79261997798431061,
800    -6.4451174694840132, -8.1065158722404149, -8.9576561152258058], [-9.3265724372497658, -8.4845353883244279, -4.9990618280525183,
801    0.4740996814990055]]]]),self.functionspace)
802          ref.setTaggedValue(1,numpy.array([[[[-6.5435899238906536, -2.3305878248594589, -0.9094623006045448, -5.1532890521145642],
803    [-6.411286807618847, -0.31707785155841384, -4.2906631283927474, -4.8966383465122654], [-5.7709796994470475,
804    -3.0782285975934234, -3.7367854524480659, -5.784187130751361]], [[2.4238542324507208, -3.7503758318483418, 0.82156685439922628,
805    2.9555418994327014], [-4.9184435279629852, 2.6754767121195884, -4.2293780559253733, -6.6851434286037801], [0.84001388751175687,
806    -6.7617660691333921, -1.0752268265527021, -4.3873033280599447]]], [[[-1.4319195586675888, 0.35295446256829566,
807    -4.3878368419228391, -6.2861669393300073], [2.5653231774468908, -1.2929021134399341, -6.8334355853209523, 2.4886010328339929],
808    [-1.5804865377365807, 1.9314370451184169, 2.037571580407191, 0.79273943816998349]], [[-1.3773889226704514, 2.9618862025930182,
809    1.172795121066589, -0.35128866791574742], [1.4273170867785727, -3.0657076718409626, -0.99021741857528012, -4.6582414822106326],
810    [-4.137179563912543, -2.6428701632056426, -1.0934241629881591, -5.4192962890591829]]], [[[-1.3858798343127288,
811    2.8419798259978166, -1.6214859674919917, -5.4180395456206494], [-2.3889697598522228, 0.90254960383539684, -5.3948807758202459,
812    -5.4718617232853752], [-1.3733645949725113, -5.5086163176597474, -1.9298148546738072, 1.2646520534500572]],
813    [[-2.9227935342563147, -4.6636679092998481, 0.37697182872239354, 2.8573856667807598], [1.7929037700686998, -3.8595937214310028,
814    -5.5209921241874049, -6.3721323671727941], [-6.741048689196754, -5.8990116402714161, -2.4135380799995079,
815    3.0596234295520159]]]]))
816        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
817        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
818        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
# Line 390  class Test_util_overloaded_binary_with_t Line 844  class Test_util_overloaded_binary_with_t
844     def test_add_overloaded_taggedData_rank0_taggedData_rank2(self):     def test_add_overloaded_taggedData_rank0_taggedData_rank2(self):
845        arg0=Data(4.05203768321,self.functionspace)        arg0=Data(4.05203768321,self.functionspace)
846        arg0.setTaggedValue(1,2.99934891978)        arg0.setTaggedValue(1,2.99934891978)
847        arg1=Data(numpy.array([[4.0109727121693535, -3.3123747036063866, -0.65378998028351365, -0.35226199859120033, -2.7572843697414138], [4.9956655041848723, -0.52363648179708377, 3.0308238090085062, -0.65374074249569603, -1.8312194682127378], [-4.0547465724550946, -2.1425959490010813, 3.6853966663310445, 1.29599873905227, -4.2870260966385585], [0.97570023159799746, -2.4295885899745651, 2.3547450346064194, -1.9262018603048023, -3.5168056866523143]]),self.functionspace)        arg1=Data(numpy.array([[4.0109727121693535, -3.3123747036063866, -0.65378998028351365, -0.35226199859120033,
848        arg1.setTaggedValue(1,numpy.array([[1.9020762439355519, 0.58831211015719376, 0.10478411615355832, -1.8221758784968278, -3.0312868921401148], [0.037363898105802207, -2.7440657037866978, 0.81830228900701574, 2.7443631180739736, -0.39768901470796614], [4.0097173958047012, 1.8501996956563289, -2.3414143509717134, 0.91838369541387799, 0.59960873643829338], [-3.0057595650064162, 1.0215009286287717, 4.7967180404588881, 1.3855216718432262, -2.0978337313153483]]))  -2.7572843697414138], [4.9956655041848723, -0.52363648179708377, 3.0308238090085062, -0.65374074249569603,
849        res=arg0+arg1  -1.8312194682127378], [-4.0547465724550946, -2.1425959490010813, 3.6853966663310445, 1.29599873905227, -4.2870260966385585],
850        ref=Data(numpy.array([[8.0630103953776899, 0.73966297960194982, 3.3982477029248228, 3.6997756846171361, 1.2947533134669227], [9.0477031873932088, 3.5284012014112527, 7.0828614922168427, 3.3982969407126404, 2.2208182149955986], [-0.0027088892467581616, 1.9094417342072552, 7.7374343495393809, 5.3480364222606065, -0.23498841343022203], [5.0277379148063339, 1.6224490932337714, 6.4067827178147558, 2.1258358229035341, 0.53523199655602216]]),self.functionspace)  [0.97570023159799746, -2.4295885899745651, 2.3547450346064194, -1.9262018603048023, -3.5168056866523143]]),self.functionspace)
851        ref.setTaggedValue(1,numpy.array([[4.9014251637164747, 3.5876610299381166, 3.1041330359344812, 1.1771730412840951, -0.031937972359191935], [3.0367128178867251, 0.2552832159942251, 3.8176512087879386, 5.7437120378548965, 2.6016599050729567], [7.0090663155856241, 4.8495486154372518, 0.65793456880920953, 3.9177326151948009, 3.5989576562192163], [-0.0064106452254932833, 4.0208498484096946, 7.7960669602398109, 4.384870591624149, 0.90151518846557455]]))        arg1.setTaggedValue(1,numpy.array([[1.9020762439355519, 0.58831211015719376, 0.10478411615355832, -1.8221758784968278,
852    -3.0312868921401148], [0.037363898105802207, -2.7440657037866978, 0.81830228900701574, 2.7443631180739736,
853    -0.39768901470796614], [4.0097173958047012, 1.8501996956563289, -2.3414143509717134, 0.91838369541387799, 0.59960873643829338],
854    [-3.0057595650064162, 1.0215009286287717, 4.7967180404588881, 1.3855216718432262, -2.0978337313153483]]))
855          res=arg0+arg1
856          ref=Data(numpy.array([[8.0630103953776899, 0.73966297960194982, 3.3982477029248228, 3.6997756846171361,
857    1.2947533134669227], [9.0477031873932088, 3.5284012014112527, 7.0828614922168427, 3.3982969407126404, 2.2208182149955986],
858    [-0.0027088892467581616, 1.9094417342072552, 7.7374343495393809, 5.3480364222606065, -0.23498841343022203],
859    [5.0277379148063339, 1.6224490932337714, 6.4067827178147558, 2.1258358229035341, 0.53523199655602216]]),self.functionspace)
860          ref.setTaggedValue(1,numpy.array([[4.9014251637164747, 3.5876610299381166, 3.1041330359344812, 1.1771730412840951,
861    -0.031937972359191935], [3.0367128178867251, 0.2552832159942251, 3.8176512087879386, 5.7437120378548965, 2.6016599050729567],
862    [7.0090663155856241, 4.8495486154372518, 0.65793456880920953, 3.9177326151948009, 3.5989576562192163], [-0.0064106452254932833,
863    4.0208498484096946, 7.7960669602398109, 4.384870591624149, 0.90151518846557455]]))
864        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
865        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
866        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
# Line 402  class Test_util_overloaded_binary_with_t Line 868  class Test_util_overloaded_binary_with_t
868     def test_add_overloaded_taggedData_rank0_taggedData_rank3(self):     def test_add_overloaded_taggedData_rank0_taggedData_rank3(self):
869        arg0=Data(3.12009271362,self.functionspace)        arg0=Data(3.12009271362,self.functionspace)
870        arg0.setTaggedValue(1,3.99467141204)        arg0.setTaggedValue(1,3.99467141204)
871        arg1=Data(numpy.array([[[3.3288751112597943, 3.2288364226226065], [-4.27743713114298, -4.442729193623367]], [[4.5455517418177553, -2.0690283359018968], [-0.082854446843692031, 2.2659297408978514]], [[0.76045293122690438, 0.53338980129996738], [-4.2717178158989064, -3.5128239879426149]], [[-3.576563246865605, 4.4557168791105219], [-3.0564832230809493, -2.2774467938837395]], [[3.0182590083997773, -1.2942577764404284], [4.1939707887791382, 0.099513539962120312]], [[0.047346570263790966, 1.3536116492480819], [-3.9155684845507377, -2.4106487782682704]]]),self.functionspace)        arg1=Data(numpy.array([[[3.3288751112597943, 3.2288364226226065], [-4.27743713114298, -4.442729193623367]],
872        arg1.setTaggedValue(1,numpy.array([[[4.3824375423470112, -3.0548925346523461], [-2.2027484362284913, 4.9046875731599719]], [[-3.3913827366940872, 0.62004007366019565], [-2.8047455003075319, 4.1933603818190139]], [[4.3888182133246172, 0.43417544351516213], [-3.9814144765755834, 3.7079574744230399]], [[2.6849666718347613, 2.7377998782056565], [-0.44184043133623518, 4.2701294690757265]], [[-2.5727508790835674, -4.5792308970455329], [-4.2503187020974629, -2.422324104904563]], [[2.8687560027339636, -4.3606027447498192], [3.8522492880998378, -4.8958542589689369]]]))  [[4.5455517418177553, -2.0690283359018968], [-0.082854446843692031, 2.2659297408978514]], [[0.76045293122690438,
873        res=arg0+arg1  0.53338980129996738], [-4.2717178158989064, -3.5128239879426149]], [[-3.576563246865605, 4.4557168791105219],
874        ref=Data(numpy.array([[[6.4489678248748774, 6.3489291362376896], [-1.1573444175278969, -1.3226364800082839]], [[7.6656444554328385, 1.0510643777131863], [3.0372382667713911, 5.3860224545129345]], [[3.8805456448419875, 3.6534825149150505], [-1.1516251022838233, -0.39273127432753174]], [[-0.45647053325052189, 7.5758095927256051], [0.063609490534133784, 0.84264591973134362]], [[6.1383517220148605, 1.8258349371746547], [7.3140635023942213, 3.2196062535772034]], [[3.1674392838788741, 4.473704362863165], [-0.79547577093565458, 0.70944393534681272]]]),self.functionspace)  [-3.0564832230809493, -2.2774467938837395]], [[3.0182590083997773, -1.2942577764404284], [4.1939707887791382,
875        ref.setTaggedValue(1,numpy.array([[[8.3771089543902697, 0.93977887739091237], [1.7919229758147672, 8.8993589852032304]], [[0.6032886753491713, 4.6147114857034541], [1.1899259117357266, 8.1880317938622724]], [[8.3834896253678757, 4.4288468555584206], [0.013256935467675035, 7.7026288864662984]], [[6.6796380838780198, 6.732471290248915], [3.5528309807070233, 8.264800881118985]], [[1.4219205329596911, -0.58455948500227439], [-0.25564729005420439, 1.5723473071386955]], [[6.8634274147772221, -0.36593133270656075], [7.8469207001430963, -0.9011828469256784]]]))  0.099513539962120312]], [[0.047346570263790966, 1.3536116492480819], [-3.9155684845507377,
876    -2.4106487782682704]]]),self.functionspace)
877          arg1.setTaggedValue(1,numpy.array([[[4.3824375423470112, -3.0548925346523461], [-2.2027484362284913,
878    4.9046875731599719]], [[-3.3913827366940872, 0.62004007366019565], [-2.8047455003075319, 4.1933603818190139]],
879    [[4.3888182133246172, 0.43417544351516213], [-3.9814144765755834, 3.7079574744230399]], [[2.6849666718347613,
880    2.7377998782056565], [-0.44184043133623518, 4.2701294690757265]], [[-2.5727508790835674, -4.5792308970455329],
881    [-4.2503187020974629, -2.422324104904563]], [[2.8687560027339636, -4.3606027447498192], [3.8522492880998378,
882    -4.8958542589689369]]]))
883          res=arg0+arg1
884          ref=Data(numpy.array([[[6.4489678248748774, 6.3489291362376896], [-1.1573444175278969, -1.3226364800082839]],
885    [[7.6656444554328385, 1.0510643777131863], [3.0372382667713911, 5.3860224545129345]], [[3.8805456448419875,
886    3.6534825149150505], [-1.1516251022838233, -0.39273127432753174]], [[-0.45647053325052189, 7.5758095927256051],
887    [0.063609490534133784, 0.84264591973134362]], [[6.1383517220148605, 1.8258349371746547], [7.3140635023942213,
888    3.2196062535772034]], [[3.1674392838788741, 4.473704362863165], [-0.79547577093565458,
889    0.70944393534681272]]]),self.functionspace)
890          ref.setTaggedValue(1,numpy.array([[[8.3771089543902697, 0.93977887739091237], [1.7919229758147672, 8.8993589852032304]],
891    [[0.6032886753491713, 4.6147114857034541], [1.1899259117357266, 8.1880317938622724]], [[8.3834896253678757,
892    4.4288468555584206], [0.013256935467675035, 7.7026288864662984]], [[6.6796380838780198, 6.732471290248915],
893    [3.5528309807070233, 8.264800881118985]], [[1.4219205329596911, -0.58455948500227439], [-0.25564729005420439,
894    1.5723473071386955]], [[6.8634274147772221, -0.36593133270656075], [7.8469207001430963, -0.9011828469256784]]]))
895        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
896        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
897        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
# Line 414  class Test_util_overloaded_binary_with_t Line 899  class Test_util_overloaded_binary_with_t
899     def test_add_overloaded_taggedData_rank0_taggedData_rank4(self):     def test_add_overloaded_taggedData_rank0_taggedData_rank4(self):
900        arg0=Data(2.15814625848,self.functionspace)        arg0=Data(2.15814625848,self.functionspace)
901        arg0.setTaggedValue(1,-1.54003280216)        arg0.setTaggedValue(1,-1.54003280216)
902        arg1=Data(numpy.array([[[[0.77780005294718713, -1.8382701985491856, 2.8100456369937827, -0.65810303243679069], [-2.1502736112542364, -1.4510218903103098, -1.5455760408573758, -1.4977089764499252], [-2.5953726210537633, -4.6546473323104536, -0.54591572151648293, 2.5113871518187194]], [[4.6959353612419346, 3.3929207698716883, 2.4231508860787923, 2.1568247294679228], [0.6083428437426841, 1.8094573710100095, 0.02078668160692132, -4.8695311945788653], [-1.6274091057385895, 2.2743846291290595, -3.9917322493800667, 1.2104668018060059]]], [[[4.3578682288142652, -1.2148719293193899, 1.6151062451585769, 2.5389231571768907], [2.0847460368699489, -2.6371013066373292, -4.3128248972532282, -3.0862601028789016], [4.0056188040004201, -1.9978831797736527, -2.4500282498142676, -3.8325019614790445]], [[2.4697811385291022, 1.0560478923301559, -3.2230874470411464, -1.9841475766189243], [-3.3269063240286201, 4.9754981707012451, -4.4072017166499027, -0.91796175383308753], [-4.7344459695107091, -4.621147653927002, -3.0867207598129074, 0.8965523811884113]]], [[[3.5445124209697223, -3.0199283387289344, -1.528283508837732, -4.786148180744048], [-0.35470208273686055, -4.3474467871167235, -0.10276294298889344, -3.3058859932770277], [1.5664759758131472, 4.1975423480902805, 4.2621171908026447, -3.5242591731006967]], [[4.4604848904395418, -0.70395998272948201, 4.2306795259333043, 2.0541522282931366], [0.55995884155478493, -0.75426183047508388, -1.9599710043821581, -1.6294664185384833], [1.2524026757554871, 2.1411345566794449, -2.4133729721536277, 1.9717912124502925]]]]),self.functionspace)        arg1=Data(numpy.array([[[[0.77780005294718713, -1.8382701985491856, 2.8100456369937827, -0.65810303243679069],
903        arg1.setTaggedValue(1,numpy.array([[[[-4.7359919800579018, 4.2877861963492876, 3.3360222421510439, -0.44502880337905815], [-4.0811223509556829, -2.7223067630246334, 2.4296395934435164, 2.5736676638070097], [-0.11127098696252347, 2.8074971386955347, 2.6525779943222707, 3.3888428826645498]], [[2.5151122596628293, -3.5825231259309067, -0.84037584988397551, -2.9457005983983708], [4.37344391291915, -3.3756222178332482, -0.54012114472092598, 2.2744302346921472], [4.8295754080945503, 3.5280915927913021, 2.5435630360725048, 3.5794559102558523]]], [[[4.9881715999119951, -1.3360108202830503, 0.27231734407299424, 0.093541956761064249], [-3.7030315282506709, -1.720443027344094, 2.9082251077274073, -1.6486380943156895], [-3.6430509796093915, -0.50281057430209941, -2.1489577359826906, -2.326140037132717]], [[-0.44208092369812846, 0.54251358359656976, -1.9506879824973442, -4.8923447980001384], [2.6740432644895096, 0.96759509048760162, -4.4888456526637857, -4.5703420233074539], [-2.1168450502607286, 2.728347633438208, 0.060457837844900553, 0.79597703415686105]]], [[[-3.5708016875179305, 2.9229444002153757, 1.6915457329603578, 4.4351993450760645], [1.7044185662286804, -3.9080889584190581, -4.5785323214991633, -3.7550313887910471], [4.0955914016162005, -0.81735560297289211, -3.6317111111680767, 4.9265087581458182]], [[3.3543634551075687, -4.4178680501476189, 0.50223464800697037, 1.612344692779426], [-1.5335820692975766, -0.92638120941575863, 3.6344592515716183, 0.580472109300187], [-4.0159977836528249, 0.15919761767340557, -3.3482184838181994, -3.3711951688903827]]]]))  [-2.1502736112542364, -1.4510218903103098, -1.5455760408573758, -1.4977089764499252], [-2.5953726210537633,
904        res=arg0+arg1  -4.6546473323104536, -0.54591572151648293, 2.5113871518187194]], [[4.6959353612419346, 3.3929207698716883, 2.4231508860787923,
905        ref=Data(numpy.array([[[[2.9359463114245807, 0.319876059928208, 4.9681918954711763, 1.5000432260406029], [0.0078726472231571698, 0.70712436816708379, 0.61257021762001784, 0.66043728202746843], [-0.43722636257636971, -2.49650107383306, 1.6122305369609107, 4.669533410296113]], [[6.8540816197193282, 5.5510670283490819, 4.5812971445561859, 4.3149709879453164], [2.7664891022200777, 3.9676036294874031, 2.1789329400843149, -2.7113849361014717], [0.53073715273880406, 4.4325308876064531, -1.833585990902673, 3.3686130602833995]]], [[[6.5160144872916588, 0.94327432915800369, 3.7732525036359705, 4.6970694156542843], [4.2428922953473425, -0.47895504815993561, -2.1546786387758345, -0.92811384440150801], [6.1637650624778137, 0.1602630787037409, -0.29188199133687398, -1.6743557030016509]], [[4.6279273970064958, 3.2141941508075496, -1.0649411885637527, 0.17399868185846934], [-1.1687600655512265, 7.1336444291786387, -2.2490554581725091, 1.2401845046443061], [-2.5762997110333155, -2.4630013954496084, -0.92857450133551378, 3.0546986396658049]]], [[[5.7026586794471159, -0.86178208025154079, 0.6298627496396616, -2.6280019222666544], [1.8034441757405331, -2.1893005286393299, 2.0553833154885002, -1.1477397347996341], [3.7246222342905408, 6.3556886065676741, 6.4202634492800383, -1.3661129146233031]], [[6.6186311489169354, 1.4541862757479116, 6.3888257844106979, 4.2122984867705302], [2.7181051000321785, 1.4038844280023097, 0.19817525409523551, 0.52867983993891032], [3.4105489342328807, 4.2992808151568385, -0.25522671367623406, 4.1299374709276861]]]]),self.functionspace)  2.1568247294679228], [0.6083428437426841, 1.8094573710100095, 0.02078668160692132, -4.8695311945788653], [-1.6274091057385895,
906        ref.setTaggedValue(1,numpy.array([[[[-6.2760247822162274, 2.747753394190962, 1.7959894399927183, -1.9850616055373838], [-5.6211551531140085, -4.262339565182959, 0.88960679128519082, 1.0336348616486841], [-1.6513037891208491, 1.2674643365372091, 1.1125451921639451, 1.8488100805062242]], [[0.97507945750450364, -5.1225559280892323, -2.3804086520423011, -4.4857334005566969], [2.8334111107608244, -4.9156550199915738, -2.0801539468792516, 0.73439743253382161], [3.2895426059362247, 1.9880587906329765, 1.0035302339141792, 2.0394231080975267]]], [[[3.4481387977536695, -2.8760436224413759, -1.2677154580853314, -1.4464908453972614], [-5.2430643304089966, -3.2604758295024197, 1.3681923055690817, -3.1886708964740151], [-5.1830837817677171, -2.042843376460425, -3.6889905381410162, -3.8661728392910426]], [[-1.9821137258564541, -0.99751921856175585, -3.4907207846556698, -6.432377600158464], [1.134010462331184, -0.57243771167072399, -6.0288784548221113, -6.1103748254657795], [-3.6568778524190542, 1.1883148312798824, -1.4795749643134251, -0.74405576800146456]]], [[[-5.1108344896762556, 1.3829115980570501, 0.15151293080203221, 2.8951665429177389], [0.16438576407035477, -5.4481217605773837, -6.1185651236574889, -5.2950641909493728], [2.5555585994578749, -2.3573884051312177, -5.1717439133264023, 3.3864759559874926]], [[1.8143306529492431, -5.9579008523059445, -1.0377981541513552, 0.072311890621100439], [-3.0736148714559022, -2.4664140115740842, 2.0944264494132927, -0.95956069285813861], [-5.5560305858111505, -1.38083518448492, -4.8882512859765246, -4.9112279710487083]]]]))  2.2743846291290595, -3.9917322493800667, 1.2104668018060059]]], [[[4.3578682288142652, -1.2148719293193899, 1.6151062451585769,
907    2.5389231571768907], [2.0847460368699489, -2.6371013066373292, -4.3128248972532282, -3.0862601028789016], [4.0056188040004201,
908    -1.9978831797736527, -2.4500282498142676, -3.8325019614790445]], [[2.4697811385291022, 1.0560478923301559, -3.2230874470411464,
909    -1.9841475766189243], [-3.3269063240286201, 4.9754981707012451, -4.4072017166499027, -0.91796175383308753],
910    [-4.7344459695107091, -4.621147653927002, -3.0867207598129074, 0.8965523811884113]]], [[[3.5445124209697223,
911    -3.0199283387289344, -1.528283508837732, -4.786148180744048], [-0.35470208273686055, -4.3474467871167235, -0.10276294298889344,
912    -3.3058859932770277], [1.5664759758131472, 4.1975423480902805, 4.2621171908026447, -3.5242591731006967]], [[4.4604848904395418,
913    -0.70395998272948201, 4.2306795259333043, 2.0541522282931366], [0.55995884155478493, -0.75426183047508388, -1.9599710043821581,
914    -1.6294664185384833], [1.2524026757554871, 2.1411345566794449, -2.4133729721536277, 1.9717912124502925]]]]),self.functionspace)
915          arg1.setTaggedValue(1,numpy.array([[[[-4.7359919800579018, 4.2877861963492876, 3.3360222421510439, -0.44502880337905815],
916    [-4.0811223509556829, -2.7223067630246334, 2.4296395934435164, 2.5736676638070097], [-0.11127098696252347, 2.8074971386955347,
917    2.6525779943222707, 3.3888428826645498]], [[2.5151122596628293, -3.5825231259309067, -0.84037584988397551,
918    -2.9457005983983708], [4.37344391291915, -3.3756222178332482, -0.54012114472092598, 2.2744302346921472], [4.8295754080945503,
919    3.5280915927913021, 2.5435630360725048, 3.5794559102558523]]], [[[4.9881715999119951, -1.3360108202830503, 0.27231734407299424,
920    0.093541956761064249], [-3.7030315282506709, -1.720443027344094, 2.9082251077274073, -1.6486380943156895],
921    [-3.6430509796093915, -0.50281057430209941, -2.1489577359826906, -2.326140037132717]], [[-0.44208092369812846,
922    0.54251358359656976, -1.9506879824973442, -4.8923447980001384], [2.6740432644895096, 0.96759509048760162, -4.4888456526637857,
923    -4.5703420233074539], [-2.1168450502607286, 2.728347633438208, 0.060457837844900553, 0.79597703415686105]]],
924    [[[-3.5708016875179305, 2.9229444002153757, 1.6915457329603578, 4.4351993450760645], [1.7044185662286804, -3.9080889584190581,
925    -4.5785323214991633, -3.7550313887910471], [4.0955914016162005, -0.81735560297289211, -3.6317111111680767,
926    4.9265087581458182]], [[3.3543634551075687, -4.4178680501476189, 0.50223464800697037, 1.612344692779426], [-1.5335820692975766,
927    -0.92638120941575863, 3.6344592515716183, 0.580472109300187], [-4.0159977836528249, 0.15919761767340557, -3.3482184838181994,
928    -3.3711951688903827]]]]))
929          res=arg0+arg1
930          ref=Data(numpy.array([[[[2.9359463114245807, 0.319876059928208, 4.9681918954711763, 1.5000432260406029],
931    [0.0078726472231571698, 0.70712436816708379, 0.61257021762001784, 0.66043728202746843], [-0.43722636257636971,
932    -2.49650107383306, 1.6122305369609107, 4.669533410296113]], [[6.8540816197193282, 5.5510670283490819, 4.5812971445561859,
933    4.3149709879453164], [2.7664891022200777, 3.9676036294874031, 2.1789329400843149, -2.7113849361014717], [0.53073715273880406,
934    4.4325308876064531, -1.833585990902673, 3.3686130602833995]]], [[[6.5160144872916588, 0.94327432915800369, 3.7732525036359705,
935    4.6970694156542843], [4.2428922953473425, -0.47895504815993561, -2.1546786387758345, -0.92811384440150801],
936    [6.1637650624778137, 0.1602630787037409, -0.29188199133687398, -1.6743557030016509]], [[4.6279273970064958, 3.2141941508075496,
937    -1.0649411885637527, 0.17399868185846934], [-1.1687600655512265, 7.1336444291786387, -2.2490554581725091, 1.2401845046443061],
938    [-2.5762997110333155, -2.4630013954496084, -0.92857450133551378, 3.0546986396658049]]], [[[5.7026586794471159,
939    -0.86178208025154079, 0.6298627496396616, -2.6280019222666544], [1.8034441757405331, -2.1893005286393299, 2.0553833154885002,
940    -1.1477397347996341], [3.7246222342905408, 6.3556886065676741, 6.4202634492800383, -1.3661129146233031]], [[6.6186311489169354,
941    1.4541862757479116, 6.3888257844106979, 4.2122984867705302], [2.7181051000321785, 1.4038844280023097, 0.19817525409523551,
942    0.52867983993891032], [3.4105489342328807, 4.2992808151568385, -0.25522671367623406, 4.1299374709276861]]]]),self.functionspace)
943          ref.setTaggedValue(1,numpy.array([[[[-6.2760247822162274, 2.747753394190962, 1.7959894399927183, -1.9850616055373838],
944    [-5.6211551531140085, -4.262339565182959, 0.88960679128519082, 1.0336348616486841], [-1.6513037891208491, 1.2674643365372091,
945    1.1125451921639451, 1.8488100805062242]], [[0.97507945750450364, -5.1225559280892323, -2.3804086520423011,
946    -4.4857334005566969], [2.8334111107608244, -4.9156550199915738, -2.0801539468792516, 0.73439743253382161], [3.2895426059362247,
947    1.9880587906329765, 1.0035302339141792, 2.0394231080975267]]], [[[3.4481387977536695, -2.8760436224413759, -1.2677154580853314,
948    -1.4464908453972614], [-5.2430643304089966, -3.2604758295024197, 1.3681923055690817, -3.1886708964740151],
949    [-5.1830837817677171, -2.042843376460425, -3.6889905381410162, -3.8661728392910426]], [[-1.9821137258564541,
950    -0.99751921856175585, -3.4907207846556698, -6.432377600158464], [1.134010462331184, -0.57243771167072399, -6.0288784548221113,
951    -6.1103748254657795], [-3.6568778524190542, 1.1883148312798824, -1.4795749643134251, -0.74405576800146456]]],
952    [[[-5.1108344896762556, 1.3829115980570501, 0.15151293080203221, 2.8951665429177389], [0.16438576407035477,
953    -5.4481217605773837, -6.1185651236574889, -5.2950641909493728], [2.5555585994578749, -2.3573884051312177, -5.1717439133264023,
954    3.3864759559874926]], [[1.8143306529492431, -5.9579008523059445, -1.0377981541513552, 0.072311890621100439],
955    [-3.0736148714559022, -2.4664140115740842, 2.0944264494132927, -0.95956069285813861], [-5.5560305858111505, -1.38083518448492,
956    -4.8882512859765246, -4.9112279710487083]]]]))
957        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
958        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
959        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
# Line 444  class Test_util_overloaded_binary_with_t Line 979  class Test_util_overloaded_binary_with_t
979        arg1.expand()        arg1.expand()
980        res=arg0+arg1        res=arg0+arg1
981        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
982        ref=msk_ref*numpy.array([-5.5090733655635802, 0.14914274525609272])+(1.-msk_ref)*numpy.array([-1.8037170206697795, -4.7852054818220378])        ref=msk_ref*numpy.array([-5.5090733655635802, 0.14914274525609272])+(1.-msk_ref)*numpy.array([-1.8037170206697795,
983    -4.7852054818220378])
984        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
985        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
986        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
# Line 452  class Test_util_overloaded_binary_with_t Line 988  class Test_util_overloaded_binary_with_t
988     def test_add_overloaded_taggedData_rank0_expandedData_rank2(self):     def test_add_overloaded_taggedData_rank0_expandedData_rank2(self):
989        arg0=Data(-3.08759004952,self.functionspace)        arg0=Data(-3.08759004952,self.functionspace)
990        arg0.setTaggedValue(1,-4.07326584633)        arg0.setTaggedValue(1,-4.07326584633)
991        arg1=Data(numpy.array([[-3.8440802942459351, 0.88599006342616082, -2.8336927986832161, -4.7384929433468779, -4.0673014725646546], [1.7716479746027858, -2.7545291447892764, -4.8623255165868153, 3.5684412287608787, -3.2808927507342456], [0.35044628569508962, -3.7369045820769187, -0.32354208711663279, 0.91717888748089571, 1.267897144188459], [0.13581192877645165, 3.3970653631389105, 0.65945030380393543, -3.0329169703593828, 1.5109917182520052]]),self.functionspace)        arg1=Data(numpy.array([[-3.8440802942459351, 0.88599006342616082, -2.8336927986832161, -4.7384929433468779,
992        arg1.setTaggedValue(1,numpy.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]]))  -4.0673014725646546], [1.7716479746027858, -2.7545291447892764, -4.8623255165868153, 3.5684412287608787, -3.2808927507342456],
993    [0.35044628569508962, -3.7369045820769187, -0.32354208711663279, 0.91717888748089571, 1.267897144188459], [0.13581192877645165,
994    3.3970653631389105, 0.65945030380393543, -3.0329169703593828, 1.5109917182520052]]),self.functionspace)
995          arg1.setTaggedValue(1,numpy.array([[-1.6273366897325858, 1.6242521101541367, -0.80676284755454475, -1.6069618658885654,
996    -1.0788495762977179], [-1.2440133192838223, -1.2245262816512206, 1.136458628155613, 3.3710510861186389, -2.5234305665624279],
997    [-1.5268581953041673, -4.8285404364668754, -4.1367972745599779, 2.6562968470356179, -1.4664095591971824],
998    [-0.80564004575783876, 4.5332607444869986, -1.5579578106602341, 3.4148196223228453, 0.4401427283465642]]))
999        arg1.expand()        arg1.expand()
1000        res=arg0+arg1        res=arg0+arg1
1001        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1002        ref=msk_ref*numpy.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)*numpy.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*numpy.array([[-6.9316703437696958, -2.2015999860975999, -5.9212828482069764, -7.8260829928706386,
1003    -7.1548915220884153], [-1.3159420749209749, -5.8421191943130371, -7.949915566110576, 0.48085117923711795, -6.3684828002580058],
1004    [-2.7371437638286711, -6.8244946316006789, -3.4111321366403935, -2.170411162042865, -1.8196929053353017], [-2.9517781207473091,
1005    0.30947531361514979, -2.4281397457198253, -6.1205070198831439,
1006    -1.5765983312717555]])+(1.-msk_ref)*numpy.array([[-5.7006025360634585, -2.4490137361767363, -4.8800286938854178,
1007    -5.6802277122194385, -5.152115422628591], [-5.3172791656146954, -5.2977921279820936, -2.93680721817526, -0.70221476021223417,
1008    -6.5966964128933014], [-5.6001240416350404, -8.9018062827977484, -8.210063120890851, -1.4169689992952552, -5.5396754055280555],
1009    [-4.8789058920887118, 0.45999489815612549, -5.6312236569911072, -0.65844622400802777, -3.6331231179843089]])
1010        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1011        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
1012        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
# Line 465  class Test_util_overloaded_binary_with_t Line 1014  class Test_util_overloaded_binary_with_t
1014     def test_add_overloaded_taggedData_rank0_expandedData_rank3(self):     def test_add_overloaded_taggedData_rank0_expandedData_rank3(self):
1015        arg0=Data(1.63167315478,self.functionspace)        arg0=Data(1.63167315478,self.functionspace)
1016        arg0.setTaggedValue(1,2.64313681569)        arg0.setTaggedValue(1,2.64313681569)
1017        arg1=Data(numpy.array([[[3.5334428304641676, 1.3448302882853946], [-1.7150552323119617, 2.2920488201700726]], [[-2.9862367264684297, 2.0373955638738908], [2.5290307264649243, -4.3808795762986534]], [[1.6103243035130141, 0.74719893397661163], [2.9015732099646216, -2.4448771982405582]], [[2.7477489691732533, -3.4418842879887745], [-1.8345470547207188, -1.5100089248910775]], [[-4.6075046600131788, -4.6490151849699659], [-0.16476620232660277, 2.6496236687303263]], [[-4.6647269931052673, 1.7702333145101843], [1.5712821220566049, -0.7508154357640926]]]),self.functionspace)        arg1=Data(numpy.array([[[3.5334428304641676, 1.3448302882853946], [-1.7150552323119617, 2.2920488201700726]],
1018        arg1.setTaggedValue(1,numpy.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]]]))  [[-2.9862367264684297, 2.0373955638738908], [2.5290307264649243, -4.3808795762986534]], [[1.6103243035130141,
1019    0.74719893397661163], [2.9015732099646216, -2.4448771982405582]], [[2.7477489691732533, -3.4418842879887745],
1020    [-1.8345470547207188, -1.5100089248910775]], [[-4.6075046600131788, -4.6490151849699659], [-0.16476620232660277,
1021    2.6496236687303263]], [[-4.6647269931052673, 1.7702333145101843], [1.5712821220566049,
1022    -0.7508154357640926]]]),self.functionspace)
1023          arg1.setTaggedValue(1,numpy.array([[[1.6886237093282404, -0.23175646823888929], [0.85841863308994881,
1024    -2.5932811961296665]], [[1.6386382570817055, -4.1684829457584982], [0.63215378656443022, -2.5684567044235562]],
1025    [[-4.6521563239928696, 3.4268278211702281], [2.7498874453882038, 1.5931865656880086]], [[1.0738958310620896,
1026    -3.6839761141127028], [-3.1756281291393695, -1.7426866362281879]], [[-2.3556188316851721, -3.7576159053131231],
1027    [-3.7150188217025484, 3.7066885523068436]], [[4.6360179917754412, -3.4602983191359549], [-1.2433685887379262,
1028    -0.30651291778588963]]]))
1029        arg1.expand()        arg1.expand()
1030        res=arg0+arg1        res=arg0+arg1
1031        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1032        ref=msk_ref*numpy.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)*numpy.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*numpy.array([[[5.1651159852439346, 2.9765034430651616], [-0.083382077532194732, 3.9237219749498395]],
1033    [[-1.3545635716886628, 3.6690687186536577], [4.1607038812446913, -2.7492064215188865]], [[3.2419974582927811,
1034    2.3788720887563786], [4.5332463647443886, -0.81320404346079123]], [[4.3794221239530202, -1.8102111332090076],
1035    [-0.20287389994095184, 0.12166422988868941]], [[-2.9758315052334119, -3.017342030190199], [1.4669069524531642,
1036    4.2812968235100932]], [[-3.0330538383255004, 3.4019064692899512], [3.2029552768363718,
1037    0.88085771901567433]]])+(1.-msk_ref)*numpy.array([[[4.3317605250229523, 2.4113803474558226], [3.5015554487846607,
1038    0.049855619565045473]], [[4.2817750727764174, -1.5253461300637863], [3.2752906022591421, 0.074680111271155702]],
1039    [[-2.0090195082981577, 6.06996463686494], [5.3930242610829158, 4.2363233813827206]], [[3.7170326467568016,
1040    -1.0408392984179908], [-0.53249131344465761, 0.90045017946652406]], [[0.28751798400953987, -1.1144790896184111],
1041    [-1.0718820060078365, 6.3498253680015555]], [[7.2791548074701531, -0.81716150344124294], [1.3997682269567857,
1042    2.3366238979088223]]])
1043        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1044        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
1045        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
# Line 478  class Test_util_overloaded_binary_with_t Line 1047  class Test_util_overloaded_binary_with_t
1047     def test_add_overloaded_taggedData_rank0_expandedData_rank4(self):     def test_add_overloaded_taggedData_rank0_expandedData_rank4(self):
1048        arg0=Data(0.992473939243,self.functionspace)        arg0=Data(0.992473939243,self.functionspace)
1049        arg0.setTaggedValue(1,-1.037051364)        arg0.setTaggedValue(1,-1.037051364)
1050        arg1=Data(numpy.array([[[[-3.7528037800257996, 3.0722001030772574, 3.844311442589559, -2.4972694662129911], [-4.4728102728435033, 0.82818983681654323, -0.3972546627607132, 0.93595044805815419], [-0.58164237903709726, 4.9941207762144906, 2.6765854525000048, 1.125129814972591]], [[-2.4615801620204381, 4.3728792389646909, 0.65377634851031186, -4.1445737599419852], [2.9042843598417925, -0.39456021501178284, -3.6375703795869341, 0.4364281599640929], [-4.1110858230442284, -3.6510182664681166, -2.6222582929342684, 1.2119932766749404]]], [[[-2.827547406038704, -3.3943097060358851, 0.46338629741950044, 3.646342157966707], [2.0683435895541677, 1.6357810515153854, 1.9501369424726427, 1.7586361176709868], [-4.6055825014138572, -2.7021944088022787, 4.5160538390164913, -0.6515211590136154]], [[-1.6577009983290147, 0.74153690934879446, -3.5188883222272804, -3.1580483724287389], [0.280149774405829, -3.3842996329151855, -0.9655712177669562, -1.0977386984372028], [-1.6087159489947789, -4.2301987770776597, 2.0642471241094986, 3.7815603426115967]]], [[[0.78810996983231263, 1.1713150153718574, 0.48373756798196332, 0.32802865245343682], [-4.2602436248986253, 2.6815635506192663, -2.749303435729388, 1.5113175928058986], [4.0386932510584224, -2.7660006446367005, -3.8899026980541276, -2.8478500989409197]], [[-4.4201889577523721, 4.3370720480505369, -1.183106794306763, -2.753346380339762], [2.6759596440025799, 1.9298136613277137, -1.7777245668218522, 3.4346965652205288], [4.1697038349452935, -3.3432034263924648, 0.95038013386971976, -0.65446331432793681]]]]),self.functionspace)        arg1=Data(numpy.array([[[[-3.7528037800257996, 3.0722001030772574, 3.844311442589559, -2.4972694662129911],
1051        arg1.setTaggedValue(1,numpy.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]]]]))  [-4.4728102728435033, 0.82818983681654323, -0.3972546627607132, 0.93595044805815419], [-0.58164237903709726,
1052    4.9941207762144906, 2.6765854525000048, 1.125129814972591]], [[-2.4615801620204381, 4.3728792389646909, 0.65377634851031186,
1053    -4.1445737599419852], [2.9042843598417925, -0.39456021501178284, -3.6375703795869341, 0.4364281599640929],
1054    [-4.1110858230442284, -3.6510182664681166, -2.6222582929342684, 1.2119932766749404]]], [[[-2.827547406038704,
1055    -3.3943097060358851, 0.46338629741950044, 3.646342157966707], [2.0683435895541677, 1.6357810515153854, 1.9501369424726427,
1056    1.7586361176709868], [-4.6055825014138572, -2.7021944088022787, 4.5160538390164913, -0.6515211590136154]],
1057    [[-1.6577009983290147, 0.74153690934879446, -3.5188883222272804, -3.1580483724287389], [0.280149774405829, -3.3842996329151855,
1058    -0.9655712177669562, -1.0977386984372028], [-1.6087159489947789, -4.2301987770776597, 2.0642471241094986,
1059    3.7815603426115967]]], [[[0.78810996983231263, 1.1713150153718574, 0.48373756798196332, 0.32802865245343682],
1060    [-4.2602436248986253, 2.6815635506192663, -2.749303435729388, 1.5113175928058986], [4.0386932510584224, -2.7660006446367005,
1061    -3.8899026980541276, -2.8478500989409197]], [[-4.4201889577523721, 4.3370720480505369, -1.183106794306763, -2.753346380339762],
1062    [2.6759596440025799, 1.9298136613277137, -1.7777245668218522, 3.4346965652205288], [4.1697038349452935, -3.3432034263924648,
1063    0.95038013386971976, -0.65446331432793681]]]]),self.functionspace)
1064          arg1.setTaggedValue(1,numpy.array([[[[2.0789104434484473, -4.508777400348567, 1.5331083546332334, 4.49336212858152],
1065    [1.8802207328030187, -4.9436312011442958, 0.95995390941115755, 1.0409397140712962], [4.4029806285991455, -3.0508353519497589,
1066    -1.4319920162676967, 4.9324859166792496]], [[-0.80321564842726545, -0.31379127954498109, 4.8077178833583769,
1067    -0.44518932196249672], [3.1138068395754708, 3.9312599291722865, -2.1753619070696049, -4.3496776617454689],
1068    [-1.9317238107094825, 3.7498607559317403, -4.8409100962982947, -3.4067761660017215]]], [[[-1.6530285997714733,
1069    -3.3014759260717632, 0.77334729141762182, -1.6425686289050088], [3.3938981157540375, -2.9780304165754012, 0.16193154805455467,
1070    -3.9008003597439656], [1.2224442501270545, -2.341507950209909, -3.2027558874601425, 1.1725104185480788]], [[2.0639107295459134,
1071    1.6561771765853468, 2.4027523947915554, -3.5099301386055703], [-0.88931997894950499, -2.5704542848111291, -0.9665448709263309,
1072    1.7051997753467312], [4.6367791768868933, -2.4669021358046725, -1.6153774579581026, -4.1453553191414851]]],
1073    [[[2.4407751157254607, 2.79182158971678, -2.7425933984344186, -2.9283084218787003], [-1.6452839946246556, -2.7502841719075741,
1074    -0.082291147475465287, 1.3415023360316187], [-4.2509674661666601, 1.9941709432672905, 0.38029069702154583,
1075    1.4827772847029141]], [[2.4884780660954249, 3.8913177374430621, -0.48481698674975604, 0.063994223713578435],
1076    [4.2954488325747491, -4.04061057745737, 3.2654677239706196, 2.3177058434320053], [-1.4208522341319494, 1.3867401579820982,
1077    -0.23356359719482889, 0.82529852322257735]]]]))
1078        arg1.expand()        arg1.expand()
1079        res=arg0+arg1        res=arg0+arg1
1080        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1081        ref=msk_ref*numpy.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)*numpy.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*numpy.array([[[[-2.760329840783089, 4.0646740423199681, 4.8367853818322697, -1.5047955269702804],
1082    [-3.4803363336007926, 1.8206637760592539, 0.59521927648199746, 1.9284243873008649], [0.4108315602056134, 5.9865947154572012,
1083    3.6690593917427154, 2.1176037542153017]], [[-1.4691062227777274, 5.3653531782074015, 1.6462502877530225, -3.1520998206992745],
1084    [3.8967582990845031, 0.59791372423092781, -2.6450964403442234, 1.4289020992068036], [-3.1186118838015178, -2.6585443272254059,
1085    -1.6297843536915577, 2.204467215917651]]], [[[-1.8350734667959934, -2.4018357667931745, 1.4558602366622111,
1086    4.6388160972094177], [3.0608175287968784, 2.6282549907580961, 2.9426108817153533, 2.7511100569136975], [-3.6131085621711465,
1087    -1.709720469559568, 5.5085277782592019, 0.34095278022909525]], [[-0.66522705908630408, 1.7340108485915051, -2.5264143829845698,
1088    -2.1655744331860283], [1.2726237136485397, -2.3918256936724749, 0.026902721475754454, -0.10526475919449219],
1089    [-0.61624200975206822, -3.237724837834949, 3.0567210633522093, 4.7740342818543073]]], [[[1.7805839090750233,
1090    2.1637889546145681, 1.476211507224674, 1.3205025916961475], [-3.2677696856559146, 3.674037489861977, -1.7568294964866773,
1091    2.5037915320486093], [5.031167190301133, -1.7735267053939898, -2.8974287588114169, -1.855376159698209]], [[-3.4277150185096614,
1092    5.3295459872932476, -0.19063285506405236, -1.7608724410970513], [3.6684335832452906, 2.9222876005704244, -0.78525062757914155,
1093    4.4271705044632395], [5.1621777741880042, -2.3507294871497542, 1.9428540731124304,
1094    0.33801062491477385]]]])+(1.-msk_ref)*numpy.array([[[[1.0418590794461204, -5.5458287643508939, 0.49605699063090647,
1095    3.4563107645791931], [0.84316936880069182, -5.9806825651466227, -0.077097454591169345, 0.0038883500689692596],
1096    [3.3659292645968186, -4.0878867159520862, -2.4690433802700236, 3.8954345526769227]], [[-1.8402670124295923, -1.350842643547308,
1097    3.77066651935605, -1.4822406859648236], [2.0767554755731439, 2.8942085651699596, -3.2124132710719318, -5.3867290257477958],
1098    [-2.9687751747118094, 2.7128093919294134, -5.8779614603006216, -4.4438275300040484]]], [[[-2.6900799637738002,
1099    -4.3385272900740901, -0.26370407258470507, -2.6796199929073357], [2.3568467517517107, -4.0150817805777281,
1100    -0.87511981594777222, -4.9378517237462924], [0.1853928861247276, -3.3785593142122359, -4.2398072514624694,
1101    0.13545905454575191]], [[1.0268593655435865, 0.61912581258301991, 1.3657010307892286, -4.5469815026078972],
1102    [-1.9263713429518319, -3.607505648813456, -2.0035962349286578, 0.66814841134440428], [3.5997278128845664, -3.5039534998069994,
1103    -2.6524288219604295, -5.182406683143812]]], [[[1.4037237517231338, 1.7547702257144531, -3.7796447624367455,
1104    -3.9653597858810272], [-2.6823353586269825, -3.787335535909901, -1.1193425114777922, 0.30445097202929183], [-5.288018830168987,
1105    0.9571195792649636, -0.65676066698078106, 0.44572592070058725]], [[1.451426702093098, 2.8542663734407352, -1.5218683507520829,
1106    -0.97305714028874846], [3.2583974685724222, -5.0776619414596968, 2.2284163599682927, 1.2806544794296784], [-2.4579035981342763,
1107    0.34968879397977126, -1.2706149611971558, -0.21175284077974954]]]])
1108        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1109        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
1110        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
# Line 575  class Test_util_overloaded_binary_with_t Line 1196  class Test_util_overloaded_binary_with_t
1196        arg1.expand()        arg1.expand()
1197        res=arg0+arg1        res=arg0+arg1
1198        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1199        ref=msk_ref*numpy.array([1.4849018580868396, -1.4500776279682857])+(1.-msk_ref)*numpy.array([0.80291016345810284, 1.6335687206063048])        ref=msk_ref*numpy.array([1.4849018580868396, -1.4500776279682857])+(1.-msk_ref)*numpy.array([0.80291016345810284,
1200    1.6335687206063048])
1201        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1202        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
1203        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
# Line 588  class Test_util_overloaded_binary_with_t Line 1210  class Test_util_overloaded_binary_with_t
1210        arg1.expand()        arg1.expand()
1211        res=arg0+arg1        res=arg0+arg1
1212        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1213        ref=msk_ref*numpy.array([2.0787315508676816, 6.4714264857830539])+(1.-msk_ref)*numpy.array([5.1448665629143804, 8.4540150405982626])        ref=msk_ref*numpy.array([2.0787315508676816, 6.4714264857830539])+(1.-msk_ref)*numpy.array([5.1448665629143804,
1214    8.4540150405982626])
1215        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1216        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")        self.assertEqual(res.getShape(),(2,),"wrong shape of result.")
1217        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1218     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1219     def test_add_overloaded_taggedData_rank2_float_rank0(self):     def test_add_overloaded_taggedData_rank2_float_rank0(self):
1220        arg0=Data(numpy.array([[1.386017414613514, -2.6231033049796491, 4.1399139685583908, -0.4757835738745344, -0.61334801364286129], [-3.8767016009847644, -1.6792352087895104, -0.95761952002154782, 1.1610341120860461, 3.4637568772172447], [-1.7853768713915863, 0.35745707386269476, 3.7798020283050562, -3.9919450276392543, 3.1640627937763064], [2.9013425069641361, -2.8869815673409507, -4.312642079255081, -4.9524261759161403, -1.8116853894426921]]),self.functionspace)        arg0=Data(numpy.array([[1.386017414613514, -2.6231033049796491, 4.1399139685583908, -0.4757835738745344,
1221        arg0.setTaggedValue(1,numpy.array([[-2.5356642364263884, -3.0570803163456386, -4.6171329170636088, 1.9734766655043776, 1.3166736709207738], [-1.7765368820484162, 3.9569210044414262, -1.9541458254032404, 2.5822803597859618, 2.4896901790436416], [3.3049498054625701, 0.76686506584124547, -2.6786032665790271, 2.6474811802420275, 3.3463506827302432], [-1.3139676283316692, -0.82038525203303791, -2.872733478437338, -0.12661190695077096, -2.8155829413606206]]))  -0.61334801364286129], [-3.8767016009847644, -1.6792352087895104, -0.95761952002154782, 1.1610341120860461,
1222    3.4637568772172447], [-1.7853768713915863, 0.35745707386269476, 3.7798020283050562, -3.9919450276392543, 3.1640627937763064],
1223    [2.9013425069641361, -2.8869815673409507, -4.312642079255081, -4.9524261759161403, -1.8116853894426921]]),self.functionspace)
1224          arg0.setTaggedValue(1,numpy.array([[-2.5356642364263884, -3.0570803163456386, -4.6171329170636088, 1.9734766655043776,
1225    1.3166736709207738], [-1.7765368820484162, 3.9569210044414262, -1.9541458254032404, 2.5822803597859618, 2.4896901790436416],
1226    [3.3049498054625701, 0.76686506584124547, -2.6786032665790271, 2.6474811802420275, 3.3463506827302432], [-1.3139676283316692,
1227    -0.82038525203303791, -2.872733478437338, -0.12661190695077096, -2.8155829413606206]]))
1228        arg1=-0.216609625179        arg1=-0.216609625179
1229        res=arg0+arg1        res=arg0+arg1
1230        ref=Data(numpy.array([[1.1694077894347013, -2.8397129301584618, 3.923304343379578, -0.69239319905334717, -0.82995763882167406], [-4.0933112261635767, -1.8958448339683232, -1.1742291452003606, 0.94442448690723335, 3.2471472520384319], [-2.0019864965703991, 0.14084744868388199, 3.5631924031262434, -4.2085546528180675, 2.9474531685974936], [2.6847328817853233, -3.1035911925197635, -4.5292517044338938, -5.1690358010949531, -2.0282950146215049]]),self.functionspace)        ref=Data(numpy.array([[1.1694077894347013, -2.8397129301584618, 3.923304343379578, -0.69239319905334717,
1231        ref.setTaggedValue(1,numpy.array([[-2.7522738616052012, -3.2736899415244514, -4.8337425422424216, 1.7568670403255648, 1.100064045741961], [-1.993146507227229, 3.7403113792626135, -2.1707554505820532, 2.3656707346071491, 2.2730805538648289], [3.0883401802837573, 0.5502554406624327, -2.8952128917578399, 2.4308715550632147, 3.1297410575514304], [-1.530577253510482, -1.0369948772118507, -3.0893431036161507, -0.34322153212958373, -3.0321925665394334]]))  -0.82995763882167406], [-4.0933112261635767, -1.8958448339683232, -1.1742291452003606, 0.94442448690723335,
1232    3.2471472520384319], [-2.0019864965703991, 0.14084744868388199, 3.5631924031262434, -4.2085546528180675, 2.9474531685974936],
1233    [2.6847328817853233, -3.1035911925197635, -4.5292517044338938, -5.1690358010949531, -2.0282950146215049]]),self.functionspace)
1234          ref.setTaggedValue(1,numpy.array([[-2.7522738616052012, -3.2736899415244514, -4.8337425422424216, 1.7568670403255648,
1235    1.100064045741961], [-1.993146507227229, 3.7403113792626135, -2.1707554505820532, 2.3656707346071491, 2.2730805538648289],
1236    [3.0883401802837573, 0.5502554406624327, -2.8952128917578399, 2.4308715550632147, 3.1297410575514304], [-1.530577253510482,
1237    -1.0369948772118507, -3.0893431036161507, -0.34322153212958373, -3.0321925665394334]]))
1238        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1239        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
1240        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1241     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1242     def test_add_overloaded_taggedData_rank2_array_rank0(self):     def test_add_overloaded_taggedData_rank2_array_rank0(self):
1243        arg0=Data(numpy.array([[2.4137267936710236, -1.7997061421593341, -4.3052651661982146, 1.422565293989992, 1.3119752649866125], [-1.867490006105438, 3.4459978054658507, 3.3903338466998747, -2.7244221932931776, -4.9994433194947332], [2.887482695252567, -1.2425761277091008, 4.3966556575758293, -0.80645263643906517, -4.4144393270588109], [4.2850786693861949, 1.6079208854026508, 1.5947218470081435, 3.5128021603521589, -4.2079688653726057]]),self.functionspace)        arg0=Data(numpy.array([[2.4137267936710236, -1.7997061421593341, -4.3052651661982146, 1.422565293989992,
1244        arg0.setTaggedValue(1,numpy.array([[1.459759384010888, -1.9479503872148651, 3.5309699220761104, 3.0359150905241492, -3.1457670377866931], [1.3682366622215465, 0.50922176186034473, 0.95246664873011611, -1.6386073301391599, -1.9215088718744666], [-3.5382218714137545, 0.051369530298007504, 3.7079476159772717, 1.9237179458203642, -3.173801338946467], [0.74824107325503775, -0.86187078329955646, -4.0404653917936519, 1.9417938026751607, 3.0054838548030745]]))  1.3119752649866125], [-1.867490006105438, 3.4459978054658507, 3.3903338466998747, -2.7244221932931776, -4.9994433194947332],
1245    [2.887482695252567, -1.2425761277091008, 4.3966556575758293, -0.80645263643906517, -4.4144393270588109], [4.2850786693861949,
1246    1.6079208854026508, 1.5947218470081435, 3.5128021603521589, -4.2079688653726057]]),self.functionspace)
1247          arg0.setTaggedValue(1,numpy.array([[1.459759384010888, -1.9479503872148651, 3.5309699220761104, 3.0359150905241492,
1248    -3.1457670377866931], [1.3682366622215465, 0.50922176186034473, 0.95246664873011611, -1.6386073301391599, -1.9215088718744666],
1249    [-3.5382218714137545, 0.051369530298007504, 3.7079476159772717, 1.9237179458203642, -3.173801338946467], [0.74824107325503775,
1250    -0.86187078329955646, -4.0404653917936519, 1.9417938026751607, 3.0054838548030745]]))
1251        arg1=numpy.array(3.0741666769)        arg1=numpy.array(3.0741666769)
1252        res=arg0+arg1        res=arg0+arg1
1253        ref=Data(numpy.array([[5.4878934705717777, 1.27446053474142, -1.2310984892974606, 4.4967319708907461, 4.3861419418873666], [1.206676670795316, 6.5201644823666047, 6.4645005236006288, 0.34974448360757648, -1.9252766425939791], [5.961649372153321, 1.8315905491916533, 7.4708223344765834, 2.2677140404616889, -1.3402726501580569], [7.3592453462869489, 4.6820875623034048, 4.6688885239088975, 6.5869688372529129, -1.1338021884718517]]),self.functionspace)        ref=Data(numpy.array([[5.4878934705717777, 1.27446053474142, -1.2310984892974606, 4.4967319708907461,
1254        ref.setTaggedValue(1,numpy.array([[4.5339260609116421, 1.1262162896858889, 6.6051365989768644, 6.1100817674249033, -0.071600360885939018], [4.4424033391223006, 3.5833884387610988, 4.0266333256308702, 1.4355593467615941, 1.1526578050262875], [-0.46405519451300048, 3.1255362071987616, 6.7821142928780258, 4.9978846227211182, -0.099634662045712918], [3.8224077501557918, 2.2122958936011976, -0.96629871489289787, 5.0159604795759147, 6.0796505317038285]]))  4.3861419418873666], [1.206676670795316, 6.5201644823666047, 6.4645005236006288, 0.34974448360757648, -1.9252766425939791],
1255    [5.961649372153321, 1.8315905491916533, 7.4708223344765834, 2.2677140404616889, -1.3402726501580569], [7.3592453462869489,
1256    4.6820875623034048, 4.6688885239088975, 6.5869688372529129, -1.1338021884718517]]),self.functionspace)
1257          ref.setTaggedValue(1,numpy.array([[4.5339260609116421, 1.1262162896858889, 6.6051365989768644, 6.1100817674249033,
1258    -0.071600360885939018], [4.4424033391223006, 3.5833884387610988, 4.0266333256308702, 1.4355593467615941, 1.1526578050262875],
1259    [-0.46405519451300048, 3.1255362071987616, 6.7821142928780258, 4.9978846227211182, -0.099634662045712918], [3.8224077501557918,
1260    2.2122958936011976, -0.96629871489289787, 5.0159604795759147, 6.0796505317038285]]))
1261        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1262        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
1263        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1264     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1265     def test_add_overloaded_taggedData_rank2_array_rank2(self):     def test_add_overloaded_taggedData_rank2_array_rank2(self):
1266        arg0=Data(numpy.array([[1.2506390651794561, -0.81212430724736251, 2.105991202484951, 4.8892117700344286, -0.0050442144267703881], [-3.8820044898664197, 1.3406927502362631, -0.23088072914886837, -0.38035879572400599, 1.2942940423142701], [-4.5802823766916632, 0.49821714750866253, 4.2560215108958648, -4.6716137548953709, 1.0230637798676661], [-3.0502712063126713, -3.2098377736123842, 2.4503144503949628, 4.4188362288635155, -3.4130650656038961]]),self.functionspace)        arg0=Data(numpy.array([[1.2506390651794561, -0.81212430724736251, 2.105991202484951, 4.8892117700344286,
1267        arg0.setTaggedValue(1,numpy.array([[-0.58366893823899346, -0.30578291202832286, -0.70518265514781131, -4.5433921860219613, 4.4223880923402685], [-4.3895956831875038, -1.5410087563236963, 3.2510935557298453, -1.5749788082821792, 0.83922854502163169], [0.010854086788042672, -4.9929781682524697, -3.0946822958514852, -4.8579683590423244, 4.9755727587445708], [-4.4925003399736605, -1.6488568907328292, -4.9543455366941869, -4.9154233168876873, 1.9139071819041575]]))  -0.0050442144267703881], [-3.8820044898664197, 1.3406927502362631, -0.23088072914886837, -0.38035879572400599,
1268        arg1=numpy.array([[-3.2676629202056806, -2.584733409576232, 4.5922217778649639, 0.24306513744928182, 1.7499931410105738], [3.5198734053410359, -4.2999142549125882, 2.8381096319323484, 4.2641555681844761, -4.0435985738597804], [-2.7255609991860164, -1.4958445671148599, 1.0485609110046656, -2.2929896081868817, -2.9438760379556816], [4.4201220490292439, 0.99062584324820335, 1.7945690505804581, -1.1140220053731751, -0.021807228780941657]])  1.2942940423142701], [-4.5802823766916632, 0.49821714750866253, 4.2560215108958648, -4.6716137548953709, 1.0230637798676661],
1269        res=arg0+arg1  [-3.0502712063126713, -3.2098377736123842, 2.4503144503949628, 4.4188362288635155, -3.4130650656038961]]),self.functionspace)
1270        ref=Data(numpy.array([[-2.0170238550262245, -3.3968577168235945, 6.6982129803499149, 5.1322769074837105, 1.7449489265838034], [-0.36213108452538378, -2.9592215046763251, 2.6072289027834801, 3.8837967724604701, -2.7493045315455102], [-7.3058433758776795, -0.99762741960619739, 5.3045824219005304, -6.9646033630822526, -1.9208122580880156], [1.3698508427165725, -2.2192119303641809, 4.2448835009754209, 3.3048142234903404, -3.4348722943848378]]),self.functionspace)        arg0.setTaggedValue(1,numpy.array([[-0.58366893823899346, -0.30578291202832286, -0.70518265514781131,
1271        ref.setTaggedValue(1,numpy.array([[-3.8513318584446741, -2.8905163216045549, 3.8870391227171526, -4.3003270485726794, 6.1723812333508423], [-0.86972227784646794, -5.8409230112362849, 6.0892031876621937, 2.6891767599022969, -3.2043700288381487], [-2.7147069123979737, -6.4888227353673296, -2.0461213848468196, -7.1509579672292061, 2.0316967207888892], [-0.072378290944416612, -0.6582310474846258, -3.1597764861137287, -6.0294453222608624, 1.8920999531232159]]))  -4.5433921860219613, 4.4223880923402685], [-4.3895956831875038, -1.5410087563236963, 3.2510935557298453, -1.5749788082821792,
1272    0.83922854502163169], [0.010854086788042672, -4.9929781682524697, -3.0946822958514852, -4.8579683590423244,
1273    4.9755727587445708], [-4.4925003399736605, -1.6488568907328292, -4.9543455366941869, -4.9154233168876873, 1.9139071819041575]]))
1274          arg1=numpy.array([[-3.2676629202056806, -2.584733409576232, 4.5922217778649639, 0.24306513744928182, 1.7499931410105738],
1275    [3.5198734053410359, -4.2999142549125882, 2.8381096319323484, 4.2641555681844761, -4.0435985738597804], [-2.7255609991860164,
1276    -1.4958445671148599, 1.0485609110046656, -2.2929896081868817, -2.9438760379556816], [4.4201220490292439, 0.99062584324820335,
1277    1.7945690505804581, -1.1140220053731751, -0.021807228780941657]])
1278          res=arg0+arg1
1279          ref=Data(numpy.array([[-2.0170238550262245, -3.3968577168235945, 6.6982129803499149, 5.1322769074837105,
1280    1.7449489265838034], [-0.36213108452538378, -2.9592215046763251, 2.6072289027834801, 3.8837967724604701, -2.7493045315455102],
1281    [-7.3058433758776795, -0.99762741960619739, 5.3045824219005304, -6.9646033630822526, -1.9208122580880156], [1.3698508427165725,
1282    -2.2192119303641809, 4.2448835009754209, 3.3048142234903404, -3.4348722943848378]]),self.functionspace)
1283          ref.setTaggedValue(1,numpy.array([[-3.8513318584446741, -2.8905163216045549, 3.8870391227171526, -4.3003270485726794,
1284    6.1723812333508423], [-0.86972227784646794, -5.8409230112362849, 6.0892031876621937, 2.6891767599022969, -3.2043700288381487],
1285    [-2.7147069123979737, -6.4888227353673296, -2.0461213848468196, -7.1509579672292061, 2.0316967207888892],
1286    [-0.072378290944416612, -0.6582310474846258, -3.1597764861137287, -6.0294453222608624, 1.8920999531232159]]))
1287        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1288        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
1289        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1290     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1291     def test_add_overloaded_taggedData_rank2_constData_rank0(self):     def test_add_overloaded_taggedData_rank2_constData_rank0(self):
1292        arg0=Data(numpy.array([[3.2502711739066772, 3.2753975916638893, 3.0532889358162603, 3.1034472492746978, 0.052087591586211346], [0.3118677005964372, 4.1867697777823274, 4.9732669856910903, -2.8913821270923865, 4.3506736027981177], [-4.6860528744832539, -3.4816077401156855, -4.050480862180895, -3.0253108061921274, 4.3701610891655633], [-1.8781144439384989, -3.2927924838989853, 0.13729260877135019, -2.6590842182483412, -3.8264934109034687]]),self.functionspace)        arg0=Data(numpy.array([[3.2502711739066772, 3.2753975916638893, 3.0532889358162603, 3.1034472492746978,
1293        arg0.setTaggedValue(1,numpy.array([[-2.5126373635568386, -4.0203532509495528, 1.9451568388068647, 2.4982439625427251, 2.9930450949074183], [-2.5812279189579614, -3.749322717853306, 4.4612126484341932, 1.3961025240678806, -3.8192483460549722], [-4.9184023616989752, -1.884407900259506, 3.2580704584995797, 2.0881656141612464, 3.1255171708748826], [-2.5882910223927782, 4.0479258279003485, 4.5180373392458577, 0.89432107783419745, 2.5875919720936968]]))  0.052087591586211346], [0.3118677005964372, 4.1867697777823274, 4.9732669856910903, -2.8913821270923865, 4.3506736027981177],
1294    [-4.6860528744832539, -3.4816077401156855, -4.050480862180895, -3.0253108061921274, 4.3701610891655633], [-1.8781144439384989,
1295    -3.2927924838989853, 0.13729260877135019, -2.6590842182483412, -3.8264934109034687]]),self.functionspace)
1296          arg0.setTaggedValue(1,numpy.array([[-2.5126373635568386, -4.0203532509495528, 1.9451568388068647, 2.4982439625427251,
1297    2.9930450949074183], [-2.5812279189579614, -3.749322717853306, 4.4612126484341932, 1.3961025240678806, -3.8192483460549722],
1298    [-4.9184023616989752, -1.884407900259506, 3.2580704584995797, 2.0881656141612464, 3.1255171708748826], [-2.5882910223927782,
1299    4.0479258279003485, 4.5180373392458577, 0.89432107783419745, 2.5875919720936968]]))
1300        arg1=Data(-1.32485890265,self.functionspace)        arg1=Data(-1.32485890265,self.functionspace)
1301        res=arg0+arg1        res=arg0+arg1
1302        ref=Data(numpy.array([[1.9254122712609725, 1.9505386890181846, 1.7284300331705555, 1.7785883466289931, -1.2727713110594934], [-1.0129912020492675, 2.8619108751366227, 3.6484080830453856, -4.2162410297380912, 3.0258147001524129], [-6.0109117771289586, -4.8064666427613902, -5.3753397648265997, -4.3501697088378322, 3.0453021865198586], [-3.2029733465842036, -4.61765138654469, -1.1875662938743545, -3.9839431208940459, -5.1513523135491734]]),self.functionspace)        ref=Data(numpy.array([[1.9254122712609725, 1.9505386890181846, 1.7284300331705555, 1.7785883466289931,
1303        ref.setTaggedValue(1,numpy.array([[-3.8374962662025434, -5.3452121535952575, 0.62029793616116002, 1.1733850598970204, 1.6681861922617136], [-3.9060868216036662, -5.0741816204990107, 3.1363537457884885, 0.071243621422175885, -5.1441072487006769], [-6.2432612643446799, -3.2092668029052107, 1.9332115558538749, 0.76330671151554164, 1.8006582682291778], [-3.9131499250384829, 2.7230669252546438, 3.193178436600153, -0.43053782481150726, 1.2627330694479921]]))  -1.2727713110594934], [-1.0129912020492675, 2.8619108751366227, 3.6484080830453856, -4.2162410297380912, 3.0258147001524129],
1304    [-6.0109117771289586, -4.8064666427613902, -5.3753397648265997, -4.3501697088378322, 3.0453021865198586], [-3.2029733465842036,
1305    -4.61765138654469, -1.1875662938743545, -3.9839431208940459, -5.1513523135491734]]),self.functionspace)
1306          ref.setTaggedValue(1,numpy.array([[-3.8374962662025434, -5.3452121535952575, 0.62029793616116002, 1.1733850598970204,
1307    1.6681861922617136], [-3.9060868216036662, -5.0741816204990107, 3.1363537457884885, 0.071243621422175885, -5.1441072487006769],
1308    [-6.2432612643446799, -3.2092668029052107, 1.9332115558538749, 0.76330671151554164, 1.8006582682291778], [-3.9131499250384829,
1309    2.7230669252546438, 3.193178436600153, -0.43053782481150726, 1.2627330694479921]]))
1310        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1311        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
1312        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1313     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1314     def test_add_overloaded_taggedData_rank2_constData_rank2(self):     def test_add_overloaded_taggedData_rank2_constData_rank2(self):
1315        arg0=Data(numpy.array([[4.4929441538499244, 0.76193006655289963, -3.6013136757956854, 3.5435545395461094, 4.6801677558118886], [-0.50863290555282781, -4.9812485221410361, 4.8716203583858455, -0.15520714654011591, 3.452894058218277], [-2.7745470074273104, 1.3053804084041101, -0.64948784175483443, 4.3919626388781534, -2.0707892516302664], [0.87150750288468792, 1.7804985374774942, 2.3087331960876654, -1.9056365362023397, 0.51051839622696082]]),self.functionspace)        arg0=Data(numpy.array([[4.4929441538499244, 0.76193006655289963, -3.6013136757956854, 3.5435545395461094,
1316        arg0.setTaggedValue(1,numpy.array([[-3.1324888331494991, -3.5699394355850878, -3.0678800115448732, -0.3644669804906151, -3.9828541815822427], [-2.6636704756502603, 0.06436393161746512, -1.7408779765126727, 0.91575332404404364, 0.91622940428564892], [4.4774322156401869, -2.7257448457653934, 3.4237112377253567, -3.0344203953362312, -3.0359056845343702], [-4.0585903966166175, 2.9772620147258335, 3.8956599105893766, 3.8436466421257407, -2.4231294458602815]]))  4.6801677558118886], [-0.50863290555282781, -4.9812485221410361, 4.8716203583858455, -0.15520714654011591, 3.452894058218277],
1317        arg1=Data(numpy.array([[-4.6808035192748845, 0.41480396326348057, 2.5020316812530554, -0.65741734172914068, 4.6963871561039721], [0.18380341233428688, 2.5396208452698055, -1.2543606017962086, -2.0770288834594339, 1.0772324852437016], [-1.4521523688895757, -3.4076521920397829, -1.5600849021061594, -4.1373563737852281, 2.2625941689331288], [1.5040586623691752, 0.81395372076508465, 1.9361886507462316, -4.118885441779403, 0.221244016978277]]),self.functionspace)  [-2.7745470074273104, 1.3053804084041101, -0.64948784175483443, 4.3919626388781534, -2.0707892516302664], [0.87150750288468792,
1318        res=arg0+arg1  1.7804985374774942, 2.3087331960876654, -1.9056365362023397, 0.51051839622696082]]),self.functionspace)
1319        ref=Data(numpy.array([[-0.18785936542496007, 1.1767340298163802, -1.09928199454263, 2.8861371978169688, 9.3765549119158607], [-0.32482949321854093, -2.4416276768712306, 3.6172597565896369, -2.2322360299995498, 4.5301265434619786], [-4.2266993763168861, -2.1022717836356728, -2.2095727438609938, 0.25460626509292528, 0.19180491730286242], [2.3755661652538631, 2.5944522582425789, 4.244921846833897, -6.0245219779817427, 0.73176241320523783]]),self.functionspace)        arg0.setTaggedValue(1,numpy.array([[-3.1324888331494991, -3.5699394355850878, -3.0678800115448732, -0.3644669804906151,
1320        ref.setTaggedValue(1,numpy.array([[-7.8132923524243836, -3.1551354723216072, -0.5658483302918178, -1.0218843222197558, 0.71353297452172937], [-2.4798670633159734, 2.6039847768872706, -2.9952385783088813, -1.1612755594153903, 1.9934618895293506], [3.0252798467506112, -6.1333970378051763, 1.8636263356191973, -7.1717767691214593, -0.77331151560124134], [-2.5545317342474423, 3.7912157354909182, 5.8318485613356081, -0.27523879965366227, -2.2018854288820044]]))  -3.9828541815822427], [-2.6636704756502603, 0.06436393161746512, -1.7408779765126727, 0.91575332404404364,
1321    0.91622940428564892], [4.4774322156401869, -2.7257448457653934, 3.4237112377253567, -3.0344203953362312, -3.0359056845343702],
1322    [-4.0585903966166175, 2.9772620147258335, 3.8956599105893766, 3.8436466421257407, -2.4231294458602815]]))
1323          arg1=Data(numpy.array([[-4.6808035192748845, 0.41480396326348057, 2.5020316812530554, -0.65741734172914068,
1324    4.6963871561039721], [0.18380341233428688, 2.5396208452698055, -1.2543606017962086, -2.0770288834594339, 1.0772324852437016],
1325    [-1.4521523688895757, -3.4076521920397829, -1.5600849021061594, -4.1373563737852281, 2.2625941689331288], [1.5040586623691752,
1326    0.81395372076508465, 1.9361886507462316, -4.118885441779403, 0.221244016978277]]),self.functionspace)
1327          res=arg0+arg1
1328          ref=Data(numpy.array([[-0.18785936542496007, 1.1767340298163802, -1.09928199454263, 2.8861371978169688,
1329    9.3765549119158607], [-0.32482949321854093, -2.4416276768712306, 3.6172597565896369, -2.2322360299995498, 4.5301265434619786],
1330    [-4.2266993763168861, -2.1022717836356728, -2.2095727438609938, 0.25460626509292528, 0.19180491730286242], [2.3755661652538631,
1331    2.5944522582425789, 4.244921846833897, -6.0245219779817427, 0.73176241320523783]]),self.functionspace)
1332          ref.setTaggedValue(1,numpy.array([[-7.8132923524243836, -3.1551354723216072, -0.5658483302918178, -1.0218843222197558,
1333    0.71353297452172937], [-2.4798670633159734, 2.6039847768872706, -2.9952385783088813, -1.1612755594153903, 1.9934618895293506],
1334    [3.0252798467506112, -6.1333970378051763, 1.8636263356191973, -7.1717767691214593, -0.77331151560124134], [-2.5545317342474423,
1335    3.7912157354909182, 5.8318485613356081, -0.27523879965366227, -2.2018854288820044]]))
1336        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1337        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
1338        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1339     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1340     def test_add_overloaded_taggedData_rank2_taggedData_rank0(self):     def test_add_overloaded_taggedData_rank2_taggedData_rank0(self):
1341        arg0=Data(numpy.array([[-1.5969664428610941, -3.2419841195939281, -2.9076578064597189, -2.663828637524861, -0.49007057704686918], [-0.73550009313364662, 2.4813542932190549, -2.4501659858142699, 2.9561483677548086, -1.5272511879848425], [-1.2709683653380441, -4.43899272012131, -3.5574532003475969, 2.4970287876685493, 0.4238165463937662], [1.3508619199672944, -1.2951957666490319, 1.9550173863352462, 2.1322019832699501, 3.280542130798235]]),self.functionspace)        arg0=Data(numpy.array([[-1.5969664428610941, -3.2419841195939281, -2.9076578064597189, -2.663828637524861,
1342        arg0.setTaggedValue(1,numpy.array([[4.6589854912149171, 1.5511453854096926, 4.965722583293072, 0.40914248208395421, 3.1262650987087408], [1.8333709579258421, -1.0804912813756076, -2.4738467577704073, 4.6775561610173995, -1.4554092041385038], [-4.235651383182538, -1.51389228517673, 4.7363198261615729, -3.8384727366907931, -1.1276673590418538], [-4.5417407083761097, 2.4944134708644761, 3.1122535744006861, -4.7532602042912266, -0.70506740860247952]]))  -0.49007057704686918], [-0.73550009313364662, 2.4813542932190549, -2.4501659858142699, 2.9561483677548086,
1343    -1.5272511879848425], [-1.2709683653380441, -4.43899272012131, -3.5574532003475969, 2.4970287876685493, 0.4238165463937662],
1344    [1.3508619199672944, -1.2951957666490319, 1.9550173863352462, 2.1322019832699501, 3.280542130798235]]),self.functionspace)
1345          arg0.setTaggedValue(1,numpy.array([[4.6589854912149171, 1.5511453854096926, 4.965722583293072, 0.40914248208395421,
1346    3.1262650987087408], [1.8333709579258421, -1.0804912813756076, -2.4738467577704073, 4.6775561610173995, -1.4554092041385038],
1347    [-4.235651383182538, -1.51389228517673, 4.7363198261615729, -3.8384727366907931, -1.1276673590418538], [-4.5417407083761097,
1348    2.4944134708644761, 3.1122535744006861, -4.7532602042912266, -0.70506740860247952]]))
1349        arg1=Data(4.06929400439,self.functionspace)        arg1=Data(4.06929400439,self.functionspace)
1350        arg1.setTaggedValue(1,-1.27259899399)        arg1.setTaggedValue(1,-1.27259899399)
1351        res=arg0+arg1        res=arg0+arg1
1352        ref=Data(numpy.array([[2.472327561531205, 0.82730988479837109, 1.1616361979325802, 1.4054653668674382, 3.57922342734543], [3.3337939112586525, 6.550648297611354, 1.6191280185780292, 7.0254423721471078, 2.5420428164074567], [2.798325639054255, -0.36969871572901081, 0.51184080404470222, 6.5663227920608485, 4.4931105507860654], [5.4201559243595936, 2.7740982377432672, 6.0243113907275454, 6.2014959876622493, 7.3498361351905341]]),self.functionspace)        ref=Data(numpy.array([[2.472327561531205, 0.82730988479837109, 1.1616361979325802, 1.4054653668674382, 3.57922342734543],
1353        ref.setTaggedValue(1,numpy.array([[3.386386497222615, 0.27854639141739046, 3.6931235893007699, -0.86345651190834793, 1.8536661047164387], [0.56077196393354001, -2.3530902753679097, -3.7464457517627094, 3.4049571670250973, -2.728008198130806], [-5.5082503771748401, -2.7864912791690322, 3.4637208321692707, -5.1110717306830953, -2.4002663530341559], [-5.8143397023684118, 1.2218144768721739, 1.8396545804083839, -6.0258591982835288, -1.9776664025947817]]))  [3.3337939112586525, 6.550648297611354, 1.6191280185780292, 7.0254423721471078, 2.5420428164074567], [2.798325639054255,
1354    -0.36969871572901081, 0.51184080404470222, 6.5663227920608485, 4.4931105507860654], [5.4201559243595936, 2.7740982377432672,
1355    6.0243113907275454, 6.2014959876622493, 7.3498361351905341]]),self.functionspace)
1356          ref.setTaggedValue(1,numpy.array([[3.386386497222615, 0.27854639141739046, 3.6931235893007699, -0.86345651190834793,
1357    1.8536661047164387], [0.56077196393354001, -2.3530902753679097, -3.7464457517627094, 3.4049571670250973, -2.728008198130806],
1358    [-5.5082503771748401, -2.7864912791690322, 3.4637208321692707, -5.1110717306830953, -2.4002663530341559], [-5.8143397023684118,
1359    1.2218144768721739, 1.8396545804083839, -6.0258591982835288, -1.9776664025947817]]))
1360        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1361        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
1362        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1363     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1364     def test_add_overloaded_taggedData_rank2_taggedData_rank2(self):     def test_add_overloaded_taggedData_rank2_taggedData_rank2(self):
1365        arg0=Data(numpy.array([[-2.7360673699569205, 1.2813661236117664, 2.6181299621874201, -4.5835559155379793, -0.59706551109364803], [-2.1154300756810418, 2.4637685424667488, 0.63920743759821086, -1.0304928260655464, -3.0388241860196241], [-4.1804742653319753, 0.6265873235154098, 4.1438730590828747, 1.849159394466878, 3.6496665209304968], [2.8275694342930962, -4.9054452894236142, 2.5745677599446983, 4.3161246638088855, 4.5501700481233502]]),self.functionspace)        arg0=Data(numpy.array([[-2.7360673699569205, 1.2813661236117664, 2.6181299621874201, -4.5835559155379793,
1366        arg0.setTaggedValue(1,numpy.array([[-2.7236826094989421, -0.88947616716594524, -4.4642382826987994, 0.17930131398277283, 1.0115273959196971], [3.9769705807623996, -0.074299515250104697, 4.1143692155325695, 2.2366876970030658, -2.3250367186365315], [-1.4454031669851197, -4.4238920625528246, -2.4576577266829713, 3.4261333775559635, 4.4134638287533328], [-3.1326412064023601, 0.79829173838552148, 2.1440271770141326, -0.53338236178293474, -0.86557615032601642]]))  -0.59706551109364803], [-2.1154300756810418, 2.4637685424667488, 0.63920743759821086, -1.0304928260655464,
1367        arg1=Data(numpy.array([[-0.34303101101440525, -3.0437444667922242, 1.7963357003006442, 4.641240443255148, 2.3121754708917299], [0.24577874602811445, -3.4121443132010674, -2.4780610072246922, 3.2029389228011116, -2.6107739248212125], [-0.80894957852706195, 1.685116172854749, 0.98006258074479735, -1.5668088640997455, 4.5294248564398192], [4.5451471347708114, -2.3164981697303144, 2.4194654332001155, 4.12271616233609, 2.5345931657528089]]),self.functionspace)  -3.0388241860196241], [-4.1804742653319753, 0.6265873235154098, 4.1438730590828747, 1.849159394466878, 3.6496665209304968],
1368        arg1.setTaggedValue(1,numpy.array([[0.13923134421935401, -2.093025836240745, 0.2383924930725172, 1.9334391571212448, -2.0297150413850664], [0.58917596374259418, 1.5141919749518173, -1.742979285515859, 2.2212871451907557, -2.3728597502891411], [-2.1854792436148793, 1.2704115116701509, -3.5210504563312295, -2.5225278742388313, 0.48400984500320376], [1.5022249811374566, 3.7240252724976308, -2.3046587086938422, -3.1465250919681012, 1.1149804764495732]]))  [2.8275694342930962, -4.9054452894236142, 2.5745677599446983, 4.3161246638088855, 4.5501700481233502]]),self.functionspace)
1369        res=arg0+arg1        arg0.setTaggedValue(1,numpy.array([[-2.7236826094989421, -0.88947616716594524, -4.4642382826987994, 0.17930131398277283,
1370        ref=Data(numpy.array([[-3.0790983809713257, -1.7623783431804578, 4.4144656624880643, 0.057684527717168699, 1.7151099597980819], [-1.8696513296529274, -0.94837577073431856, -1.8388535696264814, 2.1724460967355652, -5.6495981108408362], [-4.9894238438590373, 2.3117034963701588, 5.1239356398276721, 0.28235053036713254, 8.179091377370316], [7.3727165690639076, -7.2219434591539287, 4.9940331931448139, 8.4388408261449754, 7.0847632138761591]]),self.functionspace)  1.0115273959196971], [3.9769705807623996, -0.074299515250104697, 4.1143692155325695, 2.2366876970030658, -2.3250367186365315],
1371        ref.setTaggedValue(1,numpy.array([[-2.5844512652795881, -2.9825020034066902, -4.2258457896262822, 2.1127404711040176, -1.0181876454653693], [4.5661465445049938, 1.4398924597017126, 2.3713899300167105, 4.4579748421938215, -4.6978964689256726], [-3.6308824105999991, -3.1534805508826738, -5.9787081830142004, 0.90360550331713219, 4.8974736737565365], [-1.6304162252649035, 4.5223170108831523, -0.16063153167970956, -3.6799074537510359, 0.24940432612355679]]))  [-1.4454031669851197, -4.4238920625528246, -2.4576577266829713, 3.4261333775559635, 4.4134638287533328], [-3.1326412064023601,
1372    0.79829173838552148, 2.1440271770141326, -0.53338236178293474, -0.86557615032601642]]))
1373          arg1=Data(numpy.array([[-0.34303101101440525, -3.0437444667922242, 1.7963357003006442, 4.641240443255148,
1374    2.3121754708917299], [0.24577874602811445, -3.4121443132010674, -2.4780610072246922, 3.2029389228011116, -2.6107739248212125],
1375    [-0.80894957852706195, 1.685116172854749, 0.98006258074479735, -1.5668088640997455, 4.5294248564398192], [4.5451471347708114,
1376    -2.3164981697303144, 2.4194654332001155, 4.12271616233609, 2.5345931657528089]]),self.functionspace)
1377          arg1.setTaggedValue(1,numpy.array([[0.13923134421935401, -2.093025836240745, 0.2383924930725172, 1.9334391571212448,
1378    -2.0297150413850664], [0.58917596374259418, 1.5141919749518173, -1.742979285515859, 2.2212871451907557, -2.3728597502891411],
1379    [-2.1854792436148793, 1.2704115116701509, -3.5210504563312295, -2.5225278742388313, 0.48400984500320376], [1.5022249811374566,
1380    3.7240252724976308, -2.3046587086938422, -3.1465250919681012, 1.1149804764495732]]))
1381          res=arg0+arg1
1382          ref=Data(numpy.array([[-3.0790983809713257, -1.7623783431804578, 4.4144656624880643, 0.057684527717168699,
1383    1.7151099597980819], [-1.8696513296529274, -0.94837577073431856, -1.8388535696264814, 2.1724460967355652, -5.6495981108408362],
1384    [-4.9894238438590373, 2.3117034963701588, 5.1239356398276721, 0.28235053036713254, 8.179091377370316], [7.3727165690639076,
1385    -7.2219434591539287, 4.9940331931448139, 8.4388408261449754, 7.0847632138761591]]),self.functionspace)
1386          ref.setTaggedValue(1,numpy.array([[-2.5844512652795881, -2.9825020034066902, -4.2258457896262822, 2.1127404711040176,
1387    -1.0181876454653693], [4.5661465445049938, 1.4398924597017126, 2.3713899300167105, 4.4579748421938215, -4.6978964689256726],
1388    [-3.6308824105999991, -3.1534805508826738, -5.9787081830142004, 0.90360550331713219, 4.8974736737565365], [-1.6304162252649035,
1389    4.5223170108831523, -0.16063153167970956, -3.6799074537510359, 0.24940432612355679]]))
1390        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1391        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
1392        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1393     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1394     def test_add_overloaded_taggedData_rank2_expandedData_rank0(self):     def test_add_overloaded_taggedData_rank2_expandedData_rank0(self):
1395        arg0=Data(numpy.array([[3.3576395108597357, 0.079713165091237492, -2.6235923382139359, -2.4807258180332816, -4.8370100240939191], [-0.5398609461216104, 1.880841302085507, 3.1363957779485592, -2.9098856610703172, -4.6277814188713133], [-3.0338075061550054, 3.1245825256445681, -1.4594132431522064, -1.459261449706891, 1.1852708370783631], [4.9187832984000064, 3.9954625802675601, 0.87526688509385853, 0.077022043938886675, -3.827320331241737]]),self.functionspace)        arg0=Data(numpy.array([[3.3576395108597357, 0.079713165091237492, -2.6235923382139359, -2.4807258180332816,
1396        arg0.setTaggedValue(1,numpy.array([[0.90743867327562278, -0.37083095320971715, -4.4522087231605321, -0.082706136946488762, 0.53865736074087245], [-1.247002155185152, -1.8859527986403943, -1.4542237645525455, -4.2286317889507465, 3.9126875182879424], [3.3235710528580977, 2.8887880357286093, -2.7944378032785555, -1.8479879876981586, -0.59871595592754723], [3.9369222314456351, -0.13778647296883584, 4.2599185492697718, -2.096145057917572, -1.3163660993963342]]))  -4.8370100240939191], [-0.5398609461216104, 1.880841302085507, 3.1363957779485592, -2.9098856610703172, -4.6277814188713133],
1397    [-3.0338075061550054, 3.1245825256445681, -1.4594132431522064, -1.459261449706891, 1.1852708370783631], [4.9187832984000064,
1398    3.9954625802675601, 0.87526688509385853, 0.077022043938886675, -3.827320331241737]]),self.functionspace)
1399          arg0.setTaggedValue(1,numpy.array([[0.90743867327562278, -0.37083095320971715, -4.4522087231605321,
1400    -0.082706136946488762, 0.53865736074087245], [-1.247002155185152, -1.8859527986403943, -1.4542237645525455,
1401    -4.2286317889507465, 3.9126875182879424], [3.3235710528580977, 2.8887880357286093, -2.7944378032785555, -1.8479879876981586,
1402    -0.59871595592754723], [3.9369222314456351, -0.13778647296883584, 4.2599185492697718, -2.096145057917572,
1403    -1.3163660993963342]]))
1404        arg1=Data(2.09640121669,self.functionspace)        arg1=Data(2.09640121669,self.functionspace)
1405        arg1.setTaggedValue(1,3.46900141878)        arg1.setTaggedValue(1,3.46900141878)
1406        arg1.expand()        arg1.expand()
1407        res=arg0+arg1        res=arg0+arg1
1408        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1409        ref=msk_ref*numpy.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)*numpy.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*numpy.array([[5.4540407275500078, 2.1761143817815096, -0.52719112152366376, -0.3843246013430095,
1410    -2.740608807403647], [1.5565402705686617, 3.9772425187757792, 5.2327969946388313, -0.81348444438004508, -2.5313802021810412],
1411    [-0.93740628946473326, 5.2209837423348402, 0.63698797353806569, 0.63713976698338115, 3.2816720537686352], [7.0151845150902785,
1412    6.0918637969578322, 2.9716681017841307, 2.1734232606291588,
1413    -1.7309191145514649]])+(1.-msk_ref)*numpy.array([[4.3764400920563293, 3.0981704655709894, -0.98320730437982551,
1414    3.3862952818342178, 4.007658779521579], [2.2219992635955546, 1.5830486201403122, 2.014777654228161, -0.75963037017003998,
1415    7.3816889370686489], [6.7925724716388043, 6.3577894545093159, 0.67456361550215105, 1.6210134310825479, 2.8702854628531593],
1416    [7.4059236502263417, 3.3312149458118707, 7.7289199680504783, 1.3728563608631346, 2.1526353193843724]])
1417        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1418        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
1419        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1420     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1421     def test_add_overloaded_taggedData_rank2_expandedData_rank2(self):     def test_add_overloaded_taggedData_rank2_expandedData_rank2(self):
1422        arg0=Data(numpy.array([[-4.1064984952518904, -2.5817913277651172, 1.070919986237393, -1.9117883202469499, 2.5967941151396978], [2.7118184129118648, 4.2744441954963239, 2.5256592712367727, 4.3910740288571368, -0.81749389358698643], [3.8318241411112126, -4.1533353343123878, -3.4061675616762876, -3.2448939320059655, -1.610901735482928], [3.2338835693575607, -0.31809141540401686, -4.7534320077399776, -1.2412351366339225, 0.6532662566750318]]),self.functionspace)        arg0=Data(numpy.array([[-4.1064984952518904, -2.5817913277651172, 1.070919986237393, -1.9117883202469499,
1423        arg0.setTaggedValue(1,numpy.array([[-0.40824575124749529, -1.1397163699023203, 4.3190911430696115, 4.6534260983827291, -4.3545886555451307], [-1.5915630931214961, 1.8930546282940952, 0.2688051310628321, -0.47170297113425885, -4.3407392420432416], [3.6309440228956191, -2.9357231326721989, -0.1783352163025862, -0.57435606905517922, -0.43100972576898045], [2.3487562956081289, -3.1045804777101704, 3.4505268527573953, -0.61355607556301095, 3.168156501374618]]))  2.5967941151396978], [2.7118184129118648, 4.2744441954963239, 2.5256592712367727, 4.3910740288571368, -0.81749389358698643],
1424        arg1=Data(numpy.array([[2.4607689719589088, -0.99212543029652789, -4.851919296706444, 1.0162795867954477, 4.466136877963427], [3.9784857577676753, -4.3613136494122271, 0.74369268877859085, 2.3950886713274544, -4.9923265580599585], [-0.56506422921060384, -3.0930047243706591, 2.5908424730857584, 4.5603160077698419, 2.423946547489491], [-0.93743775047951594, -0.3673394818316309, -2.7773248295488195, 1.798394956797825, 1.8256162509613905]]),self.functionspace)  [3.8318241411112126, -4.1533353343123878, -3.4061675616762876, -3.2448939320059655, -1.610901735482928], [3.2338835693575607,
1425        arg1.setTaggedValue(1,numpy.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]]))  -0.31809141540401686, -4.7534320077399776, -1.2412351366339225, 0.6532662566750318]]),self.functionspace)
1426          arg0.setTaggedValue(1,numpy.array([[-0.40824575124749529, -1.1397163699023203, 4.3190911430696115, 4.6534260983827291,
1427    -4.3545886555451307], [-1.5915630931214961, 1.8930546282940952, 0.2688051310628321, -0.47170297113425885, -4.3407392420432416],
1428    [3.6309440228956191, -2.9357231326721989, -0.1783352163025862, -0.57435606905517922, -0.43100972576898045],
1429    [2.3487562956081289, -3.1045804777101704, 3.4505268527573953, -0.61355607556301095, 3.168156501374618]]))
1430          arg1=Data(numpy.array([[2.4607689719589088, -0.99212543029652789, -4.851919296706444, 1.0162795867954477,
1431    4.466136877963427], [3.9784857577676753, -4.3613136494122271, 0.74369268877859085, 2.3950886713274544, -4.9923265580599585],
1432    [-0.56506422921060384, -3.0930047243706591, 2.5908424730857584, 4.5603160077698419, 2.423946547489491], [-0.93743775047951594,
1433    -0.3673394818316309, -2.7773248295488195, 1.798394956797825, 1.8256162509613905]]),self.functionspace)
1434          arg1.setTaggedValue(1,numpy.array([[-4.5533463764192907, -2.5680501286088098, -2.1595429923626455, -2.7191228050860241,
1435    -2.7088788101250261], [3.7258720533049789, 1.284927684183641, -1.1675681000724514, 0.69945198751573212, -4.9965536747752903],
1436    [-2.522137040044564, -3.5846235768258961, 4.2167459240643232, -3.2345633958568532, -3.1123818128654279], [-1.5173196493114371,
1437    4.2228271484661324, -0.97650304976789037, 4.2862261537218433, 2.4227338308583484]]))
1438        arg1.expand()        arg1.expand()
1439        res=arg0+arg1        res=arg0+arg1
1440        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1441        ref=msk_ref*numpy.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)*numpy.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*numpy.array([[-1.6457295232929816, -3.5739167580616451, -3.7809993104690509, -0.89550873345150217,
1442    7.0629309931031248], [6.6903041706795401, -0.086869453915903172, 3.2693519600153635, 6.7861627001845912, -5.8098204516469449],
1443    [3.2667599119006088, -7.2463400586830469, -0.81532508859052921, 1.3154220757638764, 0.81304481200656298], [2.2964458188780448,
1444    -0.68543089723564776, -7.5307568372887967, 0.55715982016390253,
1445    2.4788825076364223]])+(1.-msk_ref)*numpy.array([[-4.961592127666786, -3.70776649851113, 2.159548150706966, 1.934303293296705,
1446    -7.0634674656701568], [2.1343089601834828, 3.1779823124777362, -0.89876296900961927, 0.22774901638147327, -9.3372929168185319],
1447    [1.1088069828510552, -6.5203467094980949, 4.0384107077617371, -3.8089194649120324, -3.5433915386344084], [0.83143664629669178,
1448    1.118246670755962, 2.474023802989505, 3.6726700781588324, 5.5908903322329664]])
1449        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1450        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.assertEqual(res.getShape(),(4, 5),"wrong shape of result.")
1451        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1452     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1453     def test_add_overloaded_taggedData_rank3_float_rank0(self):     def test_add_overloaded_taggedData_rank3_float_rank0(self):
1454        arg0=Data(numpy.array([[[-1.2997878184398806, -1.2757776752263328], [-0.65735390665819349, -0.15144535875971332]], [[-1.8284156635868642, 3.9061628403768758], [1.0946776903405722, -1.4680134418913218]], [[-0.12619686336832103, -0.900530098453034], [-4.0957109781348606, -1.2811650332192626]], [[-3.3769583942459755, 1.1610757349701473], [-2.2121718663533327, 0.22865265651723199]], [[-3.9930636796669425, -2.3455436184607481], [-1.2328786986274709, -2.9643499384056069]], [[0.65263245468386089, 4.8724244596949013], [4.3333122178432699, -4.8825328594467896]]]),self.functionspace)        arg0=Data(numpy.array([[[-1.2997878184398806, -1.2757776752263328], [-0.65735390665819349, -0.15144535875971332]],
1455        arg0.setTaggedValue(1,numpy.array([[[-1.2720075505394899, -1.7304994593212895], [2.1606764296864265, 1.2437847274545586]], [[2.8635205231903837, -3.5966141698322729], [0.98503937600877123, 3.9749742799690289]], [[1.0901011372250924, -4.6495372464590021], [-3.1258189450265226, 2.8715761147792565]], [[4.417553202393071, -1.057695667510834], [4.6763256344107678, 1.3550277772429284]], [[1.2148338989634366, 1.671510325227513], [-1.8038190400917009, 3.0780814772040532]], [[1.6741066406160163, 3.9250458753936961], [0.82880372228847676, 1.213470068514809]]]))  [[-1.8284156635868642, 3.9061628403768758], [1.0946776903405722, -1.4680134418913218]], [[-0.12619686336832103,
1456    -0.900530098453034], [-4.0957109781348606, -1.2811650332192626]], [[-3.3769583942459755, 1.1610757349701473],
1457    [-2.2121718663533327, 0.22865265651723199]], [[-3.9930636796669425, -2.3455436184607481], [-1.2328786986274709,
1458    -2.9643499384056069]], [[0.65263245468386089, 4.8724244596949013], [4.3333122178432699,
1459    -4.8825328594467896]]]),self.functionspace)
1460          arg0.setTaggedValue(1,numpy.array([[[-1.2720075505394899, -1.7304994593212895], [2.1606764296864265,
1461    1.2437847274545586]], [[2.8635205231903837, -3.5966141698322729], [0.98503937600877123, 3.9749742799690289]],
1462    [[1.0901011372250924, -4.6495372464590021], [-3.1258189450265226, 2.8715761147792565]], [[4.417553202393071,
1463    -1.057695667510834], [4.6763256344107678, 1.3550277772429284]], [[1.2148338989634366, 1.671510325227513], [-1.8038190400917009,
1464    3.0780814772040532]], [[1.6741066406160163, 3.9250458753936961], [0.82880372228847676, 1.213470068514809]]]))
1465        arg1=-1.55127288174        arg1=-1.55127288174
1466        res=arg0+arg1        res=arg0+arg1
1467        ref=Data(numpy.array([[[-2.8510607001811232, -2.8270505569675755], [-2.2086267883994362, -1.702718240500956]], [[-3.3796885453281069, 2.3548899586356331], [-0.45659519140067051, -3.0192863236325644]], [[-1.6774697451095637, -2.4518029801942767], [-5.6469838598761033, -2.8324379149605052]], [[-4.9282312759872182, -0.3901971467710954], [-3.7634447480945754, -1.3226202252240107]], [[-5.5443365614081852, -3.8968165002019908], [-2.7841515803687136, -4.5156228201468496]], [[-0.89864042705738179, 3.3211515779536587], [2.7820393361020272, -6.4338057411880323]]]),self.functionspace)        ref=Data(numpy.array([[[-2.8510607001811232, -2.8270505569675755], [-2.2086267883994362, -1.702718240500956]],
1468        ref.setTaggedValue(1,numpy.array([[[-2.8232804322807326, -3.2817723410625321], [0.60940354794518381, -0.30748815428668408]], [[1.3122476414491411, -5.147887051573516], [-0.56623350573247144, 2.4237013982277862]], [[-0.46117174451615028, -6.2008101282002448], [-4.6770918267677652, 1.3203032330380138]], [[2.8662803206518284, -2.6089685492520767], [3.1250527526695251, -0.19624510449831423]], [[-0.33643898277780604, 0.1202374434862703], [-3.3550919218329436, 1.5268085954628106]], [[0.12283375887477366, 2.3737729936524534], [-0.72246915945276591, -0.33780281322643368]]]))  [[-3.3796885453281069, 2.3548899586356331], [-0.45659519140067051, -3.0192863236325644]], [[-1.6774697451095637,
1469    -2.4518029801942767], [-5.6469838598761033, -2.8324379149605052]], [[-4.9282312759872182, -0.3901971467710954],
1470    [-3.7634447480945754, -1.3226202252240107]], [[-5.5443365614081852, -3.8968165002019908], [-2.7841515803687136,
1471    -4.5156228201468496]], [[-0.89864042705738179, 3.3211515779536587], [2.7820393361020272,
1472    -6.4338057411880323]]]),self.functionspace)
1473          ref.setTaggedValue(1,numpy.array([[[-2.8232804322807326, -3.2817723410625321], [0.60940354794518381,
1474    -0.30748815428668408]], [[1.3122476414491411, -5.147887051573516], [-0.56623350573247144, 2.4237013982277862]],
1475    [[-0.46117174451615028, -6.2008101282002448], [-4.6770918267677652, 1.3203032330380138]], [[2.8662803206518284,
1476    -2.6089685492520767], [3.1250527526695251, -0.19624510449831423]], [[-0.33643898277780604, 0.1202374434862703],
1477    [-3.3550919218329436, 1.5268085954628106]], [[0.12283375887477366, 2.3737729936524534], [-0.72246915945276591,
1478    -0.33780281322643368]]]))
1479        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1480        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
1481        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1482     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1483     def test_add_overloaded_taggedData_rank3_array_rank0(self):     def test_add_overloaded_taggedData_rank3_array_rank0(self):
1484        arg0=Data(numpy.array([[[2.4427920649917194, 2.80217002888058], [-4.3925867488504515, 3.5898352354801837]], [[0.81567382374813402, -4.8665560856352119], [-4.1561296525194589, 1.5306689879249333]], [[-1.9015553918776495, 1.1522594478647292], [3.7040048522405051, 3.8976929980497523]], [[-0.82497889582516226, -2.6736276545664159], [-1.2814412837197442, -3.035891431715779]], [[2.4520443258674876, -0.15207139022792493], [2.8256275406494966, 0.22466824419197806]], [[1.0590111629700436, 4.9794941950448806], [-3.2362531545901363, -4.7347310059144707]]]),self.functionspace)        arg0=Data(numpy.array([[[2.4427920649917194, 2.80217002888058], [-4.3925867488504515, 3.5898352354801837]],
1485        arg0.setTaggedValue(1,numpy.array([[[-0.63728168544871711, 4.2451706888736442], [-3.5110777047073647, 0.76629595651110183]], [[2.3489491111837886, 1.0215957806707827], [-3.459269509284153, -1.1952162872723617]], [[3.4315918746214429, -1.5013203994548352], [1.1160231840663934, 2.4567420615775895]], [[2.6513553422863412, -4.5382970231648443], [3.6512015372741828, 2.5341634160287088]], [[1.1959413388746052, 3.9743703993780688], [-3.4989354736232969, -2.8155121097950198]], [[2.8809398518858966, -4.6999882891913298], [-3.3336277982940343, -3.1929419534633263]]]))  [[0.81567382374813402, -4.8665560856352119], [-4.1561296525194589, 1.5306689879249333]], [[-1.9015553918776495,
1486    1.1522594478647292], [3.7040048522405051, 3.8976929980497523]], [[-0.82497889582516226, -2.6736276545664159],
1487    [-1.2814412837197442, -3.035891431715779]], [[2.4520443258674876, -0.15207139022792493], [2.8256275406494966,
1488    0.22466824419197806]], [[1.0590111629700436, 4.9794941950448806], [-3.2362531545901363,
1489    -4.7347310059144707]]]),self.functionspace)
1490          arg0.setTaggedValue(1,numpy.array([[[-0.63728168544871711, 4.2451706888736442], [-3.5110777047073647,
1491    0.76629595651110183]], [[2.3489491111837886, 1.0215957806707827], [-3.459269509284153, -1.1952162872723617]],
1492    [[3.4315918746214429, -1.5013203994548352], [1.1160231840663934, 2.4567420615775895]], [[2.6513553422863412,
1493    -4.5382970231648443], [3.6512015372741828, 2.5341634160287088]], [[1.1959413388746052, 3.9743703993780688],
1494    [-3.4989354736232969, -2.8155121097950198]], [[2.8809398518858966, -4.6999882891913298], [-3.3336277982940343,
1495    -3.1929419534633263]]]))
1496        arg1=numpy.array(-1.63203584107)        arg1=numpy.array(-1.63203584107)
1497        res=arg0+arg1        res=arg0+arg1
1498        ref=Data(numpy.array([[[0.8107562239205417, 1.1701341878094023], [-6.0246225899216288, 1.957799394409006]], [[-0.8163620173230437, -6.4985919267063892], [-5.7881654935906361, -0.10136685314624438]], [[-3.5335912329488273, -0.47977639320644849], [2.0719690111693274, 2.2656571569785746]], [[-2.45701473689634, -4.3056634956375941], [-2.9134771247909219, -4.6679272727869563]], [[0.82000848479630983, -1.7841072312991026], [1.1935916995783189, -1.4073675968791997]], [[-0.57302467810113411, 3.3474583539737028], [-4.868288995661314, -6.366766846985648]]]),self.functionspace)        ref=Data(numpy.array([[[0.8107562239205417, 1.1701341878094023], [-6.0246225899216288, 1.957799394409006]],
1499        ref.setTaggedValue(1,numpy.array([[[-2.2693175265198948, 2.6131348478024665], [-5.143113545778542, -0.86573988456007589]], [[0.71691327011261086, -0.610440060400395], [-5.0913053503553307, -2.8272521283435395]], [[1.7995560335502652, -3.1333562405260129], [-0.51601265700478427, 0.82470622050641174]], [[1.0193195012151635, -6.1703328642360216], [2.0191656962030051, 0.90212757495753104]], [[-0.43609450219657253, 2.3423345583068911], [-5.1309713146944746, -4.4475479508661975]], [[1.2489040108147189, -6.3320241302625071], [-4.9656636393652125, -4.8249777945345045]]]))  [[-0.8163620173230437, -6.4985919267063892], [-5.7881654935906361, -0.10136685314624438]], [[-3.5335912329488273,
1500    -0.47977639320644849], [2.0719690111693274, 2.2656571569785746]], [[-2.45701473689634, -4.3056634956375941],
1501    [-2.9134771247909219, -4.6679272727869563]], [[0.82000848479630983, -1.7841072312991026], [1.1935916995783189,
1502    -1.4073675968791997]], [[-0.57302467810113411, 3.3474583539737028], [-4.868288995661314,
1503    -6.366766846985648]]]),self.functionspace)
1504          ref.setTaggedValue(1,numpy.array([[[-2.2693175265198948, 2.6131348478024665], [-5.143113545778542,
1505    -0.86573988456007589]], [[0.71691327011261086, -0.610440060400395], [-5.0913053503553307, -2.8272521283435395]],
1506    [[1.7995560335502652, -3.1333562405260129], [-0.51601265700478427, 0.82470622050641174]], [[1.0193195012151635,
1507    -6.1703328642360216], [2.0191656962030051, 0.90212757495753104]], [[-0.43609450219657253, 2.3423345583068911],
1508    [-5.1309713146944746, -4.4475479508661975]], [[1.2489040108147189, -6.3320241302625071], [-4.9656636393652125,
1509    -4.8249777945345045]]]))
1510        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1511        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
1512        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1513     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1514     def test_add_overloaded_taggedData_rank3_array_rank3(self):     def test_add_overloaded_taggedData_rank3_array_rank3(self):
1515        arg0=Data(numpy.array([[[0.31917310763958895, -3.5515451495799621], [-3.718971091595936, 1.5386433092095917]], [[2.3357357923776609, 4.5645794968830931], [2.1186400866631914, -0.51755282637387801]], [[-1.1071675171380324, 2.8068684530417958], [0.94189546205659624, 1.1910362805300565]], [[3.4468679467165924, 1.006131044842288], [-3.5462192516382252, -0.41561960499380568]], [[-2.0651391129052921, -3.8762786749366498], [0.44047838236076586, 4.0704313697496808]], [[3.0083402167960127, 4.3879696887221318], [1.9259203465021359, -4.9981755932897869]]]),self.functionspace)        arg0=Data(numpy.array([[[0.31917310763958895, -3.5515451495799621], [-3.718971091595936, 1.5386433092095917]],
1516        arg0.setTaggedValue(1,numpy.array([[[-0.77637009857172856, 0.94781626387318152], [4.4914773288916585, -1.8241112102418677]], [[4.9952740743939135, -0.47141930443296687], [1.1478215759652564, 1.9029209110237204]], [[2.8078916833095899, -2.0842274466071684], [1.1783007597484243, -1.1498187669628592]], [[-1.4196212623658075, -4.2820956196071265], [3.337409137923963, 1.6177366753773903]], [[2.7756440510587899, -3.382984690251555], [-4.1798305502190969, -2.6150479858595341]], [[3.5217312097872604, 4.1836069146853205], [-0.52039453105849365, 1.6466546455411146]]]))  [[2.3357357923776609, 4.5645794968830931], [2.1186400866631914, -0.51755282637387801]], [[-1.1071675171380324,
1517        arg1=numpy.array([[[1.3469197096068548, 4.3476759743611808], [-2.9491253550464416, 0.1297037958924534]], [[-4.4172410740793886, 1.1568230611126129], [-1.8137906109459601, 4.8447805060491191]], [[2.3601993829840584, 3.7374735496880582], [4.528666004046606, -1.2474994690367525]], [[2.1247834581673173, -3.0630841688534929], [3.0851375677735771, -3.1251781301121651]], [[1.7649956230261266, 2.467546423340039], [2.8342627622713215, 0.48744502296701953]], [[-3.5213033924689761, 4.6465127879738155], [2.2018400068809747, -3.9708346903513734]]])  2.8068684530417958], [0.94189546205659624, 1.1910362805300565]], [[3.4468679467165924, 1.006131044842288],
1518        res=arg0+arg1  [-3.5462192516382252, -0.41561960499380568]], [[-2.0651391129052921, -3.8762786749366498], [0.44047838236076586,
1519        ref=Data(numpy.array([[[1.6660928172464438, 0.79613082478121866], [-6.6680964466423776, 1.6683471051020451]], [[-2.0815052817017277, 5.721402557995706], [0.30484947571723131, 4.3272276796752411]], [[1.253031865846026, 6.544342002729854], [5.4705614661032023, -0.05646318850669596]], [[5.5716514048839096, -2.0569531240112049], [-0.4610816838646481, -3.5407977351059707]], [[-0.3001434898791655, -1.4087322515966108], [3.2747411446320873, 4.5578763927167003]], [[-0.51296317567296335, 9.0344824766959473], [4.1277603533831106, -8.9690102836411612]]]),self.functionspace)  4.0704313697496808]], [[3.0083402167960127, 4.3879696887221318], [1.9259203465021359,
1520        ref.setTaggedValue(1,numpy.array([[[0.57054961103512625, 5.2954922382343623], [1.5423519738452169, -1.6944074143494143]], [[0.57803300031452487, 0.68540375667964604], [-0.6659690349807037, 6.7477014170728395]], [[5.1680910662936483, 1.6532461030808898], [5.7069667637950303, -2.3973182359996117]], [[0.70516219580150974, -7.3451797884606194], [6.42254670569754, -1.5074414547347748]], [[4.5406396740849164, -0.91543826691151597], [-1.3455677879477754, -2.1276029628925146]], [[0.00042781731828434033, 8.830119702659136], [1.6814454758224811, -2.3241800448102587]]]))  -4.9981755932897869]]]),self.functionspace)
1521          arg0.setTaggedValue(1,numpy.array([[[-0.77637009857172856, 0.94781626387318152], [4.4914773288916585,
1522    -1.8241112102418677]], [[4.9952740743939135, -0.47141930443296687], [1.1478215759652564, 1.9029209110237204]],
1523    [[2.8078916833095899, -2.0842274466071684], [1.1783007597484243, -1.1498187669628592]], [[-1.4196212623658075,
1524    -4.2820956196071265], [3.337409137923963, 1.6177366753773903]], [[2.7756440510587899, -3.382984690251555],
1525    [-4.1798305502190969, -2.6150479858595341]], [[3.5217312097872604, 4.1836069146853205], [-0.52039453105849365,
1526    1.6466546455411146]]]))
1527          arg1=numpy.array([[[1.3469197096068548, 4.3476759743611808], [-2.9491253550464416, 0.1297037958924534]],
1528    [[-4.4172410740793886, 1.1568230611126129], [-1.8137906109459601, 4.8447805060491191]], [[2.3601993829840584,
1529    3.7374735496880582], [4.528666004046606, -1.2474994690367525]], [[2.1247834581673173, -3.0630841688534929],
1530    [3.0851375677735771, -3.1251781301121651]], [[1.7649956230261266, 2.467546423340039], [2.8342627622713215,
1531    0.48744502296701953]], [[-3.5213033924689761, 4.6465127879738155], [2.2018400068809747, -3.9708346903513734]]])
1532          res=arg0+arg1
1533          ref=Data(numpy.array([[[1.6660928172464438, 0.79613082478121866], [-6.6680964466423776, 1.6683471051020451]],
1534    [[-2.0815052817017277, 5.721402557995706], [0.30484947571723131, 4.3272276796752411]], [[1.253031865846026, 6.544342002729854],
1535    [5.4705614661032023, -0.05646318850669596]], [[5.5716514048839096, -2.0569531240112049], [-0.4610816838646481,
1536    -3.5407977351059707]], [[-0.3001434898791655, -1.4087322515966108], [3.2747411446320873, 4.5578763927167003]],
1537    [[-0.51296317567296335, 9.0344824766959473], [4.1277603533831106, -8.9690102836411612]]]),self.functionspace)
1538          ref.setTaggedValue(1,numpy.array([[[0.57054961103512625, 5.2954922382343623], [1.5423519738452169, -1.6944074143494143]],
1539    [[0.57803300031452487, 0.68540375667964604], [-0.6659690349807037, 6.7477014170728395]], [[5.1680910662936483,
1540    1.6532461030808898], [5.7069667637950303, -2.3973182359996117]], [[0.70516219580150974, -7.3451797884606194],
1541    [6.42254670569754, -1.5074414547347748]], [[4.5406396740849164, -0.91543826691151597], [-1.3455677879477754,
1542    -2.1276029628925146]], [[0.00042781731828434033, 8.830119702659136], [1.6814454758224811, -2.3241800448102587]]]))
1543        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1544        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
1545        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1546     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1547     def test_add_overloaded_taggedData_rank3_constData_rank0(self):     def test_add_overloaded_taggedData_rank3_constData_rank0(self):
1548        arg0=Data(numpy.array([[[-2.8210454777698404, -3.4217707115382625], [2.1171931397381574, 2.6950906491858699]], [[4.4063672073366149, -4.1150624825312665], [-0.20619185189900513, 3.6298688570246167]], [[-0.5123674843738435, -1.2876695824800102], [-3.4007350435993313, -1.7224417342800757]], [[-1.2022562263835326, -3.0205104949494963], [1.0804079954631698, 1.6798514610394264]], [[-3.9750150243167512, -3.6717642006321203], [-1.0074759955485932, -0.0027274770069656284]], [[-0.50402170304039373, -0.82562381306776178], [0.017163887092507046, 0.24298818691586277]]]),self.functionspace)        arg0=Data(numpy.array([[[-2.8210454777698404, -3.4217707115382625], [2.1171931397381574, 2.6950906491858699]],
1549        arg0.setTaggedValue(1,numpy.array([[[0.52779485824058359, -4.9422201372698114], [-0.58929488689681797, -1.9977706922011604]], [[3.725646291123466, 0.66681409512529299], [1.4886149904608637, -1.0996317910519684]], [[3.3456204986696285, -1.5747030524647441], [0.10490442714460979, 4.2301071863566282]], [[4.0344462421951235, -1.4476621231960007], [3.1870510385249133, -3.2366025935356202]], [[4.0806287044527245, -1.6326612932604965], [-3.7889698613359912, -4.4314145203076825]], [[-2.5133034554522649, -3.4737658986451123], [2.0813742995032589, -4.8764170297129343]]]))  [[4.4063672073366149, -4.1150624825312665], [-0.20619185189900513, 3.6298688570246167]], [[-0.5123674843738435,
1550    -1.2876695824800102], [-3.4007350435993313, -1.7224417342800757]], [[-1.2022562263835326, -3.0205104949494963],
1551    [1.0804079954631698, 1.6798514610394264]], [[-3.9750150243167512, -3.6717642006321203], [-1.0074759955485932,
1552    -0.0027274770069656284]], [[-0.50402170304039373, -0.82562381306776178], [0.017163887092507046,
1553    0.24298818691586277]]]),self.functionspace)
1554          arg0.setTaggedValue(1,numpy.array([[[0.52779485824058359, -4.9422201372698114], [-0.58929488689681797,
1555    -1.9977706922011604]], [[3.725646291123466, 0.66681409512529299], [1.4886149904608637, -1.0996317910519684]],
1556    [[3.3456204986696285, -1.5747030524647441], [0.10490442714460979, 4.2301071863566282]], [[4.0344462421951235,
1557    -1.4476621231960007], [3.1870510385249133, -3.2366025935356202]], [[4.0806287044527245, -1.6326612932604965],
1558    [-3.7889698613359912, -4.4314145203076825]], [[-2.5133034554522649, -3.4737658986451123], [2.0813742995032589,
1559    -4.8764170297129343]]]))
1560        arg1=Data(2.73803499699,self.functionspace)        arg1=Data(2.73803499699,self.functionspace)
1561        res=arg0+arg1        res=arg0+arg1
1562        ref=Data(numpy.array([[[-0.083010480779381446, -0.68373571454780357], [4.8552281367286163, 5.4331256461763289]], [[7.1444022043270738, -1.3770274855408076], [2.5318431450914538, 6.3679038540150756]], [[2.2256675126166154, 1.4503654145104488], [-0.66270004660887238, 1.0155932627103832]], [[1.5357787706069264, -0.28247549795903737], [3.8184429924536287, 4.4178864580298853]], [[-1.2369800273262923, -0.93372920364166134], [1.7305590014418657, 2.7353075199834933]], [[2.2340132939500652, 1.9124111839226972], [2.755198884082966, 2.9810231839063217]]]),self.functionspace)        ref=Data(numpy.array([[[-0.083010480779381446, -0.68373571454780357], [4.8552281367286163, 5.4331256461763289]],
1563        ref.setTaggedValue(1,numpy.array([[[3.2658298552310425, -2.2041851402793524], [2.148740110093641, 0.7402643047892985]], [[6.4636812881139249, 3.4048490921157519], [4.2266499874513226, 1.6384032059384905]], [[6.0836554956600875, 1.1633319445257149], [2.8429394241350687, 6.9681421833470871]], [[6.7724812391855824, 1.2903728737944582], [5.9250860355153723, -0.49856759654516125]], [[6.8186637014431835, 1.1053737037299625], [-1.0509348643455323, -1.6933795233172235]], [[0.22473154153819408, -0.73573090165465338], [4.8194092964937179, -2.1383820327224754]]]))  [[7.1444022043270738, -1.3770274855408076], [2.5318431450914538, 6.3679038540150756]], [[2.2256675126166154,
1564    1.4503654145104488], [-0.66270004660887238, 1.0155932627103832]], [[1.5357787706069264, -0.28247549795903737],
1565    [3.8184429924536287, 4.4178864580298853]], [[-1.2369800273262923, -0.93372920364166134], [1.7305590014418657,
1566    2.7353075199834933]], [[2.2340132939500652, 1.9124111839226972], [2.755198884082966, 2.9810231839063217]]]),self.functionspace)
1567          ref.setTaggedValue(1,numpy.array([[[3.2658298552310425, -2.2041851402793524], [2.148740110093641, 0.7402643047892985]],
1568    [[6.4636812881139249, 3.4048490921157519], [4.2266499874513226, 1.6384032059384905]], [[6.0836554956600875,
1569    1.1633319445257149], [2.8429394241350687, 6.9681421833470871]], [[6.7724812391855824, 1.2903728737944582], [5.9250860355153723,
1570    -0.49856759654516125]], [[6.8186637014431835, 1.1053737037299625], [-1.0509348643455323, -1.6933795233172235]],
1571    [[0.22473154153819408, -0.73573090165465338], [4.8194092964937179, -2.1383820327224754]]]))
1572        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1573        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
1574        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1575     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1576     def test_add_overloaded_taggedData_rank3_constData_rank3(self):     def test_add_overloaded_taggedData_rank3_constData_rank3(self):
1577        arg0=Data(numpy.array([[[-0.47096700853224327, -1.9522286296005733], [-1.0658047271834858, -3.4096964985517975]], [[0.96949518882925378, 1.6475269299751059], [-0.62090212768980102, 2.3702548578783418]], [[1.1612999891474374, 0.72067991486352589], [-2.1597864609168926, 3.7014615272065594]], [[-4.6650533012636757, -0.72559395941643068], [1.7091966692212166, -4.3919239471813709]], [[-0.59417459256082061, 1.0243089267292333], [-1.6973527467734693, 0.29098597486111366]], [[0.54197662904973853, -1.6867380691844036], [1.6548783566133993, 0.28778280143183199]]]),self.functionspace)        arg0=Data(numpy.array([[[-0.47096700853224327, -1.9522286296005733], [-1.0658047271834858, -3.4096964985517975]],
1578        arg0.setTaggedValue(1,numpy.array([[[-1.8748672080092965, 4.3617879277745804], [1.9081086899666211, -3.4258603348943284]], [[3.1528090589516733, -4.2885134261580218], [4.1159665261035343, 4.1530718731948149]], [[0.81108614452451544, -3.9712442140485669], [4.64723189223443, -2.7753268821800638]], [[-0.88602857435270721, 4.8742258990691809], [1.7280166668429864, 3.7191126262019782]], [[-2.5529612680445735, -4.3162019941407106], [-1.7065042564276132, 1.6649865182845183]], [[3.1076813152331368, -0.47645773433606298], [-4.834709528117072, -3.0732299970931196]]]))  [[0.96949518882925378, 1.6475269299751059], [-0.62090212768980102, 2.3702548578783418]], [[1.1612999891474374,
1579        arg1=Data(numpy.array([[[0.38081686149340932, -0.12561401029626662], [-0.47267367652429826, 0.85723849547148046]], [[-4.2277778979663214, 0.29910480673373918], [4.059679115529768, -1.5899700933256398]], [[3.7286730317778058, 0.019079665982769001], [0.65683454127360541, -4.6363980749491844]], [[-2.0410322297090779, 1.00239030504056], [-2.8483396779950967, -2.9681138872934665]], [[-4.7675870663356834, -1.301532912831973], [-0.5015722378248082, 4.247977439406128]], [[4.5670566525874463, 0.91288837003611434], [-3.7080840440083698, 2.0202635489539622]]]),self.functionspace)  0.72067991486352589], [-2.1597864609168926, 3.7014615272065594]], [[-4.6650533012636757, -0.72559395941643068],
1580        res=arg0+arg1  [1.7091966692212166, -4.3919239471813709]], [[-0.59417459256082061, 1.0243089267292333], [-1.6973527467734693,
1581        ref=Data(numpy.array([[[-0.09015014703883395, -2.0778426398968399], [-1.5384784037077841, -2.552458003080317]], [[-3.2582827091370676, 1.946631736708845], [3.438776987839967, 0.78028476455270201]], [[4.8899730209252432, 0.7397595808462949], [-1.5029519196432872, -0.93493654774262502]], [[-6.7060855309727536, 0.27679634562412936], [-1.1391430087738801, -7.3600378344748378]], [[-5.361761658896504, -0.27722398610273968], [-2.1989249845982775, 4.5389634142672417]], [[5.1090332816371848, -0.77384969914828927], [-2.0532056873949704, 2.3080463503857942]]]),self.functionspace)  0.29098597486111366]], [[0.54197662904973853, -1.6867380691844036], [1.6548783566133993,
1582        ref.setTaggedValue(1,numpy.array([[[-1.4940503465158872, 4.2361739174783137], [1.4354350134423228, -2.5686218394228479]], [[-1.0749688390146481, -3.9894086194242826], [8.1756456416333023, 2.5631017798691751]], [[4.5397591763023213, -3.9521645480657979], [5.3040664335080354, -7.4117249571292483]], [[-2.9270608040617851, 5.8766162041097409], [-1.1203230111521103, 0.75099873890851176]], [[-7.3205483343802573, -5.6177349069726841], [-2.2080764942524214, 5.9129639576906463]], [[7.6747379678205832, 0.43643063570005136], [-8.5427935721254418, -1.0529664481391574]]]))  0.28778280143183199]]]),self.functionspace)
1583          arg0.setTaggedValue(1,numpy.array([[[-1.8748672080092965, 4.3617879277745804], [1.9081086899666211,
1584    -3.4258603348943284]], [[3.1528090589516733, -4.2885134261580218], [4.1159665261035343, 4.1530718731948149]],
1585    [[0.81108614452451544, -3.9712442140485669], [4.64723189223443, -2.7753268821800638]], [[-0.88602857435270721,
1586    4.8742258990691809], [1.7280166668429864, 3.7191126262019782]], [[-2.5529612680445735, -4.3162019941407106],
1587    [-1.7065042564276132, 1.6649865182845183]], [[3.1076813152331368, -0.47645773433606298], [-4.834709528117072,
1588    -3.0732299970931196]]]))
1589          arg1=Data(numpy.array([[[0.38081686149340932, -0.12561401029626662], [-0.47267367652429826, 0.85723849547148046]],
1590    [[-4.2277778979663214, 0.29910480673373918], [4.059679115529768, -1.5899700933256398]], [[3.7286730317778058,
1591    0.019079665982769001], [0.65683454127360541, -4.6363980749491844]], [[-2.0410322297090779, 1.00239030504056],
1592    [-2.8483396779950967, -2.9681138872934665]], [[-4.7675870663356834, -1.301532912831973], [-0.5015722378248082,
1593    4.247977439406128]], [[4.5670566525874463, 0.91288837003611434], [-3.7080840440083698,
1594    2.0202635489539622]]]),self.functionspace)
1595          res=arg0+arg1
1596          ref=Data(numpy.array([[[-0.09015014703883395, -2.0778426398968399], [-1.5384784037077841, -2.552458003080317]],
1597    [[-3.2582827091370676, 1.946631736708845], [3.438776987839967, 0.78028476455270201]], [[4.8899730209252432,
1598    0.7397595808462949], [-1.5029519196432872, -0.93493654774262502]], [[-6.7060855309727536, 0.27679634562412936],
1599    [-1.1391430087738801, -7.3600378344748378]], [[-5.361761658896504, -0.27722398610273968], [-2.1989249845982775,
1600    4.5389634142672417]], [[5.1090332816371848, -0.77384969914828927], [-2.0532056873949704,
1601    2.3080463503857942]]]),self.functionspace)
1602          ref.setTaggedValue(1,numpy.array([[[-1.4940503465158872, 4.2361739174783137], [1.4354350134423228, -2.5686218394228479]],
1603    [[-1.0749688390146481, -3.9894086194242826], [8.1756456416333023, 2.5631017798691751]], [[4.5397591763023213,
1604    -3.9521645480657979], [5.3040664335080354, -7.4117249571292483]], [[-2.9270608040617851, 5.8766162041097409],
1605    [-1.1203230111521103, 0.75099873890851176]], [[-7.3205483343802573, -5.6177349069726841], [-2.2080764942524214,
1606    5.9129639576906463]], [[7.6747379678205832, 0.43643063570005136], [-8.5427935721254418, -1.0529664481391574]]]))
1607        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1608        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
1609        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1610     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1611     def test_add_overloaded_taggedData_rank3_taggedData_rank0(self):     def test_add_overloaded_taggedData_rank3_taggedData_rank0(self):
1612        arg0=Data(numpy.array([[[-2.77213374577719, 3.8175247853740437], [-4.3578721765707087, 3.0005484157113713]], [[-4.6386603451262696, -3.8563761317763499], [-1.4852241554726362, 0.38857004951119656]], [[2.9222332691377826, 1.6923051930588748], [0.30085877388243087, 2.1522074406521785]], [[-3.4464086791036941, -0.63552745300504654], [-4.8700187583105752, -4.5753181764286532]], [[0.65918512755418668, -0.38289184193305914], [-1.3338342635044609, -3.0717881242821266]], [[-0.39784573416263669, 2.7401013994849812], [1.6971148789255555, -1.1822905596970621]]]),self.functionspace)        arg0=Data(numpy.array([[[-2.77213374577719, 3.8175247853740437], [-4.3578721765707087, 3.0005484157113713]],
1613        arg0.setTaggedValue(1,numpy.array([[[1.8943785565648668, -2.4747326244629173], [-0.23157835576301, -2.1863096808838058]], [[3.084915267753491, -3.8041276142005644], [-3.7077539164197248, -2.2281312895796801]], [[-3.5271540745576244, -0.30969872820660171], [4.3522864510595376, 1.3338960268806357]], [[0.65947508204485317, 1.9330005623286706], [-1.0132685477999583, -0.66208052775642923]], [[-4.7530716871765497, -0.76936405181359646], [-3.444003775274076, -4.4656040487057735]], [[0.383854720217645, -4.3199032543230329], [0.98492701990625786, 2.8611845972002117]]]))  [[-4.6386603451262696, -3.8563761317763499], [-1.4852241554726362, 0.38857004951119656]], [[2.9222332691377826,
1614    1.6923051930588748], [0.30085877388243087, 2.1522074406521785]], [[-3.4464086791036941, -0.63552745300504654],
1615    [-4.8700187583105752, -4.5753181764286532]], [[0.65918512755418668, -0.38289184193305914], [-1.3338342635044609,
1616    -3.0717881242821266]], [[-0.39784573416263669, 2.7401013994849812], [1.6971148789255555,
1617    -1.1822905596970621]]]),self.functionspace)
1618          arg0.setTaggedValue(1,numpy.array([[[1.8943785565648668, -2.4747326244629173], [-0.23157835576301, -2.1863096808838058]],
1619    [[3.084915267753491, -3.8041276142005644], [-3.7077539164197248, -2.2281312895796801]], [[-3.5271540745576244,
1620    -0.30969872820660171], [4.3522864510595376, 1.3338960268806357]], [[0.65947508204485317, 1.9330005623286706],
1621    [-1.0132685477999583, -0.66208052775642923]], [[-4.7530716871765497, -0.76936405181359646], [-3.444003775274076,
1622    -4.4656040487057735]], [[0.383854720217645, -4.3199032543230329], [0.98492701990625786, 2.8611845972002117]]]))
1623        arg1=Data(1.08370007113,self.functionspace)        arg1=Data(1.08370007113,self.functionspace)
1624        arg1.setTaggedValue(1,-1.61546335612)        arg1.setTaggedValue(1,-1.61546335612)
1625        res=arg0+arg1        res=arg0+arg1
1626        ref=Data(numpy.array([[[-1.6884336746471669, 4.9012248565040668], [-3.2741721054406856, 4.0842484868413944]], [[-3.5549602739962465, -2.7726760606463268], [-0.40152408434261311, 1.4722701206412196]], [[4.0059333402678057, 2.7760052641888979], [1.384558845012454, 3.2359075117822016]], [[-2.362708607973671, 0.44817261812497655], [-3.7863186871805521, -3.4916181052986301]], [[1.7428851986842098, 0.70080822919696395], [-0.25013419237443779, -1.9880880531521035]], [[0.6858543369673864, 3.8238014706150043], [2.7808149500555785, -0.098590488567039003]]]),self.functionspace)        ref=Data(numpy.array([[[-1.6884336746471669, 4.9012248565040668], [-3.2741721054406856, 4.0842484868413944]],
1627        ref.setTaggedValue(1,numpy.array([[[0.27891520044604867, -4.0901959805817354], [-1.8470417118818281, -3.8017730370026239]], [[1.4694519116346729, -5.4195909703193825], [-5.3232172725385425, -3.8435946456984982]], [[-5.1426174306764425, -1.9251620843254198], [2.7368230949407195, -0.2815673292381824]], [[-0.95598827407396492, 0.31753720620985249], [-2.6287319039187764, -2.2775438838752473]], [[-6.3685350432953678, -2.3848274079324145], [-5.0594671313928945, -6.0810674048245916]], [[-1.2316086359011731, -5.935366610441851], [-0.63053633621256022, 1.2457212410813936]]]))  [[-3.5549602739962465, -2.7726760606463268], [-0.40152408434261311, 1.4722701206412196]], [[4.0059333402678057,
1628    2.7760052641888979], [1.384558845012454, 3.2359075117822016]], [[-2.362708607973671, 0.44817261812497655],
1629    [-3.7863186871805521, -3.4916181052986301]], [[1.7428851986842098, 0.70080822919696395], [-0.25013419237443779,
1630    -1.9880880531521035]], [[0.6858543369673864, 3.8238014706150043], [2.7808149500555785,
1631    -0.098590488567039003]]]),self.functionspace)
1632          ref.setTaggedValue(1,numpy.array([[[0.27891520044604867, -4.0901959805817354], [-1.8470417118818281,
1633    -3.8017730370026239]], [[1.4694519116346729, -5.4195909703193825], [-5.3232172725385425, -3.8435946456984982]],
1634    [[-5.1426174306764425, -1.9251620843254198], [2.7368230949407195, -0.2815673292381824]], [[-0.95598827407396492,
1635    0.31753720620985249], [-2.6287319039187764, -2.2775438838752473]], [[-6.3685350432953678, -2.3848274079324145],
1636    [-5.0594671313928945, -6.0810674048245916]], [[-1.2316086359011731, -5.935366610441851], [-0.63053633621256022,
1637    1.2457212410813936]]]))
1638        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1639        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
1640        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1641     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1642     def test_add_overloaded_taggedData_rank3_taggedData_rank3(self):     def test_add_overloaded_taggedData_rank3_taggedData_rank3(self):
1643        arg0=Data(numpy.array([[[3.0999704341790579, -2.1368850512830209], [-4.1614101762320432, -0.28811741134597924]], [[-3.036719027857866, 1.9451406831243423], [4.5539526177848426, -3.4072595450593415]], [[1.8259798226800594, -3.8017735745557646], [-4.7269662575423084, -4.1499666999210501]], [[1.7934785241410642, -4.6873007226520453], [2.3569452131701496, -2.9689095593087433]], [[-2.7425902126600654, -3.4952895783077773], [0.22564261641125327, 3.5916579754992668]], [[-4.5128373012219161, -2.2233808100865504], [-4.5956375124314857, -1.4657958530898529]]]),self.functionspace)        arg0=Data(numpy.array([[[3.0999704341790579, -2.1368850512830209], [-4.1614101762320432, -0.28811741134597924]],
1644        arg0.setTaggedValue(1,numpy.array([[[2.1961737709455766, 4.5561492238051997], [1.3323004328555212, 2.5760714767847857]], [[3.7761790525397583, -3.2598311484246754], [-3.4866875984314727, -3.7474259334034321]], [[3.1210107314646081, 2.3762836994400951], [3.0966860416753264, -1.9773787652223018]], [[-1.0741225554644593, -1.3214351024114102], [-4.5798839978418195, 1.7205169612568403]], [[-1.3160891100365379, 4.8106693608424909], [2.0146140171185811, -0.37205085081784883]], [[-3.7863403761557723, 4.2179799987051538], [2.4737687017551107, -4.3943704465839319]]]))  [[-3.036719027857866, 1.9451406831243423], [4.5539526177848426, -3.4072595450593415]], [[1.8259798226800594,
1645        arg1=Data(numpy.array([[[3.7930028184928855, 0.74521751208453857], [4.4847095846025393, -1.7830762197802699]], [[-2.5057973764886055, -2.9563522299729317], [2.7529593815263258, 0.48292843407461739]], [[-3.0458552313152545, 4.2713334489390178], [-4.9127772710577853, 3.1175552007676774]], [[-0.2743949745927079, -3.3774907685127999], [-0.89006146507890449, -3.0975301132793378]], [[-0.82350018133067504, -4.2749920154045284], [-2.0284520439069418, 3.2413268838608218]], [[1.1253521343375859, 4.3890827253584401], [-3.3978743559562128, -3.5124546051556194]]]),self.functionspace)  -3.8017735745557646], [-4.7269662575423084, -4.1499666999210501]], [[1.7934785241410642, -4.6873007226520453],
1646        arg1.setTaggedValue(1,numpy.array([[[-2.3628721681361862, 3.8974683231077023], [0.76235716341701032, 2.5412583826555233]], [[-2.773278329515807, 3.4959019739944672], [2.6845044210467686, -4.9074297296405778]], [[-1.2434917807453951, -3.0537165935820787], [-1.5874774764708919, 0.3750357775252251]], [[-0.77245416605846717, -4.2340919743151426], [-0.017802906555869136, -2.1823946035944806]], [[3.6542664252022519, -1.1250262117533127], [-4.9641003807321615, -3.4471856385372202]], [[4.2428404046751709, 0.1351522794648643], [-0.82248359553912831, 2.5308594813065657]]]))  [2.3569452131701496, -2.9689095593087433]], [[-2.7425902126600654, -3.4952895783077773], [0.22564261641125327,
1647        res=arg0+arg1  3.5916579754992668]], [[-4.5128373012219161, -2.2233808100865504], [-4.5956375124314857,
1648        ref=Data(numpy.array([[[6.8929732526719434, -1.3916675391984823], [0.32329940837049609, -2.0711936311262491]], [[-5.5425164043464719, -1.0112115468485894], [7.3069119993111684, -2.9243311109847241]], [[-1.2198754086351951, 0.4695598743832532], [-9.6397435286000928, -1.0324114991533726]], [[1.5190835495483563, -8.0647914911648453], [1.4668837480912451, -6.0664396725880811]], [[-3.5660903939907405, -7.7702815937123058], [-1.8028094274956885, 6.8329848593600886]], [[-3.3874851668843302, 2.1657019152718897], [-7.9935118683876984, -4.9782504582454727]]]),self.functionspace)  -1.4657958530898529]]]),self.functionspace)
1649        ref.setTaggedValue(1,numpy.array([[[-0.16669839719060953, 8.453617546912902], [2.0946575962725316, 5.1173298594403089]], [[1.0029007230239513, 0.23607082556979186], [-0.80218317738470413, -8.6548556630440103]], [[1.8775189507192129, -0.6774328941419836], [1.5092085652044345, -1.6023429876970767]], [[-1.8465767215229265, -5.5555270767265528], [-4.5976869043976887, -0.46187764233764028]], [[2.3381773151657139, 3.6856431490891781], [-2.9494863636135804, -3.819236489355069]], [[0.45650002851939853, 4.3531322781700181], [1.6512851062159823, -1.8635109652773663]]]))        arg0.setTaggedValue(1,numpy.array([[[2.1961737709455766, 4.5561492238051997], [1.3323004328555212, 2.5760714767847857]],
1650    [[3.7761790525397583, -3.2598311484246754], [-3.4866875984314727, -3.7474259334034321]], [[3.1210107314646081,
1651    2.3762836994400951], [3.0966860416753264, -1.9773787652223018]], [[-1.0741225554644593, -1.3214351024114102],
1652    [-4.5798839978418195, 1.7205169612568403]], [[-1.3160891100365379, 4.8106693608424909], [2.0146140171185811,
1653    -0.37205085081784883]], [[-3.7863403761557723, 4.2179799987051538], [2.4737687017551107, -4.3943704465839319]]]))
1654          arg1=Data(numpy.array([[[3.7930028184928855, 0.74521751208453857], [4.4847095846025393, -1.7830762197802699]],
1655    [[-2.5057973764886055, -2.9563522299729317], [2.7529593815263258, 0.48292843407461739]], [[-3.0458552313152545,
1656    4.2713334489390178], [-4.9127772710577853, 3.1175552007676774]], [[-0.2743949745927079, -3.3774907685127999],
1657    [-0.89006146507890449, -3.0975301132793378]], [[-0.82350018133067504, -4.2749920154045284], [-2.0284520439069418,
1658    3.2413268838608218]], [[1.1253521343375859, 4.3890827253584401], [-3.3978743559562128,
1659    -3.5124546051556194]]]),self.functionspace)
1660          arg1.setTaggedValue(1,numpy.array([[[-2.3628721681361862, 3.8974683231077023], [0.76235716341701032,
1661    2.5412583826555233]], [[-2.773278329515807, 3.4959019739944672], [2.6845044210467686, -4.9074297296405778]],
1662    [[-1.2434917807453951, -3.0537165935820787], [-1.5874774764708919, 0.3750357775252251]], [[-0.77245416605846717,
1663    -4.2340919743151426], [-0.017802906555869136, -2.1823946035944806]], [[3.6542664252022519, -1.1250262117533127],
1664    [-4.9641003807321615, -3.4471856385372202]], [[4.2428404046751709, 0.1351522794648643], [-0.82248359553912831,
1665    2.5308594813065657]]]))
1666          res=arg0+arg1
1667          ref=Data(numpy.array([[[6.8929732526719434, -1.3916675391984823], [0.32329940837049609, -2.0711936311262491]],
1668    [[-5.5425164043464719, -1.0112115468485894], [7.3069119993111684, -2.9243311109847241]], [[-1.2198754086351951,
1669    0.4695598743832532], [-9.6397435286000928, -1.0324114991533726]], [[1.5190835495483563, -8.0647914911648453],
1670    [1.4668837480912451, -6.0664396725880811]], [[-3.5660903939907405, -7.7702815937123058], [-1.8028094274956885,
1671    6.8329848593600886]], [[-3.3874851668843302, 2.1657019152718897], [-7.9935118683876984,
1672    -4.9782504582454727]]]),self.functionspace)
1673          ref.setTaggedValue(1,numpy.array([[[-0.16669839719060953, 8.453617546912902], [2.0946575962725316, 5.1173298594403089]],
1674    [[1.0029007230239513, 0.23607082556979186], [-0.80218317738470413, -8.6548556630440103]], [[1.8775189507192129,
1675    -0.6774328941419836], [1.5092085652044345, -1.6023429876970767]], [[-1.8465767215229265, -5.5555270767265528],
1676    [-4.5976869043976887, -0.46187764233764028]], [[2.3381773151657139, 3.6856431490891781], [-2.9494863636135804,
1677    -3.819236489355069]], [[0.45650002851939853, 4.3531322781700181], [1.6512851062159823, -1.8635109652773663]]]))
1678        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1679        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
1680        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1681     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1682     def test_add_overloaded_taggedData_rank3_expandedData_rank0(self):     def test_add_overloaded_taggedData_rank3_expandedData_rank0(self):
1683        arg0=Data(numpy.array([[[-1.3458184728197056, -4.1114751126701288], [-3.6045681069514659, 4.5806213213322273]], [[4.7239945126027472, 4.8588256785970394], [2.9504811980717776, -3.8539131451192468]], [[4.0728056138639204, 4.6876161203799995], [-4.8648382531748968, 2.60299615049259]], [[4.0499624144867443, -1.8705326646228979], [-4.5137216106750619, 3.612363945651154]], [[0.55893281778826065, 0.077924603172351503], [-1.4184375288520021, -1.3443492271526059]], [[-3.1393174376436352, 3.4724333511279522], [-1.5776418446925145, 2.4734391212870976]]]),self.functionspace)        arg0=Data(numpy.array([[[-1.3458184728197056, -4.1114751126701288], [-3.6045681069514659, 4.5806213213322273]],
1684        arg0.setTaggedValue(1,numpy.array([[[-1.8904372043887854, -4.5190956411614884], [4.5734968239898439, 1.0082590467907497]], [[3.8636750869329113, 3.9753055079778292], [3.6817316456165035, -2.2852953305529211]], [[-3.2057768482574458, -3.0762564976518258], [3.4829401591047322, 0.34248983143272849]], [[2.8151134382597567, -1.4178792410543095], [-2.8304335165614161, -4.7381849088962147]], [[-0.68136449721731918, 2.3501860858438821], [-3.2348502809261737, 4.5616086950336996]], [[0.33619385608899499, -2.6984211096433608], [-1.7513895835664259, 3.4613766908350989]]]))  [[4.7239945126027472, 4.8588256785970394], [2.9504811980717776, -3.8539131451192468]], [[4.0728056138639204,
1685    4.6876161203799995], [-4.8648382531748968, 2.60299615049259]], [[4.0499624144867443, -1.8705326646228979],
1686    [-4.5137216106750619, 3.612363945651154]], [[0.55893281778826065, 0.077924603172351503], [-1.4184375288520021,
1687    -1.3443492271526059]], [[-3.1393174376436352, 3.4724333511279522], [-1.5776418446925145,
1688    2.4734391212870976]]]),self.functionspace)
1689          arg0.setTaggedValue(1,numpy.array([[[-1.8904372043887854, -4.5190956411614884], [4.5734968239898439,
1690    1.0082590467907497]], [[3.8636750869329113, 3.9753055079778292], [3.6817316456165035, -2.2852953305529211]],
1691    [[-3.2057768482574458, -3.0762564976518258], [3.4829401591047322, 0.34248983143272849]], [[2.8151134382597567,
1692    -1.4178792410543095], [-2.8304335165614161, -4.7381849088962147]], [[-0.68136449721731918, 2.3501860858438821],
1693    [-3.2348502809261737, 4.5616086950336996]], [[0.33619385608899499, -2.6984211096433608], [-1.7513895835664259,
1694    3.4613766908350989]]]))
1695        arg1=Data(-2.95834976602,self.functionspace)        arg1=Data(-2.95834976602,self.functionspace)
1696        arg1.setTaggedValue(1,-1.20958161923)        arg1.setTaggedValue(1,-1.20958161923)
1697        arg1.expand()        arg1.expand()
1698        res=arg0+arg1        res=arg0+arg1
1699        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1700        ref=msk_ref*numpy.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)*numpy.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*numpy.array([[[-4.3041682388437552, -7.0698248786941784], [-6.5629178729755155, 1.6222715553081777]],
1701    [[1.7656447465786975, 1.9004759125729898], [-0.0078685679522720875, -6.8122629111432964]], [[1.1144558478398707,
1702    1.7292663543559499], [-7.8231880191989465, -0.35535361553145961]], [[1.0916126484626947, -4.8288824306469476],
1703    [-7.4720713766991116, 0.6540141796271044]], [[-2.399416948235789, -2.8804251628516981], [-4.3767872948760518,
1704    -4.3026989931766551]], [[-6.0976672036676849, 0.51408358510390251], [-4.5359916107165645,
1705    -0.484910644736952]]])+(1.-msk_ref)*numpy.array([[[-3.1000188236147102, -5.7286772603874132], [3.3639152047639191,
1706    -0.20132257243517504]], [[2.6540934677069865, 2.7657238887519044], [2.4721500263905787, -3.4948769497788459]],
1707    [[-4.4153584674833706, -4.2858381168777502], [2.2733585398788074, -0.86709178779319629]], [[1.6055318190338319,
1708    -2.6274608602802343], [-4.0400151357873408, -5.9477665281221395]], [[-1.890946116443244, 1.1406044666179573],
1709    [-4.4444319001520984, 3.3520270758077748]], [[-0.87338776313692978, -3.9080027288692856], [-2.9609712027923507,
1710    2.2517950716091741]]])
1711        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1712        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
1713        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1714     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1715     def test_add_overloaded_taggedData_rank3_expandedData_rank3(self):     def test_add_overloaded_taggedData_rank3_expandedData_rank3(self):
1716        arg0=Data(numpy.array([[[0.48926485996388269, -4.2191465750376889], [-4.744994863225438, 4.7046031899712801]], [[-2.8802960414294931, -2.4397652993130245], [-2.3767544016720201, 2.4899243773104516]], [[-0.69880406189109756, 4.9221904063963127], [-4.4442326066637925, -0.2423584515896291]], [[1.1873033499824093, -1.0359438602577908], [4.2099858094002389, -1.5188077642735309]], [[2.9762396657235834, 4.3565192054045294], [1.219861957512971, 1.4186261054086193]], [[4.3881045375767531, -3.9515704899784074], [1.1881691193434287, -2.9515833814121994]]]),self.functionspace)        arg0=Data(numpy.array([[[0.48926485996388269, -4.2191465750376889], [-4.744994863225438, 4.7046031899712801]],
1717        arg0.setTaggedValue(1,numpy.array([[[-2.9106692115097141, 1.1448509156703413], [-3.5747488270547203, 4.3467479963579088]], [[1.9209411370244993, -4.4198148135632334], [-2.5439015312858881, 1.3155452706180606]], [[4.882640318602391, 0.34062975670052342], [0.2675381340109908, 4.2282940767774946]], [[4.3446095982723918, 1.2060888712992277], [-2.8602079679237544, -4.5554211184908189]], [[4.5197831670681712, -4.2971679069891131], [3.6540620189148285, 4.6439542912634053]], [[1.6231944870566544, 4.6979308382991469], [-0.19481446900334376, 1.9492126729664037]]]))  [[-2.8802960414294931, -2.4397652993130245], [-2.3767544016720201, 2.4899243773104516]], [[-0.69880406189109756,
1718        arg1=Data(numpy.array([[[2.245745493494093, -2.0932114202393137], [3.5219400155970852, -1.0913747330679024]], [[1.2517416754427471, 2.7925988721213093], [-3.0719773913271564, -4.9990692573699933]], [[-1.9652009035875997, -3.1559304476140495], [0.02098892529537455, -0.25642222230972767]], [[0.55579717516428229, 4.2674028872779584], [4.9489668916843392, 1.7091559277184496]], [[-1.0997466757887455, 3.7830842865513592], [3.8155570798943668, -0.37081868296405851]], [[-0.86365585363381214, -3.3797412393172843], [-3.2312119408856352, 3.3812609513235756]]]),self.functionspace)  4.9221904063963127], [-4.4442326066637925, -0.2423584515896291]], [[1.1873033499824093, -1.0359438602577908],
1719        arg1.setTaggedValue(1,numpy.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]]]))  [4.2099858094002389, -1.5188077642735309]], [[2.9762396657235834, 4.3565192054045294], [1.219861957512971,
1720    1.4186261054086193]], [[4.3881045375767531, -3.9515704899784074], [1.1881691193434287,
1721    -2.9515833814121994]]]),self.functionspace)
1722          arg0.setTaggedValue(1,numpy.array([[[-2.9106692115097141, 1.1448509156703413], [-3.5747488270547203,
1723    4.3467479963579088]], [[1.9209411370244993, -4.4198148135632334], [-2.5439015312858881, 1.3155452706180606]],
1724    [[4.882640318602391, 0.34062975670052342], [0.2675381340109908, 4.2282940767774946]], [[4.3446095982723918,
1725    1.2060888712992277], [-2.8602079679237544, -4.5554211184908189]], [[4.5197831670681712, -4.2971679069891131],
1726    [3.6540620189148285, 4.6439542912634053]], [[1.6231944870566544, 4.6979308382991469], [-0.19481446900334376,
1727    1.9492126729664037]]]))
1728          arg1=Data(numpy.array([[[2.245745493494093, -2.0932114202393137], [3.5219400155970852, -1.0913747330679024]],
1729    [[1.2517416754427471, 2.7925988721213093], [-3.0719773913271564, -4.9990692573699933]], [[-1.9652009035875997,
1730    -3.1559304476140495], [0.02098892529537455, -0.25642222230972767]], [[0.55579717516428229, 4.2674028872779584],
1731    [4.9489668916843392, 1.7091559277184496]], [[-1.0997466757887455, 3.7830842865513592], [3.8155570798943668,
1732    -0.37081868296405851]], [[-0.86365585363381214, -3.3797412393172843], [-3.2312119408856352,
1733    3.3812609513235756]]]),self.functionspace)
1734          arg1.setTaggedValue(1,numpy.array([[[2.4170980236834101, -1.4418678544662491], [3.2265265882639937, 3.7842533566507583]],
1735    [[-1.8863396046980343, -3.6268725404156674], [-1.1549271336130018, 0.44272481604552549]], [[-0.33548547307548304,
1736    -0.10639012269721082], [-0.63541902485729196, 1.1408369737290194]], [[-1.9207718677721619, -1.1024972053357009],
1737    [-3.0868443868761175, 2.3061615690186024]], [[-3.564701225801775, -1.2916378277150353], [-1.5425736650453423,
1738    3.879975564160695]], [[-0.74759224895991316, 2.2399027760878099], [4.7240453344637139, -2.0896612148746141]]]))
1739        arg1.expand()        arg1.expand()
1740        res=arg0+arg1        res=arg0+arg1
1741        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1742        ref=msk_ref*numpy.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)*numpy.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*numpy.array([[[2.7350103534579757, -6.3123579952770026], [-1.2230548476283527, 3.6132284569033777]],
1743    [[-1.6285543659867461, 0.35283357280828476], [-5.4487317929991761, -2.5091448800595417]], [[-2.6640049654786973,
1744    1.7662599587822632], [-4.4232436813684179, -0.49878067389935676]], [[1.7431005251466916, 3.2314590270201675],
1745    [9.1589527010845782, 0.19034816344491867]], [[1.8764929899348379, 8.1396034919558886], [5.0354190374073378,
1746    1.0478074224445608]], [[3.524448683942941, -7.3313117292956917], [-2.0430428215422065,
1747    0.42967756991137618]]])+(1.-msk_ref)*numpy.array([[[-0.49357118782630405, -0.29701693879590785], [-0.34822223879072656,
1748    8.1310013530086671]], [[0.034601532326465012, -8.0466873539788999], [-3.69882866489889, 1.7582700866635861]],
1749    [[4.547154845526908, 0.2342396340033126], [-0.36788089084630116, 5.369131050506514]], [[2.4238377305002299,
1750    0.10359166596352676], [-5.9470523547998724, -2.2492595494722165]], [[0.95508194126639623, -5.5888057347041489],
1751    [2.1114883538694862, 8.5239298554241003]], [[0.8756022380967412, 6.9378336143869568], [4.5292308654603701,
1752    -0.14044854190821043]]])
1753        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1754        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.assertEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
1755        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1756     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1757     def test_add_overloaded_taggedData_rank4_float_rank0(self):     def test_add_overloaded_taggedData_rank4_float_rank0(self):
1758        arg0=Data(numpy.array([[[[-2.4529918809417106, -4.2922716314173073, -4.7156912115011096, -4.9665561982246746], [-1.4801764375397228, -4.4380184594221186, -0.77360067331613269, -0.62622465894651036], [-1.0383450397120608, 4.3040588789471954, 1.8106404043363975, 3.3893757878301294]], [[-1.992289067921309, -3.1704484515550044, 2.7872361600501936, -4.3322042469760804], [3.3604551208120839, 4.5663459688482622, -1.1238907281506529, 3.2787783020231913], [0.37186673546918136, -2.7641073556156828, -2.9035982677677898, 3.4758479506814339]]], [[[-3.6715006002612363, -0.73535868535250515, -0.27862633060145559, -1.0849832854789812], [-1.7022039443705039, 2.6060508744937936, -3.6536519425931813, -4.4081965675132473], [0.25471824064491599, -4.8782858092956758, 2.2337084769842255, 1.7096031580788216]], [[-2.2800898096116939, 3.658070109038098, -0.64746211000437448, -2.5044787022167636], [-2.6363559628733837, 0.36216711358316278, -4.784316045543763, -3.0624579975364155], [2.287328835683617, 3.4578710762326086, 4.5781909364892712, -0.58253946841442605]]], [[[2.4432878816470822, 4.022871516449646, -1.245913498225375, -3.9051739614761392], [1.7066164592051036, -3.1983290935319211, -3.6728950000164931, -2.2473670296312633], [1.8958706148145694, -1.0284070864612218, -3.8956053902818399, 0.018998278733047158]], [[-0.26980316811500504, 2.8297007469536295, 1.094475544130554, -3.981764683657488], [-3.500356503088037, 4.171864849032481, -2.9012065649260022, -2.7283607393157738], [0.60051307561372358, -2.0886052678452236, 1.2447330012264244, 3.0604213102691027]]]]),self.functionspace)        arg0=Data(numpy.array([[[[-2.4529918809417106, -4.2922716314173073, -4.7156912115011096, -4.9665561982246746],
1759        arg0.setTaggedValue(1,numpy.array([[[[4.6721490384002102, 2.7851789029326524, 4.5054527711787866, 3.9375455613431978], [2.9257854596657591, 0.82402496914787804, 2.7017427533937264, 0.41822359843216272], [-3.7659685225025186, -2.6058944363342693, 2.1359178881116865, 3.1808871103282819]], [[0.45581546580998999, -0.10662460000334306, -3.4919407799771562, -0.17355947876977584], [0.03952563899673045, -2.6072367334090685, -2.5370380281116733, -3.8483713943551812], [-4.010882400107123, -3.4482767288174623, -1.1815070692881005, 4.7423057544944598]]], [[[-3.3134550400559935, 2.1408457597292552, -3.4582025350264045, -4.5821067638126909], [-2.8683575747100418, 2.2751475609698915, 1.7742294946693047, 4.2185654465528852], [3.0758297909260701, 4.6772884924460438, -3.9614574660248749, -0.5111517395111056]], [[0.95962586866565402, 0.00843194395573299, 2.5356218891094695, 3.7087356801306459], [2.3738352824593445, -4.2325312189114284, -0.014371828530438613, -4.907829300190504], [-0.55877429015129731, -3.949423986219569, 3.843079130599067, 1.3423867592639551]]], [[[0.77407506136274673, 3.8197454797177119, -4.1508734783832555, 3.5956050476759103], [4.4484484321893323, -0.56814010775082302, -1.2446933884228697, -0.70841810762899993], [4.8091159200619913, -3.5828505478333539, -3.4733836136848772, 3.2289915076176143]], [[-3.8201817000007141, 3.5381725656161844, -2.2292796342354624, 4.0231422110513453], [-4.1117126981322283, -0.13568148027115701, -2.3319889682031869, -1.5673291164601331], [4.304323986562391, 0.27776805927176884, 1.3068734997189786, -4.9815181925099932]]]]))  [-1.4801764375397228, -4.4380184594221186, -0.77360067331613269, -0.62622465894651036], [-1.0383450397120608,
1760    4.3040588789471954, 1.8106404043363975, 3.3893757878301294]], [[-1.992289067921309, -3.1704484515550044, 2.7872361600501936,
1761    -4.3322042469760804], [3.3604551208120839, 4.5663459688482622, -1.1238907281506529, 3.2787783020231913], [0.37186673546918136,
1762    -2.7641073556156828, -2.9035982677677898, 3.4758479506814339]]], [[[-3.6715006002612363, -0.73535868535250515,
1763    -0.27862633060145559, -1.0849832854789812], [-1.7022039443705039, 2.6060508744937936, -3.6536519425931813,
1764    -4.4081965675132473], [0.25471824064491599, -4.8782858092956758, 2.2337084769842255, 1.7096031580788216]],
1765    [[-2.2800898096116939, 3.658070109038098, -0.64746211000437448, -2.5044787022167636], [-2.6363559628733837,
1766    0.36216711358316278, -4.784316045543763, -3.0624579975364155], [2.287328835683617, 3.4578710762326086, 4.5781909364892712,
1767    -0.58253946841442605]]], [[[2.4432878816470822, 4.022871516449646, -1.245913498225375, -3.9051739614761392],
1768    [1.7066164592051036, -3.1983290935319211, -3.6728950000164931, -2.2473670296312633], [1.8958706148145694, -1.0284070864612218,
1769    -3.8956053902818399, 0.018998278733047158]], [[-0.26980316811500504, 2.8297007469536295, 1.094475544130554,
1770    -3.981764683657488], [-3.500356503088037, 4.171864849032481, -2.9012065649260022, -2.7283607393157738], [0.60051307561372358,
1771    -2.0886052678452236, 1.2447330012264244, 3.0604213102691027]]]]),self.functionspace)
1772          arg0.setTaggedValue(1,numpy.array([[[[4.6721490384002102, 2.7851789029326524, 4.5054527711787866, 3.9375455613431978],
1773    [2.9257854596657591, 0.82402496914787804, 2.7017427533937264, 0.41822359843216272], [-3.7659685225025186, -2.6058944363342693,
1774    2.1359178881116865, 3.1808871103282819]], [[0.45581546580998999, -0.10662460000334306, -3.4919407799771562,
1775    -0.17355947876977584], [0.03952563899673045, -2.6072367334090685, -2.5370380281116733, -3.8483713943551812],
1776    [-4.010882400107123, -3.4482767288174623, -1.1815070692881005, 4.7423057544944598]]], [[[-3.3134550400559935,
1777    2.1408457597292552, -3.4582025350264045, -4.5821067638126909], [-2.8683575747100418, 2.2751475609698915, 1.7742294946693047,
1778    4.2185654465528852], [3.0758297909260701, 4.6772884924460438, -3.9614574660248749, -0.5111517395111056]],
1779    [[0.95962586866565402, 0.00843194395573299, 2.5356218891094695, 3.7087356801306459], [2.3738352824593445, -4.2325312189114284,
1780    -0.014371828530438613, -4.907829300190504], [-0.55877429015129731, -3.949423986219569, 3.843079130599067,
1781    1.3423867592639551]]], [[[0.77407506136274673, 3.8197454797177119, -4.1508734783832555, 3.5956050476759103],
1782    [4.4484484321893323, -0.56814010775082302, -1.2446933884228697, -0.70841810762899993], [4.8091159200619913,
1783    -3.5828505478333539, -3.4733836136848772, 3.2289915076176143]], [[-3.8201817000007141, 3.5381725656161844, -2.2292796342354624,
1784    4.0231422110513453], [-4.1117126981322283, -0.13568148027115701, -2.3319889682031869, -1.5673291164601331], [4.304323986562391,
1785    0.27776805927176884, 1.3068734997189786, -4.9815181925099932]]]]))
1786        arg1=3.50847335696        arg1=3.50847335696
1787        res=arg0+arg1        res=arg0+arg1
1788        ref=Data(numpy.array([[[[1.0554814760232061, -0.78379827445239059, -1.2072178545361929, -1.458082841259758], [2.0282969194251939, -0.9295451024572019, 2.734872683648784, 2.8822486980184063], [2.4701283172528559, 7.8125322359121121, 5.3191137613013142, 6.8978491447950461]], [[1.5161842890436077, 0.33802490540991226, 6.2957095170151103, -0.82373089001116373], [6.8689284777770006, 8.0748193258131788, 2.3845826288142637, 6.787251658988108], [3.8803400924340981, 0.74436600134923392, 0.60487508919712685, 6.9843213076463506]]], [[[-0.16302724329631957, 2.7731146716124115, 3.2298470263634611, 2.4234900714859355], [1.8062694125944128, 6.1145242314587103, -0.14517858562826458, -0.8997232105483306], [3.7631915976098327, -1.3698124523307591, 5.7421818339491422, 5.2180765150437383]], [[1.2283835473532227, 7.1665434660030147, 2.8610112469605422, 1.0039946547481531], [0.87211739409153299, 3.8706404705480795, -1.2758426885788463, 0.44601535942850123], [5.7958021926485337, 6.9663444331975253, 8.0866642934541879, 2.9259338885504906]]], [[[5.9517612386119989, 7.5313448734145627, 2.2625598587395417, -0.39670060451122247], [5.2150898161700203, 0.31014426343299561, -0.16442164305157636, 1.2611063273336534], [5.4043439717794861, 2.4800662705036949, -0.38713203331692325, 3.5274716356979638]], [[3.2386701888499116, 6.3381741039185462, 4.6029489010954707, -0.47329132669257135], [0.0081168538768796594, 7.6803382059973977, 0.60726679203891454, 0.78011261764914286], [4.1089864325786403, 1.4198680891196931, 4.7532063581913411, 6.5688946672340194]]]]),self.functionspace)        ref=Data(numpy.array([[[[1.0554814760232061, -0.78379827445239059, -1.2072178545361929, -1.458082841259758],
1789        ref.setTaggedValue(1,numpy.array([[[[8.1806223953651269, 6.293652259897569, 8.0139261281437033, 7.4460189183081145], [6.4342588166306758, 4.3324983261127947, 6.2102161103586431, 3.9266969553970794], [-0.25749516553760188, 0.90257892063064737, 5.6443912450766032, 6.6893604672931986]], [[3.9642888227749067, 3.4018487569615736, 0.01653257698776045, 3.3349138781951408], [3.5479989959616471, 0.90123662355584822, 0.97143532885324335, -0.33989803739026447], [-0.50240904314220636, 0.060196628147454412, 2.3269662876768162, 8.2507791114593765]]], [[[0.19501831690892324, 5.6493191166941719, 0.050270821938512178, -1.0736334068477742], [0.64011578225487487, 5.7836209179348081, 5.2827028516342214, 7.7270388035178019], [6.5843031478909868, 8.1857618494109605, -0.45298410905995823, 2.9973216174538111]], [[4.4680992256305707, 3.5169053009206497, 6.0440952460743862, 7.2172090370955626], [5.8823086394242612, -0.72405786194651167, 3.4941015284344781, -1.3993559432255873], [2.9496990668136194, -0.44095062925465234, 7.3515524875639837, 4.8508601162288718]]], [[[4.2825484183276634, 7.3282188366826286, -0.6424001214183388, 7.104078404640827], [7.956921789154249, 2.9403332492140937, 2.263779968542047, 2.8000552493359168], [8.317589277026908, -0.074377190868437193, 0.035089743280039443, 6.737464864582531]], [[-0.31170834303579742, 7.0466459225811011, 1.2791937227294543, 7.531615568016262], [-0.60323934116731159, 3.3727918766937597, 1.1764843887617298, 1.9411442405047836], [7.8127973435273077, 3.7862414162366855, 4.8153468566838953, -1.4730448355450765]]]]))  [2.0282969194251939, -0.9295451024572019, 2.734872683648784, 2.8822486980184063], [2.4701283172528559, 7.8125322359121121,
1790    5.3191137613013142, 6.8978491447950461]], [[1.5161842890436077, 0.33802490540991226, 6.2957095170151103, -0.82373089001116373],
1791    [6.8689284777770006, 8.0748193258131788, 2.3845826288142637, 6.787251658988108], [3.8803400924340981, 0.74436600134923392,
1792    0.60487508919712685, 6.9843213076463506]]], [[[-0.16302724329631957, 2.7731146716124115, 3.2298470263634611,
1793    2.4234900714859355], [1.8062694125944128, 6.1145242314587103, -0.14517858562826458, -0.8997232105483306], [3.7631915976098327,
1794    -1.3698124523307591, 5.7421818339491422, 5.2180765150437383]], [[1.2283835473532227, 7.1665434660030147, 2.8610112469605422,
1795    1.0039946547481531], [0.87211739409153299, 3.8706404705480795, -1.2758426885788463, 0.44601535942850123], [5.7958021926485337,
1796    6.9663444331975253, 8.0866642934541879, 2.9259338885504906]]], [[[5.9517612386119989, 7.5313448734145627, 2.2625598587395417,
1797    -0.39670060451122247], [5.2150898161700203, 0.31014426343299561, -0.16442164305157636, 1.2611063273336534],
1798    [5.4043439717794861, 2.4800662705036949, -0.38713203331692325, 3.5274716356979638]], [[3.2386701888499116, 6.3381741039185462,
1799    4.6029489010954707, -0.47329132669257135], [0.0081168538768796594, 7.6803382059973977, 0.60726679203891454,
1800    0.78011261764914286], [4.1089864325786403, 1.4198680891196931, 4.7532063581913411, 6.5688946672340194]]]]),self.functionspace)
1801          ref.setTaggedValue(1,numpy.array([[[[8.1806223953651269, 6.293652259897569, 8.0139261281437033, 7.4460189183081145],
1802    [6.4342588166306758, 4.3324983261127947, 6.2102161103586431, 3.9266969553970794], [-0.25749516553760188, 0.90257892063064737,
1803    5.6443912450766032, 6.6893604672931986]], [[3.9642888227749067, 3.4018487569615736, 0.01653257698776045, 3.3349138781951408],
1804    [3.5479989959616471, 0.90123662355584822, 0.97143532885324335, -0.33989803739026447], [-0.50240904314220636,
1805    0.060196628147454412, 2.3269662876768162, 8.2507791114593765]]], [[[0.19501831690892324, 5.6493191166941719,
1806    0.050270821938512178, -1.0736334068477742], [0.64011578225487487, 5.7836209179348081, 5.2827028516342214, 7.7270388035178019],
1807    [6.5843031478909868, 8.1857618494109605, -0.45298410905995823, 2.9973216174538111]], [[4.4680992256305707, 3.5169053009206497,
1808    6.0440952460743862, 7.2172090370955626], [5.8823086394242612, -0.72405786194651167, 3.4941015284344781, -1.3993559432255873],
1809    [2.9496990668136194, -0.44095062925465234, 7.3515524875639837, 4.8508601162288718]]], [[[4.2825484183276634,
1810    7.3282188366826286, -0.6424001214183388, 7.104078404640827], [7.956921789154249, 2.9403332492140937, 2.263779968542047,
1811    2.8000552493359168], [8.317589277026908, -0.074377190868437193, 0.035089743280039443, 6.737464864582531]],
1812    [[-0.31170834303579742, 7.0466459225811011, 1.2791937227294543, 7.531615568016262], [-0.60323934116731159, 3.3727918766937597,
1813    1.1764843887617298, 1.9411442405047836], [7.8127973435273077, 3.7862414162366855, 4.8153468566838953, -1.4730448355450765]]]]))
1814        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1815        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
1816        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1817     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1818     def test_add_overloaded_taggedData_rank4_array_rank0(self):     def test_add_overloaded_taggedData_rank4_array_rank0(self):
1819        arg0=Data(numpy.array([[[[-0.46207075677734633, 4.6698653897341345, -3.1705589727730543, -1.3306190935272397], [3.5035371433589511, 2.4668772871461178, -3.2183351553104655, 2.4890776154597125], [2.1590844561338329, -2.3293778519085384, 4.1107294137463697, 1.3689584764976672]], [[3.1136045839093001, -4.9390107738434175, 0.013156994502951491, 2.6683561592866081], [-3.6392387533662895, 0.96405076390185052, -4.0374447373167568, 0.85110065183239048], [-3.6953433190555374, -2.9571838686603646, -4.2771489403203136, -2.3472302939394138]]], [[[2.3131401311130206, 0.44033159636800612, -1.4214592260669754, 1.114858411747722], [-0.044916961278937073, -4.451651772019015, 4.8141790791054717, 1.4473497409062386], [-4.435470371835283, 1.9393919139025648, -1.2373670614327348, -3.6513529895403627]], [[2.9069249098655545, 3.6546254402892124, 0.38527334298935401, 3.1234745684507317], [-4.6742846659384698, 4.5579138997776614, -1.0760665717102116, 3.4502674193106646], [1.4291704303525998, -0.12465720470982067, -1.0631942635238523, -4.7981723992255096]]], [[[1.5733747686267368, 2.317117655927305, 0.57472357542811991, 4.6326736619427944], [0.66382238367749657, -0.23995158565173469, 3.022448130845655, 4.9063918202723205], [3.9445456317199419, -1.5278174221675034, -1.870380291826248, -4.8277303827291993]], [[-4.8743895138728996, -2.3430657752600559, 3.800457954477455, 1.6419712899899332], [-4.576480758273437, 2.2299074197499262, -3.1565674373163812, -3.9162904236934573], [1.4877734138214569, -2.3975739501472946, 1.1375942963439769, 2.010404696238508]]]]),self.functionspace)        arg0=Data(numpy.array([[[[-0.46207075677734633, 4.6698653897341345, -3.1705589727730543, -1.3306190935272397],
1820        arg0.setTaggedValue(1,numpy.array([[[[0.1323050310828231, -2.3887492563951565, -4.1234158314752758, 3.4104899693912785], [-2.572982840387307, 4.4651205636485596, 4.2218665940516864, 3.2040976743486311], [0.90688483880528814, 2.2299154059973088, -0.70335687253032386, -4.4369420060041502]], [[1.3649300492405523, -1.1956713341316982, -2.1701465126700525, 2.7698837035899029], [-1.9527049619445003, -2.5229900614459408, 0.35085346730302902, 2.352886195746084], [4.7003680223167628, -4.3746965447565778, -2.8198916811003825, -1.3116299449720472]]], [[[4.9659903663750278, 4.4242662141239499, -2.1659956690494209, 1.7686638008157027], [-4.1257089059625311, -2.2352834732352802, -0.25112828864904735, -0.48431649850257763], [0.92535523162620059, -3.6070786310331346, 1.1980747042357649, 1.1519098920254844]], [[-3.6070792364213142, -3.4536627959899024, 2.1688256985319923, 4.0071052514082393], [4.8788837876475082, 0.30087592860476953, -0.64959234172727598, -1.5420909024547114], [1.6655700945560952, -3.6933106001531968, -0.50295250260945856, -0.34152943299684857]]], [[[3.4990381386111498, -2.7688576121566513, -1.0294055868305794, 4.9797921269252718], [1.3004419357745869, -1.4492529012743969, -4.0682227606453143, 4.4694454868429307], [-4.6619778264757317, 4.0501370985963661, 1.920306184056467, 2.3137686558171211]], [[1.891053851662754, -4.4134156919544871, 1.8589617637210596, -0.8652874428028916], [-1.3853542382362183, -1.4243866321640541, -4.7588659316730855, -3.4574488800334988], [1.3577642152790883, 0.70851867665501089, -0.81689674898252029, 2.5665335545746277]]]]))  [3.5035371433589511, 2.4668772871461178, -3.2183351553104655, 2.4890776154597125], [2.1590844561338329, -2.3293778519085384,
1821    4.1107294137463697, 1.3689584764976672]], [[3.1136045839093001, -4.9390107738434175, 0.013156994502951491, 2.6683561592866081],
1822    [-3.6392387533662895, 0.96405076390185052, -4.0374447373167568, 0.85110065183239048], [-3.6953433190555374,
1823    -2.9571838686603646, -4.2771489403203136, -2.3472302939394138]]], [[[2.3131401311130206, 0.44033159636800612,
1824    -1.4214592260669754, 1.114858411747722], [-0.044916961278937073, -4.451651772019015, 4.8141790791054717, 1.4473497409062386],
1825    [-4.435470371835283, 1.9393919139025648, -1.2373670614327348, -3.6513529895403627]], [[2.9069249098655545, 3.6546254402892124,
1826    0.38527334298935401, 3.1234745684507317], [-4.6742846659384698, 4.5579138997776614, -1.0760665717102116, 3.4502674193106646],
1827    [1.4291704303525998, -0.12465720470982067, -1.0631942635238523, -4.7981723992255096]]], [[[1.5733747686267368,
1828    2.317117655927305, 0.57472357542811991, 4.6326736619427944], [0.66382238367749657, -0.23995158565173469, 3.022448130845655,
1829    4.9063918202723205], [3.9445456317199419, -1.5278174221675034, -1.870380291826248, -4.8277303827291993]],
1830    [[-4.8743895138728996, -2.3430657752600559, 3.800457954477455, 1.6419712899899332], [-4.576480758273437, 2.2299074197499262,
1831    -3.1565674373163812, -3.9162904236934573], [1.4877734138214569, -2.3975739501472946, 1.1375942963439769,
1832    2.010404696238508]]]]),self.functionspace)
1833          arg0.setTaggedValue(1,numpy.array([[[[0.1323050310828231, -2.3887492563951565, -4.1234158314752758, 3.4104899693912785],
1834    [-2.572982840387307, 4.4651205636485596, 4.2218665940516864, 3.2040976743486311], [0.90688483880528814, 2.2299154059973088,
1835    -0.70335687253032386, -4.4369420060041502]], [[1.3649300492405523, -1.1956713341316982, -2.1701465126700525,
1836    2.7698837035899029], [-1.9527049619445003, -2.5229900614459408, 0.35085346730302902, 2.352886195746084], [4.7003680223167628,
1837    -4.3746965447565778, -2.8198916811003825, -1.3116299449720472]]], [[[4.9659903663750278, 4.4242662141239499,
1838    -2.1659956690494209, 1.7686638008157027], [-4.1257089059625311, -2.2352834732352802, -0.25112828864904735,
1839    -0.48431649850257763], [0.92535523162620059, -3.6070786310331346, 1.1980747042357649, 1.1519098920254844]],
1840    [[-3.6070792364213142, -3.4536627959899024, 2.1688256985319923, 4.0071052514082393], [4.8788837876475082, 0.30087592860476953,
1841    -0.64959234172727598, -1.5420909024547114], [1.6655700945560952, -3.6933106001531968, -0.50295250260945856,
1842    -0.34152943299684857]]], [[[3.4990381386111498, -2.7688576121566513, -1.0294055868305794, 4.9797921269252718],
1843    [1.3004419357745869, -1.4492529012743969, -4.0682227606453143, 4.4694454868429307], [-4.6619778264757317, 4.0501370985963661,
1844    1.920306184056467, 2.3137686558171211]], [[1.891053851662754, -4.4134156919544871, 1.8589617637210596, -0.8652874428028916],
1845    [-1.3853542382362183, -1.4243866321640541, -4.7588659316730855, -3.4574488800334988], [1.3577642152790883, 0.70851867665501089,
1846    -0.81689674898252029, 2.5665335545746277]]]]))
1847        arg1=numpy.array(2.48395797545)        arg1=numpy.array(2.48395797545)
1848        res=arg0+arg1        res=arg0+arg1
1849        ref=Data(numpy.array([[[[2.0218872186705195, 7.1538233651820002, -0.68660099732518853, 1.1533388819206261], [5.9874951188068168, 4.9508352625939835, -0.73437717986259976, 4.9730355909075783], [4.6430424315816987, 0.15458012353932737, 6.5946873891942355, 3.852916451945533]], [[5.5975625593571658, -2.4550527983955517, 2.4971149699508173, 5.1523141347344739], [-1.1552807779184238, 3.4480087393497163, -1.553486761868891, 3.3350586272802563], [-1.2113853436076716, -0.47322589321249886, -1.7931909648724478, 0.13672768150845194]]], [[[4.7970981065608864, 2.9242895718158719, 1.0624987493808904, 3.5988163871955878], [2.4390410141689287, -1.9676937965711492, 7.2981370545533375, 3.9313077163541044], [-1.9515123963874172, 4.4233498893504306, 1.246590914015131, -1.1673950140924969]], [[5.3908828853134203, 6.1385834157370782, 2.8692313184372198, 5.6074325438985975], [-2.190326690490604, 7.0418718752255272, 1.4078914037376542, 5.9342253947585304], [3.9131284058004656, 2.3593007707380451, 1.4207637119240135, -2.3142144237776439]]], [[[4.0573327440746025, 4.8010756313751708, 3.0586815508759857, 7.1166316373906602], [3.1477803591253624, 2.2440063897961311, 5.5064061062935208, 7.3903497957201862], [6.4285036071678077, 0.9561405532803624, 0.6135776836216178, -2.3437724072813335]], [[-2.3904315384250339, 0.1408922001878099, 6.2844159299253208, 4.125929265437799], [-2.0925227828255712, 4.713865395197792, -0.67260946186851545, -1.4323324482455915], [3.9717313892693227, 0.08638402530057121, 3.6215522717918427, 4.4943626716863738]]]]),self.functionspace)        ref=Data(numpy.array([[[[2.0218872186705195, 7.1538233651820002, -0.68660099732518853, 1.1533388819206261],
1850        ref.setTaggedValue(1,numpy.array([[[[2.6162630065306889, 0.095208719052709334, -1.63945785602741, 5.8944479448391442], [-0.089024864939441173, 6.9490785390964254, 6.7058245694995522, 5.6880556497964969], [3.3908428142531539, 4.7138733814451745, 1.7806011029175419, -1.9529840305562844]], [[3.8488880246884181, 1.2882866413161675, 0.31381146277781324, 5.2538416790377687], [0.53125301350336551, -0.039032085998075061, 2.8348114427508948, 4.8368441711939498], [7.1843259977646285, -1.890738569308712, -0.33593370565251668, 1.1723280304758186]]], [[[7.4499483418228936, 6.9082241895718157, 0.31796230639844492, 4.2526217762635685], [-1.6417509305146654, 0.24867450221258558, 2.2328296867988184, 1.9996414769452882], [3.4093132070740664, -1.1231206555852689, 3.6820326796836307, 3.6358678674733502]], [[-1.1231212609734484, -0.96970482054203666, 4.652783673979858, 6.491063226856105], [7.362841763095374, 2.7848339040526353, 1.8343656337205898, 0.94186707299315442], [4.149528070003961, -1.209352624705331, 1.9810054728384072, 2.1424285424510172]]], [[[5.9829961140590155, -0.28489963670878549, 1.4545523886172864, 7.4637501023731376], [3.7843999112224527, 1.0347050741734689, -1.5842647851974485, 6.9534034622907965], [-2.1780198510278659, 6.5340950740442318, 4.4042641595043328, 4.7977266312649869]], [[4.3750118271106198, -1.9294577165066213, 4.3429197391689254, 1.6186705326449742], [1.0986037372116475, 1.0595713432838116, -2.2749079562252197, -0.97349090458563303], [3.8417221907269541, 3.1924766521028767, 1.6670612264653455, 5.0504915300224935]]]]))  [5.9874951188068168, 4.9508352625939835, -0.73437717986259976, 4.9730355909075783], [4.6430424315816987, 0.15458012353932737,
1851    6.5946873891942355, 3.852916451945533]], [[5.5975625593571658, -2.4550527983955517, 2.4971149699508173, 5.1523141347344739],
1852    [-1.1552807779184238, 3.4480087393497163, -1.553486761868891, 3.3350586272802563], [-1.2113853436076716, -0.47322589321249886,
1853    -1.7931909648724478, 0.13672768150845194]]], [[[4.7970981065608864, 2.9242895718158719, 1.0624987493808904,
1854    3.5988163871955878], [2.4390410141689287, -1.9676937965711492, 7.2981370545533375, 3.9313077163541044], [-1.9515123963874172,
1855    4.4233498893504306, 1.246590914015131, -1.1673950140924969]], [[5.3908828853134203, 6.1385834157370782, 2.8692313184372198,
1856    5.6074325438985975], [-2.190326690490604, 7.0418718752255272, 1.4078914037376542, 5.9342253947585304], [3.9131284058004656,
1857    2.3593007707380451, 1.4207637119240135, -2.3142144237776439]]], [[[4.0573327440746025, 4.8010756313751708, 3.0586815508759857,
1858    7.1166316373906602], [3.1477803591253624, 2.2440063897961311, 5.5064061062935208, 7.3903497957201862], [6.4285036071678077,
1859    0.9561405532803624, 0.6135776836216178, -2.3437724072813335]], [[-2.3904315384250339, 0.1408922001878099, 6.2844159299253208,
1860    4.125929265437799], [-2.0925227828255712, 4.713865395197792, -0.67260946186851545, -1.4323324482455915], [3.9717313892693227,
1861    0.08638402530057121, 3.6215522717918427, 4.4943626716863738]]]]),self.functionspace)
1862          ref.setTaggedValue(1,numpy.array([[[[2.6162630065306889, 0.095208719052709334, -1.63945785602741, 5.8944479448391442],
1863    [-0.089024864939441173, 6.9490785390964254, 6.7058245694995522, 5.6880556497964969], [3.3908428142531539, 4.7138733814451745,
1864    1.7806011029175419, -1.9529840305562844]], [[3.8488880246884181, 1.2882866413161675, 0.31381146277781324, 5.2538416790377687],
1865    [0.53125301350336551, -0.039032085998075061, 2.8348114427508948, 4.8368441711939498], [7.1843259977646285, -1.890738569308712,
1866    -0.33593370565251668, 1.1723280304758186]]], [[[7.4499483418228936, 6.9082241895718157, 0.31796230639844492,
1867    4.2526217762635685], [-1.6417509305146654, 0.24867450221258558, 2.2328296867988184, 1.9996414769452882], [3.4093132070740664,
1868    -1.1231206555852689, 3.6820326796836307, 3.6358678674733502]], [[-1.1231212609734484, -0.96970482054203666, 4.652783673979858,
1869    6.491063226856105], [7.362841763095374, 2.7848339040526353, 1.8343656337205898, 0.94186707299315442], [4.149528070003961,
1870    -1.209352624705331, 1.9810054728384072, 2.1424285424510172]]], [[[5.9829961140590155, -0.28489963670878549, 1.4545523886172864,
1871    7.4637501023731376], [3.7843999112224527, 1.0347050741734689, -1.5842647851974485, 6.9534034622907965], [-2.1780198510278659,
1872    6.5340950740442318, 4.4042641595043328, 4.7977266312649869]], [[4.3750118271106198, -1.9294577165066213, 4.3429197391689254,
1873    1.6186705326449742], [1.0986037372116475, 1.0595713432838116, -2.2749079562252197, -0.97349090458563303], [3.8417221907269541,
1874    3.1924766521028767, 1.6670612264653455, 5.0504915300224935]]]]))
1875        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1876        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
1877        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1878     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1879     def test_add_overloaded_taggedData_rank4_array_rank4(self):     def test_add_overloaded_taggedData_rank4_array_rank4(self):
1880        arg0=Data(numpy.array([[[[-1.3180258853817617, 4.4274973030499467, 4.0523231102533703, 4.5902748815255112], [2.1559601758310007, -2.1828151723093079, 4.2265015869584097, 3.9950326499948918], [-1.2098085673782943, -2.7545715510095281, 4.8769522388341144, 0.26866852438456768]], [[-1.9806955320994888, 1.8104279894085531, -0.39762853496196726, 2.7921460326069667], [2.791864700599584, -4.4790099485221653, -2.705958561080072, -4.1679386355484649], [-2.8832978276147969, 4.1507637863510141, -2.9960018011735623, 2.9663193959875631]]], [[[-2.3654690639206741, 1.5336828414544188, 1.4610867306234159, 3.1697086286660188], [-2.8754818130199302, -4.4793581441908126, 4.1501045050252294, 1.7581685285933668], [-4.7498732939497685, -1.1660483079158368, 2.7184637504847728, -2.60626176003665]], [[2.0854990135659026, -2.906199352162655, 2.8509095473230932, -0.33059775891538834], [-2.6203853002349851, 1.1101383438611876, -0.4054203516122632, -0.22934222218146694], [-1.0878665949471156, -0.48215791106113048, 1.0585964834322699, -3.2243478438221693]]], [[[-3.9017884876610931, 1.1927128733419838, 2.1381629017975481, 4.187422311217615], [-1.7490225713627128, -0.7703793421173728, 2.0470983204875548, -1.554077093040005], [2.1736029049098846, -2.8956924955257279, 2.4640200389111904, -4.2945812950549982]], [[-0.23745342950770265, -1.6232273445635901, 4.3637065624608304, 0.85663493697235449], [1.632853526390484, -0.66589756896742536, -3.4840468291056914, -1.5510506940949309], [1.2208727796032628, 0.22912127300815932, 4.9226786747843612, 2.3837199295321829]]]]),self.functionspace)        arg0=Data(numpy.array([[[[-1.3180258853817617, 4.4274973030499467, 4.0523231102533703, 4.5902748815255112],
1881        arg0.setTaggedValue(1,numpy.array([[[[0.88800253969785192, -0.75602202958885911, -0.98413088327408538, 2.3486894488999965], [-1.4865622734515305, 1.2567889146021924, -0.74875541021503533, 3.9547645375504015], [-0.41531751862917776, 4.6063387918737035, -3.9459156135098263, 3.7517614649521907]], [[3.2918275053288735, -1.3406642233528334, -2.90654914373222, -1.3209276396385903], [-2.3761143172462318, 2.1558923180501104, 1.7421185094873328, 2.1811660461082338], [4.5252125974381592, -2.0954459053454046, -0.11141200183876787, 1.396008486419646]]], [[[1.4732832742742099, 1.3687222645618764, 0.083180258143978669, -4.0800865581150534], [2.2613064282935085, 3.2247006313790223, -0.98542178825565685, -2.7900876556151211], [-1.0367512751049732, 0.43906807336941611, 4.7178351127500235, 4.6686990552993546]], [[2.5584010191005735, 4.6311480136461149, -2.1303736175234178, -3.2543007731999971], [2.4642783316561587, -3.5194898118736861, -4.2343923086155133, -2.0945115445853757], [-0.13663371776906708, 3.8528597358706147, -4.9668675228842218, -0.75385476335294133]]], [[[0.64449554956748045, 2.0873257313963904, -2.6127641559793879, -4.0421429294492874], [-1.9396654022058355, -3.0761997221929374, 0.84460482892300437, -4.493799600039182], [-0.72284626269142027, -1.2372897298350916, -0.3165271055821206, 0.22216611976427991]], [[-4.4542080408414044, -0.79651545313163652, -2.724109186694208, 4.1276997067585182], [-1.7241314667264795, -4.2071385857066579, -1.9030902669143543, -1.9742005521782091], [-4.7097199987993381, 0.001126719615230698, -3.0072719422045688, 2.9449798238007672]]]]))  [2.1559601758310007, -2.1828151723093079, 4.2265015869584097, 3.9950326499948918], [-1.2098085673782943, -2.7545715510095281,
1882        arg1=numpy.array([[[[-1.9608570956622606, -3.5411557923846679, 0.39301719021199233, 2.631230653607318], [1.1789054291980747, 1.9648532444904934, -4.68209210361338, -2.5068800807653426], [-3.4739560367044477, 2.4719147246416533, 2.5713888809938421, -2.9696461625781034]], [[3.8736125229044021, -2.6570755917937969, 2.4921199136826324, 1.4189857980991096], [2.6300613213212474, -3.6935995210496984, 4.7292759377028215, 0.86833508694746619], [-3.9095941791871578, -4.175616887608494, 3.1816330655045242, -4.623156350177994]]], [[[-3.5597318492173269, -3.9506928145363074, -0.9458912023240309, -4.9143171580870799], [2.0430972756525323, -2.3649235144525038, 2.4648104738749863, -1.3209476687035506], [-2.8041746784465049, 3.5821550752059608, -3.4331029006745686, -2.8733245481895975]], [[-1.1126248013006035, 1.19628059030667, 0.26348265602038534, 2.843833223154669], [1.7584561001326158, -0.7340180688736524, -3.0154533119064597, 3.414358089921528], [0.6750242275291285, -2.4881380127867314, -3.5043477509096399, 1.0914548651152316]]], [[[0.8266769272626453, 0.58419544360662634, -0.11819603883991192, 3.2008931914812937], [-4.1958152320495898, 3.8351978206627315, -0.53155547097190059, -2.9807833581877761], [3.792642706701324, 1.5079892540497841, 4.3890473712025795, 1.438724529923503]], [[-1.7447786535758461, 0.30380450784928215, 1.3103861669415586, -3.8299777136976862], [-0.7192862782938878, 4.0467801021266396, 4.2821659270938923, -4.6144001703290023], [-1.7083028714147472, -4.7709853606005641, -2.3741017143412946, -3.8057883888956399]]]])  4.8769522388341144, 0.26866852438456768]], [[-1.9806955320994888, 1.8104279894085531, -0.39762853496196726,
1883        res=arg0+arg1  2.7921460326069667], [2.791864700599584, -4.4790099485221653, -2.705958561080072, -4.1679386355484649], [-2.8832978276147969,
1884        ref=Data(numpy.array([[[[-3.2788829810440223, 0.88634151066527878, 4.4453403004653627, 7.2215055351328292], [3.3348656050290755, -0.21796192781881452, -0.4555905166549703, 1.4881525692295492], [-4.6837646040827421, -0.28265682636787481, 7.4483411198279565, -2.7009776381935358]], [[1.8929169908049133, -0.84664760238524384, 2.0944913787206652, 4.2111318307060763], [5.4219260219208314, -8.1726094695718636, 2.0233173766227495, -3.2996035486009987], [-6.7928920068019547, -0.02485310125747997, 0.18563126433096189, -1.6568369541904309]]], [[[-5.925200913138001, -2.4170099730818886, 0.51519552829938497, -1.7446085294210611], [-0.83238453736739793, -6.8442816586433164, 6.6149149789002157, 0.43722085988981618], [-7.5540479723962735, 2.416106767290124, -0.71463915018979574, -5.4795863082262475]], [[0.97287421226529913, -1.709918761855985, 3.1143922033434785, 2.5132354642392807], [-0.86192920010236929, 0.3761202749875352, -3.4208736635187229, 3.1850158677400611], [-0.41284236741798708, -2.9702959238478619, -2.44575126747737, -2.1328929787069377]]], [[[-3.0751115603984478, 1.7769083169486102, 2.0199668629576362, 7.3883155026989087], [-5.9448378034123026, 3.0648184785453587, 1.5155428495156542, -4.5348604512277806], [5.9662456116112086, -1.3877032414759438, 6.8530674101137699, -2.8558567651314952]], [[-1.9822320830835487, -1.3194228367143079, 5.6740927294023891, -2.9733427767253318], [0.91356724809659617, 3.3808825331592143, 0.79811909798820091, -6.1654508644239332], [-0.48743009181148444, -4.5418640875924048, 2.5485769604430666, -1.4220684593634569]]]]),self.functionspace)  4.1507637863510141, -2.9960018011735623, 2.9663193959875631]]], [[[-2.3654690639206741, 1.5336828414544188, 1.4610867306234159,
1885        ref.setTaggedValue(1,numpy.array([[[[-1.0728545559644087, -4.297177821973527, -0.59111369306209305, 4.9799201025073145], [-0.30765684425345574, 3.2216421590926858, -5.4308475138284154, 1.4478844567850588], [-3.8892735553336255, 7.0782535165153568, -1.3745267325159842, 0.78211530237408722]], [[7.1654400282332755, -3.9977398151466303, -0.41442923004958754, 0.098058158460519351], [0.25394700407501558, -1.537707202999588, 6.4713944471901543, 3.0495011330557], [0.61561841825100139, -6.2710627929538987, 3.0702210636657563, -3.2271478637583479]]], [[[-2.086448574943117, -2.581970549974431, -0.86271094418005223, -8.9944037162021324], [4.3044037039460408, 0.85977711692651848, 1.4793886856193295, -4.1110353243186717], [-3.8409259535514781, 4.0212231485753769, 1.284732212075455, 1.7953745071097571]], [[1.44577621779997, 5.8274286039527849, -1.8668909615030325, -0.41046755004532809], [4.2227344317887745, -4.253507880747339, -7.249845620521973, 1.3198465453361523], [0.53839050976006142, 1.3647217230838833, -8.4712152737938613, 0.33760010176229027]]], [[[1.4711724768301258, 2.6715211750030168, -2.7309601948192999, -0.84124973796799374], [-6.1354806342554253, 0.75899809846979416, 0.31304935795110378, -7.4745829582269581], [3.0697964440099037, 0.27069952421469257, 4.0725202656204589, 1.6608906496877829]], [[-6.1989866944172505, -0.49271094528235437, -1.4137230197526494, 0.29772199306083191], [-2.4434177450203673, -0.16035848358001825, 2.379075660179538, -6.588600722507211], [-6.4180228702140854, -4.7698586409853334, -5.381373656545863, -0.86080856509487269]]]]))  3.1697086286660188], [-2.8754818130199302, -4.4793581441908126, 4.1501045050252294, 1.7581685285933668], [-4.7498732939497685,
1886    -1.1660483079158368, 2.7184637504847728, -2.60626176003665]], [[2.0854990135659026, -2.906199352162655, 2.8509095473230932,
1887    -0.33059775891538834], [-2.6203853002349851, 1.1101383438611876, -0.4054203516122632, -0.22934222218146694],
1888    [-1.0878665949471156, -0.48215791106113048, 1.0585964834322699, -3.2243478438221693]]], [[[-3.9017884876610931,
1889    1.1927128733419838, 2.1381629017975481, 4.187422311217615], [-1.7490225713627128, -0.7703793421173728, 2.0470983204875548,
1890    -1.554077093040005], [2.1736029049098846, -2.8956924955257279, 2.4640200389111904, -4.2945812950549982]],
1891    [[-0.23745342950770265, -1.6232273445635901, 4.3637065624608304, 0.85663493697235449], [1.632853526390484,
1892    -0.66589756896742536, -3.4840468291056914, -1.5510506940949309], [1.2208727796032628, 0.22912127300815932, 4.9226786747843612,
1893    2.3837199295321829]]]]),self.functionspace)
1894          arg0.setTaggedValue(1,numpy.array([[[[0.88800253969785192, -0.75602202958885911, -0.98413088327408538,
1895    2.3486894488999965], [-1.4865622734515305, 1.2567889146021924, -0.74875541021503533, 3.9547645375504015],
1896    [-0.41531751862917776, 4.6063387918737035, -3.9459156135098263, 3.7517614649521907]], [[3.2918275053288735,
1897    -1.3406642233528334, -2.90654914373222, -1.3209276396385903], [-2.3761143172462318, 2.1558923180501104, 1.7421185094873328,
1898    2.1811660461082338], [4.5252125974381592, -2.0954459053454046, -0.11141200183876787, 1.396008486419646]]],
1899    [[[1.4732832742742099, 1.3687222645618764, 0.083180258143978669, -4.0800865581150534], [2.2613064282935085, 3.2247006313790223,
1900    -0.98542178825565685, -2.7900876556151211], [-1.0367512751049732, 0.43906807336941611, 4.7178351127500235,
1901    4.6686990552993546]], [[2.5584010191005735, 4.6311480136461149, -2.1303736175234178, -3.2543007731999971], [2.4642783316561587,
1902    -3.5194898118736861, -4.2343923086155133, -2.0945115445853757], [-0.13663371776906708, 3.8528597358706147, -4.9668675228842218,
1903    -0.75385476335294133]]], [[[0.64449554956748045, 2.0873257313963904, -2.6127641559793879, -4.0421429294492874],
1904    [-1.9396654022058355, -3.0761997221929374, 0.84460482892300437, -4.493799600039182], [-0.72284626269142027,
1905    -1.2372897298350916, -0.3165271055821206, 0.22216611976427991]], [[-4.4542080408414044, -0.79651545313163652,
1906    -2.724109186694208, 4.1276997067585182], [-1.7241314667264795, -4.2071385857066579, -1.9030902669143543, -1.9742005521782091],
1907    [-4.7097199987993381, 0.001126719615230698, -3.0072719422045688, 2.9449798238007672]]]]))
1908          arg1=numpy.array([[[[-1.9608570956622606, -3.5411557923846679, 0.39301719021199233, 2.631230653607318],
1909    [1.1789054291980747, 1.9648532444904934, -4.68209210361338, -2.5068800807653426], [-3.4739560367044477, 2.4719147246416533,
1910    2.5713888809938421, -2.9696461625781034]], [[3.8736125229044021, -2.6570755917937969, 2.4921199136826324, 1.4189857980991096],
1911    [2.6300613213212474, -3.6935995210496984, 4.7292759377028215, 0.86833508694746619], [-3.9095941791871578, -4.175616887608494,
1912    3.1816330655045242, -4.623156350177994]]], [[[-3.5597318492173269, -3.9506928145363074, -0.9458912023240309,
1913    -4.9143171580870799], [2.0430972756525323, -2.3649235144525038, 2.4648104738749863, -1.3209476687035506], [-2.8041746784465049,
1914    3.5821550752059608, -3.4331029006745686, -2.8733245481895975]], [[-1.1126248013006035, 1.19628059030667, 0.26348265602038534,
1915    2.843833223154669], [1.7584561001326158, -0.7340180688736524, -3.0154533119064597, 3.414358089921528], [0.6750242275291285,
1916    -2.4881380127867314, -3.5043477509096399, 1.0914548651152316]]], [[[0.8266769272626453, 0.58419544360662634,
1917    -0.11819603883991192, 3.2008931914812937], [-4.1958152320495898, 3.8351978206627315, -0.53155547097190059,
1918    -2.9807833581877761], [3.792642706701324, 1.5079892540497841, 4.3890473712025795, 1.438724529923503]], [[-1.7447786535758461,
1919    0.30380450784928215, 1.3103861669415586, -3.8299777136976862], [-0.7192862782938878, 4.0467801021266396, 4.2821659270938923,
1920    -4.6144001703290023], [-1.7083028714147472, -4.7709853606005641, -2.3741017143412946, -3.8057883888956399]]]])
1921          res=arg0+arg1
1922          ref=Data(numpy.array([[[[-3.2788829810440223, 0.88634151066527878, 4.4453403004653627, 7.2215055351328292],
1923    [3.3348656050290755, -0.21796192781881452, -0.4555905166549703, 1.4881525692295492], [-4.6837646040827421,
1924    -0.28265682636787481, 7.4483411198279565, -2.7009776381935358]], [[1.8929169908049133, -0.84664760238524384,
1925    2.0944913787206652, 4.2111318307060763], [5.4219260219208314, -8.1726094695718636, 2.0233173766227495, -3.2996035486009987],
1926    [-6.7928920068019547, -0.02485310125747997, 0.18563126433096189, -1.6568369541904309]]], [[[-5.925200913138001,
1927    -2.4170099730818886, 0.51519552829938497, -1.7446085294210611], [-0.83238453736739793, -6.8442816586433164, 6.6149149789002157,
1928    0.43722085988981618], [-7.5540479723962735, 2.416106767290124, -0.71463915018979574, -5.4795863082262475]],
1929    [[0.97287421226529913, -1.709918761855985, 3.1143922033434785, 2.5132354642392807], [-0.86192920010236929, 0.3761202749875352,
1930    -3.4208736635187229, 3.1850158677400611], [-0.41284236741798708, -2.9702959238478619, -2.44575126747737,
1931    -2.1328929787069377]]], [[[-3.0751115603984478, 1.7769083169486102, 2.0199668629576362, 7.3883155026989087],
1932    [-5.9448378034123026, 3.0648184785453587, 1.5155428495156542, -4.5348604512277806], [5.9662456116112086, -1.3877032414759438,
1933    6.8530674101137699, -2.8558567651314952]], [[-1.9822320830835487, -1.3194228367143079, 5.6740927294023891,
1934    -2.9733427767253318], [0.91356724809659617, 3.3808825331592143, 0.79811909798820091, -6.1654508644239332],
1935    [-0.48743009181148444, -4.5418640875924048, 2.5485769604430666, -1.4220684593634569]]]]),self.functionspace)
1936          ref.setTaggedValue(1,numpy.array([[[[-1.0728545559644087, -4.297177821973527, -0.59111369306209305, 4.9799201025073145],
1937    [-0.30765684425345574, 3.2216421590926858, -5.4308475138284154, 1.4478844567850588], [-3.8892735553336255, 7.0782535165153568,
1938    -1.3745267325159842, 0.78211530237408722]], [[7.1654400282332755, -3.9977398151466303, -0.41442923004958754,
1939    0.098058158460519351], [0.25394700407501558, -1.537707202999588, 6.4713944471901543, 3.0495011330557], [0.61561841825100139,
1940    -6.2710627929538987, 3.0702210636657563, -3.2271478637583479]]], [[[-2.086448574943117, -2.581970549974431,
1941    -0.86271094418005223, -8.9944037162021324], [4.3044037039460408, 0.85977711692651848, 1.4793886856193295, -4.1110353243186717],
1942    [-3.8409259535514781, 4.0212231485753769, 1.284732212075455, 1.7953745071097571]], [[1.44577621779997, 5.8274286039527849,
1943    -1.8668909615030325, -0.41046755004532809], [4.2227344317887745, -4.253507880747339, -7.249845620521973, 1.3198465453361523],
1944    [0.53839050976006142, 1.3647217230838833, -8.4712152737938613, 0.33760010176229027]]], [[[1.4711724768301258,
1945    2.6715211750030168, -2.7309601948192999, -0.84124973796799374], [-6.1354806342554253, 0.75899809846979416, 0.31304935795110378,
1946    -7.4745829582269581], [3.0697964440099037, 0.27069952421469257, 4.0725202656204589, 1.6608906496877829]],
1947    [[-6.1989866944172505, -0.49271094528235437, -1.4137230197526494, 0.29772199306083191], [-2.4434177450203673,
1948    -0.16035848358001825, 2.379075660179538, -6.588600722507211], [-6.4180228702140854, -4.7698586409853334, -5.381373656545863,
1949    -0.86080856509487269]]]]))
1950        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
1951        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
1952        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
1953     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1954     def test_add_overloaded_taggedData_rank4_constData_rank0(self):     def test_add_overloaded_taggedData_rank4_constData_rank0(self):
1955        arg0=Data(numpy.array([[[[-2.5708709288175391, 0.53581714653008561, 1.5360357521615526, 3.3951069767450566], [1.631732366076589, -0.5427283165247907, -4.1885665290237508, -1.7897530714409191], [-3.8687105480477681, -0.39103270374183552, 4.9773978525962015, -1.5678906966200081]], [[-1.0005683385010009, -2.9043747824697563, 0.52026402593778887, 2.3711689398047229], [2.7147649908653868, 4.3288849229920672, 3.2431311550744564, -1.1132028016748805], [3.9299119784057766, 0.62724954538448063, -2.7068757404196955, 1.181410703546721]]], [[[-0.34737446837366726, 4.987848985374665, 3.1973650222296222, -2.6286186197645698], [4.7697186939677731, -1.9224177923759544, -4.0526602572447192, -4.3571373540293141], [3.4866059675370842, -2.6489651106670706, -1.8717782337675626, 1.546373157153587]], [[3.5839002968406248, -1.384604409647574, 0.77445258028805863, 0.38130810244305291], [-3.6940285594614233, 4.8144411720619509, 2.0499133176164372, 2.0909884928187594], [-1.4769885010131603, 4.718520386152635, -4.9705846174160007, -4.8886301302242448]]], [[[-0.0510002896129782, 0.014536311769425048, -2.311437231120177, 0.57574480584209553], [-1.3007980134702999, 0.7917745830722307, -2.6391625354871695, -0.33085679953840774], [-3.9418084807010634, -3.684162035082533, 0.2377992710428849, -0.53538299867439143]], [[0.28649909817135022, -3.8770359804364016, -2.8530785371915082, 0.78157992719722014], [-0.19928069036189822, -2.4240318308100495, -0.70055294248943945, 0.003486010919440119], [3.959215432772929, 3.1979221207054849, -4.0911992648566553, -0.6462422071730316]]]]),self.functionspace)        arg0=Data(numpy.array([[[[-2.5708709288175391, 0.53581714653008561, 1.5360357521615526, 3.3951069767450566],
1956        arg0.setTaggedValue(1,numpy.array([[[[0.41693261177274721, -4.9020932423048089, 4.2088530824741905, 0.99953568795707426], [-4.2440395293604496, -3.4955448152614474, 2.0227037247513842, 2.8364324320081042], [2.692259108861923, 4.925400273320248, 0.70036207432236708, 2.1012385837662118]], [[1.8298810984965028, -4.5775869134782159, -0.38144270148458759, 0.35079862122661787], [-2.1940977888345534, 0.0015419838471322223, 1.0896534350975928, -2.3553944644521652], [2.1790715455306309, 0.89089931264249689, -1.6492115072152833, -3.645084483417115]]], [[[-2.3704484397063541, 1.4384674683145491, -2.3336729429871719, -1.4310707759225281], [2.9384377821646845, 1.8515293306597371, -1.3377054510628508, 4.7857793959119128], [1.2037955735438288, 3.652868648715927, -2.7501542031542914, 2.2786571327611682]], [[3.6883495085690114, -4.9232370846676172, -0.67363766625767507, -4.997957770198532], [3.6557645359812092, 3.6053506753372471, 1.4639322237519998, 3.9081063252140531], [-1.4158862611806509, 2.5871057245553084, 0.37498808076538381, -4.0225794056588615]]], [[[4.0345672933604675, -3.6800976851511003, -4.6100225072463523, 3.6199177196679972], [-0.27709658645554835, -0.86922799724775857, 2.6875848512691727, -0.32499406365029593], [-2.90499641344377, -1.4629445128154206, -4.9827409146946033, 0.91172398342859573]], [[1.5300744301386313, 2.9533568198190894, -2.7451811965834061, -0.081332757254997112], [-0.81834027054480174, -3.1786285020802172, 2.0595238370511204, -3.1723591443001355], [-0.27708852552600671, -3.4361857808835197, -3.3974132118757194, 4.2106883319056578]]]]))  [1.631732366076589, -0.5427283165247907, -4.1885665290237508, -1.7897530714409191], [-3.8687105480477681, -0.39103270374183552,
1957    4.9773978525962015, -1.5678906966200081]], [[-1.0005683385010009, -2.9043747824697563, 0.52026402593778887,
1958    2.3711689398047229], [2.7147649908653868, 4.3288849229920672, 3.2431311550744564, -1.1132028016748805], [3.9299119784057766,
1959    0.62724954538448063, -2.7068757404196955, 1.181410703546721]]], [[[-0.34737446837366726, 4.987848985374665, 3.1973650222296222,
1960    -2.6286186197645698], [4.7697186939677731, -1.9224177923759544, -4.0526602572447192, -4.3571373540293141], [3.4866059675370842,
1961    -2.6489651106670706, -1.8717782337675626, 1.546373157153587]], [[3.5839002968406248, -1.384604409647574, 0.77445258028805863,
1962    0.38130810244305291], [-3.6940285594614233, 4.8144411720619509, 2.0499133176164372, 2.0909884928187594], [-1.4769885010131603,
1963    4.718520386152635, -4.9705846174160007, -4.8886301302242448]]], [[[-0.0510002896129782, 0.014536311769425048,
1964    -2.311437231120177, 0.57574480584209553], [-1.3007980134702999, 0.7917745830722307, -2.6391625354871695, -0.33085679953840774],
1965    [-3.9418084807010634, -3.684162035082533, 0.2377992710428849, -0.53538299867439143]], [[0.28649909817135022,
1966    -3.8770359804364016, -2.8530785371915082, 0.78157992719722014], [-0.19928069036189822, -2.4240318308100495,
1967    -0.70055294248943945, 0.003486010919440119], [3.959215432772929, 3.1979221207054849, -4.0911992648566553,
1968    -0.6462422071730316]]]]),self.functionspace)
1969          arg0.setTaggedValue(1,numpy.array([[[[0.41693261177274721, -4.9020932423048089, 4.2088530824741905, 0.99953568795707426],
1970    [-4.2440395293604496, -3.4955448152614474, 2.0227037247513842, 2.8364324320081042], [2.692259108861923, 4.925400273320248,
1971    0.70036207432236708, 2.1012385837662118]], [[1.8298810984965028, -4.5775869134782159, -0.38144270148458759,
1972    0.35079862122661787], [-2.1940977888345534, 0.0015419838471322223, 1.0896534350975928, -2.3553944644521652],
1973    [2.1790715455306309, 0.89089931264249689, -1.6492115072152833, -3.645084483417115]]], [[[-2.3704484397063541,
1974    1.4384674683145491, -2.3336729429871719, -1.4310707759225281], [2.9384377821646845, 1.8515293306597371, -1.3377054510628508,
1975    4.7857793959119128], [1.2037955735438288, 3.652868648715927, -2.7501542031542914, 2.2786571327611682]], [[3.6883495085690114,
1976    -4.9232370846676172, -0.67363766625767507, -4.997957770198532], [3.6557645359812092, 3.6053506753372471, 1.4639322237519998,
1977    3.9081063252140531], [-1.4158862611806509, 2.5871057245553084, 0.37498808076538381, -4.0225794056588615]]],
1978    [[[4.0345672933604675, -3.6800976851511003, -4.6100225072463523, 3.6199177196679972], [-0.27709658645554835,
1979    -0.86922799724775857, 2.6875848512691727, -0.32499406365029593], [-2.90499641344377, -1.4629445128154206, -4.9827409146946033,
1980    0.91172398342859573]], [[1.5300744301386313, 2.9533568198190894, -2.7451811965834061, -0.081332757254997112],
1981    [-0.81834027054480174, -3.1786285020802172, 2.0595238370511204, -3.1723591443001355], [-0.27708852552600671,
1982    -3.4361857808835197, -3.3974132118757194, 4.2106883319056578]]]]))
1983        arg1=Data(-4.97117242623,self.functionspace)        arg1=Data(-4.97117242623,self.functionspace)
1984        res=arg0+arg1        res=arg0+arg1
1985        ref=Data(numpy.array([[[[-7.5420433550515629, -4.4353552797039386, -3.4351366740724716, -1.5760654494889677], [-3.3394400601574352, -5.5139007427588149, -9.1597389552577759, -6.7609254976749433], [-8.8398829742817924, -5.3622051299758597, 0.0062254263621772665, -6.5390631228540324]], [[-5.9717407647350251, -7.8755472087037806, -4.4509084002962354, -2.6000034864293013], [-2.2564074353686374, -0.64228750324195705, -1.7280412711595678, -6.0843752279089047], [-1.0412604478282477, -4.3439228808495436, -7.6780481666537197, -3.7897617226873033]]], [[[-5.3185468946076915, 0.016676559140640812, -1.7738074040044021, -7.599791045998594], [-0.20145373226625107, -6.8935902186099787, -9.0238326834787443, -9.3283097802633392], [-1.48456645869694, -7.6201375369010949, -6.8429506600015868, -3.4247992690804372]], [[-1.3872721293933994, -6.3557768358815983, -4.1967198459459656, -4.5898643237909713], [-8.6652009856954475, -0.15673125417207334, -2.921259108617587, -2.8801839334152648], [-6.4481609272471845, -0.2526520400813892, -9.9417570436500249, -9.8598025564582699]]], [[[-5.0221727158470024, -4.9566361144645992, -7.2826096573542012, -4.3954276203919287], [-6.2719704397043241, -4.1793978431617935, -7.6103349617211933, -5.302029225772432], [-8.912980906935088, -8.6553344613165564, -4.7333731551911393, -5.5065554249084157]], [[-4.684673328062674, -8.8482084066704267, -7.8242509634255324, -4.1895924990368041], [-5.1704531165959224, -7.3952042570440737, -5.6717253687234637, -4.9676864153145841], [-1.0119569934610952, -1.7732503055285394, -9.0623716910906786, -5.6174146334070558]]]]),self.functionspace)        ref=Data(numpy.array([[[[-7.5420433550515629, -4.4353552797039386, -3.4351366740724716, -1.5760654494889677],
1986        ref.setTaggedValue(1,numpy.array([[[[-4.554239814461277, -9.8732656685388331, -0.76231934375983368, -3.97163673827695], [-9.2152119555944729, -8.4667172414954717, -2.9484687014826401, -2.13473999422592], [-2.2789133173721012, -0.045772152913776232, -4.2708103519116571, -2.8699338424678125]], [[-3.1412913277375214, -9.548759339712241, -5.3526151277186118, -4.6203738050074064], [-7.1652702150685776, -4.969630442386892, -3.8815189911364314, -7.3265668906861894], [-2.7921008807033934, -4.0802731135915273, -6.6203839334493075, -8.6162569096511383]]], [[[-7.3416208659403779, -3.5327049579194751, -7.3048453692211961, -6.4022432021565523], [-2.0327346440693397, -3.1196430955742871, -6.308877877296875, -0.18539303032211141], [-3.7673768526901954, -1.3183037775180972, -7.7213266293883152, -2.692515293472856]], [[-1.2828229176650128, -9.8944095109016423, -5.6448100924916993, -9.9691301964325554], [-1.315407890252815, -1.3658217508967772, -3.5072402024820244, -1.0630661010199711], [-6.3870586874146751, -2.3840667016787158, -4.5961843454686404, -8.9937518318928866]]], [[[-0.93660513287355673, -8.6512701113851236, -9.5811949334803757, -1.351254706566027], [-5.2482690126895726, -5.8404004234817828, -2.2835875749648515, -5.2961664898843201], [-7.8761688396777938, -6.4341169390494448, -9.9539133409286276, -4.0594484428054285]], [[-3.4410979960953929, -2.0178156064149348, -7.7163536228174303, -5.0525051834890213], [-5.789512696778826, -8.1498009283142423, -2.9116485891829038, -8.1435315705341598], [-5.2482609517600309, -8.407358207117543, -8.3685856381097441, -0.76048409432836639]]]]))  [-3.3394400601574352, -5.5139007427588149, -9.1597389552577759, -6.7609254976749433], [-8.8398829742817924,
1987    -5.3622051299758597, 0.0062254263621772665, -6.5390631228540324]], [[-5.9717407647350251, -7.8755472087037806,
1988    -4.4509084002962354, -2.6000034864293013], [-2.2564074353686374, -0.64228750324195705, -1.7280412711595678,
1989    -6.0843752279089047], [-1.0412604478282477, -4.3439228808495436, -7.6780481666537197, -3.7897617226873033]]],
1990    [[[-5.3185468946076915, 0.016676559140640812, -1.7738074040044021, -7.599791045998594], [-0.20145373226625107,
1991    -6.8935902186099787, -9.0238326834787443, -9.3283097802633392], [-1.48456645869694, -7.6201375369010949, -6.8429506600015868,
1992    -3.4247992690804372]], [[-1.3872721293933994, -6.3557768358815983, -4.1967198459459656, -4.5898643237909713],
1993    [-8.6652009856954475, -0.15673125417207334, -2.921259108617587, -2.8801839334152648], [-6.4481609272471845,
1994    -0.2526520400813892, -9.9417570436500249, -9.8598025564582699]]], [[[-5.0221727158470024, -4.9566361144645992,
1995    -7.2826096573542012, -4.3954276203919287], [-6.2719704397043241, -4.1793978431617935, -7.6103349617211933, -5.302029225772432],
1996    [-8.912980906935088, -8.6553344613165564, -4.7333731551911393, -5.5065554249084157]], [[-4.684673328062674,
1997    -8.8482084066704267, -7.8242509634255324, -4.1895924990368041], [-5.1704531165959224, -7.3952042570440737, -5.6717253687234637,
1998    -4.9676864153145841], [-1.0119569934610952, -1.7732503055285394, -9.0623716910906786,
1999    -5.6174146334070558]]]]),self.functionspace)
2000          ref.setTaggedValue(1,numpy.array([[[[-4.554239814461277, -9.8732656685388331, -0.76231934375983368, -3.97163673827695],
2001    [-9.2152119555944729, -8.4667172414954717, -2.9484687014826401, -2.13473999422592], [-2.2789133173721012,
2002    -0.045772152913776232, -4.2708103519116571, -2.8699338424678125]], [[-3.1412913277375214, -9.548759339712241,
2003    -5.3526151277186118, -4.6203738050074064], [-7.1652702150685776, -4.969630442386892, -3.8815189911364314, -7.3265668906861894],
2004    [-2.7921008807033934, -4.0802731135915273, -6.6203839334493075, -8.6162569096511383]]], [[[-7.3416208659403779,
2005    -3.5327049579194751, -7.3048453692211961, -6.4022432021565523], [-2.0327346440693397, -3.1196430955742871, -6.308877877296875,
2006    -0.18539303032211141], [-3.7673768526901954, -1.3183037775180972, -7.7213266293883152, -2.692515293472856]],
2007    [[-1.2828229176650128, -9.8944095109016423, -5.6448100924916993, -9.9691301964325554], [-1.315407890252815,
2008    -1.3658217508967772, -3.5072402024820244, -1.0630661010199711], [-6.3870586874146751, -2.3840667016787158, -4.5961843454686404,
2009    -8.9937518318928866]]], [[[-0.93660513287355673, -8.6512701113851236, -9.5811949334803757, -1.351254706566027],
2010    [-5.2482690126895726, -5.8404004234817828, -2.2835875749648515, -5.2961664898843201], [-7.8761688396777938,
2011    -6.4341169390494448, -9.9539133409286276, -4.0594484428054285]], [[-3.4410979960953929, -2.0178156064149348,
2012    -7.7163536228174303, -5.0525051834890213], [-5.789512696778826, -8.1498009283142423, -2.9116485891829038, -8.1435315705341598],
2013    [-5.2482609517600309, -8.407358207117543, -8.3685856381097441, -0.76048409432836639]]]]))
2014        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
2015        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
2016        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2017     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2018     def test_add_overloaded_taggedData_rank4_constData_rank4(self):     def test_add_overloaded_taggedData_rank4_constData_rank4(self):
2019        arg0=Data(numpy.array([[[[3.1331519622030566, 1.3119133890156967, -3.2392134494651281, -0.01569818056179173], [2.634556632080769, -1.189410178309064, 1.914015632778888, 1.4647992886672521], [-2.2199841553264141, -0.10166420825437594, -4.8324250114128073, 2.4067957844997796]], [[2.8462822657787656, 0.44011683322179529, -4.1076589232352152, -1.3423498632813602], [0.53632410068613634, 0.0070867373485814511, 2.4846431596065042, -3.0396972435073586], [-2.0963056738902139, -0.87930193181326199, 2.1183278730678801, 2.7346792811999157]]], [[[1.0681951676174828, -0.41818912340588632, -4.8476480835060221, -3.3146157083317318], [-3.8083861936585564, 1.4265322003908585, 4.7612563224989977, 0.33388900779590891], [1.7709086691219635, 1.0164110436214449, 0.91720421535314767, -3.892946374145716]], [[-0.21322716600495095, 0.019664103154569901, -2.5389160047351456, -2.6874594544011874], [1.5242890831948088, -2.8188899113562407, -4.2375755921717264, -2.3465708679537944], [-4.5890727168846723, -3.1073959874736845, 2.6256214303516154, 2.306166602974149]]], [[[-0.39742270642111865, 3.7780144318629709, -2.1528178473535831, 0.38956987471308402], [4.2072808591264188, -0.31273624034917979, -2.6254592071622618, -2.1252487243623053], [0.51571349096633412, 0.022274290842354105, 0.62015453029442025, -1.064637557237802]], [[4.6645141713645693, -2.1015608157949028, -1.6892077968270183, 4.8090459955855884], [0.123339918957873, -4.0752931091395421, 4.5803954303973242, -1.126002876662453], [3.0746694309474041, -3.6358444246511268, -1.2950974062337561, 2.7843326629814573]]]]),self.functionspace)        arg0=Data(numpy.array([[[[3.1331519622030566, 1.3119133890156967, -3.2392134494651281, -0.01569818056179173],
2020        arg0.setTaggedValue(1,numpy.array([[[[4.9227582350105621, 3.6036118955387906, -2.708445126257264, -0.010623154617936947], [3.9376047613219214, 2.353994660542881, 2.3471841350779759, 2.0773573229030653], [-1.143142450361645, -1.3786062401477817, 4.3976570759022806, 4.3735781169914141]], [[-3.3610620753879128, -3.0010619584716736, 0.64095586188100917, -0.12119915059537245], [-3.7982069708990496, -2.4694132998194931, -0.52396914706805209, 4.4213016710158008], [2.7529768001123189, -0.96581203501230384, 0.77711645282180974, -2.1096868341727748]]], [[[-0.89235105065349618, -1.6771008391848028, 2.7651378950555952, -2.7729116554651956], [-2.3362287803320192, -1.9906576742577862, -2.1830603808815665, 1.4573837859578749], [4.4160251954589782, 0.84023453476264631, 3.2257525974331731, -1.9574021443725833]], [[-3.2661887452158744, -4.6851142104549934, 0.82658483006030536, 1.089439663075976], [2.2488299456094722, -3.6873618309339316, 0.73900683253748589, -1.1677601689326709], [1.0896285725439974, 3.6562970341003762, -3.2012161242939707, 4.0200778747597266]]], [[[-3.9207539144034111, 2.6592808898097484, -1.564140703303496, 0.85878875556931877], [2.4733407841500243, 3.3426483456035267, -3.3511808065342477, 2.2157775754136484], [3.7229225805005655, 3.4572070633959182, -3.4277821650720464, -2.1240040336435726]], [[3.5468172315497917, 3.0128640257101509, -4.9995373443318147, -4.8329137141251168], [4.0556325671795879, 1.2780420444496885, 4.6606825048100671, -3.3263939358085293], [3.3914884553245415, -4.6894048812889171, -4.0645164474469446, 2.3415536814852942]]]]))  [2.634556632080769, -1.189410178309064, 1.914015632778888, 1.4647992886672521], [-2.2199841553264141, -0.10166420825437594,
2021        arg1=Data(numpy.array([[[[1.6463450974122074, -2.4953937193344977, 4.2733641267117779, 4.5330294346296274], [3.1444543220966743, 0.15056244203574209, 3.1308214912647401, 3.9466546675293763], [3.9989575987236705, 1.2959694095047523, 3.2763312879330879, 1.3003779658425287]], [[3.3695184798944968, 2.195722881116553, -0.88074509562310244, 0.35302477558533329], [3.6987700783165351, -0.30739620781974253, 0.57688786177728968, 0.80022403922436958], [3.6502466700047584, 1.3021084553118376, -4.0179617826950071, -4.6393640417561164]]], [[[-1.499731500376662, -2.405147810094844, -1.4862333895483228, 4.3818154977298267], [-1.6735911082216215, -3.1357887521787928, 2.6673233589095986, 4.4975056851447039], [0.98131927050915113, 3.9906279719071769, 3.9254722688653665, -3.9078676082622419]], [[-2.4806631673946908, -4.310842055095967, 4.3279233073924352, 3.4103293802177301], [3.0090369783976865, -1.6550843346417499, 0.62407465515388783, -4.8401477225380773], [2.208243718706, 4.4163329158494768, 2.481684970533844, -4.8744613593287216]]], [[[-4.0971312364070167, 2.128584318877631, 3.8224151974197262, -3.8623076683567636], [-2.7280491484206237, -3.9114308472374248, -4.5128299957491569, -2.4948564083412608], [3.4052773595518673, -0.6146492343146619, 2.1414392608980855, -3.3746448909504592]], [[1.6739065084581464, 3.1970768469416235, 3.3598674616350124, -1.6991949526555938], [2.9155653699560604, -4.378569739274778, 0.42764140152916053, -3.1546307165838106], [-0.26171465472001199, 2.672547314914727, -1.8219051584334212, -4.0597059773120669]]]]),self.functionspace)  -4.8324250114128073, 2.4067957844997796]], [[2.8462822657787656, 0.44011683322179529, -4.1076589232352152,
2022        res=arg0+arg1  -1.3423498632813602], [0.53632410068613634, 0.0070867373485814511, 2.4846431596065042, -3.0396972435073586],
2023        ref=Data(numpy.array([[[[4.7794970596152639, -1.1834803303188011, 1.0341506772466498, 4.5173312540678356], [5.7790109541774433, -1.0388477362733219, 5.0448371240436281, 5.4114539561966284], [1.7789734433972564, 1.1943052012503763, -1.5560937234797194, 3.7071737503423083]], [[6.2158007456732625, 2.6358397143383483, -4.9884040188583176, -0.98932508769602689], [4.2350941790026715, -0.30030947047116108, 3.0615310213837938, -2.239473204282989], [1.5539409961145445, 0.42280652349857561, -1.8996339096271271, -1.9046847605562007]]], [[[-0.43153633275917924, -2.8233369335007303, -6.3338814730543449, 1.0671997893980949], [-5.4819773018801783, -1.7092565517879343, 7.4285796814085963, 4.8313946929406129], [2.7522279396311147, 5.0070390155286217, 4.8426764842185142, -7.8008139824079574]], [[-2.6938903333996418, -4.2911779519413971, 1.7890073026572897, 0.72286992581654275], [4.5333260615924953, -4.4739742459979901, -3.6135009370178386, -7.1867185904918713], [-2.3808289981786723, 1.3089369283757923, 5.1073064008854594, -2.5682947563545726]]], [[[-4.4945539428281354, 5.9065987507406019, 1.6695973500661432, -3.4727377936436796], [1.4792317107057951, -4.2241670875866042, -7.1382892029114187, -4.620105132703566], [3.9209908505182014, -0.59237494347230779, 2.7615937911925057, -4.4392824481882611]], [[6.3384206798227156, 1.0955160311467207, 1.6706596648079941, 3.1098510429299946], [3.0389052889139334, -8.453862848414321, 5.0080368319264847, -4.2806335932462636], [2.8129547762273921, -0.96329710973639981, -3.1170025646671773, -1.2753733143306096]]]]),self.functionspace)  [-2.0963056738902139, -0.87930193181326199, 2.1183278730678801, 2.7346792811999157]]], [[[1.0681951676174828,
2024        ref.setTaggedValue(1,numpy.array([[[[6.5691033324227694, 1.1082181762042929, 1.5649190004545139, 4.5224062800116904], [7.0820590834185957, 2.5045571025786231, 5.4780056263427159, 6.0240119904324416], [2.8558151483620255, -0.082636830643029402, 7.6739883638353685, 5.6739560828339428]], [[0.0084564045065840254, -0.80533907735512056, -0.23978923374209327, 0.23182562498996084], [-0.099436892582514425, -2.7768095076392356, 0.052918714709237591, 5.2215257102401704], [6.4032234701170774, 0.33629642029953377, -3.2408453298731974, -6.7490508759288907]]], [[[-2.3920825510301582, -4.0822486492796468, 1.2789045055072723, 1.6089038422646311], [-4.0098198885536407, -5.126446426436579, 0.48426297802803209, 5.9548894711025788], [5.3973444659681293, 4.8308625066698232, 7.1512248662985396, -5.8652697526348252]], [[-5.7468519126105653, -8.9959562655509604, 5.1545081374527406, 4.4997690432937061], [5.2578669240071587, -5.3424461655756819, 1.3630814876913737, -6.0079078914707482], [3.2978722912499974, 8.0726299499498531, -0.71953115376012677, -0.85438348456899504]]], [[[-8.0178851508104287, 4.7878652086873794, 2.2582744941162303, -3.0035189127874449], [-0.2547083642705994, -0.5687825016338981, -7.8640108022834045, -0.27907883292761237], [7.1281999400524327, 2.8425578290812563, -1.2863429041739609, -5.4986489245940318]], [[5.220723740007938, 6.2099408726517744, -1.6396698826968024, -6.5321086667807107], [6.9711979371356483, -3.1005276948250895, 5.0883239063392276, -6.4810246523923398], [3.1297738006045295, -2.0168575663741901, -5.8864216058803658, -1.7181522958267728]]]]))  -0.41818912340588632, -4.8476480835060221, -3.3146157083317318], [-3.8083861936585564, 1.4265322003908585, 4.7612563224989977,
2025    0.33388900779590891], [1.7709086691219635, 1.0164110436214449, 0.91720421535314767, -3.892946374145716]],
2026    [[-0.21322716600495095, 0.019664103154569901, -2.5389160047351456, -2.6874594544011874], [1.5242890831948088,
2027    -2.8188899113562407, -4.2375755921717264, -2.3465708679537944], [-4.5890727168846723, -3.1073959874736845, 2.6256214303516154,
2028    2.306166602974149]]], [[[-0.39742270642111865, 3.7780144318629709, -2.1528178473535831, 0.38956987471308402],
2029    [4.2072808591264188, -0.31273624034917979, -2.6254592071622618, -2.1252487243623053], [0.51571349096633412,
2030    0.022274290842354105, 0.62015453029442025, -1.064637557237802]], [[4.6645141713645693, -2.1015608157949028,
2031    -1.6892077968270183, 4.8090459955855884], [0.123339918957873, -4.0752931091395421, 4.5803954303973242, -1.126002876662453],
2032    [3.0746694309474041, -3.6358444246511268, -1.2950974062337561, 2.7843326629814573]]]]),self.functionspace)
2033          arg0.setTaggedValue(1,numpy.array([[[[4.9227582350105621, 3.6036118955387906, -2.708445126257264, -0.010623154617936947],
2034    [3.9376047613219214, 2.353994660542881, 2.3471841350779759, 2.0773573229030653], [-1.143142450361645, -1.3786062401477817,
2035    4.3976570759022806, 4.3735781169914141]], [[-3.3610620753879128, -3.0010619584716736, 0.64095586188100917,
2036    -0.12119915059537245], [-3.7982069708990496, -2.4694132998194931, -0.52396914706805209, 4.4213016710158008],
2037    [2.7529768001123189, -0.96581203501230384, 0.77711645282180974, -2.1096868341727748]]], [[[-0.89235105065349618,
2038    -1.6771008391848028, 2.7651378950555952, -2.7729116554651956], [-2.3362287803320192, -1.9906576742577862, -2.1830603808815665,
2039    1.4573837859578749], [4.4160251954589782, 0.84023453476264631, 3.2257525974331731, -1.9574021443725833]],
2040    [[-3.2661887452158744, -4.6851142104549934, 0.82658483006030536, 1.089439663075976], [2.2488299456094722, -3.6873618309339316,
2041    0.73900683253748589, -1.1677601689326709], [1.0896285725439974, 3.6562970341003762, -3.2012161242939707, 4.0200778747597266]]],
2042    [[[-3.9207539144034111, 2.6592808898097484, -1.564140703303496, 0.85878875556931877], [2.4733407841500243, 3.3426483456035267,
2043    -3.3511808065342477, 2.2157775754136484], [3.7229225805005655, 3.4572070633959182, -3.4277821650720464, -2.1240040336435726]],
2044    [[3.5468172315497917, 3.0128640257101509, -4.9995373443318147, -4.8329137141251168], [4.0556325671795879, 1.2780420444496885,
2045    4.6606825048100671, -3.3263939358085293], [3.3914884553245415, -4.6894048812889171, -4.0645164474469446,
2046    2.3415536814852942]]]]))
2047          arg1=Data(numpy.array([[[[1.6463450974122074, -2.4953937193344977, 4.2733641267117779, 4.5330294346296274],
2048    [3.1444543220966743, 0.15056244203574209, 3.1308214912647401, 3.9466546675293763], [3.9989575987236705, 1.2959694095047523,
2049    3.2763312879330879, 1.3003779658425287]], [[3.3695184798944968, 2.195722881116553, -0.88074509562310244, 0.35302477558533329],
2050    [3.6987700783165351, -0.30739620781974253, 0.57688786177728968, 0.80022403922436958], [3.6502466700047584, 1.3021084553118376,
2051    -4.0179617826950071, -4.6393640417561164]]], [[[-1.499731500376662, -2.405147810094844, -1.4862333895483228,
2052    4.3818154977298267], [-1.6735911082216215, -3.1357887521787928, 2.6673233589095986, 4.4975056851447039], [0.98131927050915113,
2053    3.9906279719071769, 3.9254722688653665, -3.9078676082622419]], [[-2.4806631673946908, -4.310842055095967, 4.3279233073924352,
2054    3.4103293802177301], [3.0090369783976865, -1.6550843346417499, 0.62407465515388783, -4.8401477225380773], [2.208243718706,
2055    4.4163329158494768, 2.481684970533844, -4.8744613593287216]]], [[[-4.0971312364070167, 2.128584318877631, 3.8224151974197262,
2056    -3.8623076683567636], [-2.7280491484206237, -3.9114308472374248, -4.5128299957491569, -2.4948564083412608],
2057    [3.4052773595518673, -0.6146492343146619, 2.1414392608980855, -3.3746448909504592]], [[1.6739065084581464, 3.1970768469416235,
2058    3.3598674616350124, -1.6991949526555938], [2.9155653699560604, -4.378569739274778, 0.42764140152916053, -3.1546307165838106],
2059    [-0.26171465472001199, 2.672547314914727, -1.8219051584334212, -4.0597059773120669]]]]),self.functionspace)
2060          res=arg0+arg1
2061          ref=Data(numpy.array([[[[4.7794970596152639, -1.1834803303188011, 1.0341506772466498, 4.5173312540678356],
2062    [5.7790109541774433, -1.0388477362733219, 5.0448371240436281, 5.4114539561966284], [1.7789734433972564, 1.1943052012503763,
2063    -1.5560937234797194, 3.7071737503423083]], [[6.2158007456732625, 2.6358397143383483, -4.9884040188583176,
2064    -0.98932508769602689], [4.2350941790026715, -0.30030947047116108, 3.0615310213837938, -2.239473204282989], [1.5539409961145445,
2065    0.42280652349857561, -1.8996339096271271, -1.9046847605562007]]], [[[-0.43153633275917924, -2.8233369335007303,
2066    -6.3338814730543449, 1.0671997893980949], [-5.4819773018801783, -1.7092565517879343, 7.4285796814085963, 4.8313946929406129],
2067    [2.7522279396311147, 5.0070390155286217, 4.8426764842185142, -7.8008139824079574]], [[-2.6938903333996418, -4.2911779519413971,
2068    1.7890073026572897, 0.72286992581654275], [4.5333260615924953, -4.4739742459979901, -3.6135009370178386, -7.1867185904918713],
2069    [-2.3808289981786723, 1.3089369283757923, 5.1073064008854594, -2.5682947563545726]]], [[[-4.4945539428281354,
2070    5.9065987507406019, 1.6695973500661432, -3.4727377936436796], [1.4792317107057951, -4.2241670875866042, -7.1382892029114187,
2071    -4.620105132703566], [3.9209908505182014, -0.59237494347230779, 2.7615937911925057, -4.4392824481882611]],
2072    [[6.3384206798227156, 1.0955160311467207, 1.6706596648079941, 3.1098510429299946], [3.0389052889139334, -8.453862848414321,
2073    5.0080368319264847, -4.2806335932462636], [2.8129547762273921, -0.96329710973639981, -3.1170025646671773,
2074    -1.2753733143306096]]]]),self.functionspace)
2075          ref.setTaggedValue(1,numpy.array([[[[6.5691033324227694, 1.1082181762042929, 1.5649190004545139, 4.5224062800116904],
2076    [7.0820590834185957, 2.5045571025786231, 5.4780056263427159, 6.0240119904324416], [2.8558151483620255, -0.082636830643029402,
2077    7.6739883638353685, 5.6739560828339428]], [[0.0084564045065840254, -0.80533907735512056, -0.23978923374209327,
2078    0.23182562498996084], [-0.099436892582514425, -2.7768095076392356, 0.052918714709237591, 5.2215257102401704],
2079    [6.4032234701170774, 0.33629642029953377, -3.2408453298731974, -6.7490508759288907]]], [[[-2.3920825510301582,
2080    -4.0822486492796468, 1.2789045055072723, 1.6089038422646311], [-4.0098198885536407, -5.126446426436579, 0.48426297802803209,
2081    5.9548894711025788], [5.3973444659681293, 4.8308625066698232, 7.1512248662985396, -5.8652697526348252]], [[-5.7468519126105653,
2082    -8.9959562655509604, 5.1545081374527406, 4.4997690432937061], [5.2578669240071587, -5.3424461655756819, 1.3630814876913737,
2083    -6.0079078914707482], [3.2978722912499974, 8.0726299499498531, -0.71953115376012677, -0.85438348456899504]]],
2084    [[[-8.0178851508104287, 4.7878652086873794, 2.2582744941162303, -3.0035189127874449], [-0.2547083642705994,
2085    -0.5687825016338981, -7.8640108022834045, -0.27907883292761237], [7.1281999400524327, 2.8425578290812563, -1.2863429041739609,
2086    -5.4986489245940318]], [[5.220723740007938, 6.2099408726517744, -1.6396698826968024, -6.5321086667807107], [6.9711979371356483,
2087    -3.1005276948250895, 5.0883239063392276, -6.4810246523923398], [3.1297738006045295, -2.0168575663741901, -5.8864216058803658,
2088    -1.7181522958267728]]]]))
2089        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
2090        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
2091        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2092     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2093     def test_add_overloaded_taggedData_rank4_taggedData_rank0(self):     def test_add_overloaded_taggedData_rank4_taggedData_rank0(self):
2094        arg0=Data(numpy.array([[[[1.0601531822977677, 4.0726745619023657, 3.6495957472642591, -4.5853746548448457], [4.8031956869743624, 1.2922001324316899, -2.6038108121498285, -1.6853805692426715], [0.59635781747329641, -4.7739890492747978, -2.991829369254396, -0.99026007351987833]], [[4.1004501612408912, -0.71221999944871772, -2.4257763498665632, -4.2477319700162806], [3.7347500468428674, -0.41423651785688165, -0.94677070639313499, 2.6151816677807496], [-0.37477785819362452, 4.7491854335909025, 4.4755854873113048, -3.7922402823612011]]], [[[-2.3375624135978779, 3.6743639421545318, -3.2953137207261305, -4.7343836049299579], [-1.1293147135669335, -2.6145629134141899, -1.7544972255926892, 4.9030233031737218], [-4.9678403571315357, -3.1894934503219705, 4.2473033937755904, -4.1801669702549411]], [[3.8422382434248306, 1.7130957815427017, -4.0127435846118917, -0.0026619250493880031], [-2.9168221244052503, 2.4740021579204416, -2.0539398312727633, -3.1024688730966976], [-0.84232290631693907, 0.055624764862427512, -1.3381599247004794, -0.82758169195057274]]], [[[-4.1263214859140485, -3.6307795610760349, -0.0076760095589829547, -1.218946255623381], [2.5053902771663674, -3.9039324327414926, 2.4384267679153693, -1.0053652842886951], [0.82760324835353138, 0.036949319751261811, -4.1521739644823628, -4.0593244662714687]], [[-4.1015263277201246, -2.3504672175092587, 4.8967336738456702, 1.5712918827128775], [3.1643696304401931, 2.5471229856578992, 1.6225127637431225, -2.8479171224373676], [0.094212258010476724, -3.1221298986331778, 1.5839929906775971, -0.2422789755390955]]]]),self.functionspace)        arg0=Data(numpy.array([[[[1.0601531822977677, 4.0726745619023657, 3.6495957472642591, -4.5853746548448457],
2095        arg0.setTaggedValue(1,numpy.array([[[[0.33783179069622893, -1.7416762009781186, -2.3752352662009626, 1.0538156387949495], [2.3103445909667544, 4.9379831389624727, -1.1815444628895522, 0.9483596323812673], [-3.1455866789282041, -4.9093114789590642, 2.0831341254654125, -0.37398976668950645]], [[-4.4661822068043353, 2.6239149763920402, 3.1007400255377391, -1.8587358170529935], [-0.21689598075010696, 3.6631674321147205, 3.5158926843530072, -2.0086638209418393], [3.9557509506035782, -3.2177807686526085, 3.0993150985243094, -0.70474975624957548]]], [[[4.804821491853966, -3.8952588296984434, -1.1426442995369013, 3.8146426584851092], [-1.8178876140511524, 1.7791684879288692, -3.2173608676359269, -2.0671894883697775], [4.1853396517114891, -2.3369501503351731, 0.43120754239429981, -0.46623877778020528]], [[1.1562225740765841, -1.338923522434976, -4.0670070817941086, 2.201628633350766], [-0.00028437091238409096, 4.817033338220325, -3.8045904649367834, -1.7330917243963539], [3.2265481370009557, -1.3548091899665939, -1.5553622629183508, 2.9420132778352901]]], [[[-3.3452399358965392, -0.047814239049344565, 4.7566190312827299, 4.0979275750740971], [3.022004721710335, -3.3522097945021745, 3.3811714091977443, 1.8950199314273473], [-4.1201649545047117, -3.3753627897528382, -4.363202023325691, -3.1491085169538158]], [[-4.8912776091420129, -1.7293548927326716, -3.7081326188032051, -4.2779046281308872], [1.1859734840524814, -3.081187929250718, -2.4229874756702219, 3.5596112695803974], [4.9409662334423547, 1.7440276392348366, 1.9629092477137977, -1.7230445817030082]]]]))  [4.8031956869743624, 1.2922001324316899, -2.6038108121498285, -1.6853805692426715], [0.59635781747329641, -4.7739890492747978,
2096    -2.991829369254396, -0.99026007351987833]], [[4.1004501612408912, -0.71221999944871772, -2.4257763498665632,
2097    -4.2477319700162806], [3.7347500468428674, -0.41423651785688165, -0.94677070639313499, 2.6151816677807496],
2098    [-0.37477785819362452, 4.7491854335909025, 4.4755854873113048, -3.7922402823612011]]], [[[-2.3375624135978779,
2099    3.6743639421545318, -3.2953137207261305, -4.7343836049299579], [-1.1293147135669335, -2.6145629134141899, -1.7544972255926892,
2100    4.9030233031737218], [-4.9678403571315357, -3.1894934503219705, 4.2473033937755904, -4.1801669702549411]],
2101    [[3.8422382434248306, 1.7130957815427017, -4.0127435846118917, -0.0026619250493880031], [-2.9168221244052503,
2102    2.4740021579204416, -2.0539398312727633, -3.1024688730966976], [-0.84232290631693907, 0.055624764862427512,
2103    -1.3381599247004794, -0.82758169195057274]]], [[[-4.1263214859140485, -3.6307795610760349, -0.0076760095589829547,
2104    -1.218946255623381], [2.5053902771663674, -3.9039324327414926, 2.4384267679153693, -1.0053652842886951], [0.82760324835353138,
2105    0.036949319751261811, -4.1521739644823628, -4.0593244662714687]], [[-4.1015263277201246, -2.3504672175092587,
2106    4.8967336738456702, 1.5712918827128775], [3.1643696304401931, 2.5471229856578992, 1.6225127637431225, -2.8479171224373676],
2107    [0.094212258010476724, -3.1221298986331778, 1.5839929906775971, -0.2422789755390955]]]]),self.functionspace)
2108          arg0.setTaggedValue(1,numpy.array([[[[0.33783179069622893, -1.7416762009781186, -2.3752352662009626, 1.0538156387949495],
2109    [2.3103445909667544, 4.9379831389624727, -1.1815444628895522, 0.9483596323812673], [-3.1455866789282041, -4.9093114789590642,
2110    2.0831341254654125, -0.37398976668950645]], [[-4.4661822068043353, 2.6239149763920402, 3.1007400255377391,
2111    -1.8587358170529935], [-0.21689598075010696, 3.6631674321147205, 3.5158926843530072, -2.0086638209418393], [3.9557509506035782,
2112    -3.2177807686526085, 3.0993150985243094, -0.70474975624957548]]], [[[4.804821491853966, -3.8952588296984434,
2113    -1.1426442995369013, 3.8146426584851092], [-1.8178876140511524, 1.7791684879288692, -3.2173608676359269, -2.0671894883697775],
2114    [4.1853396517114891, -2.3369501503351731, 0.43120754239429981, -0.46623877778020528]], [[1.1562225740765841,
2115    -1.338923522434976, -4.0670070817941086, 2.201628633350766], [-0.00028437091238409096, 4.817033338220325, -3.8045904649367834,
2116    -1.7330917243963539], [3.2265481370009557, -1.3548091899665939, -1.5553622629183508, 2.9420132778352901]]],
2117    [[[-3.3452399358965392, -0.047814239049344565, 4.7566190312827299, 4.0979275750740971], [3.022004721710335,
2118    -3.3522097945021745, 3.3811714091977443, 1.8950199314273473], [-4.1201649545047117, -3.3753627897528382, -4.363202023325691,
2119    -3.1491085169538158]], [[-4.8912776091420129, -1.7293548927326716, -3.7081326188032051, -4.2779046281308872],
2120    [1.1859734840524814, -3.081187929250718, -2.4229874756702219, 3.5596112695803974], [4.9409662334423547, 1.7440276392348366,
2121    1.9629092477137977, -1.7230445817030082]]]]))
2122        arg1=Data(-1.85688075123,self.functionspace)        arg1=Data(-1.85688075123,self.functionspace)
2123        arg1.setTaggedValue(1,-1.92083167105)        arg1.setTaggedValue(1,-1.92083167105)
2124        res=arg0+arg1        res=arg0+arg1
2125        ref=Data(numpy.array([[[[-0.79672756893443708, 2.2157938106701609, 1.7927149960320543, -6.4422554060770505], [2.9463149357421576, -0.5646806188005149, -4.4606915633820332, -3.5422613204748763], [-1.2605229337589083, -6.6308698005070026, -4.8487101204866008, -2.8471408247520831]], [[2.2435694100086865, -2.5691007506809225, -4.282657101098768, -6.1046127212484853], [1.8778692956106626, -2.2711172690890864, -2.8036514576253397, 0.75830091654854481], [-2.2316586094258293, 2.8923046823586978, 2.6187047360791, -5.6491210335934063]]], [[[-4.1944431648300826, 1.817483190922327, -5.1521944719583352, -6.5912643561621627], [-2.9861954647991382, -4.4714436646463946, -3.6113779768248939, 3.0461425519415171], [-6.8247211083637405, -5.0463742015541753, 2.3904226425433857, -6.0370477214871459]], [[1.9853574921926258, -0.14378496968950305, -5.8696243358440965, -1.8595426762815928], [-4.7737028756374551, 0.6171214066882369, -3.910820582504968, -4.9593496243289028], [-2.6992036575491438, -1.8012559863697772, -3.1950406759326841, -2.6844624431827775]]], [[[-5.9832022371462532, -5.4876603123082397, -1.8645567607911877, -3.0758270068555857], [0.64850952593416267, -5.7608131839736973, 0.58154601668316452, -2.8622460355208998], [-1.0292775028786734, -1.8199314314809429, -6.0090547157145675, -5.9162052175036735]], [[-5.9584070789523293, -4.2073479687414634, 3.0398529226134654, -0.2855888685193273], [1.3074888792079884, 0.69024223442569443, -0.23436798748908227, -4.7047978736695724], [-1.762668493221728, -4.9790106498653826, -0.27288776055460762, -2.0991597267713002]]]]),self.functionspace)        ref=Data(numpy.array([[[[-0.79672756893443708, 2.2157938106701609, 1.7927149960320543, -6.4422554060770505],
2126        ref.setTaggedValue(1,numpy.array([[[[-1.5829998803569181, -3.6625078720312656, -4.2960669372541096, -0.86701603225819746], [0.38951291991360737, 3.0171514679093256, -3.1023761339426992, -0.9724720386718797], [-5.0664183499813511, -6.8301431500122112, 0.16230245441226554, -2.2948214377426535]], [[-6.3870138778574823, 0.70308330533889318, 1.1799083544845921, -3.7795674881061405], [-2.137727651803254, 1.7423357610615735, 1.5950610132998602, -3.9294954919949863], [2.0349192795504312, -5.1386124397057555, 1.1784834274711624, -2.6255814273027225]]], [[[2.883989820800819, -5.8160905007515904, -3.0634759705900483, 1.8938109874319622], [-3.7387192851042994, -0.14166318312427784, -5.1381925386890739, -3.9880211594229245], [2.2645079806583421, -4.2577818213883205, -1.4896241286588472, -2.3870704488333523]], [[-0.76460909697656287, -3.259755193488123, -5.9878387528472556, 0.28079696229761897], [-1.9211160419655311, 2.896201667167178, -5.7254221359899304, -3.653923395449501], [1.3057164659478087, -3.2756408610197409, -3.4761939339714978, 1.0211816067821431]]], [[[-5.2660716069496862, -1.9686459101024916, 2.8357873602295829, 2.1770959040209501], [1.101173050657188, -5.2730414655553215, 1.4603397381445973, -0.025811739625799746], [-6.0409966255578587, -5.2961944608059852, -6.284033694378838, -5.0699401880069628]], [[-6.8121092801951599, -3.6501865637858186, -5.6289642898563521, -6.1987362991840342], [-0.73485818700066563, -5.0020196003038651, -4.3438191467233693, 1.6387795985272504], [3.0201345623892077, -0.17680403181831039, 0.042077576660650706, -3.6438762527561552]]]]))  [2.9463149357421576, -0.5646806188005149, -4.4606915633820332, -3.5422613204748763], [-1.2605229337589083, -6.6308698005070026,
2127    -4.8487101204866008, -2.8471408247520831]], [[2.2435694100086865, -2.5691007506809225, -4.282657101098768,
2128    -6.1046127212484853], [1.8778692956106626, -2.2711172690890864, -2.8036514576253397, 0.75830091654854481],
2129    [-2.2316586094258293, 2.8923046823586978, 2.6187047360791, -5.6491210335934063]]], [[[-4.1944431648300826, 1.817483190922327,
2130    -5.1521944719583352, -6.5912643561621627], [-2.9861954647991382, -4.4714436646463946, -3.6113779768248939, 3.0461425519415171],
2131    [-6.8247211083637405, -5.0463742015541753, 2.3904226425433857, -6.0370477214871459]], [[1.9853574921926258,
2132    -0.14378496968950305, -5.8696243358440965, -1.8595426762815928], [-4.7737028756374551, 0.6171214066882369, -3.910820582504968,
2133    -4.9593496243289028], [-2.6992036575491438, -1.8012559863697772, -3.1950406759326841, -2.6844624431827775]]],
2134    [[[-5.9832022371462532, -5.4876603123082397, -1.8645567607911877, -3.0758270068555857], [0.64850952593416267,
2135    -5.7608131839736973, 0.58154601668316452, -2.8622460355208998], [-1.0292775028786734, -1.8199314314809429, -6.0090547157145675,
2136    -5.9162052175036735]], [[-5.9584070789523293, -4.2073479687414634, 3.0398529226134654, -0.2855888685193273],
2137    [1.3074888792079884, 0.69024223442569443, -0.23436798748908227, -4.7047978736695724], [-1.762668493221728, -4.9790106498653826,
2138    -0.27288776055460762, -2.0991597267713002]]]]),self.functionspace)
2139          ref.setTaggedValue(1,numpy.array([[[[-1.5829998803569181, -3.6625078720312656, -4.2960669372541096,
2140    -0.86701603225819746], [0.38951291991360737, 3.0171514679093256, -3.1023761339426992, -0.9724720386718797],
2141    [-5.0664183499813511, -6.8301431500122112, 0.16230245441226554, -2.2948214377426535]], [[-6.3870138778574823,
2142    0.70308330533889318, 1.1799083544845921, -3.7795674881061405], [-2.137727651803254, 1.7423357610615735, 1.5950610132998602,
2143    -3.9294954919949863], [2.0349192795504312, -5.1386124397057555, 1.1784834274711624, -2.6255814273027225]]],
2144    [[[2.883989820800819, -5.8160905007515904, -3.0634759705900483, 1.8938109874319622], [-3.7387192851042994,
2145    -0.14166318312427784, -5.1381925386890739, -3.9880211594229245], [2.2645079806583421, -4.2577818213883205, -1.4896241286588472,
2146    -2.3870704488333523]], [[-0.76460909697656287, -3.259755193488123, -5.9878387528472556, 0.28079696229761897],
2147    [-1.9211160419655311, 2.896201667167178, -5.7254221359899304, -3.653923395449501], [1.3057164659478087, -3.2756408610197409,
2148    -3.4761939339714978, 1.0211816067821431]]], [[[-5.2660716069496862, -1.9686459101024916, 2.8357873602295829,
2149    2.1770959040209501], [1.101173050657188, -5.2730414655553215, 1.4603397381445973, -0.025811739625799746], [-6.0409966255578587,
2150    -5.2961944608059852, -6.284033694378838, -5.0699401880069628]], [[-6.8121092801951599, -3.6501865637858186,
2151    -5.6289642898563521, -6.1987362991840342], [-0.73485818700066563, -5.0020196003038651, -4.3438191467233693,
2152    1.6387795985272504], [3.0201345623892077, -0.17680403181831039, 0.042077576660650706, -3.6438762527561552]]]]))
2153        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
2154        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
2155        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2156     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2157     def test_add_overloaded_taggedData_rank4_taggedData_rank4(self):     def test_add_overloaded_taggedData_rank4_taggedData_rank4(self):
2158        arg0=Data(numpy.array([[[[-1.7990919183368304, 0.93184397396384711, -3.7330585278423802, 4.6907149947481948], [1.2582588875202454, 2.1897390191621238, 0.54483074076905069, -0.12283657170321938], [-3.6466931314993891, 3.7096556826842111, -2.6307798886737075, -2.7149637797948922]], [[-2.349947605764763, 0.28447613909407465, -2.0993400716304214, 3.1956758477293477], [2.1974065966472178, 1.3730307476321171, 0.78701614666569419, -3.6076351467098347], [-4.8186980641756874, -1.9758416393400191, 2.6943224698178492, -0.82203672052128063]]], [[[2.1972761713627325, 3.139218320997772, -3.5987132438121283, -4.2244258583758585], [-4.4096726479599617, -2.0640702496273122, 3.1894070668564787, -1.0761145547937589], [1.5153364154318734, -2.7229445465769162, -3.5080709349001449, 0.17378689776656042]], [[-4.5169909102900876, -2.4754816871957139, 3.873148454381095, 2.0228575477523716], [-4.4699177427705896, 4.8708191331970276, 3.5271580262369291, 0.48503175720727221], [0.26855779864747209, -2.1997779296540978, 3.8010248130325337, 4.1651880321116739]]], [[[3.4607515645929858, 1.5529183069597776, 0.054641037367643364, 2.3691311182312802], [-4.960665137967867, 3.5686665782767513, 0.27576813232611386, -2.5652906093608685], [-3.8353908921177373, -0.86938404303642169, 3.3894256634996545, -3.8536914202267436]], [[1.4853362193091417, -0.53606432985992569, -1.9713315849327895, 4.4402517000376456], [-2.6282155021433784, 0.04973835118059533, -4.8622374887315631, -3.6104233101506678], [-4.1119736416305201, 1.1744302205364301, -1.6687048562530404, -1.8060350265348815]]]]),self.functionspace)        arg0=Data(numpy.array([[[[-1.7990919183368304, 0.93184397396384711, -3.7330585278423802, 4.6907149947481948],
2159        arg0.setTaggedValue(1,numpy.array([[[[4.5846061409465779, -2.9399688578819658, 0.30825711547837109, 2.3573107373453812], [-4.5455942746014024, -2.3545811939649952, -0.33415079495292854, -3.583185346538651], [-2.9933886201094815, -1.2938945826618351, -1.4843026949749061, -2.1523921428095285]], [[3.4322630137240804, -2.7381170276080558, 0.1724980341609772, 1.3395082552409443], [-0.21838018698504857, 3.2450808551347041, -1.9816165055734611, 1.0084038872740075], [-2.4700161314040523, -0.70546991518164592, -3.5475617729209996, -4.6546266494693045]]], [[[4.3602245210617632, -2.9266401106553519, 2.9558169933091545, -3.540231720477812], [1.9246426732334321, -1.3035598362833598, 2.853783811312649, 1.8820758276310396], [4.6934574449949693, 0.83510455661471816, -3.8795376301389748, 2.0833270505986672]], [[4.8734742216206062, 2.473371494381059, -3.3430799353419727, 2.6981490223343183], [-2.7339505937714348, -2.1756456484894873, -0.64539707084804032, -2.0022088914596212], [-3.2533433842042903, -0.49336822108599598, 1.4501619221400119, 3.0094368144300248]]], [[[-4.3768865299997897, -0.61404980791096264, 3.3706224552886841, 4.5591898894702716], [-3.1783866468476951, 3.5723753038884016, -1.3476064062893247, 0.14669844254866327], [1.4487167217365551, 4.256738889596118, 1.6825657424181486, -2.8787583026391648]], [[-4.0947258926848562, 1.8985626248872123, -3.2018335101346684, 2.8749930077782473], [4.8650803974003551, -0.17794687566387335, -4.5963109719060586, -4.646909655331001], [-2.6605573935498148, 2.5769852321341276, -4.5295819718924086, -1.7583310338449087]]]]))  [1.2582588875202454, 2.1897390191621238, 0.54483074076905069, -0.12283657170321938], [-3.6466931314993891, 3.7096556826842111,
2160        arg1=Data(numpy.array([[[[4.4656365903094457, -4.9150861484816346, -3.3045248504181979, -4.4528992593777197], [4.0331617479768287, -0.48352162671466026, -3.274836667089839, -1.5801395084402459], [-4.9188357669531255, -1.4829832471079349, -1.3431415309841057, -2.3395734650814424]], [[4.1749401548527061, 2.2110612332190316, 3.1269979635415126, 0.80974070701623724], [3.8129667447467313, -1.8032702733257411, -3.4528040216422804, -4.3718963749644466], [0.39635568268175625, 3.8258517505576695, -1.900625824984016, -4.0924527892973916]]], [[[-0.28406204806047697, -4.8519913675852635, -0.025524852023748323, 2.3268385269563163], [3.6652171909914255, 1.2173070491755533, 3.5817870177953921, -2.8375445910551402], [0.88074433991492818, 3.0191028774442792, 4.9794288579848835, -0.61041237408038462]], [[1.2872095660037175, -3.5846452728087765, -1.6102701820698648, 2.1281719062450613], [-2.3751194002324327, -3.671977417636445, -4.6699550381579176, 1.5445397316548846], [0.31232446087630272, 2.9276048261923755, 2.3156455536056875, 4.9740453582556725]]], [[[4.2075448669960824, 3.6290949233964795, -0.80349349904871481, -3.209057048715561], [-4.5561614792229506, 0.34538810627403027, -0.28392980919979216, -3.5972276911942327], [-0.47879086912418245, -3.8389654556022057, 3.3938679759851951, -0.8446509989207307]], [[-4.9027050630779812, 3.8828776109802625, -4.1016817123081513, 0.55926088418936093], [2.2369503807152755, -0.91038607974924801, 1.0298081300954394, 1.453986780885077], [-0.51898697067416233, -2.7623316264607602, -0.18857368671852814, 2.988515091434123]]]]),self.functionspace)  -2.6307798886737075, -2.7149637797948922]], [[-2.349947605764763, 0.28447613909407465, -2.0993400716304214,
2161        arg1.setTaggedValue(1,numpy.array([[[[-0.31241989554702787, 4.6825336233164077, -4.7431962405480776, 1.570560531825782], [-0.24411786764566301, -4.7990161009499479, -3.0347465925110919, -2.3145821774522881], [1.1421601164562123, -2.2280507594786947, -4.68700782862292, -2.9466655903159533]], [[-2.8533448580007201, 4.6948927387559376, -2.414098617960839, 4.2816869394728965], [3.7174014415796091, 0.51726168781737591, 2.6713923268820903, -2.0286672158710428], [-4.1612504013566367, 4.9503826471738162, 4.5705628160830294, 3.0578420984404069]]], [[[3.1159725239567724, -0.32962099090097396, -2.1963839503787117, -0.87587825251936646], [-0.53359482512976975, -4.8423566099615432, -2.9384468411925049, -3.4414365444039428], [-2.0722391447545476, 1.2640433217746772, -2.1866613497909135, 0.18759767517210779]], [[0.21072876950637998, 0.42953462170173395, -3.5287078002501349, -1.1592519691194769], [-0.22187126677921398, 3.6036975722714377, 1.2203602056005733, -0.19408363115915339], [-3.3153151464697395, -4.7322399510154423, 1.27155787986755, 3.2549029841265167]]], [[[0.99311889379529994, 2.8740902846233487, -4.495107709244758, -2.7127818882019805], [-3.0859386969508638, 1.2639805770466497, -0.28957901167847311, -0.22690859722752421], [-1.3076650762404918, -3.8889612176069823, 1.6952852909518592, 3.8430682444002784]], [[1.9778109086353997, 0.27433873636489103, -2.5576836533759839, 1.8170036890459915], [-3.5455380237002898, -1.6926898420012715, 0.41175235147042244, 1.1768922106298874], [4.5612978880640398, 1.3543112710963126, -4.2549615676374577, 4.4941127949188839]]]]))  3.1956758477293477], [2.1974065966472178, 1.3730307476321171, 0.78701614666569419, -3.6076351467098347], [-4.8186980641756874,
2162        res=arg0+arg1  -1.9758416393400191, 2.6943224698178492, -0.82203672052128063]]], [[[2.1972761713627325, 3.139218320997772,
2163        ref=Data(numpy.array([[[[2.6665446719726154, -3.9832421745177875, -7.0375833782605781, 0.23781573537047507], [5.2914206354970741, 1.7062173924474635, -2.7300059263207883, -1.7029760801434652], [-8.5655288984525146, 2.2266724355762761, -3.9739214196578132, -5.0545372448763342]], [[1.8249925490879431, 2.4955373723131062, 1.0276578919110912, 4.0054165547455849], [6.0103733413939491, -0.430239525693624, -2.6657878749765862, -7.9795315216742813], [-4.4223423814939311, 1.8500101112176504, 0.79369664483383318, -4.9144895098186723]]], [[[1.9132141233022555, -1.7127730465874915, -3.6242380958358766, -1.8975873314195422], [-0.74445545696853621, -0.8467632004517589, 6.7711940846518708, -3.9136591458488992], [2.3960807553468015, 0.29615833086736298, 1.4713579230847387, -0.4366254763138242]], [[-3.2297813442863701, -6.0601269600044905, 2.2628782723112302, 4.1510294539974328], [-6.8450371430030224, 1.1988417155605826, -1.1427970119209885, 2.0295714888621568], [0.58088225952377481, 0.7278268965382777, 6.1166703666382212, 9.1392333903673464]]], [[[7.6682964315890683, 5.1820132303562572, -0.74885246168107145, -0.83992593048428077], [-9.5168266171908176, 3.9140546845507815, -0.008161676873678303, -6.1625183005551012], [-4.3141817612419198, -4.7083494986386274, 6.7832936394848495, -4.6983424191474743]], [[-3.4173688437688394, 3.3468132811203368, -6.0730132972409407, 4.9995125842270065], [-0.39126512142810288, -0.86064772856865268, -3.8324293586361238, -2.1564365292655907], [-4.6309606123046825, -1.5879014059243302, -1.8572785429715686, 1.1824800648992415]]]]),self.functionspace)  -3.5987132438121283, -4.2244258583758585], [-4.4096726479599617, -2.0640702496273122, 3.1894070668564787, -1.0761145547937589],
2164        ref.setTaggedValue(1,numpy.array([[[[4.2721862453995501, 1.7425647654344418, -4.4349391250697066, 3.9278712691711632], [-4.7897121422470654, -7.1535972949149436, -3.3688973874640205, -5.8977675239909395], [-1.8512285036532692, -3.5219453421405298, -6.1713105235978265, -5.0990577331254823]], [[0.57891815572336025, 1.9567757111478818, -2.2416005837998618, 5.6211951947138408], [3.4990212545945605, 3.76234254295208, 0.68977582130862913, -1.0202633285970353], [-6.631266532760689, 4.2449127319921702, 1.0230010431620298, -1.5967845510288976]]], [[[7.4761970450185355, -3.2562611015563259, 0.75943304293044278, -4.4161099729971784], [1.3910478481036623, -6.145916446244903, -0.084663029879855856, -1.5593607167729031], [2.6212183002404217, 2.0991478783893953, -6.0661989799298883, 2.270924725770775]], [[5.0842029911269861, 2.9029061160827929, -6.8717877355921075, 1.5388970532148414], [-2.9558218605506488, 1.4280519237819504, 0.57496313475253302, -2.1962925226187746], [-6.5686585306740302, -5.2256081721014382, 2.7217198020075619, 6.2643397985565414]]], [[[-3.3837676362044897, 2.2600404767123861, -1.1244852539560739, 1.8464080012682911], [-6.2643253437985589, 4.8363558809350513, -1.6371854179677978, -0.080210154678860945], [0.1410516454960633, 0.36777767198913569, 3.3778510333700078, 0.96430994176111362]], [[-2.1169149840494565, 2.1729013612521033, -5.7595171635106528, 4.6919966968242388], [1.3195423737000653, -1.8706367176651448, -4.1845586204356362, -3.4700174447011136], [1.900740494514225, 3.9312965032304401, -8.7845435395298672, 2.7357817610739752]]]]))  [1.5153364154318734, -2.7229445465769162, -3.5080709349001449, 0.17378689776656042]], [[-4.5169909102900876,
2165    -2.4754816871957139, 3.873148454381095, 2.0228575477523716], [-4.4699177427705896, 4.8708191331970276, 3.5271580262369291,
2166    0.48503175720727221], [0.26855779864747209, -2.1997779296540978, 3.8010248130325337, 4.1651880321116739]]],
2167    [[[3.4607515645929858, 1.5529183069597776, 0.054641037367643364, 2.3691311182312802], [-4.960665137967867, 3.5686665782767513,
2168    0.27576813232611386, -2.5652906093608685], [-3.8353908921177373, -0.86938404303642169, 3.3894256634996545,
2169    -3.8536914202267436]], [[1.4853362193091417, -0.53606432985992569, -1.9713315849327895, 4.4402517000376456],
2170    [-2.6282155021433784, 0.04973835118059533, -4.8622374887315631, -3.6104233101506678], [-4.1119736416305201, 1.1744302205364301,
2171    -1.6687048562530404, -1.8060350265348815]]]]),self.functionspace)
2172          arg0.setTaggedValue(1,numpy.array([[[[4.5846061409465779, -2.9399688578819658, 0.30825711547837109, 2.3573107373453812],
2173    [-4.5455942746014024, -2.3545811939649952, -0.33415079495292854, -3.583185346538651], [-2.9933886201094815,
2174    -1.2938945826618351, -1.4843026949749061, -2.1523921428095285]], [[3.4322630137240804, -2.7381170276080558, 0.1724980341609772,
2175    1.3395082552409443], [-0.21838018698504857, 3.2450808551347041, -1.9816165055734611, 1.0084038872740075], [-2.4700161314040523,
2176    -0.70546991518164592, -3.5475617729209996, -4.6546266494693045]]], [[[4.3602245210617632, -2.9266401106553519,
2177    2.9558169933091545, -3.540231720477812], [1.9246426732334321, -1.3035598362833598, 2.853783811312649, 1.8820758276310396],
2178    [4.6934574449949693, 0.83510455661471816, -3.8795376301389748, 2.0833270505986672]], [[4.8734742216206062, 2.473371494381059,
2179    -3.3430799353419727, 2.6981490223343183], [-2.7339505937714348, -2.1756456484894873, -0.64539707084804032,
2180    -2.0022088914596212], [-3.2533433842042903, -0.49336822108599598, 1.4501619221400119, 3.0094368144300248]]],
2181    [[[-4.3768865299997897, -0.61404980791096264, 3.3706224552886841, 4.5591898894702716], [-3.1783866468476951,
2182    3.5723753038884016, -1.3476064062893247, 0.14669844254866327], [1.4487167217365551, 4.256738889596118, 1.6825657424181486,
2183    -2.8787583026391648]], [[-4.0947258926848562, 1.8985626248872123, -3.2018335101346684, 2.8749930077782473],
2184    [4.8650803974003551, -0.17794687566387335, -4.5963109719060586, -4.646909655331001], [-2.6605573935498148, 2.5769852321341276,
2185    -4.5295819718924086, -1.7583310338449087]]]]))
2186          arg1=Data(numpy.array([[[[4.4656365903094457, -4.9150861484816346, -3.3045248504181979, -4.4528992593777197],
2187    [4.0331617479768287, -0.48352162671466026, -3.274836667089839, -1.5801395084402459], [-4.9188357669531255, -1.4829832471079349,
2188    -1.3431415309841057, -2.3395734650814424]], [[4.1749401548527061, 2.2110612332190316, 3.1269979635415126, 0.80974070701623724],
2189    [3.8129667447467313, -1.8032702733257411, -3.4528040216422804, -4.3718963749644466], [0.39635568268175625, 3.8258517505576695,
2190    -1.900625824984016, -4.0924527892973916]]], [[[-0.28406204806047697, -4.8519913675852635, -0.025524852023748323,
2191    2.3268385269563163], [3.6652171909914255, 1.2173070491755533, 3.5817870177953921, -2.8375445910551402], [0.88074433991492818,
2192    3.0191028774442792, 4.9794288579848835, -0.61041237408038462]], [[1.2872095660037175, -3.5846452728087765, -1.6102701820698648,
2193    2.1281719062450613], [-2.3751194002324327, -3.671977417636445, -4.6699550381579176, 1.5445397316548846], [0.31232446087630272,
2194    2.9276048261923755, 2.3156455536056875, 4.9740453582556725]]], [[[4.2075448669960824, 3.6290949233964795, -0.80349349904871481,
2195    -3.209057048715561], [-4.5561614792229506, 0.34538810627403027, -0.28392980919979216, -3.5972276911942327],
2196    [-0.47879086912418245, -3.8389654556022057, 3.3938679759851951, -0.8446509989207307]], [[-4.9027050630779812,
2197    3.8828776109802625, -4.1016817123081513, 0.55926088418936093], [2.2369503807152755, -0.91038607974924801, 1.0298081300954394,
2198    1.453986780885077], [-0.51898697067416233, -2.7623316264607602, -0.18857368671852814, 2.988515091434123]]]]),self.functionspace)
2199          arg1.setTaggedValue(1,numpy.array([[[[-0.31241989554702787, 4.6825336233164077, -4.7431962405480776, 1.570560531825782],
2200    [-0.24411786764566301, -4.7990161009499479, -3.0347465925110919, -2.3145821774522881], [1.1421601164562123,
2201    -2.2280507594786947, -4.68700782862292, -2.9466655903159533]], [[-2.8533448580007201, 4.6948927387559376, -2.414098617960839,
2202    4.2816869394728965], [3.7174014415796091, 0.51726168781737591, 2.6713923268820903, -2.0286672158710428], [-4.1612504013566367,
2203    4.9503826471738162, 4.5705628160830294, 3.0578420984404069]]], [[[3.1159725239567724, -0.32962099090097396,
2204    -2.1963839503787117, -0.87587825251936646], [-0.53359482512976975, -4.8423566099615432, -2.9384468411925049,
2205    -3.4414365444039428], [-2.0722391447545476, 1.2640433217746772, -2.1866613497909135, 0.18759767517210779]],
2206    [[0.21072876950637998, 0.42953462170173395, -3.5287078002501349, -1.1592519691194769], [-0.22187126677921398,
2207    3.6036975722714377, 1.2203602056005733, -0.19408363115915339], [-3.3153151464697395, -4.7322399510154423, 1.27155787986755,
2208    3.2549029841265167]]], [[[0.99311889379529994, 2.8740902846233487, -4.495107709244758, -2.7127818882019805],
2209    [-3.0859386969508638, 1.2639805770466497, -0.28957901167847311, -0.22690859722752421], [-1.3076650762404918,
2210    -3.8889612176069823, 1.6952852909518592, 3.8430682444002784]], [[1.9778109086353997, 0.27433873636489103, -2.5576836533759839,
2211    1.8170036890459915], [-3.5455380237002898, -1.6926898420012715, 0.41175235147042244, 1.1768922106298874], [4.5612978880640398,
2212    1.3543112710963126, -4.2549615676374577, 4.4941127949188839]]]]))
2213          res=arg0+arg1
2214          ref=Data(numpy.array([[[[2.6665446719726154, -3.9832421745177875, -7.0375833782605781, 0.23781573537047507],
2215    [5.2914206354970741, 1.7062173924474635, -2.7300059263207883, -1.7029760801434652], [-8.5655288984525146, 2.2266724355762761,
2216    -3.9739214196578132, -5.0545372448763342]], [[1.8249925490879431, 2.4955373723131062, 1.0276578919110912, 4.0054165547455849],
2217    [6.0103733413939491, -0.430239525693624, -2.6657878749765862, -7.9795315216742813], [-4.4223423814939311, 1.8500101112176504,
2218    0.79369664483383318, -4.9144895098186723]]], [[[1.9132141233022555, -1.7127730465874915, -3.6242380958358766,
2219    -1.8975873314195422], [-0.74445545696853621, -0.8467632004517589, 6.7711940846518708, -3.9136591458488992],
2220    [2.3960807553468015, 0.29615833086736298, 1.4713579230847387, -0.4366254763138242]], [[-3.2297813442863701,
2221    -6.0601269600044905, 2.2628782723112302, 4.1510294539974328], [-6.8450371430030224, 1.1988417155605826, -1.1427970119209885,
2222    2.0295714888621568], [0.58088225952377481, 0.7278268965382777, 6.1166703666382212, 9.1392333903673464]]],
2223    [[[7.6682964315890683, 5.1820132303562572, -0.74885246168107145, -0.83992593048428077], [-9.5168266171908176,
2224    3.9140546845507815, -0.008161676873678303, -6.1625183005551012], [-4.3141817612419198, -4.7083494986386274, 6.7832936394848495,
2225    -4.6983424191474743]], [[-3.4173688437688394, 3.3468132811203368, -6.0730132972409407, 4.9995125842270065],
2226    [-0.39126512142810288, -0.86064772856865268, -3.8324293586361238, -2.1564365292655907], [-4.6309606123046825,
2227    -1.5879014059243302, -1.8572785429715686, 1.1824800648992415]]]]),self.functionspace)
2228          ref.setTaggedValue(1,numpy.array([[[[4.2721862453995501, 1.7425647654344418, -4.4349391250697066, 3.9278712691711632],
2229    [-4.7897121422470654, -7.1535972949149436, -3.3688973874640205, -5.8977675239909395], [-1.8512285036532692,
2230    -3.5219453421405298, -6.1713105235978265, -5.0990577331254823]], [[0.57891815572336025, 1.9567757111478818,
2231    -2.2416005837998618, 5.6211951947138408], [3.4990212545945605, 3.76234254295208, 0.68977582130862913, -1.0202633285970353],
2232    [-6.631266532760689, 4.2449127319921702, 1.0230010431620298, -1.5967845510288976]]], [[[7.4761970450185355,
2233    -3.2562611015563259, 0.75943304293044278, -4.4161099729971784], [1.3910478481036623, -6.145916446244903, -0.084663029879855856,
2234    -1.5593607167729031], [2.6212183002404217, 2.0991478783893953, -6.0661989799298883, 2.270924725770775]], [[5.0842029911269861,
2235    2.9029061160827929, -6.8717877355921075, 1.5388970532148414], [-2.9558218605506488, 1.4280519237819504, 0.57496313475253302,
2236    -2.1962925226187746], [-6.5686585306740302, -5.2256081721014382, 2.7217198020075619, 6.2643397985565414]]],
2237    [[[-3.3837676362044897, 2.2600404767123861, -1.1244852539560739, 1.8464080012682911], [-6.2643253437985589, 4.8363558809350513,
2238    -1.6371854179677978, -0.080210154678860945], [0.1410516454960633, 0.36777767198913569, 3.3778510333700078,
2239    0.96430994176111362]], [[-2.1169149840494565, 2.1729013612521033, -5.7595171635106528, 4.6919966968242388],
2240    [1.3195423737000653, -1.8706367176651448, -4.1845586204356362, -3.4700174447011136], [1.900740494514225, 3.9312965032304401,
2241    -8.7845435395298672, 2.7357817610739752]]]]))
2242        self.assertTrue(isinstance(res,Data),"wrong type of result.")        self.assertTrue(isinstance(res,Data),"wrong type of result.")
2243        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.assertEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
2244        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.assertTrue(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2245     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2246     def test_add_overloaded_taggedData_rank4_expandedData_rank0(self):     def test_add_overloaded_taggedData_rank4_expandedData_rank0(self):
2247        arg0=Data(numpy.array([[[[-1.9822678236600955, 4.7519319188346589, 1.9525679733009849, 0.89806120397498557], [-1.4759442276593706, -0.01889348557776227, -0.041659617091004186, 1.2158996733355689], [-3.9115826514884544, -1.0110007051318028, 3.6259455645448178, 0.65067680977141862]], [[4.836462464183148, 0.5634478224956343, 0.64779235942283186, -3.5749405256049052], [0.95871040462842316, -2.9408912569945036, 1.671154111231532, -1.6859042910157784], [-1.9016689039927259, -4.0543118027509619, 1.7409191914027611, 1.7992704725411581]]], [[[4.8748059918500228, -3.2109535160850267, 2.5132752885143272, -4.5220721330748717], [-3.5946795904440032, 2.9550986164892308, 2.3366659113342241, -1.830283303410567], [1.8574895822311754, 2.8434038998337288, 4.4101370925668331, 1.2387553366937141]], [[0.39377902972405199, 1.1009795786782419, -1.3165687598999645, -3.3183731093521129], [3.0370904342726526, 3.7020134143909118, 4.6898077548757673, 3.8709642247220248], [3.5187362855296129, -1.9938034359064871, 0.86424334989254259, 0.82622082781977824]]], [[[2.443577520413406, 1.7811103902825129, 4.3104594566205865, -0.46348593998584775], [1.2519131997200761, -2.3803701233648624, 3.2863434910999132, -0.95277586683536253], [-3.7379755865565665, 0.11386770333318452, 0.4419257992398844, 1.5591409014109452]], [[3.1373736276389028, -4.6011668563748511, 0.012935569164921112, 1.8754757728947844], [0.7116556516471757, -4.8795792796619466, 1.7970936720816386, 1.8176893668785628], [0.13378369318859296, -4.1464542122601289, -0.30919253407308567, 3.1936033080149233]]]]),self.functionspace)        arg0=Data(numpy.array([[[[-1.9822678236600955, 4.7519319188346589, 1.9525679733009849, 0.89806120397498557],
2248        arg0.setTaggedValue(1,numpy.array([[[[-2.5752545375698999, 0.21763548830149659, -0.24087248769822267, -3.2114557879599079], [0.57699590546700907, -2.0556364308538377, -1.0610327961222357, -3.993137315515737], [1.9165363873422141, 1.1305158547734537, -4.6727011277065316, 3.2468610218798268]], [[1.2599874644844444, -0.43273449711841305, 4.3863149700246691, 1.8040006747435564], [-2.8611246475076522, 1.2688489416081747, -3.7903974069954027, 0.7240886815771006], [1.5249729830082437, 0.51236318403081071, -3.8271421610901513, -4.1359940246528328]]], [[[-4.6212698824412533, -3.8758222403886644, -0.31455792217787515, 4.2612873845009887], [-3.3314502674753266, 2.8619209963041561, -2.552604395062934, -1.9196994243451537], [2.9204739684380439, 0.69041716540978548, 0.052012334574987662, -2.377187810552126]], [[-3.5289417755246069, -3.0632637531348461, 0.24243420054816767, 3.2989986707593228], [4.5227762932585502, 3.5153693618300927, 3.9778614937690584, -4.2807255734068672], [2.9420271023401234, 4.1408019168701546, 4.0224722423379085, 2.5902491013040665]]], [[[-0.73398250083622241, 3.5873512282657138, 0.76070289110872746, 1.079154802735351], [-4.9455430434738563, 1.8977224230213894, -1.7938713824241139, 0.72234058698535542], [-0.61555738406516802, 2.2510985441163385, -2.5437936118518256, 3.439436712560294]], [[1.0841400617861128, -1.6117980259100206, 3.7870225863291775, 0.88038632923927462], [1.0981013695896946, -3.0404445271306821, 3.3477956146500887, -0.77883732568979802], [-1.9348980004567853, -2.8835451055953421, 2.1220700699769175, -2.572383937263174]]]]))  [-1.4759442276593706, -0.01889348557776227, -0.041659617091004186, 1.2158996733355689], [-3.9115826514884544,
2249    -1.0110007051318028, 3.6259455645448178, 0.65067680977141862]], [[4.836462464183148, 0.5634478224956343, 0.64779235942283186,
2250    -3.5749405256049052], [0.95871040462842316, -2.9408912569945036, 1.671154111231532, -1.6859042910157784], [-1.9016689039927259,
2251    -4.0543118027509619, 1.7409191914027611, 1.7992704725411581]]], [[[4.8748059918500228, -3.2109535160850267, 2.5132752885143272,
2252    -4.5220721330748717], [-3.5946795904440032, 2.9550986164892308, 2.3366659113342241, -1.830283303410567], [1.8574895822311754,
2253    2.8434038998337288, 4.4101370925668331, 1.2387553366937141]], [[0.39377902972405199, 1.1009795786782419, -1.3165687598999645,
2254    -3.3183731093521129], [3.0370904342726526, 3.7020134143909118, 4.6898077548757673, 3.8709642247220248], [3.5187362855296129,
2255    -1.9938034359064871, 0.86424334989254259, 0.82622082781977824]]], [[[2.443577520413406, 1.7811103902825129, 4.3104594566205865,
2256    -0.46348593998584775], [1.2519131997200761, -2.3803701233648624, 3.2863434910999132, -0.95277586683536253],
2257    [-3.7379755865565665, 0.11386770333318452, 0.4419257992398844, 1.5591409014109452]], [[3.1373736276389028, -4.6011668563748511,
2258    0.012935569164921112, 1.8754757728947844], [0.7116556516471757, -4.8795792796619466, 1.7970936720816386, 1.8176893668785628],
2259    [0.13378369318859296, -4.1464542122601289, -0.30919253407308567, 3.1936033080149233]]]]),self.functionspace)
2260          arg0.setTaggedValue(1,numpy.array([[[[-2.5752545375698999, 0.21763548830149659, -0.24087248769822267,
2261    -3.2114557879599079], [0.57699590546700907, -2.0556364308538377, -1.0610327961222357, -3.993137315515737], [1.9165363873422141,
2262    1.1305158547734537, -4.6727011277065316, 3.2468610218798268]], [[1.2599874644844444, -0.43273449711841305, 4.3863149700246691,
2263    1.8040006747435564], [-2.8611246475076522, 1.2688489416081747, -3.7903974069954027, 0.7240886815771006], [1.5249729830082437,
2264    0.51236318403081071, -3.8271421610901513, -4.1359940246528328]]], [[[-4.6212698824412533, -3.8758222403886644,
2265    -0.31455792217787515, 4.2612873845009887], [-3.3314502674753266, 2.8619209963041561, -2.552604395062934, -1.9196994243451537],
2266    [2.9204739684380439, 0.69041716540978548, 0.052012334574987662, -2.377187810552126]], [[-3.5289417755246069,
2267    -3.0632637531348461, 0.24243420054816767, 3.2989986707593228], [4.5227762932585502, 3.5153693618300927, 3.9778614937690584,
2268    -4.2807255734068672], [2.9420271023401234, 4.1408019168701546, 4.0224722423379085, 2.5902491013040665]]],
2269    [[[-0.73398250083622241, 3.5873512282657138, 0.76070289110872746, 1.079154802735351], [-4.9455430434738563, 1.8977224230213894,
2270    -1.7938713824241139, 0.72234058698535542], [-0.61555738406516802, 2.2510985441163385, -2.5437936118518256, 3.439436712560294]],
2271    [[1.0841400617861128, -1.6117980259100206, 3.7870225863291775, 0.88038632923927462], [1.0981013695896946, -3.0404445271306821,
2272    3.3477956146500887, -0.77883732568979802], [-1.9348980004567853, -2.8835451055953421, 2.1220700699769175,
2273    -2.572383937263174]]]]))
2274        arg1=Data(-1.12990383074,self.functionspace)        arg1=Data(-1.12990383074,self.functionspace)
2275        arg1.setTaggedValue(1,0.99139756726)        arg1.setTaggedValue(1,0.99139756726)
2276        arg1.expand()        arg1.expand()
2277        res=arg0+arg1        res=arg0+arg1
2278        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2279        ref=msk_ref*numpy.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)*numpy.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*numpy.array([[[[-3.1121716544045164, 3.622028088090238, 0.82266414255656395, -0.23184262676943534],
2280    [-2.6058480584037915, -1.1487973163221832, -1.1715634478354251, 0.085995842591148008], [-5.0414864822328749,
2281    -2.1409045358762238, 2.4960417338003968, -0.47922702097300229]], [[3.706558633438727, -0.56645600824878661,
2282    -0.48211147132158905, -4.7048443563493265], [-0.17119342611599775, -4.0707950877389241, 0.5412502804871111,
2283    -2.8158081217601993], [-3.0315727347371468, -5.1842156334953824, 0.61101536065834017, 0.66936664179673722]]],
2284    [[[3.7449021611056019, -4.3408573468294476, 1.3833714577699063, -5.651975963819293], [-4.7245834211884237, 1.8251947857448099,
2285    1.2067620805898032, -2.9601871341549879], [0.72758575148675453, 1.7135000690893079, 3.2802332618224121, 0.10885150594929316]],
2286    [[-0.73612480102036892, -0.02892425206617899, -2.4464725906443854, -4.4482769400965338], [1.9071866035282317,
2287    2.5721095836464909, 3.5599039241313464, 2.7410603939776039], [2.388832454785192, -3.123707266650908, -0.26566048085187832,
2288    -0.30368300292464268]]], [[[1.3136736896689851, 0.65120655953809203, 3.1805556258761656, -1.5933897707302687],
2289    [0.12200936897565517, -3.5102739541092833, 2.1564396603554923, -2.0826796975797834], [-4.8678794173009869, -1.0160361274112364,
2290    -0.68797803150453651, 0.42923707066652428]], [[2.0074697968944819, -5.7310706871192725, -1.1169682615794998,
2291    0.74557194215036349], [-0.41824817909724521, -6.009483110406368, 0.6671898413372177, 0.68778553613414184],
2292    [-0.99612013755582796, -5.2763580430045494, -1.4390963648175066,
2293    2.0636994772705024]]]])+(1.-msk_ref)*numpy.array([[[[-1.5838569703103769, 1.2090330555610196, 0.75052507956130032,
2294    -2.2200582207003849], [1.5683934727265321, -1.0642388635943147, -0.069635228862712673, -3.001739748256214],
2295    [2.9079339546017371, 2.1219134220329767, -3.6813035604470086, 4.2382585891393498]], [[2.2513850317439674, 0.55866307014110994,
2296    5.3777125372841921, 2.7953982420030794], [-1.8697270802481292, 2.2602465088676977, -2.7989998397358797, 1.7154862488366236],
2297    [2.5163705502677667, 1.5037607512903337, -2.8357445938306283, -3.1445964573933098]]], [[[-3.6298723151817303,
2298    -2.8844246731291414, 0.67683964508164784, 5.2526849517605116], [-2.3400527002158036, 3.8533185635636791, -1.561206827803411,
2299    -0.92830185708563073], [3.9118715356975668, 1.6818147326693085, 1.0434099018345107, -1.385790243292603]],
2300    [[-2.5375442082650839, -2.0718661858753231, 1.2338317678076907, 4.2903962380188458], [5.5141738605180732, 4.5067669290896157,
2301    4.9692590610285814, -3.2893280061473442], [3.9334246695996464, 5.1321994841296776, 5.0138698095974314, 3.5816466685635895]]],
2302    [[[0.25741506642330059, 4.5787487955252368, 1.7521004583682505, 2.070552369994874], [-3.9541454762143333, 2.8891199902809124,
2303    -0.80247381516459093, 1.7137381542448784], [0.37584018319435497, 3.2424961113758615, -1.5523960445923026, 4.430834279819817]],
2304</