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

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

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

revision 395 by gross, Wed Dec 21 02:41:59 2005 UTC revision 396 by gross, Wed Dec 21 05:08:25 2005 UTC
# Line 13347  class Test_util_binary_with_tagged_data( Line 13347  class Test_util_binary_with_tagged_data(
13347        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
13348        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
13349        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13350       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13351       def test_maximum_float_rank0_taggedData_rank0(self):
13352          arg0=0.749376761194
13353          arg1=Data(0.0550571660662,self.functionspace)
13354          arg1.setTaggedValue(1,0.574082400833)
13355          res=maximum(arg0,arg1)
13356          ref=Data(0.749376761194,self.functionspace)
13357          ref.setTaggedValue(1,0.749376761194)
13358          self.failUnless(isinstance(res,Data),"wrong type of result.")
13359          self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
13360          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13361       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13362       def test_maximum_float_rank0_taggedData_rank1(self):
13363          arg0=-0.680855544333
13364          arg1=Data(numarray.array([0.67376030731870862, -0.80778821721518979]),self.functionspace)
13365          arg1.setTaggedValue(1,numarray.array([-0.037848835866975516, 0.87213440903157147]))
13366          res=maximum(arg0,arg1)
13367          ref=Data(numarray.array([0.67376030731870862, -0.68085554433347961]),self.functionspace)
13368          ref.setTaggedValue(1,numarray.array([-0.037848835866975516, 0.87213440903157147]))
13369          self.failUnless(isinstance(res,Data),"wrong type of result.")
13370          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
13371          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13372       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13373       def test_maximum_float_rank0_taggedData_rank2(self):
13374          arg0=-0.909239747813
13375          arg1=Data(numarray.array([[-0.64454356812956481, -0.86276994251191574, -0.65475003484092542, 0.49772756092649728, -0.62301147321250361], [-0.25438398978405408, 0.36710307398687525, -0.34346378503873143, 0.25592269950575552, -0.12026356085185963], [0.54205772884656955, -0.43073745100231031, 0.44379518197302503, -0.85039873610355188, -0.10277968817858407], [0.98988818757648045, 0.0012025089604543737, 0.52680589505035313, -0.0097011550684382719, -0.48338662818135369]]),self.functionspace)
13376          arg1.setTaggedValue(1,numarray.array([[0.7668418281811995, 0.58088223900421432, -0.7437776408065091, 0.86419864086959608, -0.4723956335556756], [0.53697589117635824, 0.2711376690963625, -0.98131055778752607, -0.49188560271449933, -0.80938040678345691], [0.52105010002175089, -0.30817215251878882, -0.44885501512912174, 0.55707100193269343, 0.0088579617731630034], [-0.76920443360085389, 0.84064312551950282, -0.68937920661052132, 0.32843690937592629, -0.32067573229901547]]))
13377          res=maximum(arg0,arg1)
13378          ref=Data(numarray.array([[-0.64454356812956481, -0.86276994251191574, -0.65475003484092542, 0.49772756092649728, -0.62301147321250361], [-0.25438398978405408, 0.36710307398687525, -0.34346378503873143, 0.25592269950575552, -0.12026356085185963], [0.54205772884656955, -0.43073745100231031, 0.44379518197302503, -0.85039873610355188, -0.10277968817858407], [0.98988818757648045, 0.0012025089604543737, 0.52680589505035313, -0.0097011550684382719, -0.48338662818135369]]),self.functionspace)
13379          ref.setTaggedValue(1,numarray.array([[0.7668418281811995, 0.58088223900421432, -0.7437776408065091, 0.86419864086959608, -0.4723956335556756], [0.53697589117635824, 0.2711376690963625, -0.9092397478133023, -0.49188560271449933, -0.80938040678345691], [0.52105010002175089, -0.30817215251878882, -0.44885501512912174, 0.55707100193269343, 0.0088579617731630034], [-0.76920443360085389, 0.84064312551950282, -0.68937920661052132, 0.32843690937592629, -0.32067573229901547]]))
13380          self.failUnless(isinstance(res,Data),"wrong type of result.")
13381          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
13382          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13383       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13384       def test_maximum_float_rank0_taggedData_rank3(self):
13385          arg0=0.249424174179
13386          arg1=Data(numarray.array([[[0.46754350221048768, -0.0073365002244627497], [0.8317337297696763, -0.10363370033103259]], [[0.51665498962708267, -0.71530066676331061], [0.63627740305765257, 0.41496430034083032]], [[-0.79504585189406951, -0.026351466709852778], [0.67263108755904, -0.51771009361603881]], [[-0.44083971000942612, 0.41952031191027528], [-0.34095817640025805, 0.26541265647867629]], [[-0.7345904848224849, -0.51133348832345904], [-0.0079815304116552799, -0.83616722215923511]], [[-0.63542863975090969, -0.026519165942767264], [0.79422556870657468, -0.21553699106415625]]]),self.functionspace)
13387          arg1.setTaggedValue(1,numarray.array([[[0.77925049701239635, 0.050615725840031045], [0.99903673790220382, -0.52104306227264607]], [[0.5655662287691956, -0.79521425247232047], [-0.9255830796185045, 0.44873538443219596]], [[0.14311466150804653, -0.060513820338312874], [-0.037702316714060879, -0.9214627922508023]], [[0.7249495132205459, 0.71780977359732856], [0.081651919414779339, -0.47637153816118616]], [[0.57853885909055536, 0.68400129002489174], [-0.23444447635966981, 0.92630085486080049]], [[0.49991894177161522, 0.2545702276318178], [-0.93871928511281189, -0.12168727526156964]]]))
13388          res=maximum(arg0,arg1)
13389          ref=Data(numarray.array([[[0.46754350221048768, 0.24942417417927998], [0.8317337297696763, 0.24942417417927998]], [[0.51665498962708267, 0.24942417417927998], [0.63627740305765257, 0.41496430034083032]], [[0.24942417417927998, 0.24942417417927998], [0.67263108755904, 0.24942417417927998]], [[0.24942417417927998, 0.41952031191027528], [0.24942417417927998, 0.26541265647867629]], [[0.24942417417927998, 0.24942417417927998], [0.24942417417927998, 0.24942417417927998]], [[0.24942417417927998, 0.24942417417927998], [0.79422556870657468, 0.24942417417927998]]]),self.functionspace)
13390          ref.setTaggedValue(1,numarray.array([[[0.77925049701239635, 0.24942417417927998], [0.99903673790220382, 0.24942417417927998]], [[0.5655662287691956, 0.24942417417927998], [0.24942417417927998, 0.44873538443219596]], [[0.24942417417927998, 0.24942417417927998], [0.24942417417927998, 0.24942417417927998]], [[0.7249495132205459, 0.71780977359732856], [0.24942417417927998, 0.24942417417927998]], [[0.57853885909055536, 0.68400129002489174], [0.24942417417927998, 0.92630085486080049]], [[0.49991894177161522, 0.2545702276318178], [0.24942417417927998, 0.24942417417927998]]]))
13391          self.failUnless(isinstance(res,Data),"wrong type of result.")
13392          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
13393          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13394       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13395       def test_maximum_float_rank0_taggedData_rank4(self):
13396          arg0=0.480003299289
13397          arg1=Data(numarray.array([[[[-0.36477176076547235, 0.6785411283629923, -0.6550000926385362, 0.61482412056032998], [-0.66613998431222687, 0.69991594974851945, -0.57939029525197538, 0.56994720938299581], [-0.39451657149433483, -0.20256475913692462, -0.61009320061752392, -0.35350439670959632]], [[-0.37742676281496412, 0.45279923826324686, -0.037031221267454617, 0.67735513734586728], [-0.021014665692789203, 0.47035321194035218, 0.55088403325705326, -0.34775231887863445], [0.20870317515573, -0.36665613391867447, 0.095218795896232944, -0.54483047001137863]]], [[[-0.46639778146125033, 0.39471356375867428, -0.19056338855266453, -0.36746350047000242], [0.30833043988102937, -0.085558178128796847, 0.97499474706442957, 0.73081769699119969], [0.11433855209802335, 0.13402598839960378, 0.031760127929625126, 0.78129823610024118]], [[0.14654407753049825, -0.2634255554407301, -0.44538459691394205, -0.16782739716365436], [0.21400945173068164, 0.58638523605963311, -0.55089817298428345, 0.27921003357182284], [-0.84255501661397769, 0.351422823005475, -0.88008992497756089, 0.2324122529746071]]], [[[-0.94380389642852602, 0.87809214287099713, -0.74741279742314837, 0.78230888486504302], [0.40306143996895361, 0.68965156317024512, -0.24266261187782501, 0.13202562682568852], [-0.45564220471240868, 0.69736990248179698, 0.49809031191600606, -0.96164413094941792]], [[-0.48082818059383925, 0.21316275824960762, -0.99622086107244501, -0.014050265407334672], [-0.37310441558193275, 0.71984262885649453, -0.079540037845887035, -0.57283688478967587], [-0.95972352401364658, -0.51998802141851974, -0.75860324851962946, -0.018953701074107654]]]]),self.functionspace)
13398          arg1.setTaggedValue(1,numarray.array([[[[0.9956445974414001, -0.53948138473896767, 0.5178416086515607, 0.32328684791328821], [0.028268824462836628, 0.33772417131459154, -0.005317112328966811, -0.78109210501383752], [0.2612130974710416, -0.42205687106802836, -0.83270340528142173, -0.54599030528474102]], [[0.82336183430657828, -0.082255277137609273, -0.08063835783906681, 0.024319678422843882], [-0.78846515048027266, -0.54877385857319627, -0.80885038971713841, 0.9289263563726422], [-0.59482932749842954, 0.80857551447868814, 0.68226134967843088, 0.20193842581342025]]], [[[-0.86912586595496433, -0.83743169899808945, 0.67841274474353441, 0.10871334160379598], [0.43412972413801998, -0.56900823017571067, 0.62510220326897636, 0.61870141786141875], [0.66216626903724252, -0.87860985912038769, -0.43002308505447195, -0.64199947923652223]], [[0.37900293554450704, 0.50010977600274975, 0.90287560363233577, -0.89973230366231483], [-0.60816386276352352, -0.16007761683149324, 0.72344042832643463, -0.84043194935396892], [0.99989070044986206, 0.29711802572966928, -0.23578637726200546, -0.40313944331686358]]], [[[-0.89175114250177034, -0.90809237437177504, 0.86341145611875847, -0.41145936468723887], [-0.46213665195301945, 0.71218535134846528, -0.81488501212875564, 0.99559963582160527], [-0.79663136613755769, -0.95748096116658155, 0.11084198853771476, -0.33412677702670135]], [[0.97375804609899808, -0.71971848129559124, 0.39481171644203195, 0.30735387830906324], [0.72125978200611796, -0.97760329079510155, -0.74732273823629258, 0.22421778333310938], [-0.073938924611220314, 0.24482734141624141, -0.94752876215258675, -0.58098484783514137]]]]))
13399          res=maximum(arg0,arg1)
13400          ref=Data(numarray.array([[[[0.48000329928907992, 0.6785411283629923, 0.48000329928907992, 0.61482412056032998], [0.48000329928907992, 0.69991594974851945, 0.48000329928907992, 0.56994720938299581], [0.48000329928907992, 0.48000329928907992, 0.48000329928907992, 0.48000329928907992]], [[0.48000329928907992, 0.48000329928907992, 0.48000329928907992, 0.67735513734586728], [0.48000329928907992, 0.48000329928907992, 0.55088403325705326, 0.48000329928907992], [0.48000329928907992, 0.48000329928907992, 0.48000329928907992, 0.48000329928907992]]], [[[0.48000329928907992, 0.48000329928907992, 0.48000329928907992, 0.48000329928907992], [0.48000329928907992, 0.48000329928907992, 0.97499474706442957, 0.73081769699119969], [0.48000329928907992, 0.48000329928907992, 0.48000329928907992, 0.78129823610024118]], [[0.48000329928907992, 0.48000329928907992, 0.48000329928907992, 0.48000329928907992], [0.48000329928907992, 0.58638523605963311, 0.48000329928907992, 0.48000329928907992], [0.48000329928907992, 0.48000329928907992, 0.48000329928907992, 0.48000329928907992]]], [[[0.48000329928907992, 0.87809214287099713, 0.48000329928907992, 0.78230888486504302], [0.48000329928907992, 0.68965156317024512, 0.48000329928907992, 0.48000329928907992], [0.48000329928907992, 0.69736990248179698, 0.49809031191600606, 0.48000329928907992]], [[0.48000329928907992, 0.48000329928907992, 0.48000329928907992, 0.48000329928907992], [0.48000329928907992, 0.71984262885649453, 0.48000329928907992, 0.48000329928907992], [0.48000329928907992, 0.48000329928907992, 0.48000329928907992, 0.48000329928907992]]]]),self.functionspace)
13401          ref.setTaggedValue(1,numarray.array([[[[0.9956445974414001, 0.48000329928907992, 0.5178416086515607, 0.48000329928907992], [0.48000329928907992, 0.48000329928907992, 0.48000329928907992, 0.48000329928907992], [0.48000329928907992, 0.48000329928907992, 0.48000329928907992, 0.48000329928907992]], [[0.82336183430657828, 0.48000329928907992, 0.48000329928907992, 0.48000329928907992], [0.48000329928907992, 0.48000329928907992, 0.48000329928907992, 0.9289263563726422], [0.48000329928907992, 0.80857551447868814, 0.68226134967843088, 0.48000329928907992]]], [[[0.48000329928907992, 0.48000329928907992, 0.67841274474353441, 0.48000329928907992], [0.48000329928907992, 0.48000329928907992, 0.62510220326897636, 0.61870141786141875], [0.66216626903724252, 0.48000329928907992, 0.48000329928907992, 0.48000329928907992]], [[0.48000329928907992, 0.50010977600274975, 0.90287560363233577, 0.48000329928907992], [0.48000329928907992, 0.48000329928907992, 0.72344042832643463, 0.48000329928907992], [0.99989070044986206, 0.48000329928907992, 0.48000329928907992, 0.48000329928907992]]], [[[0.48000329928907992, 0.48000329928907992, 0.86341145611875847, 0.48000329928907992], [0.48000329928907992, 0.71218535134846528, 0.48000329928907992, 0.99559963582160527], [0.48000329928907992, 0.48000329928907992, 0.48000329928907992, 0.48000329928907992]], [[0.97375804609899808, 0.48000329928907992, 0.48000329928907992, 0.48000329928907992], [0.72125978200611796, 0.48000329928907992, 0.48000329928907992, 0.48000329928907992], [0.48000329928907992, 0.48000329928907992, 0.48000329928907992, 0.48000329928907992]]]]))
13402          self.failUnless(isinstance(res,Data),"wrong type of result.")
13403          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
13404          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13405       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13406       def test_maximum_array_rank0_taggedData_rank0(self):
13407          arg0=numarray.array(0.186020397663)
13408          arg1=Data(-0.574686137847,self.functionspace)
13409          arg1.setTaggedValue(1,0.450323924159)
13410          res=maximum(arg0,arg1)
13411          ref=Data(0.186020397663,self.functionspace)
13412          ref.setTaggedValue(1,0.450323924159)
13413          self.failUnless(isinstance(res,Data),"wrong type of result.")
13414          self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
13415          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13416       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13417       def test_maximum_array_rank1_taggedData_rank0(self):
13418          arg0=numarray.array([0.43536293548300886, 0.43485056921826382])
13419          arg1=Data(-0.25240823978,self.functionspace)
13420          arg1.setTaggedValue(1,0.838820447873)
13421          res=maximum(arg0,arg1)
13422          ref=Data(numarray.array([0.43536293548300886, 0.43485056921826382]),self.functionspace)
13423          ref.setTaggedValue(1,numarray.array([0.83882044787271215, 0.83882044787271215]))
13424          self.failUnless(isinstance(res,Data),"wrong type of result.")
13425          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
13426          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13427       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13428       def test_maximum_array_rank2_taggedData_rank0(self):
13429          arg0=numarray.array([[0.84128402854693007, 0.60846433427406565, 0.63674444749652159, -0.39358411784212821, -0.035045771880696464], [0.49646587830780975, -0.5793829200595304, -0.75593103545321827, -0.18809037247616267, 0.32299151346286203], [0.69090048049995123, -0.32570079187366696, 0.092799231188626985, -0.92753532762223045, 0.31230629257754283], [-0.96393819072551068, -0.35261580509587387, -0.91486020864761053, 0.64462555941700117, -0.30810563430751992]])
13430          arg1=Data(0.224016817107,self.functionspace)
13431          arg1.setTaggedValue(1,0.493288543973)
13432          res=maximum(arg0,arg1)
13433          ref=Data(numarray.array([[0.84128402854693007, 0.60846433427406565, 0.63674444749652159, 0.22401681710740107, 0.22401681710740107], [0.49646587830780975, 0.22401681710740107, 0.22401681710740107, 0.22401681710740107, 0.32299151346286203], [0.69090048049995123, 0.22401681710740107, 0.22401681710740107, 0.22401681710740107, 0.31230629257754283], [0.22401681710740107, 0.22401681710740107, 0.22401681710740107, 0.64462555941700117, 0.22401681710740107]]),self.functionspace)
13434          ref.setTaggedValue(1,numarray.array([[0.84128402854693007, 0.60846433427406565, 0.63674444749652159, 0.49328854397322552, 0.49328854397322552], [0.49646587830780975, 0.49328854397322552, 0.49328854397322552, 0.49328854397322552, 0.49328854397322552], [0.69090048049995123, 0.49328854397322552, 0.49328854397322552, 0.49328854397322552, 0.49328854397322552], [0.49328854397322552, 0.49328854397322552, 0.49328854397322552, 0.64462555941700117, 0.49328854397322552]]))
13435          self.failUnless(isinstance(res,Data),"wrong type of result.")
13436          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
13437          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13438       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13439       def test_maximum_array_rank3_taggedData_rank0(self):
13440          arg0=numarray.array([[[-0.73832420641101382, -0.89614124503956227], [0.61128733125805956, -0.51119420370932089]], [[-0.71475844944675471, -0.36292614146602653], [-0.73503702643924229, -0.42609282696835105]], [[-0.79290979403430151, -0.47089790577335133], [-0.1888329603711032, -0.69933780891735631]], [[0.34499154911187024, 0.26950694303532163], [-0.84191598788203903, -0.51180786897021413]], [[0.10538186305270592, 0.80248814771570998], [-0.84528294280476457, -0.065054457314116076]], [[0.0981128982664492, -0.22710165145076022], [0.54031990338685731, 0.58491168497345214]]])
13441          arg1=Data(0.70818217473,self.functionspace)
13442          arg1.setTaggedValue(1,-0.555450471204)
13443          res=maximum(arg0,arg1)
13444          ref=Data(numarray.array([[[0.70818217473011602, 0.70818217473011602], [0.70818217473011602, 0.70818217473011602]], [[0.70818217473011602, 0.70818217473011602], [0.70818217473011602, 0.70818217473011602]], [[0.70818217473011602, 0.70818217473011602], [0.70818217473011602, 0.70818217473011602]], [[0.70818217473011602, 0.70818217473011602], [0.70818217473011602, 0.70818217473011602]], [[0.70818217473011602, 0.80248814771570998], [0.70818217473011602, 0.70818217473011602]], [[0.70818217473011602, 0.70818217473011602], [0.70818217473011602, 0.70818217473011602]]]),self.functionspace)
13445          ref.setTaggedValue(1,numarray.array([[[-0.55545047120405466, -0.55545047120405466], [0.61128733125805956, -0.51119420370932089]], [[-0.55545047120405466, -0.36292614146602653], [-0.55545047120405466, -0.42609282696835105]], [[-0.55545047120405466, -0.47089790577335133], [-0.1888329603711032, -0.55545047120405466]], [[0.34499154911187024, 0.26950694303532163], [-0.55545047120405466, -0.51180786897021413]], [[0.10538186305270592, 0.80248814771570998], [-0.55545047120405466, -0.065054457314116076]], [[0.0981128982664492, -0.22710165145076022], [0.54031990338685731, 0.58491168497345214]]]))
13446          self.failUnless(isinstance(res,Data),"wrong type of result.")
13447          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
13448          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13449       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13450       def test_maximum_array_rank4_taggedData_rank0(self):
13451          arg0=numarray.array([[[[0.11153448068840621, -0.56848274975111002, -0.94410595745938508, 0.23561250754911889], [0.83704769356272468, 0.38582533180195089, -0.57371119755119149, -0.3424949955212413], [-0.32286701476399804, -0.45696971352908311, 0.37912500175617692, 0.53133712592956095]], [[-0.93608807105993885, 0.52830038109686384, -0.73259305645056405, 0.83274969889087758], [0.33777563978509728, 0.95199275442344833, -0.87048456555626674, 0.067889619896001285], [0.51373785681450501, 0.048828551321738356, -0.74924306720872602, -0.90632749194292117]]], [[[0.584571816639891, -0.29867811322419247, -0.64912283552775341, -0.37864480895502917], [-0.37633294188661459, -0.53883681914658177, 0.9682466618160066, 0.1958715359898997], [0.53348045673584843, -0.94802817619600055, -0.18144428807382185, -0.7671663000623048]], [[-0.3287191463483623, 0.70058602837689055, 0.5368351345405431, -0.26118657384722122], [-0.36234845428234919, -0.45189798440432738, -0.55574342617233796, -0.34637027849253021], [0.67898209443156876, 0.94690687672788543, 0.49000742427290844, 0.25547087835907645]]], [[[0.16510906047036444, 0.67631930672069496, -0.84828623051608787, 0.0018374299653354242], [0.13125191332528208, -0.27403094341367984, -0.26003413883030069, -0.29371169796284158], [-0.086582930823249749, -0.33379290778756432, 0.59204208885925458, 0.26032937226889308]], [[0.74325122791607612, -0.11136111817292083, 0.57497847778268119, -0.12766528515340192], [-0.48518691912389311, -0.91547170505064601, 0.22013513700087417, -0.20573158170436878], [0.15002537658554727, 0.69803769385007075, -0.76683761137817141, 0.53718304990791577]]]])
13452          arg1=Data(-0.559564751892,self.functionspace)
13453          arg1.setTaggedValue(1,0.177106951604)
13454          res=maximum(arg0,arg1)
13455          ref=Data(numarray.array([[[[0.11153448068840621, -0.55956475189212518, -0.55956475189212518, 0.23561250754911889], [0.83704769356272468, 0.38582533180195089, -0.55956475189212518, -0.3424949955212413], [-0.32286701476399804, -0.45696971352908311, 0.37912500175617692, 0.53133712592956095]], [[-0.55956475189212518, 0.52830038109686384, -0.55956475189212518, 0.83274969889087758], [0.33777563978509728, 0.95199275442344833, -0.55956475189212518, 0.067889619896001285], [0.51373785681450501, 0.048828551321738356, -0.55956475189212518, -0.55956475189212518]]], [[[0.584571816639891, -0.29867811322419247, -0.55956475189212518, -0.37864480895502917], [-0.37633294188661459, -0.53883681914658177, 0.9682466618160066, 0.1958715359898997], [0.53348045673584843, -0.55956475189212518, -0.18144428807382185, -0.55956475189212518]], [[-0.3287191463483623, 0.70058602837689055, 0.5368351345405431, -0.26118657384722122], [-0.36234845428234919, -0.45189798440432738, -0.55574342617233796, -0.34637027849253021], [0.67898209443156876, 0.94690687672788543, 0.49000742427290844, 0.25547087835907645]]], [[[0.16510906047036444, 0.67631930672069496, -0.55956475189212518, 0.0018374299653354242], [0.13125191332528208, -0.27403094341367984, -0.26003413883030069, -0.29371169796284158], [-0.086582930823249749, -0.33379290778756432, 0.59204208885925458, 0.26032937226889308]], [[0.74325122791607612, -0.11136111817292083, 0.57497847778268119, -0.12766528515340192], [-0.48518691912389311, -0.55956475189212518, 0.22013513700087417, -0.20573158170436878], [0.15002537658554727, 0.69803769385007075, -0.55956475189212518, 0.53718304990791577]]]]),self.functionspace)
13456          ref.setTaggedValue(1,numarray.array([[[[0.17710695160418588, 0.17710695160418588, 0.17710695160418588, 0.23561250754911889], [0.83704769356272468, 0.38582533180195089, 0.17710695160418588, 0.17710695160418588], [0.17710695160418588, 0.17710695160418588, 0.37912500175617692, 0.53133712592956095]], [[0.17710695160418588, 0.52830038109686384, 0.17710695160418588, 0.83274969889087758], [0.33777563978509728, 0.95199275442344833, 0.17710695160418588, 0.17710695160418588], [0.51373785681450501, 0.17710695160418588, 0.17710695160418588, 0.17710695160418588]]], [[[0.584571816639891, 0.17710695160418588, 0.17710695160418588, 0.17710695160418588], [0.17710695160418588, 0.17710695160418588, 0.9682466618160066, 0.1958715359898997], [0.53348045673584843, 0.17710695160418588, 0.17710695160418588, 0.17710695160418588]], [[0.17710695160418588, 0.70058602837689055, 0.5368351345405431, 0.17710695160418588], [0.17710695160418588, 0.17710695160418588, 0.17710695160418588, 0.17710695160418588], [0.67898209443156876, 0.94690687672788543, 0.49000742427290844, 0.25547087835907645]]], [[[0.17710695160418588, 0.67631930672069496, 0.17710695160418588, 0.17710695160418588], [0.17710695160418588, 0.17710695160418588, 0.17710695160418588, 0.17710695160418588], [0.17710695160418588, 0.17710695160418588, 0.59204208885925458, 0.26032937226889308]], [[0.74325122791607612, 0.17710695160418588, 0.57497847778268119, 0.17710695160418588], [0.17710695160418588, 0.17710695160418588, 0.22013513700087417, 0.17710695160418588], [0.17710695160418588, 0.69803769385007075, 0.17710695160418588, 0.53718304990791577]]]]))
13457          self.failUnless(isinstance(res,Data),"wrong type of result.")
13458          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
13459          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13460       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13461       def test_maximum_array_rank0_taggedData_rank1(self):
13462          arg0=numarray.array(-0.796368420403)
13463          arg1=Data(numarray.array([0.12072095401364846, 0.23516273087246264]),self.functionspace)
13464          arg1.setTaggedValue(1,numarray.array([0.36057840054987578, -0.63546172502583143]))
13465          res=maximum(arg0,arg1)
13466          ref=Data(numarray.array([0.12072095401364846, 0.23516273087246264]),self.functionspace)
13467          ref.setTaggedValue(1,numarray.array([0.36057840054987578, -0.63546172502583143]))
13468          self.failUnless(isinstance(res,Data),"wrong type of result.")
13469          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
13470          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13471       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13472       def test_maximum_array_rank1_taggedData_rank1(self):
13473          arg0=numarray.array([0.47256141691521192, -0.55089126102487307])
13474          arg1=Data(numarray.array([-0.97331785689805672, 0.49899386181139893]),self.functionspace)
13475          arg1.setTaggedValue(1,numarray.array([0.30337503223254658, 0.86872548623120083]))
13476          res=maximum(arg0,arg1)
13477          ref=Data(numarray.array([0.47256141691521192, 0.49899386181139893]),self.functionspace)
13478          ref.setTaggedValue(1,numarray.array([0.47256141691521192, 0.86872548623120083]))
13479          self.failUnless(isinstance(res,Data),"wrong type of result.")
13480          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
13481          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13482       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13483       def test_maximum_array_rank0_taggedData_rank2(self):
13484          arg0=numarray.array(-0.376582891747)
13485          arg1=Data(numarray.array([[-0.06174903893753414, -0.92016879375268323, -0.27007458489560476, -0.19244852024769976, 0.888209024082524], [0.98249722533714756, -0.52250379927822754, -0.76353277595214974, 0.36158823840457521, -0.26901014579527827], [-0.69708891177632948, 0.044279174139640887, 0.88583224269563821, -0.044382811075480033, 0.90970378806785535], [0.57477947973781496, -0.35937609437864504, -0.35316552129869594, 0.54728029845119486, -0.23308921281994333]]),self.functionspace)
13486          arg1.setTaggedValue(1,numarray.array([[0.42737094802805919, -0.12900070570946287, -0.21540646839749877, 0.80575283763774186, 0.71043096806397044], [-0.65628221246896223, 0.039178585521630227, -0.53870332811126009, 0.28918473289278279, 0.38824704060470849], [0.44794932984344982, -0.39920729763965057, -0.33862905380276187, -0.46598074851492099, 0.52981562043331465], [0.045044532113411195, -0.46767008450238334, -0.86198767388285402, 0.2897022314053268, -0.36626590872147324]]))
13487          res=maximum(arg0,arg1)
13488          ref=Data(numarray.array([[-0.06174903893753414, -0.37658289174742876, -0.27007458489560476, -0.19244852024769976, 0.888209024082524], [0.98249722533714756, -0.37658289174742876, -0.37658289174742876, 0.36158823840457521, -0.26901014579527827], [-0.37658289174742876, 0.044279174139640887, 0.88583224269563821, -0.044382811075480033, 0.90970378806785535], [0.57477947973781496, -0.35937609437864504, -0.35316552129869594, 0.54728029845119486, -0.23308921281994333]]),self.functionspace)
13489          ref.setTaggedValue(1,numarray.array([[0.42737094802805919, -0.12900070570946287, -0.21540646839749877, 0.80575283763774186, 0.71043096806397044], [-0.37658289174742876, 0.039178585521630227, -0.37658289174742876, 0.28918473289278279, 0.38824704060470849], [0.44794932984344982, -0.37658289174742876, -0.33862905380276187, -0.37658289174742876, 0.52981562043331465], [0.045044532113411195, -0.37658289174742876, -0.37658289174742876, 0.2897022314053268, -0.36626590872147324]]))
13490          self.failUnless(isinstance(res,Data),"wrong type of result.")
13491          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
13492          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13493       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13494       def test_maximum_array_rank2_taggedData_rank2(self):
13495          arg0=numarray.array([[0.16007677616632399, -0.24093574180704302, 0.97122223227264759, 0.57952946654876425, -0.29555507311215012], [-0.51591090261269823, 0.85158609912100869, 0.13118192616012547, -0.72318685403466954, 0.0015537171664505856], [-0.0046800859495694791, -0.68948711226486581, 0.41927431327567155, 0.81022506490223312, -0.83452299576297073], [-0.54213499820282918, -0.058122838204531346, 0.86174319866742888, -0.6582800347578075, -0.19690324064813902]])
13496          arg1=Data(numarray.array([[-0.21804427548199468, -0.5864764312678763, -0.94915833269956917, -0.17281941846598614, -0.13679738347556603], [-0.66948509054351835, 0.57073476819336699, -0.79688344499053021, -0.56584458860304054, 0.69312654964886722], [0.4609932477085219, 0.62494960993282711, 0.090223484562575784, -0.37654323175965732, 0.6186313301960964], [0.34893476475996565, -0.99038635805361386, -0.94992136203826849, -0.41189587896053292, 0.97347600797930545]]),self.functionspace)
13497          arg1.setTaggedValue(1,numarray.array([[0.40788844279118819, -0.598482499891414, 0.64149530686047451, -0.85467158756555683, 0.45904264183891841], [-0.36422260646062043, 0.12069256732618694, 0.076601332168098279, 0.71333906642589984, 0.1794213765386079], [-0.2035205862884899, -0.47037011549699215, 0.51669193270339453, 0.43180534317612906, 0.77229176619101914], [0.55915035273612346, -0.64818211782070634, 0.084357768324000437, -0.70545826604604112, 0.72414456159416063]]))
13498          res=maximum(arg0,arg1)
13499          ref=Data(numarray.array([[0.16007677616632399, -0.24093574180704302, 0.97122223227264759, 0.57952946654876425, -0.13679738347556603], [-0.51591090261269823, 0.85158609912100869, 0.13118192616012547, -0.56584458860304054, 0.69312654964886722], [0.4609932477085219, 0.62494960993282711, 0.41927431327567155, 0.81022506490223312, 0.6186313301960964], [0.34893476475996565, -0.058122838204531346, 0.86174319866742888, -0.41189587896053292, 0.97347600797930545]]),self.functionspace)
13500          ref.setTaggedValue(1,numarray.array([[0.40788844279118819, -0.24093574180704302, 0.97122223227264759, 0.57952946654876425, 0.45904264183891841], [-0.36422260646062043, 0.85158609912100869, 0.13118192616012547, 0.71333906642589984, 0.1794213765386079], [-0.0046800859495694791, -0.47037011549699215, 0.51669193270339453, 0.81022506490223312, 0.77229176619101914], [0.55915035273612346, -0.058122838204531346, 0.86174319866742888, -0.6582800347578075, 0.72414456159416063]]))
13501          self.failUnless(isinstance(res,Data),"wrong type of result.")
13502          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
13503          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13504       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13505       def test_maximum_array_rank0_taggedData_rank3(self):
13506          arg0=numarray.array(0.676688967795)
13507          arg1=Data(numarray.array([[[0.17710255673529685, -0.98616482925104432], [-0.18593698135976156, -0.08830113270196116]], [[-0.19176188484489076, 0.46447992323848686], [-0.21055292006775717, -0.40155718736176915]], [[-0.48016199982715557, -0.25416306925664744], [0.89792509419334232, -0.60096716111156745]], [[-0.16453085934336853, 0.75811874187950168], [-0.41550358559945688, 0.41734405318183398]], [[-0.72700659300295278, 0.24800660476870395], [0.58588385527690479, 0.26746861802302058]], [[0.47753613866069733, 0.53586790882863977], [0.43531878513051114, 0.80308541825369395]]]),self.functionspace)
13508          arg1.setTaggedValue(1,numarray.array([[[-0.33858768282152618, -0.26527226732627351], [0.012672891555068899, -0.59953251167370758]], [[0.80630804067299899, 0.10904683081217437], [0.15983888023859572, -0.19949121957080629]], [[0.76785224435282684, 0.83500596348083422], [-0.81451399601488061, -0.10276250571170853]], [[-0.83989589905521633, -0.55260259622606944], [-0.66349003992417432, -0.49522313511192384]], [[-0.99231611892617533, -0.12589759739925777], [-0.056740787000463255, -0.41209606223364093]], [[-0.026226263289273355, 0.15985474500396335], [-0.90226140217503148, -0.72634292634655884]]]))
13509          res=maximum(arg0,arg1)
13510          ref=Data(numarray.array([[[0.67668896779475474, 0.67668896779475474], [0.67668896779475474, 0.67668896779475474]], [[0.67668896779475474, 0.67668896779475474], [0.67668896779475474, 0.67668896779475474]], [[0.67668896779475474, 0.67668896779475474], [0.89792509419334232, 0.67668896779475474]], [[0.67668896779475474, 0.75811874187950168], [0.67668896779475474, 0.67668896779475474]], [[0.67668896779475474, 0.67668896779475474], [0.67668896779475474, 0.67668896779475474]], [[0.67668896779475474, 0.67668896779475474], [0.67668896779475474, 0.80308541825369395]]]),self.functionspace)
13511          ref.setTaggedValue(1,numarray.array([[[0.67668896779475474, 0.67668896779475474], [0.67668896779475474, 0.67668896779475474]], [[0.80630804067299899, 0.67668896779475474], [0.67668896779475474, 0.67668896779475474]], [[0.76785224435282684, 0.83500596348083422], [0.67668896779475474, 0.67668896779475474]], [[0.67668896779475474, 0.67668896779475474], [0.67668896779475474, 0.67668896779475474]], [[0.67668896779475474, 0.67668896779475474], [0.67668896779475474, 0.67668896779475474]], [[0.67668896779475474, 0.67668896779475474], [0.67668896779475474, 0.67668896779475474]]]))
13512          self.failUnless(isinstance(res,Data),"wrong type of result.")
13513          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
13514          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13515       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13516       def test_maximum_array_rank3_taggedData_rank3(self):
13517          arg0=numarray.array([[[-0.72250606016448571, 0.23069996923721736], [-0.78415077938324207, -0.014398005342852294]], [[0.38352996951071283, 0.83490613125671564], [0.22182384561493884, -0.65282433022556163]], [[0.75149356822193147, -0.048573144954658476], [0.86584999266726381, -0.95055825354290202]], [[0.55268803292578972, -0.5966705009047184], [0.75560638165257443, 0.23607758626660447]], [[-0.080006856532859105, -0.73895343922309187], [0.41731964754099571, 0.65120844155216662]], [[0.038885915750427547, 0.35848348981943512], [-0.85218229982139904, -0.7069783497491402]]])
13518          arg1=Data(numarray.array([[[0.68858614315334288, 0.067352986292107619], [-0.1437896689695235, -0.94233503796062013]], [[-0.40528326755315214, 0.051702683918499526], [-0.88806070543240145, -0.26755995424444134]], [[-0.36726739185307333, 0.16178182217143311], [-0.96632821655816148, -0.56880773054872225]], [[-0.87709133395299954, -0.86568602160756192], [-0.75104128460213149, 0.92447900339143807]], [[-0.21458964468869746, -0.039532819097020111], [-0.22085446558200239, -0.67458439739974918]], [[-0.17517753607455511, 0.88509489531508612], [-0.25705056958719386, 0.42323212474330463]]]),self.functionspace)
13519          arg1.setTaggedValue(1,numarray.array([[[0.24403334335130689, -0.35900007026410075], [0.53303706391801642, 0.91122670565195252]], [[0.42964558654152296, -0.44911303070632891], [-0.084439178201057397, -0.8674668869576474]], [[0.14938488781701675, -0.20554837404478676], [0.67803799258250663, -0.44935931546653274]], [[-0.4549169190064708, 0.12935188987382884], [0.37977906528542915, -0.072264303249091277]], [[0.040287317784536647, 0.3522774793759107], [-0.094167146838618043, 0.64515938462470945]], [[-0.79759199686000182, 0.37624723918955261], [-0.55920172900805998, -0.53910364948531231]]]))
13520          res=maximum(arg0,arg1)
13521          ref=Data(numarray.array([[[0.68858614315334288, 0.23069996923721736], [-0.1437896689695235, -0.014398005342852294]], [[0.38352996951071283, 0.83490613125671564], [0.22182384561493884, -0.26755995424444134]], [[0.75149356822193147, 0.16178182217143311], [0.86584999266726381, -0.56880773054872225]], [[0.55268803292578972, -0.5966705009047184], [0.75560638165257443, 0.92447900339143807]], [[-0.080006856532859105, -0.039532819097020111], [0.41731964754099571, 0.65120844155216662]], [[0.038885915750427547, 0.88509489531508612], [-0.25705056958719386, 0.42323212474330463]]]),self.functionspace)
13522          ref.setTaggedValue(1,numarray.array([[[0.24403334335130689, 0.23069996923721736], [0.53303706391801642, 0.91122670565195252]], [[0.42964558654152296, 0.83490613125671564], [0.22182384561493884, -0.65282433022556163]], [[0.75149356822193147, -0.048573144954658476], [0.86584999266726381, -0.44935931546653274]], [[0.55268803292578972, 0.12935188987382884], [0.75560638165257443, 0.23607758626660447]], [[0.040287317784536647, 0.3522774793759107], [0.41731964754099571, 0.65120844155216662]], [[0.038885915750427547, 0.37624723918955261], [-0.55920172900805998, -0.53910364948531231]]]))
13523          self.failUnless(isinstance(res,Data),"wrong type of result.")
13524          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
13525          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13526       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13527       def test_maximum_array_rank0_taggedData_rank4(self):
13528          arg0=numarray.array(0.311125833111)
13529          arg1=Data(numarray.array([[[[-0.11380560841847664, -0.52603636376884189, 0.56792514441060882, 0.83798273462233097], [0.16448356485497495, -0.12756765129413217, 0.84669010854045879, 0.76857705418208111], [0.96873131593785455, -0.068275868587937216, 0.33504489971259521, -0.3062753491142467]], [[0.51778162970808062, -0.21982301832546169, 0.58686443390997112, -0.4764270683744094], [0.87944180739516353, -0.75934004745918182, -0.17494584440049921, -0.56406799050041179], [0.86972467769939765, 0.13420815149912624, 0.12785705162181449, 0.83326098752044331]]], [[[-0.74362564092020667, 0.94578463545413527, -0.99206707209481237, -0.083099762753271023], [0.87457351803343708, 0.84279130281285841, -0.19255518585809384, 0.54815325971303763], [0.22134480896891096, 0.87105051352679386, -0.83038672103499067, 0.82749351075958266]], [[0.55067474361207625, 0.42561700790653823, -0.34449583562975827, 0.078778405587881739], [0.29673278902895861, 0.18796065134032758, 0.18987802833749678, -0.32829112669317517], [0.21388502146738264, 0.8655016867366514, 0.55542070746423766, 0.13757537381085716]]], [[[-0.11106998893840725, 0.64837734307043626, -0.37988514433104181, 0.91325189424969855], [-0.79152603146630796, 0.31919286120759405, 0.69160091209088659, -0.53149393164900793], [0.3518630180454152, 0.45380620428057838, -0.012464662928450387, -0.58246822596373837]], [[-0.83184081891475703, -0.8235501848477671, 0.978781141858452, 0.8247533415828423], [-0.29355985995534928, -0.77322976392008003, -0.3754791142169922, 0.006609878020302995], [0.92460099408469554, -0.90625803330699584, -0.036477348393576525, 0.37519366885496086]]]]),self.functionspace)
13530          arg1.setTaggedValue(1,numarray.array([[[[-0.67826584193345374, -0.025190054251609917, -0.7091047366392873, -0.71616804590919259], [0.17979962583543152, -0.57645605110264619, -0.95784121866427507, 0.78593377264682118], [-0.038695086837311043, -0.10549446655881156, -0.15355887266597446, 0.8718942192331538]], [[-0.93470293387540271, -0.31361167207603624, 0.154712619988989, -0.53151969823029677], [0.19071572545118776, -0.027541714059774902, 0.15838782243184935, 0.30035678815598121], [0.8528199737608082, 0.12058296861598028, -0.17278398285675256, -0.081901229252531627]]], [[[0.89452608218484864, 0.20712800374880014, -0.38376458150624404, -0.81871180360787088], [0.1315509650511888, 0.83404404867284221, 0.77620626150004779, 0.50876641413890278], [-0.95999267833153579, 0.10805183121243567, -0.6599667442957875, 0.59839211753680988]], [[0.19649778209528579, 0.925081766433828, 0.72071861805547011, 0.58974748494836793], [0.86712395085325977, -0.80528666590519804, -0.14346705146844552, -0.58772903356309159], [0.029226946755463779, 0.59447037646577416, 0.027553622540348321, -0.052019429289529739]]], [[[-0.96069378908671088, -0.38743165706094929, 0.81794356716184624, 0.2392864331125355], [-0.83678472342781207, -0.2768479741775407, 0.037672868643620738, -0.46937001254067989], [-0.22827748875320553, 0.74670501782312049, -0.43256664653545651, 0.69447898637295591]], [[-0.52935095169456226, 0.83607651457566701, -0.71785096129520598, -0.3166494507066886], [-0.7588076609032508, -0.33107609805735194, -0.060247210980912236, 0.60193694229655037], [0.43042160676338992, -0.36237752256376288, -0.32144160911552455, 0.23255100548759855]]]]))
13531          res=maximum(arg0,arg1)
13532          ref=Data(numarray.array([[[[0.31112583311064923, 0.31112583311064923, 0.56792514441060882, 0.83798273462233097], [0.31112583311064923, 0.31112583311064923, 0.84669010854045879, 0.76857705418208111], [0.96873131593785455, 0.31112583311064923, 0.33504489971259521, 0.31112583311064923]], [[0.51778162970808062, 0.31112583311064923, 0.58686443390997112, 0.31112583311064923], [0.87944180739516353, 0.31112583311064923, 0.31112583311064923, 0.31112583311064923], [0.86972467769939765, 0.31112583311064923, 0.31112583311064923, 0.83326098752044331]]], [[[0.31112583311064923, 0.94578463545413527, 0.31112583311064923, 0.31112583311064923], [0.87457351803343708, 0.84279130281285841, 0.31112583311064923, 0.54815325971303763], [0.31112583311064923, 0.87105051352679386, 0.31112583311064923, 0.82749351075958266]], [[0.55067474361207625, 0.42561700790653823, 0.31112583311064923, 0.31112583311064923], [0.31112583311064923, 0.31112583311064923, 0.31112583311064923, 0.31112583311064923], [0.31112583311064923, 0.8655016867366514, 0.55542070746423766, 0.31112583311064923]]], [[[0.31112583311064923, 0.64837734307043626, 0.31112583311064923, 0.91325189424969855], [0.31112583311064923, 0.31919286120759405, 0.69160091209088659, 0.31112583311064923], [0.3518630180454152, 0.45380620428057838, 0.31112583311064923, 0.31112583311064923]], [[0.31112583311064923, 0.31112583311064923, 0.978781141858452, 0.8247533415828423], [0.31112583311064923, 0.31112583311064923, 0.31112583311064923, 0.31112583311064923], [0.92460099408469554, 0.31112583311064923, 0.31112583311064923, 0.37519366885496086]]]]),self.functionspace)
13533          ref.setTaggedValue(1,numarray.array([[[[0.31112583311064923, 0.31112583311064923, 0.31112583311064923, 0.31112583311064923], [0.31112583311064923, 0.31112583311064923, 0.31112583311064923, 0.78593377264682118], [0.31112583311064923, 0.31112583311064923, 0.31112583311064923, 0.8718942192331538]], [[0.31112583311064923, 0.31112583311064923, 0.31112583311064923, 0.31112583311064923], [0.31112583311064923, 0.31112583311064923, 0.31112583311064923, 0.31112583311064923], [0.8528199737608082, 0.31112583311064923, 0.31112583311064923, 0.31112583311064923]]], [[[0.89452608218484864, 0.31112583311064923, 0.31112583311064923, 0.31112583311064923], [0.31112583311064923, 0.83404404867284221, 0.77620626150004779, 0.50876641413890278], [0.31112583311064923, 0.31112583311064923, 0.31112583311064923, 0.59839211753680988]], [[0.31112583311064923, 0.925081766433828, 0.72071861805547011, 0.58974748494836793], [0.86712395085325977, 0.31112583311064923, 0.31112583311064923, 0.31112583311064923], [0.31112583311064923, 0.59447037646577416, 0.31112583311064923, 0.31112583311064923]]], [[[0.31112583311064923, 0.31112583311064923, 0.81794356716184624, 0.31112583311064923], [0.31112583311064923, 0.31112583311064923, 0.31112583311064923, 0.31112583311064923], [0.31112583311064923, 0.74670501782312049, 0.31112583311064923, 0.69447898637295591]], [[0.31112583311064923, 0.83607651457566701, 0.31112583311064923, 0.31112583311064923], [0.31112583311064923, 0.31112583311064923, 0.31112583311064923, 0.60193694229655037], [0.43042160676338992, 0.31112583311064923, 0.31112583311064923, 0.31112583311064923]]]]))
13534          self.failUnless(isinstance(res,Data),"wrong type of result.")
13535          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
13536          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13537       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13538       def test_maximum_array_rank4_taggedData_rank4(self):
13539          arg0=numarray.array([[[[0.002562308848454542, -0.15183306579631028, 0.98594863414905065, 0.38876845683487726], [0.4007939057073524, -0.61845117501699121, 0.076166936848131028, -0.015591623626320272], [-0.79273446558231964, -0.55473573225302553, -0.41571297736559165, 0.65095326433517031]], [[0.44947637187348088, -0.43824637463790883, 0.59212025347785335, 0.83122656474479695], [0.16815843376338746, 0.86135881182639951, -0.58001385281386542, 0.5731565021744669], [-0.29602946815563258, -0.65654195858044173, -0.75908993222687005, 0.67153262857459728]]], [[[0.53270105359196052, 0.41681501901552975, 0.65216139994222622, -0.29509500900305841], [0.4969220496535327, 0.74009856566202825, 0.57487999521149313, -0.57620655762793738], [-0.97940230399260941, 0.42870575165153824, 0.26530113757928153, -0.64739611694503529]], [[-0.55993660619351382, -0.91610169686772269, -0.62434184180422236, -0.85044543351701396], [0.93294937179581128, -0.47490075605930882, -0.21622691984481901, -0.70242417207338548], [-0.70054800697348041, 0.029700481712530369, 0.95248756894557896, -0.58098770763767149]]], [[[0.08563725603405703, -0.95819851282617585, -0.93246587740383946, -0.14391009022025902], [0.08332034850987835, 0.81564051822547845, -0.011370710776029913, 0.79167198558767571], [0.8409260857443146, 0.81010388649627574, -0.40679677438693718, -0.44367130166338664]], [[0.46975488663284981, 0.05538088997511692, 0.28181116603516299, 0.90447077748810889], [-0.70642408692746739, 0.4992217777101422, -0.99634717981272058, -0.52884200664848424], [0.77333208330556524, 0.56890042181004885, -0.95244727861145217, -0.80028684319724563]]]])
13540          arg1=Data(numarray.array([[[[0.58054499777805324, -0.47598878781671305, 0.37745487115494103, 0.86346386289982702], [-0.4626909081905235, 0.014254063410625184, -0.25123319602905769, -0.67848671461907406], [-0.67458112863104391, 0.59481188249674188, 0.1855903882800658, -0.57524218933803528]], [[0.97075290656984614, 0.16518812230083513, 0.4661549238413023, -0.005879778596060925], [0.51026944743156943, -0.74147633490268872, 0.86642643627434413, -0.79228655786465674], [-0.10016904611104449, 0.10634179921641063, 0.76286295106416513, 0.98293391977057043]]], [[[0.17839996211775389, 0.21298275629933117, 0.69149224363506945, -0.55428543693712617], [0.48913167331658802, 0.018632955265404982, 0.4387537222003548, 0.14073064911063438], [-0.47073257735566743, 0.1929703590779297, 0.85828115031564711, -0.75925450525096139]], [[0.11898796887580865, 0.76748540038864843, 0.9448214457725328, -0.68273364410474335], [0.94935905895202488, -0.16029114174550685, 0.13228352829997148, -0.02652730913932988], [0.89412412499107297, 0.53209616105427227, -0.068207385979760948, -0.61863336376472322]]], [[[0.95730262587366943, -0.23248363870347188, 0.2037665282475738, 0.10077571000905672], [0.083645782907106447, 0.94184834016552865, -0.88401938037107586, 0.40619867638887386], [-0.50209859466214346, -0.18628343640311118, -0.19749860763562999, -0.33479540161838761]], [[0.6849636240266086, -0.0035934923854694656, -0.4464547301912174, 0.37996296014871089], [-0.39077173143902422, 0.9696037978571086, 0.051629517904298039, -0.55717317908534847], [-0.92030671214234427, 0.81374302920050434, -0.88471842433117409, 0.66673826387402713]]]]),self.functionspace)
13541          arg1.setTaggedValue(1,numarray.array([[[[0.46744102703542678, 0.11426019985327063, -0.95818837190184869, -0.41338790981571139], [-0.89389222605241336, 0.065334570872593867, 0.41229717310738812, -0.44525868755226172], [0.56601940107973991, -0.20044192033574881, 0.18850452913052274, -0.88982983958745554]], [[-0.17359765631314295, 0.65832785319463571, 0.67597955803042709, 0.9231325328848774], [-0.7498911311405847, -0.28526315575627637, -0.77146496854541513, 0.25772973280054523], [-0.11882481479487961, -0.43717818215821191, -0.25437509001197478, 0.53925719265170136]]], [[[0.99853762861398798, -0.47224890856616453, -0.52303989226703473, 0.54500976485963482], [-0.58664549540218558, 0.18249016687510844, -0.65523027591653316, 0.86864416931978261], [-0.43631906460503922, 0.92153041582750728, 0.36650842247477966, 0.049124199930399293]], [[-0.32913150545945613, -0.43089855138150179, -0.033867704396374432, -0.48656039512906957], [-0.73571516323257558, -0.53026275153578872, 0.36903012401534752, -0.38320259378266464], [-0.7783722490247873, 0.52033011271475549, -0.58536901341864911, -0.96541528120210707]]], [[[-0.66345604741287589, -0.72975738364800025, 0.4078409262878937, 0.30955776485595177], [0.03006948878656468, -0.016997796482028038, 0.82835547548977528, -0.41609286006222757], [-0.85260987990426695, 0.17531606659629317, -0.010257024635147882, -0.012074135891210647]], [[0.62981312625639996, 0.82335516087640093, 0.059496654950929706, 0.35375705041227312], [0.73934844890291229, 0.97585840642752975, -0.84191929190275361, -0.018577171923371605], [0.69038774040910478, -0.026902631136289434, 0.94024116864915763, -0.51150591535662704]]]]))
13542          res=maximum(arg0,arg1)
13543          ref=Data(numarray.array([[[[0.58054499777805324, -0.15183306579631028, 0.98594863414905065, 0.86346386289982702], [0.4007939057073524, 0.014254063410625184, 0.076166936848131028, -0.015591623626320272], [-0.67458112863104391, 0.59481188249674188, 0.1855903882800658, 0.65095326433517031]], [[0.97075290656984614, 0.16518812230083513, 0.59212025347785335, 0.83122656474479695], [0.51026944743156943, 0.86135881182639951, 0.86642643627434413, 0.5731565021744669], [-0.10016904611104449, 0.10634179921641063, 0.76286295106416513, 0.98293391977057043]]], [[[0.53270105359196052, 0.41681501901552975, 0.69149224363506945, -0.29509500900305841], [0.4969220496535327, 0.74009856566202825, 0.57487999521149313, 0.14073064911063438], [-0.47073257735566743, 0.42870575165153824, 0.85828115031564711, -0.64739611694503529]], [[0.11898796887580865, 0.76748540038864843, 0.9448214457725328, -0.68273364410474335], [0.94935905895202488, -0.16029114174550685, 0.13228352829997148, -0.02652730913932988], [0.89412412499107297, 0.53209616105427227, 0.95248756894557896, -0.58098770763767149]]], [[[0.95730262587366943, -0.23248363870347188, 0.2037665282475738, 0.10077571000905672], [0.083645782907106447, 0.94184834016552865, -0.011370710776029913, 0.79167198558767571], [0.8409260857443146, 0.81010388649627574, -0.19749860763562999, -0.33479540161838761]], [[0.6849636240266086, 0.05538088997511692, 0.28181116603516299, 0.90447077748810889], [-0.39077173143902422, 0.9696037978571086, 0.051629517904298039, -0.52884200664848424], [0.77333208330556524, 0.81374302920050434, -0.88471842433117409, 0.66673826387402713]]]]),self.functionspace)
13544          ref.setTaggedValue(1,numarray.array([[[[0.46744102703542678, 0.11426019985327063, 0.98594863414905065, 0.38876845683487726], [0.4007939057073524, 0.065334570872593867, 0.41229717310738812, -0.015591623626320272], [0.56601940107973991, -0.20044192033574881, 0.18850452913052274, 0.65095326433517031]], [[0.44947637187348088, 0.65832785319463571, 0.67597955803042709, 0.9231325328848774], [0.16815843376338746, 0.86135881182639951, -0.58001385281386542, 0.5731565021744669], [-0.11882481479487961, -0.43717818215821191, -0.25437509001197478, 0.67153262857459728]]], [[[0.99853762861398798, 0.41681501901552975, 0.65216139994222622, 0.54500976485963482], [0.4969220496535327, 0.74009856566202825, 0.57487999521149313, 0.86864416931978261], [-0.43631906460503922, 0.92153041582750728, 0.36650842247477966, 0.049124199930399293]], [[-0.32913150545945613, -0.43089855138150179, -0.033867704396374432, -0.48656039512906957], [0.93294937179581128, -0.47490075605930882, 0.36903012401534752, -0.38320259378266464], [-0.70054800697348041, 0.52033011271475549, 0.95248756894557896, -0.58098770763767149]]], [[[0.08563725603405703, -0.72975738364800025, 0.4078409262878937, 0.30955776485595177], [0.08332034850987835, 0.81564051822547845, 0.82835547548977528, 0.79167198558767571], [0.8409260857443146, 0.81010388649627574, -0.010257024635147882, -0.012074135891210647]], [[0.62981312625639996, 0.82335516087640093, 0.28181116603516299, 0.90447077748810889], [0.73934844890291229, 0.97585840642752975, -0.84191929190275361, -0.018577171923371605], [0.77333208330556524, 0.56890042181004885, 0.94024116864915763, -0.51150591535662704]]]]))
13545          self.failUnless(isinstance(res,Data),"wrong type of result.")
13546          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
13547          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13548       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13549       def test_maximum_Symbol_rank0_taggedData_rank0(self):
13550          arg0=Symbol(shape=())
13551          arg1=Data(0.84812263232,self.functionspace)
13552          arg1.setTaggedValue(1,-0.28968171869)
13553          res=maximum(arg0,arg1)
13554          s0=numarray.array(-0.262171364988)
13555          sub=res.substitute({arg0:s0})
13556          ref=Data(0.84812263232,self.functionspace)
13557          ref.setTaggedValue(1,-0.262171364988)
13558          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
13559          self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
13560          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13561       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13562       def test_maximum_Symbol_rank1_taggedData_rank0(self):
13563          arg0=Symbol(shape=(2,))
13564          arg1=Data(0.612129597537,self.functionspace)
13565          arg1.setTaggedValue(1,-0.148647374738)
13566          res=maximum(arg0,arg1)
13567          s0=numarray.array([-0.2867484761170489, -0.55969117578186522])
13568          sub=res.substitute({arg0:s0})
13569          ref=Data(numarray.array([0.61212959753732443, 0.61212959753732443]),self.functionspace)
13570          ref.setTaggedValue(1,numarray.array([-0.14864737473829481, -0.14864737473829481]))
13571          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
13572          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
13573          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13574       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13575       def test_maximum_Symbol_rank2_taggedData_rank0(self):
13576          arg0=Symbol(shape=(4, 5))
13577          arg1=Data(-0.0363861941024,self.functionspace)
13578          arg1.setTaggedValue(1,0.863792539364)
13579          res=maximum(arg0,arg1)
13580          s0=numarray.array([[-0.1948871413087625, 0.98995034873328192, 0.64280708718536173, 0.10619228249681822, -0.974739866659736], [0.43476189516979091, -0.43021985507445293, -0.15772068338964251, -0.70065031250919207, -0.045284015320026905], [0.28356991544692778, 0.51243868890589139, -0.35179521547178982, -0.95189325698019345, 0.24637779844982988], [-0.56783097231529656, 0.3838835612655449, -0.89695751975949189, -0.11306478430724387, -0.63700714939502756]])
13581          sub=res.substitute({arg0:s0})
13582          ref=Data(numarray.array([[-0.036386194102441483, 0.98995034873328192, 0.64280708718536173, 0.10619228249681822, -0.036386194102441483], [0.43476189516979091, -0.036386194102441483, -0.036386194102441483, -0.036386194102441483, -0.036386194102441483], [0.28356991544692778, 0.51243868890589139, -0.036386194102441483, -0.036386194102441483, 0.24637779844982988], [-0.036386194102441483, 0.3838835612655449, -0.036386194102441483, -0.036386194102441483, -0.036386194102441483]]),self.functionspace)
13583          ref.setTaggedValue(1,numarray.array([[0.86379253936367628, 0.98995034873328192, 0.86379253936367628, 0.86379253936367628, 0.86379253936367628], [0.86379253936367628, 0.86379253936367628, 0.86379253936367628, 0.86379253936367628, 0.86379253936367628], [0.86379253936367628, 0.86379253936367628, 0.86379253936367628, 0.86379253936367628, 0.86379253936367628], [0.86379253936367628, 0.86379253936367628, 0.86379253936367628, 0.86379253936367628, 0.86379253936367628]]))
13584          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
13585          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
13586          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13587       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13588       def test_maximum_Symbol_rank3_taggedData_rank0(self):
13589          arg0=Symbol(shape=(6, 2, 2))
13590          arg1=Data(-0.0933343328235,self.functionspace)
13591          arg1.setTaggedValue(1,0.11017870765)
13592          res=maximum(arg0,arg1)
13593          s0=numarray.array([[[0.94168266178202109, -0.44523825605944212], [-0.5192246428223033, 0.93588538930936882]], [[-0.90344222749950243, -0.55739656557297557], [-0.47082852362049854, -0.030574308496262415]], [[-0.97402129032054141, 0.042524674567743226], [0.042796280167836542, 0.4571941852795387]], [[-0.94071043321243653, 0.095286905429788016], [-0.31423011827884406, 0.72788826351923519]], [[0.91853006461810804, -0.39354243870378647], [0.4105790108209908, -0.26632609170602684]], [[-0.30387819745516564, 0.7740282894102406], [-0.32486397481205587, -0.87879519047462229]]])
13594          sub=res.substitute({arg0:s0})
13595          ref=Data(numarray.array([[[0.94168266178202109, -0.093334332823490573], [-0.093334332823490573, 0.93588538930936882]], [[-0.093334332823490573, -0.093334332823490573], [-0.093334332823490573, -0.030574308496262415]], [[-0.093334332823490573, 0.042524674567743226], [0.042796280167836542, 0.4571941852795387]], [[-0.093334332823490573, 0.095286905429788016], [-0.093334332823490573, 0.72788826351923519]], [[0.91853006461810804, -0.093334332823490573], [0.4105790108209908, -0.093334332823490573]], [[-0.093334332823490573, 0.7740282894102406], [-0.093334332823490573, -0.093334332823490573]]]),self.functionspace)
13596          ref.setTaggedValue(1,numarray.array([[[0.94168266178202109, 0.11017870765034621], [0.11017870765034621, 0.93588538930936882]], [[0.11017870765034621, 0.11017870765034621], [0.11017870765034621, 0.11017870765034621]], [[0.11017870765034621, 0.11017870765034621], [0.11017870765034621, 0.4571941852795387]], [[0.11017870765034621, 0.11017870765034621], [0.11017870765034621, 0.72788826351923519]], [[0.91853006461810804, 0.11017870765034621], [0.4105790108209908, 0.11017870765034621]], [[0.11017870765034621, 0.7740282894102406], [0.11017870765034621, 0.11017870765034621]]]))
13597          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
13598          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
13599          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13600       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13601       def test_maximum_Symbol_rank4_taggedData_rank0(self):
13602          arg0=Symbol(shape=(3, 2, 3, 4))
13603          arg1=Data(-0.26193405905,self.functionspace)
13604          arg1.setTaggedValue(1,0.668154427352)
13605          res=maximum(arg0,arg1)
13606          s0=numarray.array([[[[-0.016116261499966367, 0.58777699099380021, -0.5724259081804095, -0.66076828811055965], [0.28646969571892122, 0.19949297155653389, 0.47009241863057749, -0.065676099924322662], [-0.71475021070258071, -0.6572398705405218, 0.49398303718038905, 0.91418909742664844]], [[0.27035535868944627, 0.50895493538149306, -0.64200890358025831, 0.81987277847410445], [-0.98155510057893269, 0.77924768524853105, -0.99147640091945899, -0.45883623112238103], [0.9465519792795174, -0.26054298021570155, -0.90724105752671069, -0.34522265086892712]]], [[[-0.5251279215645428, 0.0087203136634723677, -0.41451431953108053, -0.3286504673659465], [0.34360009384688373, -0.74223083607868889, -0.10691136157566405, 0.36752943474598809], [0.7338282272406027, 0.93992453667083042, -0.29697766555785532, 0.73571779288530403]], [[0.49185559472999607, -0.24252312241085616, 0.65972820690101486, -0.55935411146880787], [0.10254391527594597, -0.24746642433734101, 0.33943204773277635, 0.9842141202632595], [0.99117677100421853, 0.19485580086198229, 0.65155514738803899, -0.37613280329713095]]], [[[-0.14164072816814843, -0.21750603506456279, 0.53745400986733971, -0.93720682863950988], [-0.34728791790114344, -0.46200823774541289, -0.035148317403053131, -0.87546769010269387], [0.24742213979010241, 0.95402089854725269, -0.96340361608146918, 0.87381030435809581]], [[-0.06208759019560306, -0.37911307919649095, -0.92194432108403945, 0.94151729215677293], [0.0090456762872290764, 0.01411032653003419, -0.035409929266815743, -0.6315681234831334], [-0.6702409218443024, -0.10965589245743046, 0.89454449131457925, -0.7321096082152625]]]])
13607          sub=res.substitute({arg0:s0})
13608          ref=Data(numarray.array([[[[-0.016116261499966367, 0.58777699099380021, -0.26193405905033051, -0.26193405905033051], [0.28646969571892122, 0.19949297155653389, 0.47009241863057749, -0.065676099924322662], [-0.26193405905033051, -0.26193405905033051, 0.49398303718038905, 0.91418909742664844]], [[0.27035535868944627, 0.50895493538149306, -0.26193405905033051, 0.81987277847410445], [-0.26193405905033051, 0.77924768524853105, -0.26193405905033051, -0.26193405905033051], [0.9465519792795174, -0.26054298021570155, -0.26193405905033051, -0.26193405905033051]]], [[[-0.26193405905033051, 0.0087203136634723677, -0.26193405905033051, -0.26193405905033051], [0.34360009384688373, -0.26193405905033051, -0.10691136157566405, 0.36752943474598809], [0.7338282272406027, 0.93992453667083042, -0.26193405905033051, 0.73571779288530403]], [[0.49185559472999607, -0.24252312241085616, 0.65972820690101486, -0.26193405905033051], [0.10254391527594597, -0.24746642433734101, 0.33943204773277635, 0.9842141202632595], [0.99117677100421853, 0.19485580086198229, 0.65155514738803899, -0.26193405905033051]]], [[[-0.14164072816814843, -0.21750603506456279, 0.53745400986733971, -0.26193405905033051], [-0.26193405905033051, -0.26193405905033051, -0.035148317403053131, -0.26193405905033051], [0.24742213979010241, 0.95402089854725269, -0.26193405905033051, 0.87381030435809581]], [[-0.06208759019560306, -0.26193405905033051, -0.26193405905033051, 0.94151729215677293], [0.0090456762872290764, 0.01411032653003419, -0.035409929266815743, -0.26193405905033051], [-0.26193405905033051, -0.10965589245743046, 0.89454449131457925, -0.26193405905033051]]]]),self.functionspace)
13609          ref.setTaggedValue(1,numarray.array([[[[0.66815442735224839, 0.66815442735224839, 0.66815442735224839, 0.66815442735224839], [0.66815442735224839, 0.66815442735224839, 0.66815442735224839, 0.66815442735224839], [0.66815442735224839, 0.66815442735224839, 0.66815442735224839, 0.91418909742664844]], [[0.66815442735224839, 0.66815442735224839, 0.66815442735224839, 0.81987277847410445], [0.66815442735224839, 0.77924768524853105, 0.66815442735224839, 0.66815442735224839], [0.9465519792795174, 0.66815442735224839, 0.66815442735224839, 0.66815442735224839]]], [[[0.66815442735224839, 0.66815442735224839, 0.66815442735224839, 0.66815442735224839], [0.66815442735224839, 0.66815442735224839, 0.66815442735224839, 0.66815442735224839], [0.7338282272406027, 0.93992453667083042, 0.66815442735224839, 0.73571779288530403]], [[0.66815442735224839, 0.66815442735224839, 0.66815442735224839, 0.66815442735224839], [0.66815442735224839, 0.66815442735224839, 0.66815442735224839, 0.9842141202632595], [0.99117677100421853, 0.66815442735224839, 0.66815442735224839, 0.66815442735224839]]], [[[0.66815442735224839, 0.66815442735224839, 0.66815442735224839, 0.66815442735224839], [0.66815442735224839, 0.66815442735224839, 0.66815442735224839, 0.66815442735224839], [0.66815442735224839, 0.95402089854725269, 0.66815442735224839, 0.87381030435809581]], [[0.66815442735224839, 0.66815442735224839, 0.66815442735224839, 0.94151729215677293], [0.66815442735224839, 0.66815442735224839, 0.66815442735224839, 0.66815442735224839], [0.66815442735224839, 0.66815442735224839, 0.89454449131457925, 0.66815442735224839]]]]))
13610          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
13611          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
13612          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13613       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13614       def test_maximum_Symbol_rank0_taggedData_rank1(self):
13615          arg0=Symbol(shape=())
13616          arg1=Data(numarray.array([0.019555272860616535, 0.64448232955651918]),self.functionspace)
13617          arg1.setTaggedValue(1,numarray.array([-0.62114424567719251, 0.22268422805856236]))
13618          res=maximum(arg0,arg1)
13619          s0=numarray.array(0.551690316722)
13620          sub=res.substitute({arg0:s0})
13621          ref=Data(numarray.array([0.55169031672201196, 0.64448232955651918]),self.functionspace)
13622          ref.setTaggedValue(1,numarray.array([0.55169031672201196, 0.55169031672201196]))
13623          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
13624          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
13625          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13626       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13627       def test_maximum_Symbol_rank1_taggedData_rank1(self):
13628          arg0=Symbol(shape=(2,))
13629          arg1=Data(numarray.array([-0.69570985852265466, -0.42595973546265009]),self.functionspace)
13630          arg1.setTaggedValue(1,numarray.array([-0.98763427430770712, -0.9964868363511572]))
13631          res=maximum(arg0,arg1)
13632          s0=numarray.array([-0.20246841273672467, -0.37791773368171766])
13633          sub=res.substitute({arg0:s0})
13634          ref=Data(numarray.array([-0.20246841273672467, -0.37791773368171766]),self.functionspace)
13635          ref.setTaggedValue(1,numarray.array([-0.20246841273672467, -0.37791773368171766]))
13636          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
13637          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
13638          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13639       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13640       def test_maximum_Symbol_rank0_taggedData_rank2(self):
13641          arg0=Symbol(shape=())
13642          arg1=Data(numarray.array([[-0.56471198244606358, -0.35216940124605567, 0.0073785705837849935, -0.29951499337666476, -0.91120213989161702], [-0.91908905323478085, -0.36665654760869693, -0.39877613404988699, -0.67585784202763532, -0.94574174026800439], [0.83758352735060537, 0.83673073560047451, -0.86408113352529892, -0.45506688227698122, -0.18604249039653697], [0.19399318025727208, 0.65036615349143889, -0.68153348134424263, 0.64952810396785576, 0.56767764516662544]]),self.functionspace)
13643          arg1.setTaggedValue(1,numarray.array([[0.89523486493257698, 0.087984775470807408, 0.80748286667780689, -0.22559000698383014, -0.38816540924983234], [-0.55308755510593643, -0.55552378977743366, -0.057821223068663441, 0.29962936658157813, 0.16640894779149296], [0.63320514923852445, 0.84168375022151443, 0.67022457145342407, 0.48394269702744386, -0.46740798075858803], [-0.29024913336346159, -0.74073866702777114, 0.53239922933798423, 0.46459884876560942, -0.54777902344544449]]))
13644          res=maximum(arg0,arg1)
13645          s0=numarray.array(-0.574158533895)
13646          sub=res.substitute({arg0:s0})
13647          ref=Data(numarray.array([[-0.56471198244606358, -0.35216940124605567, 0.0073785705837849935, -0.29951499337666476, -0.57415853389489113], [-0.57415853389489113, -0.36665654760869693, -0.39877613404988699, -0.57415853389489113, -0.57415853389489113], [0.83758352735060537, 0.83673073560047451, -0.57415853389489113, -0.45506688227698122, -0.18604249039653697], [0.19399318025727208, 0.65036615349143889, -0.57415853389489113, 0.64952810396785576, 0.56767764516662544]]),self.functionspace)
13648          ref.setTaggedValue(1,numarray.array([[0.89523486493257698, 0.087984775470807408, 0.80748286667780689, -0.22559000698383014, -0.38816540924983234], [-0.55308755510593643, -0.55552378977743366, -0.057821223068663441, 0.29962936658157813, 0.16640894779149296], [0.63320514923852445, 0.84168375022151443, 0.67022457145342407, 0.48394269702744386, -0.46740798075858803], [-0.29024913336346159, -0.57415853389489113, 0.53239922933798423, 0.46459884876560942, -0.54777902344544449]]))
13649          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
13650          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
13651          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13652       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13653       def test_maximum_Symbol_rank2_taggedData_rank2(self):
13654          arg0=Symbol(shape=(4, 5))
13655          arg1=Data(numarray.array([[-0.29543985641332471, 0.57937313488703368, -0.84575626729474251, -0.69931862961248425, 0.97972029993267329], [-0.71963881581108113, 0.36810312654978916, 0.53873246015248211, -0.69428592416900514, -0.73949280152606911], [-0.42715814686838893, -0.80262251701110254, 0.41769526970440407, 0.62052035969658648, -0.44325936389869458], [0.84763607272959418, 0.085117807634668141, 0.97697342749402383, -0.20264779419497114, 0.84361998654326387]]),self.functionspace)
13656          arg1.setTaggedValue(1,numarray.array([[0.53186526530515255, 0.74552809021371336, -0.13438547473369078, -0.15604672430281696, -0.58258204335412622], [0.81153529533155599, 0.19126122221742325, 0.28902203276690819, -0.0013228307494348446, -0.10093828126477544], [-0.2986730121956731, -0.22538052251778917, 0.69155395109959872, -0.26072994159223861, 0.23848079562918345], [-0.14517793558977199, 0.05103467153141672, -0.94367926147625081, 0.67553495500345173, -0.84403358496673442]]))
13657          res=maximum(arg0,arg1)
13658          s0=numarray.array([[-0.23795366369909066, 0.62841224455188072, -0.013815091505677168, -0.99588656630264305, 0.74178997921689982], [0.45896451523469772, -0.38457610073160109, 0.25139293583528155, -0.43148379710215146, 0.46509988502687993], [0.35621520746084001, -0.28372342947746487, 0.44083777661233703, 0.47671098026428638, -0.27030891623782782], [-0.059452690034993871, -0.018027907908293672, -0.8115352466775525, -0.34346436688555371, 0.71694938047313994]])
13659          sub=res.substitute({arg0:s0})
13660          ref=Data(numarray.array([[-0.23795366369909066, 0.62841224455188072, -0.013815091505677168, -0.69931862961248425, 0.97972029993267329], [0.45896451523469772, 0.36810312654978916, 0.53873246015248211, -0.43148379710215146, 0.46509988502687993], [0.35621520746084001, -0.28372342947746487, 0.44083777661233703, 0.62052035969658648, -0.27030891623782782], [0.84763607272959418, 0.085117807634668141, 0.97697342749402383, -0.20264779419497114, 0.84361998654326387]]),self.functionspace)
13661          ref.setTaggedValue(1,numarray.array([[0.53186526530515255, 0.74552809021371336, -0.013815091505677168, -0.15604672430281696, 0.74178997921689982], [0.81153529533155599, 0.19126122221742325, 0.28902203276690819, -0.0013228307494348446, 0.46509988502687993], [0.35621520746084001, -0.22538052251778917, 0.69155395109959872, 0.47671098026428638, 0.23848079562918345], [-0.059452690034993871, 0.05103467153141672, -0.8115352466775525, 0.67553495500345173, 0.71694938047313994]]))
13662          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
13663          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
13664          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13665       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13666       def test_maximum_Symbol_rank0_taggedData_rank3(self):
13667          arg0=Symbol(shape=())
13668          arg1=Data(numarray.array([[[0.89051048623691909, 0.17121916819453453], [-0.30276097354398979, -0.70421800939892565]], [[0.24801931832186952, 0.51582045639870322], [0.6721184399680562, -0.82227957369235649]], [[-0.71268506664095899, 0.70263230505046659], [-0.79988942444581257, -0.33063326008944638]], [[-0.99562104823347397, -0.4587617157351318], [-0.80283376132104145, 0.21841701057664742]], [[-0.34712126238302177, 0.98503154940624116], [0.85460225708668314, 0.39280894645545539]], [[0.26611031421855857, 0.82703665804319559], [-0.91452824190391357, 0.98042293441077866]]]),self.functionspace)
13669          arg1.setTaggedValue(1,numarray.array([[[-0.90782098220493901, -0.049560000190916442], [-0.84113251335718697, -0.00077204340589243081]], [[0.56705056565769363, -0.42831918585995798], [0.10147354135498565, 0.96178209681725968]], [[0.8633366527403914, 0.51555536001736413], [-0.13086234359168092, 0.45148085282089845]], [[0.42937587156185519, -0.57705220932329193], [-0.014412283006193682, 0.56546984793119526]], [[0.87618693717230101, -0.21129715011104566], [-0.27728876156606375, -0.43060945291881381]], [[0.78616305626878291, 0.2396206547844606], [-0.95245370147382968, -0.41267802362920225]]]))
13670          res=maximum(arg0,arg1)
13671          s0=numarray.array(-0.939853729272)
13672          sub=res.substitute({arg0:s0})
13673          ref=Data(numarray.array([[[0.89051048623691909, 0.17121916819453453], [-0.30276097354398979, -0.70421800939892565]], [[0.24801931832186952, 0.51582045639870322], [0.6721184399680562, -0.82227957369235649]], [[-0.71268506664095899, 0.70263230505046659], [-0.79988942444581257, -0.33063326008944638]], [[-0.93985372927217758, -0.4587617157351318], [-0.80283376132104145, 0.21841701057664742]], [[-0.34712126238302177, 0.98503154940624116], [0.85460225708668314, 0.39280894645545539]], [[0.26611031421855857, 0.82703665804319559], [-0.91452824190391357, 0.98042293441077866]]]),self.functionspace)
13674          ref.setTaggedValue(1,numarray.array([[[-0.90782098220493901, -0.049560000190916442], [-0.84113251335718697, -0.00077204340589243081]], [[0.56705056565769363, -0.42831918585995798], [0.10147354135498565, 0.96178209681725968]], [[0.8633366527403914, 0.51555536001736413], [-0.13086234359168092, 0.45148085282089845]], [[0.42937587156185519, -0.57705220932329193], [-0.014412283006193682, 0.56546984793119526]], [[0.87618693717230101, -0.21129715011104566], [-0.27728876156606375, -0.43060945291881381]], [[0.78616305626878291, 0.2396206547844606], [-0.93985372927217758, -0.41267802362920225]]]))
13675          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
13676          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
13677          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13678       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13679       def test_maximum_Symbol_rank3_taggedData_rank3(self):
13680          arg0=Symbol(shape=(6, 2, 2))
13681          arg1=Data(numarray.array([[[0.69774572439746829, 0.34331062773959919], [-0.050023848713382169, -0.93011105835119001]], [[-0.1157975662458377, 0.81829615425500468], [-0.58328893774567314, -0.97546701382069134]], [[-0.54357464338871186, -0.76834748139681408], [-0.58823652605578292, 0.90355823611089225]], [[0.25750327025268382, -0.1322205435665107], [-0.21356636443781829, 0.13022591698911046]], [[-0.83759708809028877, 0.31364888549616854], [-0.19887008950733343, 0.60556539910470364]], [[0.24170524234020752, 0.153703524802564], [-0.72497492185050083, 0.74528056924977992]]]),self.functionspace)
13682          arg1.setTaggedValue(1,numarray.array([[[0.94965667888850036, -0.82132930586003106], [-0.80126721529338263, -0.027409087032657764]], [[-0.90167304277389082, -0.80078538936485644], [-0.045117219738701086, 0.18193725559344887]], [[0.037596761311985638, -0.6603561087376435], [-0.046682846154652013, -0.6393474114565274]], [[0.27633084686436238, -0.0063573533877141486], [0.21131409285729563, -0.058199328302913411]], [[-0.14268461811659172, -0.52071078614973487], [-0.34682340055650851, 0.60289441262814503]], [[-0.84179962984734469, 0.0045033700394259135], [0.47053680155809596, 0.20524362940061369]]]))
13683          res=maximum(arg0,arg1)
13684          s0=numarray.array([[[0.39798368799058115, 0.93734783450672832], [-0.5403469296732657, -0.68224549338802132]], [[-0.062832976297541032, 0.99474439457829011], [-0.6627013375354478, 0.64909916459240002]], [[-0.15438331126315163, -0.73666565754144986], [0.4067913545235522, -0.13592256133139546]], [[0.67333408488858781, -0.19030680151640955], [0.3049970524705059, -0.72066566142174571]], [[0.02802014558564192, 0.51993813788497634], [-0.98402559010665747, 0.52220759831155728]], [[0.34297656212644001, -0.58364684787475252], [-0.57332184351663651, 0.49228526966715402]]])
13685          sub=res.substitute({arg0:s0})
13686          ref=Data(numarray.array([[[0.69774572439746829, 0.93734783450672832], [-0.050023848713382169, -0.68224549338802132]], [[-0.062832976297541032, 0.99474439457829011], [-0.58328893774567314, 0.64909916459240002]], [[-0.15438331126315163, -0.73666565754144986], [0.4067913545235522, 0.90355823611089225]], [[0.67333408488858781, -0.1322205435665107], [0.3049970524705059, 0.13022591698911046]], [[0.02802014558564192, 0.51993813788497634], [-0.19887008950733343, 0.60556539910470364]], [[0.34297656212644001, 0.153703524802564], [-0.57332184351663651, 0.74528056924977992]]]),self.functionspace)
13687          ref.setTaggedValue(1,numarray.array([[[0.94965667888850036, 0.93734783450672832], [-0.5403469296732657, -0.027409087032657764]], [[-0.062832976297541032, 0.99474439457829011], [-0.045117219738701086, 0.64909916459240002]], [[0.037596761311985638, -0.6603561087376435], [0.4067913545235522, -0.13592256133139546]], [[0.67333408488858781, -0.0063573533877141486], [0.3049970524705059, -0.058199328302913411]], [[0.02802014558564192, 0.51993813788497634], [-0.34682340055650851, 0.60289441262814503]], [[0.34297656212644001, 0.0045033700394259135], [0.47053680155809596, 0.49228526966715402]]]))
13688          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
13689          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
13690          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13691       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13692       def test_maximum_Symbol_rank0_taggedData_rank4(self):
13693          arg0=Symbol(shape=())
13694          arg1=Data(numarray.array([[[[0.43212739651186793, -0.57798453883647061, -0.31021954520606876, 0.50700671855263946], [0.2218668022713477, -0.43278406469679287, 0.081744179175314624, -0.98191258133179615], [-0.16787877480362789, 0.32672714668427782, -0.42553592290314435, -0.25882910587479824]], [[0.87861268016627103, 0.98217534870810752, -0.65262214212520808, -0.31569563432620384], [-0.8425289949424426, -0.14511561382117932, -0.99073492826019738, -0.56036082805492637], [-0.94672669911057095, 0.65752065990322484, -0.25699025658536412, 0.40721408537610548]]], [[[-0.84527697086307385, -0.057189828816642363, -0.24579531321420145, -0.49501855888579405], [0.63026279838470067, 0.97820642051802431, 0.081304398458841742, 0.79849541659314793], [-0.76747026349811498, 0.49890054221335189, -0.93016064468849113, -0.94304660934547324]], [[0.81669553713677701, 0.69530515500207124, -0.36516378825032603, 0.93359680619269003], [0.97995687731647663, 0.60344076170528038, -0.094659881725856154, 0.2346646960069434], [0.013548606998678769, -0.85184500608128633, -0.92369396338195364, -0.22373579216681927]]], [[[0.4149960990750563, 0.47003192489063239, 0.68513376045311269, 0.97886196204344667], [0.64527456891477764, 0.19369938348923266, -0.43916949166056418, -0.69630101394182131], [-0.97968400020310886, 0.13868149907376259, -0.63101984091520014, -0.45949320810841487]], [[-0.81605615679409405, -0.51252875676877863, 0.43096755996592195, -0.64465117684197226], [-0.78302603699808615, -0.5893477486848171, 0.021051056181275785, -0.3336218517659566], [-0.021137399071193386, -0.39408558961130713, -0.30876400423649186, -0.89078883648503271]]]]),self.functionspace)
13695          arg1.setTaggedValue(1,numarray.array([[[[-0.85803449660695685, -0.74107430009296316, -0.29769361805391981, -0.65146510470219687], [0.24660464279721794, -0.96278250071253235, 0.48891456134630351, -0.77969152328415192], [-0.20160828901078576, 0.16473369450401321, 0.34701786033194626, 0.27769584617030985]], [[0.99628404368295986, 0.063633650332764802, -0.51586724462409128, -0.14265161735678888], [-0.11938256007492942, -0.72139016790618404, 0.66500983784526602, -0.38115007955563085], [0.73408439528720448, 0.85714415619950213, 0.82993430959385273, 0.25318952913672299]]], [[[-0.98295479907348793, -0.85916361429637522, 0.6115561365761133, 0.35078497409638776], [-0.84350855595000751, -0.70338735582671474, -0.19588902703270517, -0.1902679622875314], [-0.15429456484677417, 0.89000405509382396, -0.12916356198996937, 0.2118275661655471]], [[-0.0061993736063614691, -0.44477192554741363, -0.034984888745974274, 0.50889744971823569], [0.28153736660346218, -0.084676332096728535, -0.1307520949559855, -0.63910268375262813], [0.4414351100352234, -0.047803563123612225, 0.43234353705270268, 0.40419050384031596]]], [[[-0.62108236894653412, 0.43727750082293637, -0.28434285590932462, -0.8745404090053035], [-0.048838786347637386, 0.42802893233915329, 0.27929427488637737, -0.27869877329032966], [-0.76841607531357781, 0.19689513616851828, -0.24037594303133081, -0.44189634358872065]], [[-0.55445246574731266, -0.37297663231573219, 0.15654336657219448, 0.64209981759709023], [-0.029389295181728281, 0.13062880737515492, -0.13175944510647941, 0.24863975490080747], [-0.64765869908637375, 0.94647583004967584, 0.36036116399767937, -0.20972468563359858]]]]))
13696          res=maximum(arg0,arg1)
13697          s0=numarray.array(0.178252729701)
13698          sub=res.substitute({arg0:s0})
13699          ref=Data(numarray.array([[[[0.43212739651186793, 0.17825272970141737, 0.17825272970141737, 0.50700671855263946], [0.2218668022713477, 0.17825272970141737, 0.17825272970141737, 0.17825272970141737], [0.17825272970141737, 0.32672714668427782, 0.17825272970141737, 0.17825272970141737]], [[0.87861268016627103, 0.98217534870810752, 0.17825272970141737, 0.17825272970141737], [0.17825272970141737, 0.17825272970141737, 0.17825272970141737, 0.17825272970141737], [0.17825272970141737, 0.65752065990322484, 0.17825272970141737, 0.40721408537610548]]], [[[0.17825272970141737, 0.17825272970141737, 0.17825272970141737, 0.17825272970141737], [0.63026279838470067, 0.97820642051802431, 0.17825272970141737, 0.79849541659314793], [0.17825272970141737, 0.49890054221335189, 0.17825272970141737, 0.17825272970141737]], [[0.81669553713677701, 0.69530515500207124, 0.17825272970141737, 0.93359680619269003], [0.97995687731647663, 0.60344076170528038, 0.17825272970141737, 0.2346646960069434], [0.17825272970141737, 0.17825272970141737, 0.17825272970141737, 0.17825272970141737]]], [[[0.4149960990750563, 0.47003192489063239, 0.68513376045311269, 0.97886196204344667], [0.64527456891477764, 0.19369938348923266, 0.17825272970141737, 0.17825272970141737], [0.17825272970141737, 0.17825272970141737, 0.17825272970141737, 0.17825272970141737]], [[0.17825272970141737, 0.17825272970141737, 0.43096755996592195, 0.17825272970141737], [0.17825272970141737, 0.17825272970141737, 0.17825272970141737, 0.17825272970141737], [0.17825272970141737, 0.17825272970141737, 0.17825272970141737, 0.17825272970141737]]]]),self.functionspace)
13700          ref.setTaggedValue(1,numarray.array([[[[0.17825272970141737, 0.17825272970141737, 0.17825272970141737, 0.17825272970141737], [0.24660464279721794, 0.17825272970141737, 0.48891456134630351, 0.17825272970141737], [0.17825272970141737, 0.17825272970141737, 0.34701786033194626, 0.27769584617030985]], [[0.99628404368295986, 0.17825272970141737, 0.17825272970141737, 0.17825272970141737], [0.17825272970141737, 0.17825272970141737, 0.66500983784526602, 0.17825272970141737], [0.73408439528720448, 0.85714415619950213, 0.82993430959385273, 0.25318952913672299]]], [[[0.17825272970141737, 0.17825272970141737, 0.6115561365761133, 0.35078497409638776], [0.17825272970141737, 0.17825272970141737, 0.17825272970141737, 0.17825272970141737], [0.17825272970141737, 0.89000405509382396, 0.17825272970141737, 0.2118275661655471]], [[0.17825272970141737, 0.17825272970141737, 0.17825272970141737, 0.50889744971823569], [0.28153736660346218, 0.17825272970141737, 0.17825272970141737, 0.17825272970141737], [0.4414351100352234, 0.17825272970141737, 0.43234353705270268, 0.40419050384031596]]], [[[0.17825272970141737, 0.43727750082293637, 0.17825272970141737, 0.17825272970141737], [0.17825272970141737, 0.42802893233915329, 0.27929427488637737, 0.17825272970141737], [0.17825272970141737, 0.19689513616851828, 0.17825272970141737, 0.17825272970141737]], [[0.17825272970141737, 0.17825272970141737, 0.17825272970141737, 0.64209981759709023], [0.17825272970141737, 0.17825272970141737, 0.17825272970141737, 0.24863975490080747], [0.17825272970141737, 0.94647583004967584, 0.36036116399767937, 0.17825272970141737]]]]))
13701          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
13702          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
13703          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13704       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13705       def test_maximum_Symbol_rank4_taggedData_rank4(self):
13706          arg0=Symbol(shape=(3, 2, 3, 4))
13707          arg1=Data(numarray.array([[[[-0.88887654438774, -0.5029198109823898, -0.40519650755752434, -0.64813226652803957], [-0.62811586711844569, -0.26647036014939363, -0.10293383874511552, 0.97272464503044853], [-0.4039400846765151, -0.13542615406631664, -0.75859139785984997, 0.033089686984410616]], [[-0.79192398576721024, 0.20623022530175739, -0.19962915021963012, 0.51831190114905623], [0.44591599347235467, -0.1235963929756152, -0.61919032800412444, -0.7585718372564132], [0.70763081192981314, -0.39493256844084379, -0.74574490187799936, 0.20246710868708062]]], [[[-0.99446301904197432, -0.8938280756029866, -0.68540103790297913, -0.44115354335309664], [-0.61560961455316976, -0.11379750026328184, 0.37431402329655783, -0.84103023736165916], [-0.13775089124810225, 0.76755358397203222, 0.29803462548971105, -0.73801353293586014]], [[0.52020215568957262, -0.23609409284624117, -0.72636963326426329, 0.20917977196534343], [-0.50437640533000239, 0.93546691464780296, -0.40381931336789201, 0.84401991544711419], [-0.74789361232819962, 0.49802761739374857, -0.31541808449847708, -0.8830272702206543]]], [[[0.27134279181539878, -0.8351781283249855, 0.11886437587635723, -0.94115262542032796], [0.43209086174850575, -0.53374567314615828, -0.42560216892072211, 0.43593066647145085], [0.55756061399658585, 0.75024246764479252, 0.55372726881391632, -0.015570128555625118]], [[0.34057582915813733, 0.40595310032724785, 0.68465549792431357, 0.31163616647492409], [-0.98171388318542019, 0.60680876623583835, 0.57476966910545624, 0.062602193174523979], [0.97939243668295428, -0.85742407428368961, -0.94025099205395679, 0.13204537014691642]]]]),self.functionspace)
13708          arg1.setTaggedValue(1,numarray.array([[[[0.18771786751342701, 0.421786269408152, 0.1065425528909274, -0.57114588388166743], [0.024302499833004809, -0.90096214783650841, 0.98754130384014549, -0.053432270265082238], [0.14439122828080841, 0.0050798434620062949, -0.68267334133708624, -0.88347392701189764]], [[0.76960365806183395, 0.54980236974034002, 0.20831280202284286, -0.12639569219318592], [-0.10344667109593542, -0.18370300018815278, 0.20020857336449338, 0.070498245506769752], [0.6788938251790273, -0.15305387343924548, -0.039543533643535245, 0.52561012203411828]]], [[[0.68661072306244986, 0.13950585941619886, 0.55096703708469486, -0.64943479056664644], [-0.89608369574147906, 0.67288718408278703, 0.29247750173728848, -0.24717200631421532], [0.88192527915111207, -0.26809287422298267, 0.17939430842264348, 0.91867283061812044]], [[0.23247995225184037, 0.84629990392633259, -0.46891891178144074, -0.27140485455521768], [0.12623724817465831, 0.026815811600696016, -0.27116224747517825, -0.78563135894998459], [-0.37462896107450216, 0.84900420100973251, -0.97899813248151002, -0.42580999366460559]]], [[[-0.47193722274772765, -0.089459642774280423, -0.87217984848288466, 0.0010400760659221575], [0.12628673337558727, 0.0065930441532882078, 0.0014634234881572006, 0.1199665657956841], [0.85645880548486919, -0.062428711763642397, -0.32284292757438715, -0.0047532952285622709]], [[-0.43360439376602233, 0.74146443642926974, 0.20828506067869967, 0.98010495470370795], [0.54871047096433734, -0.35449120139153445, -0.78576081422378841, 0.97393848438820019], [-0.11209340385152156, 0.14920061248126282, 0.82793529692587509, 0.029549153258402461]]]]))
13709          res=maximum(arg0,arg1)
13710          s0=numarray.array([[[[0.14628693131287029, 0.90449208457770314, -0.47261845374492073, -0.040968313288754388], [-0.67678585852701501, 0.786148362512056, -0.52981335351760817, -0.24213456757897256], [-0.59942993831791136, 0.81146686186382277, 0.29420227359076145, -0.42377197341220429]], [[-0.0077029781661337449, 0.41257157753881124, 0.43229749759351876, -0.53427606266644734], [-0.71622073096860306, 0.30610764515875877, -0.96538666115013494, 0.86982864468718613], [-0.75314663584527364, 0.51631088868599795, 0.37132249694691932, 0.47541739524344262]]], [[[-0.76231036408152741, 0.23351071550203462, -0.78424272483338875, -0.71284452721782121], [0.90696145590210953, -0.96133558378624473, 0.10889854808560817, 0.31586298758403508], [-0.17439187480320784, -0.47348120351003398, -0.20368539650084228, 0.6943672489216306]], [[0.086282451408384642, 0.21688876802061352, 0.36731176255888198, -0.31200610504354787], [0.9716377617065155, -0.80116458348221142, 0.80624764700592766, 0.80244956334780904], [-0.63192183189069429, 0.11352096487994889, -0.60105041339613696, 0.63173297628107861]]], [[[-0.16140544086252984, 0.48119644057272759, 0.28779000383028919, -0.41289646254303247], [0.55843794372100519, 0.84651765101977894, -0.43825942598930556, 0.97703926317818923], [0.91250411039271895, -0.74045625461831244, 0.9555021659389884, 0.50416077817747729]], [[-0.38159117137939536, 0.69456667955763884, -0.87315748808386395, 0.15137575810754567], [0.14116641694352094, 0.5563943450171549, -0.77321031356405223, -0.97176725991036839], [-0.57970908639434215, 0.72944713811927397, 0.0011304651050547676, -0.59493811227071802]]]])
13711          sub=res.substitute({arg0:s0})
13712          ref=Data(numarray.array([[[[0.14628693131287029, 0.90449208457770314, -0.40519650755752434, -0.040968313288754388], [-0.62811586711844569, 0.786148362512056, -0.10293383874511552, 0.97272464503044853], [-0.4039400846765151, 0.81146686186382277, 0.29420227359076145, 0.033089686984410616]], [[-0.0077029781661337449, 0.41257157753881124, 0.43229749759351876, 0.51831190114905623], [0.44591599347235467, 0.30610764515875877, -0.61919032800412444, 0.86982864468718613], [0.70763081192981314, 0.51631088868599795, 0.37132249694691932, 0.47541739524344262]]], [[[-0.76231036408152741, 0.23351071550203462, -0.68540103790297913, -0.44115354335309664], [0.90696145590210953, -0.11379750026328184, 0.37431402329655783, 0.31586298758403508], [-0.13775089124810225, 0.76755358397203222, 0.29803462548971105, 0.6943672489216306]], [[0.52020215568957262, 0.21688876802061352, 0.36731176255888198, 0.20917977196534343], [0.9716377617065155, 0.93546691464780296, 0.80624764700592766, 0.84401991544711419], [-0.63192183189069429, 0.49802761739374857, -0.31541808449847708, 0.63173297628107861]]], [[[0.27134279181539878, 0.48119644057272759, 0.28779000383028919, -0.41289646254303247], [0.55843794372100519, 0.84651765101977894, -0.42560216892072211, 0.97703926317818923], [0.91250411039271895, 0.75024246764479252, 0.9555021659389884, 0.50416077817747729]], [[0.34057582915813733, 0.69456667955763884, 0.68465549792431357, 0.31163616647492409], [0.14116641694352094, 0.60680876623583835, 0.57476966910545624, 0.062602193174523979], [0.97939243668295428, 0.72944713811927397, 0.0011304651050547676, 0.13204537014691642]]]]),self.functionspace)
13713          ref.setTaggedValue(1,numarray.array([[[[0.18771786751342701, 0.90449208457770314, 0.1065425528909274, -0.040968313288754388], [0.024302499833004809, 0.786148362512056, 0.98754130384014549, -0.053432270265082238], [0.14439122828080841, 0.81146686186382277, 0.29420227359076145, -0.42377197341220429]], [[0.76960365806183395, 0.54980236974034002, 0.43229749759351876, -0.12639569219318592], [-0.10344667109593542, 0.30610764515875877, 0.20020857336449338, 0.86982864468718613], [0.6788938251790273, 0.51631088868599795, 0.37132249694691932, 0.52561012203411828]]], [[[0.68661072306244986, 0.23351071550203462, 0.55096703708469486, -0.64943479056664644], [0.90696145590210953, 0.67288718408278703, 0.29247750173728848, 0.31586298758403508], [0.88192527915111207, -0.26809287422298267, 0.17939430842264348, 0.91867283061812044]], [[0.23247995225184037, 0.84629990392633259, 0.36731176255888198, -0.27140485455521768], [0.9716377617065155, 0.026815811600696016, 0.80624764700592766, 0.80244956334780904], [-0.37462896107450216, 0.84900420100973251, -0.60105041339613696, 0.63173297628107861]]], [[[-0.16140544086252984, 0.48119644057272759, 0.28779000383028919, 0.0010400760659221575], [0.55843794372100519, 0.84651765101977894, 0.0014634234881572006, 0.97703926317818923], [0.91250411039271895, -0.062428711763642397, 0.9555021659389884, 0.50416077817747729]], [[-0.38159117137939536, 0.74146443642926974, 0.20828506067869967, 0.98010495470370795], [0.54871047096433734, 0.5563943450171549, -0.77321031356405223, 0.97393848438820019], [-0.11209340385152156, 0.72944713811927397, 0.82793529692587509, 0.029549153258402461]]]]))
13714          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
13715          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
13716          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13717       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13718       def test_maximum_constData_rank0_taggedData_rank0(self):
13719          arg0=Data(0.121391948718,self.functionspace)
13720          arg1=Data(0.802207186761,self.functionspace)
13721          arg1.setTaggedValue(1,0.87499740935)
13722          res=maximum(arg0,arg1)
13723          ref=Data(0.802207186761,self.functionspace)
13724          ref.setTaggedValue(1,0.87499740935)
13725          self.failUnless(isinstance(res,Data),"wrong type of result.")
13726          self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
13727          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13728       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13729       def test_maximum_constData_rank1_taggedData_rank0(self):
13730          arg0=Data(numarray.array([-0.74290610332604712, -0.96489954045805582]),self.functionspace)
13731          arg1=Data(-0.302661500287,self.functionspace)
13732          arg1.setTaggedValue(1,-0.487219158279)
13733          res=maximum(arg0,arg1)
13734          ref=Data(numarray.array([-0.30266150028726524, -0.30266150028726524]),self.functionspace)
13735          ref.setTaggedValue(1,numarray.array([-0.48721915827901019, -0.48721915827901019]))
13736          self.failUnless(isinstance(res,Data),"wrong type of result.")
13737          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
13738          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13739       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13740       def test_maximum_constData_rank2_taggedData_rank0(self):
13741          arg0=Data(numarray.array([[0.70540052615388604, -0.31803862075235023, -0.18102391800155959, 0.37733634517100678, -0.26391151583282557], [0.40052661807828494, -0.31762469744963373, -0.0098686953021549506, -0.64867309239665616, 0.48749355773112679], [0.67878884736345357, -0.79014871612611692, -0.26584000949039766, 0.22341585594305524, -0.57916757553408282], [0.16699615231275899, 0.77798872359195337, 0.18718392506650772, 0.23898465447919093, 0.16157925161549902]]),self.functionspace)
13742          arg1=Data(-0.716757633534,self.functionspace)
13743          arg1.setTaggedValue(1,0.502833902765)
13744          res=maximum(arg0,arg1)
13745          ref=Data(numarray.array([[0.70540052615388604, -0.31803862075235023, -0.18102391800155959, 0.37733634517100678, -0.26391151583282557], [0.40052661807828494, -0.31762469744963373, -0.0098686953021549506, -0.64867309239665616, 0.48749355773112679], [0.67878884736345357, -0.71675763353441502, -0.26584000949039766, 0.22341585594305524, -0.57916757553408282], [0.16699615231275899, 0.77798872359195337, 0.18718392506650772, 0.23898465447919093, 0.16157925161549902]]),self.functionspace)
13746          ref.setTaggedValue(1,numarray.array([[0.70540052615388604, 0.50283390276450302, 0.50283390276450302, 0.50283390276450302, 0.50283390276450302], [0.50283390276450302, 0.50283390276450302, 0.50283390276450302, 0.50283390276450302, 0.50283390276450302], [0.67878884736345357, 0.50283390276450302, 0.50283390276450302, 0.50283390276450302, 0.50283390276450302], [0.50283390276450302, 0.77798872359195337, 0.50283390276450302, 0.50283390276450302, 0.50283390276450302]]))
13747          self.failUnless(isinstance(res,Data),"wrong type of result.")
13748          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
13749          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13750       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13751       def test_maximum_constData_rank3_taggedData_rank0(self):
13752          arg0=Data(numarray.array([[[-0.19723925395471054, -0.31633169320843635], [-0.92752364914230578, -0.78685424054218611]], [[-0.69265508023018763, 0.46171880943015298], [-0.55140022193617022, -0.35369538247259791]], [[-0.36099395700596526, 0.95747838116230954], [0.89891384455772738, 0.046475775151562981]], [[0.91738526026264267, -0.57601253734342617], [0.42856864753374091, -0.78730292423599235]], [[-0.27189694644867357, -0.5468765883753437], [0.084656296613520476, -0.31592810273635852]], [[0.10676619450615843, -0.4928679685399866], [0.51063583544931235, 0.42265548609189341]]]),self.functionspace)
13753          arg1=Data(0.135414789959,self.functionspace)
13754          arg1.setTaggedValue(1,0.290722128995)
13755          res=maximum(arg0,arg1)
13756          ref=Data(numarray.array([[[0.13541478995921596, 0.13541478995921596], [0.13541478995921596, 0.13541478995921596]], [[0.13541478995921596, 0.46171880943015298], [0.13541478995921596, 0.13541478995921596]], [[0.13541478995921596, 0.95747838116230954], [0.89891384455772738, 0.13541478995921596]], [[0.91738526026264267, 0.13541478995921596], [0.42856864753374091, 0.13541478995921596]], [[0.13541478995921596, 0.13541478995921596], [0.13541478995921596, 0.13541478995921596]], [[0.13541478995921596, 0.13541478995921596], [0.51063583544931235, 0.42265548609189341]]]),self.functionspace)
13757          ref.setTaggedValue(1,numarray.array([[[0.29072212899522709, 0.29072212899522709], [0.29072212899522709, 0.29072212899522709]], [[0.29072212899522709, 0.46171880943015298], [0.29072212899522709, 0.29072212899522709]], [[0.29072212899522709, 0.95747838116230954], [0.89891384455772738, 0.29072212899522709]], [[0.91738526026264267, 0.29072212899522709], [0.42856864753374091, 0.29072212899522709]], [[0.29072212899522709, 0.29072212899522709], [0.29072212899522709, 0.29072212899522709]], [[0.29072212899522709, 0.29072212899522709], [0.51063583544931235, 0.42265548609189341]]]))
13758          self.failUnless(isinstance(res,Data),"wrong type of result.")
13759          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
13760          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13761       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13762       def test_maximum_constData_rank4_taggedData_rank0(self):
13763          arg0=Data(numarray.array([[[[-0.12458163237947906, -0.59822478664598178, 0.17341920563200719, 0.41623144103464194], [0.20050395598082882, 0.84492937133851398, -0.68660745369533061, 0.81960666534564464], [0.51577768489615017, 0.88086492036408615, 0.78963735691956938, -0.89338404328780441]], [[0.68118201371776976, -0.73850013986141483, 0.95757040152737649, -0.63229876199900747], [-0.70331888242174334, -0.79691061758469872, -0.80500031627132662, -0.79787492241976965], [-0.85968481737238811, -0.39647041135589745, 0.44659800463404631, -0.88510772756112122]]], [[[-0.64416374836090906, 0.62062562363899221, 0.26964189871320698, 0.59423645220954824], [0.035374754592919944, 0.95516521280588274, -0.27026094526942934, -0.81057656724939275], [0.26244861645691842, 0.090637778830348292, 0.4229195698217818, 0.65319208554143326]], [[-0.29987259338263628, 0.16275142756663219, 0.9703193425076746, -0.33882052600541757], [-0.8335242661793445, -0.46420881700311178, -0.37027238936411666, 0.2880813478071087], [-0.15573435137820657, -0.46446688238283662, 0.70397475205135707, -0.95345788469841186]]], [[[-0.63784594818254337, -0.90342686399656413, -0.80175838335550531, 0.34994329009839276], [0.84545583011894587, -0.76575410641336306, 0.66599420476227866, 0.21586993966488643], [-0.29456711132643121, 0.37986828857951127, 0.15820321508940305, 0.80383769939257022]], [[-0.60579491765781501, 0.22779643602248201, -0.3115357278626818, 0.48011732837019672], [-0.18951607090714551, -0.1288740871321179, -0.38397337979444468, 0.11947949282813775], [0.8422139735678178, 0.5801082073730095, 0.53540520324088714, 0.69172984512057445]]]]),self.functionspace)
13764          arg1=Data(-0.853304402567,self.functionspace)
13765          arg1.setTaggedValue(1,-0.598547923213)
13766          res=maximum(arg0,arg1)
13767          ref=Data(numarray.array([[[[-0.12458163237947906, -0.59822478664598178, 0.17341920563200719, 0.41623144103464194], [0.20050395598082882, 0.84492937133851398, -0.68660745369533061, 0.81960666534564464], [0.51577768489615017, 0.88086492036408615, 0.78963735691956938, -0.85330440256659013]], [[0.68118201371776976, -0.73850013986141483, 0.95757040152737649, -0.63229876199900747], [-0.70331888242174334, -0.79691061758469872, -0.80500031627132662, -0.79787492241976965], [-0.85330440256659013, -0.39647041135589745, 0.44659800463404631, -0.85330440256659013]]], [[[-0.64416374836090906, 0.62062562363899221, 0.26964189871320698, 0.59423645220954824], [0.035374754592919944, 0.95516521280588274, -0.27026094526942934, -0.81057656724939275], [0.26244861645691842, 0.090637778830348292, 0.4229195698217818, 0.65319208554143326]], [[-0.29987259338263628, 0.16275142756663219, 0.9703193425076746, -0.33882052600541757], [-0.8335242661793445, -0.46420881700311178, -0.37027238936411666, 0.2880813478071087], [-0.15573435137820657, -0.46446688238283662, 0.70397475205135707, -0.85330440256659013]]], [[[-0.63784594818254337, -0.85330440256659013, -0.80175838335550531, 0.34994329009839276], [0.84545583011894587, -0.76575410641336306, 0.66599420476227866, 0.21586993966488643], [-0.29456711132643121, 0.37986828857951127, 0.15820321508940305, 0.80383769939257022]], [[-0.60579491765781501, 0.22779643602248201, -0.3115357278626818, 0.48011732837019672], [-0.18951607090714551, -0.1288740871321179, -0.38397337979444468, 0.11947949282813775], [0.8422139735678178, 0.5801082073730095, 0.53540520324088714, 0.69172984512057445]]]]),self.functionspace)
13768          ref.setTaggedValue(1,numarray.array([[[[-0.12458163237947906, -0.59822478664598178, 0.17341920563200719, 0.41623144103464194], [0.20050395598082882, 0.84492937133851398, -0.59854792321265093, 0.81960666534564464], [0.51577768489615017, 0.88086492036408615, 0.78963735691956938, -0.59854792321265093]], [[0.68118201371776976, -0.59854792321265093, 0.95757040152737649, -0.59854792321265093], [-0.59854792321265093, -0.59854792321265093, -0.59854792321265093, -0.59854792321265093], [-0.59854792321265093, -0.39647041135589745, 0.44659800463404631, -0.59854792321265093]]], [[[-0.59854792321265093, 0.62062562363899221, 0.26964189871320698, 0.59423645220954824], [0.035374754592919944, 0.95516521280588274, -0.27026094526942934, -0.59854792321265093], [0.26244861645691842, 0.090637778830348292, 0.4229195698217818, 0.65319208554143326]], [[-0.29987259338263628, 0.16275142756663219, 0.9703193425076746, -0.33882052600541757], [-0.59854792321265093, -0.46420881700311178, -0.37027238936411666, 0.2880813478071087], [-0.15573435137820657, -0.46446688238283662, 0.70397475205135707, -0.59854792321265093]]], [[[-0.59854792321265093, -0.59854792321265093, -0.59854792321265093, 0.34994329009839276], [0.84545583011894587, -0.59854792321265093, 0.66599420476227866, 0.21586993966488643], [-0.29456711132643121, 0.37986828857951127, 0.15820321508940305, 0.80383769939257022]], [[-0.59854792321265093, 0.22779643602248201, -0.3115357278626818, 0.48011732837019672], [-0.18951607090714551, -0.1288740871321179, -0.38397337979444468, 0.11947949282813775], [0.8422139735678178, 0.5801082073730095, 0.53540520324088714, 0.69172984512057445]]]]))
13769          self.failUnless(isinstance(res,Data),"wrong type of result.")
13770          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
13771          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13772       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13773       def test_maximum_constData_rank0_taggedData_rank1(self):
13774          arg0=Data(0.191044066235,self.functionspace)
13775          arg1=Data(numarray.array([0.18878917078137847, -0.19256801725704031]),self.functionspace)
13776          arg1.setTaggedValue(1,numarray.array([0.11227902493879283, -0.54746427961671329]))
13777          res=maximum(arg0,arg1)
13778          ref=Data(numarray.array([0.19104406623487868, 0.19104406623487868]),self.functionspace)
13779          ref.setTaggedValue(1,numarray.array([0.19104406623487868, 0.19104406623487868]))
13780          self.failUnless(isinstance(res,Data),"wrong type of result.")
13781          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
13782          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13783       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13784       def test_maximum_constData_rank1_taggedData_rank1(self):
13785          arg0=Data(numarray.array([0.69515429789349747, 0.065493511797723558]),self.functionspace)
13786          arg1=Data(numarray.array([0.80145161365432394, 0.82508591090347627]),self.functionspace)
13787          arg1.setTaggedValue(1,numarray.array([-0.12199277424988386, -0.10766451613470585]))
13788          res=maximum(arg0,arg1)
13789          ref=Data(numarray.array([0.80145161365432394, 0.82508591090347627]),self.functionspace)
13790          ref.setTaggedValue(1,numarray.array([0.69515429789349747, 0.065493511797723558]))
13791          self.failUnless(isinstance(res,Data),"wrong type of result.")
13792          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
13793          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13794       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13795       def test_maximum_constData_rank0_taggedData_rank2(self):
13796          arg0=Data(-0.132887771896,self.functionspace)
13797          arg1=Data(numarray.array([[0.94555830246720896, -0.25406975197643122, -0.15450801717376339, 0.0091071314536093073, -0.73612340527463815], [0.7733172160011812, 0.78435965271730601, -0.38234841008560627, 0.97891965593680164, 0.54502107251024157], [-0.13665535676381957, 0.74368983883655582, 0.72546122427200532, 0.84697528289999302, -0.11539695822929419], [0.29314031525253448, -0.61479198533787383, 0.74438108018186555, 0.55349157033049501, -0.55604746140957273]]),self.functionspace)
13798          arg1.setTaggedValue(1,numarray.array([[0.74056719902765433, 0.10100448304414678, -0.19394562368214108, -0.18626986494349529, 0.11110944753665963], [-0.594418590688228, -0.2254513164133487, 0.27304611299607129, -0.31216213030533524, 0.70300024422937102], [0.74644548826249402, -0.33558121285136999, -0.87468352477362421, 0.70047147996322812, 0.41768429824086595], [0.56691405278146334, -0.75456571237180148, 0.29466306993921654, 0.42022226418575559, -0.5033789428584412]]))
13799          res=maximum(arg0,arg1)
13800          ref=Data(numarray.array([[0.94555830246720896, -0.13288777189649514, -0.13288777189649514, 0.0091071314536093073, -0.13288777189649514], [0.7733172160011812, 0.78435965271730601, -0.13288777189649514, 0.97891965593680164, 0.54502107251024157], [-0.13288777189649514, 0.74368983883655582, 0.72546122427200532, 0.84697528289999302, -0.11539695822929419], [0.29314031525253448, -0.13288777189649514, 0.74438108018186555, 0.55349157033049501, -0.13288777189649514]]),self.functionspace)
13801          ref.setTaggedValue(1,numarray.array([[0.74056719902765433, 0.10100448304414678, -0.13288777189649514, -0.13288777189649514, 0.11110944753665963], [-0.13288777189649514, -0.13288777189649514, 0.27304611299607129, -0.13288777189649514, 0.70300024422937102], [0.74644548826249402, -0.13288777189649514, -0.13288777189649514, 0.70047147996322812, 0.41768429824086595], [0.56691405278146334, -0.13288777189649514, 0.29466306993921654, 0.42022226418575559, -0.13288777189649514]]))
13802          self.failUnless(isinstance(res,Data),"wrong type of result.")
13803          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
13804          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13805       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13806       def test_maximum_constData_rank2_taggedData_rank2(self):
13807          arg0=Data(numarray.array([[-0.044580857181160782, 0.85604091545943461, -0.25709984937220609, 0.9812378409675091, -0.087945933024101475], [-0.66027194325369076, -0.76198389185626691, 0.94940653328555658, -0.92814666543983804, 0.64500125175748702], [-0.29690521970236672, -0.95189473676409109, 0.50233936436037152, -0.23074502514572726, 0.6299701171022043], [-0.12871549934614768, -0.14273943770437558, -0.1234699264157606, -0.56884730200250133, -0.55806124082082254]]),self.functionspace)
13808          arg1=Data(numarray.array([[-0.70032557439728671, -0.51331046006049696, 0.61189140749091431, 0.17391303359656041, -0.6049103609964932], [0.3175485088685106, 0.39873872898640772, 0.15168398697589436, -0.24244996997361667, -0.8342778525661827], [0.43225443660508511, 0.92587936399107118, -0.28137933610758825, -0.081573946800039154, 0.23032873474094195], [0.14015253512761872, -0.90542987774290928, -0.35481530938682071, -0.31148353141201368, -0.055086011367168286]]),self.functionspace)
13809          arg1.setTaggedValue(1,numarray.array([[0.80220668203000312, 0.47476245365311898, -0.5593555139154982, -0.5480764064702115, 0.47892069431381912], [0.80551116244117149, 0.26173910494717467, 0.91103482741194464, -0.37911700884105604, 0.058182537467474704], [-0.76331248508594918, 0.48471594396268713, 0.34686292858310797, 0.72855868759979892, -0.36091715997720097], [-0.87533748179733251, -0.030174504166970539, -0.5690356911726111, 0.23981567354560474, -0.63561344893261262]]))
13810          res=maximum(arg0,arg1)
13811          ref=Data(numarray.array([[-0.044580857181160782, 0.85604091545943461, 0.61189140749091431, 0.9812378409675091, -0.087945933024101475], [0.3175485088685106, 0.39873872898640772, 0.94940653328555658, -0.24244996997361667, 0.64500125175748702], [0.43225443660508511, 0.92587936399107118, 0.50233936436037152, -0.081573946800039154, 0.6299701171022043], [0.14015253512761872, -0.14273943770437558, -0.1234699264157606, -0.31148353141201368, -0.055086011367168286]]),self.functionspace)
13812          ref.setTaggedValue(1,numarray.array([[0.80220668203000312, 0.85604091545943461, -0.25709984937220609, 0.9812378409675091, 0.47892069431381912], [0.80551116244117149, 0.26173910494717467, 0.94940653328555658, -0.37911700884105604, 0.64500125175748702], [-0.29690521970236672, 0.48471594396268713, 0.50233936436037152, 0.72855868759979892, 0.6299701171022043], [-0.12871549934614768, -0.030174504166970539, -0.1234699264157606, 0.23981567354560474, -0.55806124082082254]]))
13813          self.failUnless(isinstance(res,Data),"wrong type of result.")
13814          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
13815          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13816       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13817       def test_maximum_constData_rank0_taggedData_rank3(self):
13818          arg0=Data(-0.891016896475,self.functionspace)
13819          arg1=Data(numarray.array([[[0.9325086027176237, 0.70747828597483564], [-0.51072449936485809, -0.70720876741336847]], [[-0.82083221813359342, 0.37684277951746115], [0.96335665861017694, -0.52166699275939132]], [[-0.64161247297755519, -0.4371207835847859], [-0.0063867228458982517, -0.26244767945153713]], [[-0.702581461681131, 0.76375137652412373], [-0.99445351839562957, -0.83814683135694534]], [[-0.47080166721252348, 0.5731151770230607], [0.64565814437219338, -0.44496251299419121]], [[-0.92182224772813992, -0.35129925337038759], [-0.46113685731971121, 0.70053287717877222]]]),self.functionspace)
13820          arg1.setTaggedValue(1,numarray.array([[[-0.41863886213543844, -0.63035383492945862], [0.46000590292650845, 0.29345092547600005]], [[-0.032355440081924813, -0.82086331932436418], [-0.023719548418603242, -0.7577034515440948]], [[-0.02669531824519833, 0.021735114531001853], [0.27458583187952823, -0.23737890103910586]], [[-0.10580988121991775, -0.6948329873640402], [-0.42026719884892927, 0.91929411913159975]], [[-0.20617136146521964, 0.67749564787621885], [0.58893421052210759, -0.026475337782694286]], [[-0.22401474946665689, -0.94843838439336947], [0.10656878935770209, -0.13495839759094852]]]))
13821          res=maximum(arg0,arg1)
13822          ref=Data(numarray.array([[[0.9325086027176237, 0.70747828597483564], [-0.51072449936485809, -0.70720876741336847]], [[-0.82083221813359342, 0.37684277951746115], [0.96335665861017694, -0.52166699275939132]], [[-0.64161247297755519, -0.4371207835847859], [-0.0063867228458982517, -0.26244767945153713]], [[-0.702581461681131, 0.76375137652412373], [-0.89101689647519033, -0.83814683135694534]], [[-0.47080166721252348, 0.5731151770230607], [0.64565814437219338, -0.44496251299419121]], [[-0.89101689647519033, -0.35129925337038759], [-0.46113685731971121, 0.70053287717877222]]]),self.functionspace)
13823          ref.setTaggedValue(1,numarray.array([[[-0.41863886213543844, -0.63035383492945862], [0.46000590292650845, 0.29345092547600005]], [[-0.032355440081924813, -0.82086331932436418], [-0.023719548418603242, -0.7577034515440948]], [[-0.02669531824519833, 0.021735114531001853], [0.27458583187952823, -0.23737890103910586]], [[-0.10580988121991775, -0.6948329873640402], [-0.42026719884892927, 0.91929411913159975]], [[-0.20617136146521964, 0.67749564787621885], [0.58893421052210759, -0.026475337782694286]], [[-0.22401474946665689, -0.89101689647519033], [0.10656878935770209, -0.13495839759094852]]]))
13824          self.failUnless(isinstance(res,Data),"wrong type of result.")
13825          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
13826          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13827       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13828       def test_maximum_constData_rank3_taggedData_rank3(self):
13829          arg0=Data(numarray.array([[[0.37365671971655501, -0.95866990670637753], [0.58908423455136782, -0.44089893492224141]], [[-0.64212573215482505, -0.96914971933032756], [-0.17049222222538374, 0.15111761979145166]], [[-0.26812991045753631, -0.1882821241490733], [-0.91960941919432271, -0.24676784714716571]], [[0.8224396831862526, -0.4329310126257977], [-0.79463781374347087, 0.57140395354648432]], [[0.24605578055524258, 0.35728530397077574], [-0.97321913541911909, 0.48252745798292751]], [[-0.69818806483253271, -0.61856055423257073], [0.8746971566869024, -0.92535601399166767]]]),self.functionspace)
13830          arg1=Data(numarray.array([[[-0.16070586595581537, -0.26725510149956344], [0.22495113831112179, -0.47410602257703705]], [[-0.55027629698141123, 0.53682890174660725], [-0.71491913027401721, 0.4534849072439433]], [[0.015344558303559852, 0.98796774669442033], [0.43890160098747288, 0.45820587320625106]], [[0.45030491171400988, 0.22168600024660701], [0.27116664173706395, -0.87107827200332744]], [[0.48799286894713179, -0.15687952682290374], [0.044389175568014583, -0.77951047019617503]], [[0.97306453726871589, -0.5587268814786317], [-0.20320541829666805, 0.3678772498851004]]]),self.functionspace)
13831          arg1.setTaggedValue(1,numarray.array([[[-0.0012886532899734071, 0.3150147231932463], [-0.099170559617714149, -0.50900431355155629]], [[-0.82228359777233817, -0.78291417837981081], [-0.0076132178370915682, 0.94214643314267588]], [[-0.13570465826971922, 0.65946407437584154], [0.63329347372632627, 0.16635825714364061]], [[-0.077682415840976571, -0.8750012715662161], [0.039341287290900473, 0.2199617117163728]], [[-0.57709355664844986, -0.25251599432482319], [-0.66217700675770219, -0.71459546673531249]], [[-0.51352836218382314, -0.80480127503459808], [-0.82200032084280461, -0.64848389450301513]]]))
13832          res=maximum(arg0,arg1)
13833          ref=Data(numarray.array([[[0.37365671971655501, -0.26725510149956344], [0.58908423455136782, -0.44089893492224141]], [[-0.55027629698141123, 0.53682890174660725], [-0.17049222222538374, 0.4534849072439433]], [[0.015344558303559852, 0.98796774669442033], [0.43890160098747288, 0.45820587320625106]], [[0.8224396831862526, 0.22168600024660701], [0.27116664173706395, 0.57140395354648432]], [[0.48799286894713179, 0.35728530397077574], [0.044389175568014583, 0.48252745798292751]], [[0.97306453726871589, -0.5587268814786317], [0.8746971566869024, 0.3678772498851004]]]),self.functionspace)
13834          ref.setTaggedValue(1,numarray.array([[[0.37365671971655501, 0.3150147231932463], [0.58908423455136782, -0.44089893492224141]], [[-0.64212573215482505, -0.78291417837981081], [-0.0076132178370915682, 0.94214643314267588]], [[-0.13570465826971922, 0.65946407437584154], [0.63329347372632627, 0.16635825714364061]], [[0.8224396831862526, -0.4329310126257977], [0.039341287290900473, 0.57140395354648432]], [[0.24605578055524258, 0.35728530397077574], [-0.66217700675770219, 0.48252745798292751]], [[-0.51352836218382314, -0.61856055423257073], [0.8746971566869024, -0.64848389450301513]]]))
13835          self.failUnless(isinstance(res,Data),"wrong type of result.")
13836          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
13837          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13838       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13839       def test_maximum_constData_rank0_taggedData_rank4(self):
13840          arg0=Data(-0.935809053062,self.functionspace)
13841          arg1=Data(numarray.array([[[[0.94323367504932754, 0.75043469724469358, 0.23889440516936578, 0.95420440815335872], [-0.56204824740798398, 0.75944243135960021, 0.30627342617954212, 0.63408115161677991], [-0.53382195077039052, -0.07330185156963176, -0.45909932029795142, 0.24646544731995279]], [[-0.18508046873734219, 0.80982790094001689, -0.33239328318495387, 0.13143779990210236], [0.5473229325959208, 0.94720944694356923, -0.715613069945924, -0.31084358313547411], [-0.3634542445783544, 0.36559825061099449, -0.83461079195174914, -0.46670894854169376]]], [[[-0.58310807256385022, 0.50593022547925171, -0.43058191591512407, -0.95895779399621417], [-0.57057964070667411, 0.047984045734246195, -0.2725165401098586, -0.40839044936075131], [-0.70089248436306861, -0.75308454340162045, -0.62801846775423287, 0.57487689894384619]], [[0.076655772437350223, 0.98135221037614118, -0.055723435045593517, -0.097547133361197913], [-0.59731206113295743, 0.11625604348180207, -0.79274660073366432, 0.70998706113619292], [-0.63183678425277212, 0.66979190024534185, -0.16900332658838191, 0.10957819941236413]]], [[[-0.85864820040908763, 0.36129280166431066, -0.16432595438853292, -0.33936584368341682], [-0.092573706577926851, 0.63223829113682672, 0.89427450221604698, -0.33450818273232774], [0.9516554907810888, 0.78565535271713971, 0.65371076370893011, 0.90366038286745054]], [[-0.78574722247805817, -0.88516230192953849, -0.89433620070831998, 0.066066240762615358], [-0.6347596849537207, -0.058613355587173066, 0.48717276237338503, -0.43467656120662568], [0.82033146654420763, 0.10448737437829325, 0.55801623370482756, 0.98628372428516053]]]]),self.functionspace)
13842          arg1.setTaggedValue(1,numarray.array([[[[0.37319690653678461, 0.96816837763651842, 0.54197892432948125, 0.4145444570793424], [0.1589679670934272, -0.89173172290665637, 0.12882352434855981, -0.27667628201950234], [-0.66731682515298973, -0.90062475869131431, -0.11483469751570285, -0.0085920205034029085]], [[0.26748499040337692, -0.070632119990836628, -0.38461852821074127, 0.10665093473312393], [-0.95597103461713395, -0.77004750380558407, 0.23245288316351531, 0.83705565419364381], [0.39650287844856225, -0.2523975731230057, -0.86800679915997825, -0.99749116519001246]]], [[[0.96528920223332881, 0.62880977093699686, 0.053406648810849777, -0.80119531024482682], [-0.1960029338003213, 0.87681792954741256, -0.6176115768758923, 0.51568487957685161], [0.5196706962976283, 0.1138525778114674, 0.41147841116292083, 0.56800974807485516]], [[0.82711178202336999, 0.16326171975404491, 0.92334045640680551, 0.11099885042960533], [0.63059371599109704, -0.12235440421726174, -0.39929056523279227, -0.47288045445702998], [-0.26298695836117414, 0.61457691131432179, -0.8229866040010505, 0.6011109969184083]]], [[[0.25698041723699405, 0.22458408564835253, 0.74325854221196308, 0.43803105051154367], [-0.035606838330939139, -0.93134062390725103, 0.44709064523174158, 0.39054509518098324], [0.66234331262164847, 0.0035485492730196189, 0.39545246249979416, -0.9441071213140193]], [[0.032325364478498431, -0.70262802392873036, -0.98671212083451332, 0.44413714967574358], [0.96414294595738004, -0.57313127103141381, -0.73421868717713368, -0.59117477480893288], [0.10669155590334123, 0.7008361803327039, -0.80578500370812578, -0.20859126604789102]]]]))
13843          res=maximum(arg0,arg1)
13844          ref=Data(numarray.array([[[[0.94323367504932754, 0.75043469724469358, 0.23889440516936578, 0.95420440815335872], [-0.56204824740798398, 0.75944243135960021, 0.30627342617954212, 0.63408115161677991], [-0.53382195077039052, -0.07330185156963176, -0.45909932029795142, 0.24646544731995279]], [[-0.18508046873734219, 0.80982790094001689, -0.33239328318495387, 0.13143779990210236], [0.5473229325959208, 0.94720944694356923, -0.715613069945924, -0.31084358313547411], [-0.3634542445783544, 0.36559825061099449, -0.83461079195174914, -0.46670894854169376]]], [[[-0.58310807256385022, 0.50593022547925171, -0.43058191591512407, -0.93580905306181816], [-0.57057964070667411, 0.047984045734246195, -0.2725165401098586, -0.40839044936075131], [-0.70089248436306861, -0.75308454340162045, -0.62801846775423287, 0.57487689894384619]], [[0.076655772437350223, 0.98135221037614118, -0.055723435045593517, -0.097547133361197913], [-0.59731206113295743, 0.11625604348180207, -0.79274660073366432, 0.70998706113619292], [-0.63183678425277212, 0.66979190024534185, -0.16900332658838191, 0.10957819941236413]]], [[[-0.85864820040908763, 0.36129280166431066, -0.16432595438853292, -0.33936584368341682], [-0.092573706577926851, 0.63223829113682672, 0.89427450221604698, -0.33450818273232774], [0.9516554907810888, 0.78565535271713971, 0.65371076370893011, 0.90366038286745054]], [[-0.78574722247805817, -0.88516230192953849, -0.89433620070831998, 0.066066240762615358], [-0.6347596849537207, -0.058613355587173066, 0.48717276237338503, -0.43467656120662568], [0.82033146654420763, 0.10448737437829325, 0.55801623370482756, 0.98628372428516053]]]]),self.functionspace)
13845          ref.setTaggedValue(1,numarray.array([[[[0.37319690653678461, 0.96816837763651842, 0.54197892432948125, 0.4145444570793424], [0.1589679670934272, -0.89173172290665637, 0.12882352434855981, -0.27667628201950234], [-0.66731682515298973, -0.90062475869131431, -0.11483469751570285, -0.0085920205034029085]], [[0.26748499040337692, -0.070632119990836628, -0.38461852821074127, 0.10665093473312393], [-0.93580905306181816, -0.77004750380558407, 0.23245288316351531, 0.83705565419364381], [0.39650287844856225, -0.2523975731230057, -0.86800679915997825, -0.93580905306181816]]], [[[0.96528920223332881, 0.62880977093699686, 0.053406648810849777, -0.80119531024482682], [-0.1960029338003213, 0.87681792954741256, -0.6176115768758923, 0.51568487957685161], [0.5196706962976283, 0.1138525778114674, 0.41147841116292083, 0.56800974807485516]], [[0.82711178202336999, 0.16326171975404491, 0.92334045640680551, 0.11099885042960533], [0.63059371599109704, -0.12235440421726174, -0.39929056523279227, -0.47288045445702998], [-0.26298695836117414, 0.61457691131432179, -0.8229866040010505, 0.6011109969184083]]], [[[0.25698041723699405, 0.22458408564835253, 0.74325854221196308, 0.43803105051154367], [-0.035606838330939139, -0.93134062390725103, 0.44709064523174158, 0.39054509518098324], [0.66234331262164847, 0.0035485492730196189, 0.39545246249979416, -0.93580905306181816]], [[0.032325364478498431, -0.70262802392873036, -0.93580905306181816, 0.44413714967574358], [0.96414294595738004, -0.57313127103141381, -0.73421868717713368, -0.59117477480893288], [0.10669155590334123, 0.7008361803327039, -0.80578500370812578, -0.20859126604789102]]]]))
13846          self.failUnless(isinstance(res,Data),"wrong type of result.")
13847          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
13848          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13849       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13850       def test_maximum_constData_rank4_taggedData_rank4(self):
13851          arg0=Data(numarray.array([[[[0.10845550544873728, -0.48673778143663937, -0.22758575972764006, -0.043144699169465284], [-0.056497115103625317, 0.021753318714725411, -0.14895150982487415, -0.29090658723806451], [-0.33108625396830771, 0.52984859700828979, -0.86606702812901659, -0.39974495069158755]], [[0.80153882125099485, -0.32093090408244285, -0.9985471625693203, 0.31923356832215943], [-0.69030935671099458, 0.53561118602122959, 0.8491139388367257, 0.72195365404201461], [-0.93786399905986362, 0.026041312211865009, -0.22890559505367936, -0.24610389122722509]]], [[[0.80325402914774902, 0.8459559099146523, 0.082082059186315615, -0.29051068321559259], [-0.42962178746605062, 0.56712780159219078, -0.76002013730504325, -0.20170316329475191], [-0.7586296269896029, 0.050879585698642149, 0.76795059503363072, -0.8101716505978549]], [[-0.78838632304939882, -0.041097735820624592, 0.21104208198163876, -0.66879037611420689], [0.032451538091870624, 0.29638695402919923, -0.65196181789373875, 0.55402305292580056], [0.82936728409111815, -0.98651990875459172, -0.29595117058779441, 0.77358656668899006]]], [[[-0.14969692922247835, 0.21060062729011664, 0.65486061934273643, -0.825536583685887], [0.51870803147561095, 0.5798651899249514, 0.95414506891871076, -0.0013759504034529524], [0.25097599259097336, -0.30583012400339493, -0.63244303720603168, -0.60453712200633714]], [[-0.92063746830516835, -0.042632226113337612, -0.085570251662872243, 0.70054554919919632], [0.30531042027844113, 0.56237981644588997, 0.8144988455107125, -0.78022543604342975], [0.68820007664728355, 0.21737283229892546, 0.25311229803675039, -0.77186399794036076]]]]),self.functionspace)
13852          arg1=Data(numarray.array([[[[-0.00032994280755604954, 0.62099392559096311, 0.42932150083049514, 0.89339418677260141], [-0.57326478847840634, -0.29289689789152806, -0.075582392955726885, 0.035008291874085273], [0.14996607225052139, -0.65116700704462005, 0.82891503021350332, 0.74528593031096513]], [[0.38387895484736623, 0.50218316647087469, -0.79899919471296754, 0.49765989217580064], [-0.84098635909127561, 0.96116887286245634, -0.23892215641571712, 0.65530711875098269], [-0.80612470265511726, 0.09632538549297176, 0.25700143742656278, -0.65226607965150918]]], [[[0.26757684029672602, 0.15455891205706895, -0.44351174410198868, 0.064343841740669871], [-0.78833832442092677, -0.30886745216602751, 0.48078898247343438, 0.7056167149071586], [-0.4614997399646148, 0.20421412301056607, 0.71373033075787862, 0.092014366665211789]], [[-0.71920997096988626, 0.44199047128023383, 0.49165293041182823, -0.49907169374155069], [-0.72955652024367712, -0.27453869614110893, 0.5528484672394387, 0.26391574937519646], [0.75149155665165868, -0.24656152810147525, 0.47833844674272386, -0.69972346734578461]]], [[[0.36506781182422143, 0.80433027945096769, 0.50656906442458971, 0.32269863125009213], [-0.35019131237572254, 0.57294140218016687, 0.82012396838963997, -0.030923328277502549], [0.015545642373764323, 0.78888038734087385, -0.13610586472262276, 0.91805607416477586]], [[-0.20041983847796052, 0.24682761853703061, 0.77572566143556698, 0.51880485408180999], [-0.58049021614141516, -0.55968368721395678, 0.49609616802278622, -0.54320817069727534], [0.65654306131902729, -0.25813279442687742, 0.83808785233029348, -0.99580052453682599]]]]),self.functionspace)
13853          arg1.setTaggedValue(1,numarray.array([[[[-0.60332564414176448, 0.78174497779889562, 0.48250144789091598, 0.43748547827674167], [-0.031532065425390776, -0.060724048674144049, 0.46186848668264968, 0.32331345297088254], [-0.21150653577402712, -0.66338034072353014, 0.63187368411638767, 0.77341309022114824]], [[-0.30139820535668682, -0.58697963987269186, 0.41762718688763267, -0.94465454786256009], [0.18221871160438585, -0.06931834132824144, 0.25972462357259429, 0.00076619605568706284], [-0.55876663198288146, -0.61658481734923298, 0.83700655360084864, -0.23851034966360252]]], [[[0.11107390161348674, -0.20575151010029957, -0.98012804616264848, 0.11552308626828789], [-0.67293485644248463, 0.96140918537691578, 0.63915137065856364, 0.59999045151632768], [0.48837931622591269, -0.14644653183032941, -0.95633965036259783, 0.99743471563239328]], [[0.30476436915068472, -0.815728714648283, 0.11152573207011862, -0.56404563768211613], [-0.63410846910627905, -0.60126860075120447, -0.38781022401393317, 0.23095581010629385], [0.062775807585675247, -0.4161575449102326, 0.22837399156699001, -0.1421547161185801]]], [[[0.35746303768748322, -0.85176228652149777, -0.71180490978585342, -0.9941058045304374], [0.1724377444362255, 0.28809532060771836, -0.77983142056051991, 0.1715823996990371], [-0.2178550296158559, -0.73984877147432582, -0.17367542863839414, -0.62707583964322633]], [[-0.77991193081480215, 0.62806871587386204, -0.88082940145954658, 0.22588341520381183], [-0.66267033913540918, -0.20069383663120055, -0.57508164261899619, 0.33871256324488663], [-0.074254009640646546, 0.71115919570890851, 0.15639013755074571, -0.92671870543888657]]]]))
13854          res=maximum(arg0,arg1)
13855          ref=Data(numarray.array([[[[0.10845550544873728, 0.62099392559096311, 0.42932150083049514, 0.89339418677260141], [-0.056497115103625317, 0.021753318714725411, -0.075582392955726885, 0.035008291874085273], [0.14996607225052139, 0.52984859700828979, 0.82891503021350332, 0.74528593031096513]], [[0.80153882125099485, 0.50218316647087469, -0.79899919471296754, 0.49765989217580064], [-0.69030935671099458, 0.96116887286245634, 0.8491139388367257, 0.72195365404201461], [-0.80612470265511726, 0.09632538549297176, 0.25700143742656278, -0.24610389122722509]]], [[[0.80325402914774902, 0.8459559099146523, 0.082082059186315615, 0.064343841740669871], [-0.42962178746605062, 0.56712780159219078, 0.48078898247343438, 0.7056167149071586], [-0.4614997399646148, 0.20421412301056607, 0.76795059503363072, 0.092014366665211789]], [[-0.71920997096988626, 0.44199047128023383, 0.49165293041182823, -0.49907169374155069], [0.032451538091870624, 0.29638695402919923, 0.5528484672394387, 0.55402305292580056], [0.82936728409111815, -0.24656152810147525, 0.47833844674272386, 0.77358656668899006]]], [[[0.36506781182422143, 0.80433027945096769, 0.65486061934273643, 0.32269863125009213], [0.51870803147561095, 0.5798651899249514, 0.95414506891871076, -0.0013759504034529524], [0.25097599259097336, 0.78888038734087385, -0.13610586472262276, 0.91805607416477586]], [[-0.20041983847796052, 0.24682761853703061, 0.77572566143556698, 0.70054554919919632], [0.30531042027844113, 0.56237981644588997, 0.8144988455107125, -0.54320817069727534], [0.68820007664728355, 0.21737283229892546, 0.83808785233029348, -0.77186399794036076]]]]),self.functionspace)
13856          ref.setTaggedValue(1,numarray.array([[[[0.10845550544873728, 0.78174497779889562, 0.48250144789091598, 0.43748547827674167], [-0.031532065425390776, 0.021753318714725411, 0.46186848668264968, 0.32331345297088254], [-0.21150653577402712, 0.52984859700828979, 0.63187368411638767, 0.77341309022114824]], [[0.80153882125099485, -0.32093090408244285, 0.41762718688763267, 0.31923356832215943], [0.18221871160438585, 0.53561118602122959, 0.8491139388367257, 0.72195365404201461], [-0.55876663198288146, 0.026041312211865009, 0.83700655360084864, -0.23851034966360252]]], [[[0.80325402914774902, 0.8459559099146523, 0.082082059186315615, 0.11552308626828789], [-0.42962178746605062, 0.96140918537691578, 0.63915137065856364, 0.59999045151632768], [0.48837931622591269, 0.050879585698642149, 0.76795059503363072, 0.99743471563239328]], [[0.30476436915068472, -0.041097735820624592, 0.21104208198163876, -0.56404563768211613], [0.032451538091870624, 0.29638695402919923, -0.38781022401393317, 0.55402305292580056], [0.82936728409111815, -0.4161575449102326, 0.22837399156699001, 0.77358656668899006]]], [[[0.35746303768748322, 0.21060062729011664, 0.65486061934273643, -0.825536583685887], [0.51870803147561095, 0.5798651899249514, 0.95414506891871076, 0.1715823996990371], [0.25097599259097336, -0.30583012400339493, -0.17367542863839414, -0.60453712200633714]], [[-0.77991193081480215, 0.62806871587386204, -0.085570251662872243, 0.70054554919919632], [0.30531042027844113, 0.56237981644588997, 0.8144988455107125, 0.33871256324488663], [0.68820007664728355, 0.71115919570890851, 0.25311229803675039, -0.77186399794036076]]]]))
13857          self.failUnless(isinstance(res,Data),"wrong type of result.")
13858          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
13859          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13860       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13861       def test_maximum_taggedData_rank0_float_rank0(self):
13862          arg0=Data(0.781189370724,self.functionspace)
13863          arg0.setTaggedValue(1,0.218741881483)
13864          arg1=0.0125402541995
13865          res=maximum(arg0,arg1)
13866          ref=Data(0.781189370724,self.functionspace)
13867          ref.setTaggedValue(1,0.218741881483)
13868          self.failUnless(isinstance(res,Data),"wrong type of result.")
13869          self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
13870          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13871       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13872       def test_maximum_taggedData_rank1_float_rank0(self):
13873          arg0=Data(numarray.array([-0.51812545546824396, 0.55330867489301871]),self.functionspace)
13874          arg0.setTaggedValue(1,numarray.array([0.5640202814852131, 0.83729192015196108]))
13875          arg1=-0.92649530698
13876          res=maximum(arg0,arg1)
13877          ref=Data(numarray.array([-0.51812545546824396, 0.55330867489301871]),self.functionspace)
13878          ref.setTaggedValue(1,numarray.array([0.5640202814852131, 0.83729192015196108]))
13879          self.failUnless(isinstance(res,Data),"wrong type of result.")
13880          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
13881          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13882       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13883       def test_maximum_taggedData_rank2_float_rank0(self):
13884          arg0=Data(numarray.array([[0.93480005656464904, 0.3326044609673382, -0.97347037521913871, -0.2720821447149282, 0.25288249094993254], [0.078016162222240615, 0.14026928157959651, 0.47798638498447099, -0.79465964907511299, 0.0023462007272536667], [-0.20523579180798057, 0.38896152402621231, -0.65481776935648583, 0.68305255859923619, 0.11792006499793128], [0.3279746094109548, 0.61188140404289282, -0.71100229248176428, 0.2750960084779599, -0.24274334248074125]]),self.functionspace)
13885          arg0.setTaggedValue(1,numarray.array([[-0.82939215060104843, -0.078441374528316121, -0.18319692474211235, -0.37190277953776363, -0.51652031544431543], [0.97796440308165078, -0.9342307921555113, -0.011057605869359444, 0.3714235134523578, 0.45968138041850715], [0.62062344020178251, -0.41787907428574389, -0.35888807800463973, 0.16694796164766323, -0.3977989533021975], [0.16518429534248313, -0.36314720068962214, -0.32058997573789605, -0.89515177291997983, 0.86881834023441074]]))
13886          arg1=0.813915837636
13887          res=maximum(arg0,arg1)
13888          ref=Data(numarray.array([[0.93480005656464904, 0.81391583763603204, 0.81391583763603204, 0.81391583763603204, 0.81391583763603204], [0.81391583763603204, 0.81391583763603204, 0.81391583763603204, 0.81391583763603204, 0.81391583763603204], [0.81391583763603204, 0.81391583763603204, 0.81391583763603204, 0.81391583763603204, 0.81391583763603204], [0.81391583763603204, 0.81391583763603204, 0.81391583763603204, 0.81391583763603204, 0.81391583763603204]]),self.functionspace)
13889          ref.setTaggedValue(1,numarray.array([[0.81391583763603204, 0.81391583763603204, 0.81391583763603204, 0.81391583763603204, 0.81391583763603204], [0.97796440308165078, 0.81391583763603204, 0.81391583763603204, 0.81391583763603204, 0.81391583763603204], [0.81391583763603204, 0.81391583763603204, 0.81391583763603204, 0.81391583763603204, 0.81391583763603204], [0.81391583763603204, 0.81391583763603204, 0.81391583763603204, 0.81391583763603204, 0.86881834023441074]]))
13890          self.failUnless(isinstance(res,Data),"wrong type of result.")
13891          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
13892          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13893       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13894       def test_maximum_taggedData_rank3_float_rank0(self):
13895          arg0=Data(numarray.array([[[-0.17424627648952273, -0.91369326722302535], [0.86981571454702555, -0.30056599212949142]], [[-0.83744079680925254, -0.57489835866873551], [-0.78652432997037325, -0.87217131091755329]], [[0.78772663404459142, 0.76745643012266873], [-0.15790300634831911, -0.72995023028235062]], [[0.53178881570910019, 0.45410682131640656], [-0.29067462771405683, 0.23144581811663034]], [[0.30882533991055627, -0.93338200589874143], [0.83298933643490325, 0.09998482062762859]], [[0.4933134750811039, -0.57402507256739521], [-0.070196917219758959, -0.41939337563063406]]]),self.functionspace)
13896          arg0.setTaggedValue(1,numarray.array([[[-0.68404622654997804, -0.28910163710006809], [-0.042657623096307828, -0.26884108057848488]], [[0.40378076310142719, 0.9488325876337047], [0.64388831611326669, -0.93389908990622739]], [[0.055513256105979458, -0.30472263073409334], [0.30910180910249663, 0.25282720917999901]], [[0.57464800398805105, -0.3898457041435035], [0.21617061001627613, -0.096073139627144144]], [[-0.84774839950760605, 0.47590289745014824], [0.10840624480471028, 0.58323317319559931]], [[0.64177338938010386, -0.45949466159584973], [-0.35326311112160758, -0.75653917946776028]]]))
13897          arg1=0.692344403817
13898          res=maximum(arg0,arg1)
13899          ref=Data(numarray.array([[[0.69234440381681428, 0.69234440381681428], [0.86981571454702555, 0.69234440381681428]], [[0.69234440381681428, 0.69234440381681428], [0.69234440381681428, 0.69234440381681428]], [[0.78772663404459142, 0.76745643012266873], [0.69234440381681428, 0.69234440381681428]], [[0.69234440381681428, 0.69234440381681428], [0.69234440381681428, 0.69234440381681428]], [[0.69234440381681428, 0.69234440381681428], [0.83298933643490325, 0.69234440381681428]], [[0.69234440381681428, 0.69234440381681428], [0.69234440381681428, 0.69234440381681428]]]),self.functionspace)
13900          ref.setTaggedValue(1,numarray.array([[[0.69234440381681428, 0.69234440381681428], [0.69234440381681428, 0.69234440381681428]], [[0.69234440381681428, 0.9488325876337047], [0.69234440381681428, 0.69234440381681428]], [[0.69234440381681428, 0.69234440381681428], [0.69234440381681428, 0.69234440381681428]], [[0.69234440381681428, 0.69234440381681428], [0.69234440381681428, 0.69234440381681428]], [[0.69234440381681428, 0.69234440381681428], [0.69234440381681428, 0.69234440381681428]], [[0.69234440381681428, 0.69234440381681428], [0.69234440381681428, 0.69234440381681428]]]))
13901          self.failUnless(isinstance(res,Data),"wrong type of result.")
13902          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
13903          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13904       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13905       def test_maximum_taggedData_rank4_float_rank0(self):
13906          arg0=Data(numarray.array([[[[0.51344591455293354, -0.018441243493981574, 0.47110899708526577, -0.30918788301297573], [0.85620732591987236, -0.92034786714028871, -0.1787563715249243, 0.37325499319884581], [0.64137645798178844, -0.11026990150999616, 0.40744602113487649, -0.71946344206892543]], [[-0.45308066414525183, 0.34467574075542839, -0.20685979682482358, -0.84023591171266832], [-0.2413762095156653, -0.91891040235221277, -0.80845566209432351, -0.31587878081559695], [-0.36984878552281675, 0.26542087635947453, -0.51283180013117491, 0.021928982379654238]]], [[[-0.28169913804355806, -0.6928525662673799, 0.28473453732940901, 0.21602101787601313], [-0.94153361534981572, 0.002357903028225028, 0.52489496154840332, -0.45071579437499931], [0.9284361704710038, -0.54922204319660017, 0.64352796527590139, -0.3525208246382594]], [[0.47301405457397849, 0.64667241992778934, -0.46304504193527074, 0.65269583573367029], [-0.29297019443524719, -0.11534881519162021, -0.72645113340053835, -0.29977943515792416], [0.84968671403456253, -0.84568246280364834, 0.68490422443498633, 0.13896446057648792]]], [[[-0.56879280814763655, 0.53856592287852112, 0.418821466814012, -0.43811331694679412], [-0.22492197875356079, 0.75887167374914366, 0.35113680031718042, -0.94922861243802137], [0.33212813085962134, -0.20964539197588761, -0.54739474055381265, -0.6291521297883047]], [[0.78509272302164446, -0.76857760144230114, -0.43901690547351158, 0.28516276164445875], [0.9618269447301222, 0.74527960751937194, -0.30261256871456244, 0.3679638015873179], [-0.6484191631051166, 0.1515932441327219, 0.031335332542854921, -0.90309000988094934]]]]),self.functionspace)
13907          arg0.setTaggedValue(1,numarray.array([[[[0.013607793411813507, -0.36282289887139152, 0.23518482902590265, -0.062041477811495938], [0.53034041017110134, -0.22579490630284704, -0.56096600949707542, -0.084929405097973643], [-0.37689004997752718, 0.22013122980568434, -0.9892706290233193, 0.37750003517931563]], [[-0.0099952159502807447, -0.11748521316287031, 0.12538769343171863, 0.84147604475294391], [-0.95742578443259996, -0.3597036800353024, -0.74424854966202592, -0.63698557655901777], [-0.28969074114670423, 0.068563439647513214, 0.84802425316138219, 0.51835240644519254]]], [[[-0.98943454862130964, -0.7173162606299579, 0.45785971364767342, 0.093125386056379655], [-0.15795404609652985, -0.4504805523576616, 0.7479447304899578, -0.84401467910570482], [-0.75996652977744694, -0.96785677143680338, -0.9702777509071383, -0.055804832316411535]], [[-0.97758869960742256, 0.75139305795081235, -0.13817173730790855, -0.79901047615130305], [-0.68100845604105698, 0.95695171738302931, 0.96497242206391109, -0.88712737188715507], [0.83168687571710365, 0.87919645382961997, 0.85154438270907651, -0.83960628186079078]]], [[[-0.9878193348256965, 0.62345573910354957, 0.49292493494861311, -0.45680410336998456], [-0.92855605330786117, 0.75968358062165331, -0.43343521882198455, -0.58998586398908448], [0.1296403096372043, -0.32944102432200295, -0.15849230325234309, -0.070143155505777655]], [[0.56400549150394719, -0.55809590289568756, -0.3446672399996622, -0.457237638930996], [0.35059915076627979, -0.38205004947025278, 0.19401029435141304, 0.061196810205449426], [0.90655743719059334, -0.92343663975887713, 0.45939741323556738, 0.84478155007424616]]]]))
13908          arg1=-0.65879782083
13909          res=maximum(arg0,arg1)
13910          ref=Data(numarray.array([[[[0.51344591455293354, -0.018441243493981574, 0.47110899708526577, -0.30918788301297573], [0.85620732591987236, -0.65879782083030158, -0.1787563715249243, 0.37325499319884581], [0.64137645798178844, -0.11026990150999616, 0.40744602113487649, -0.65879782083030158]], [[-0.45308066414525183, 0.34467574075542839, -0.20685979682482358, -0.65879782083030158], [-0.2413762095156653, -0.65879782083030158, -0.65879782083030158, -0.31587878081559695], [-0.36984878552281675, 0.26542087635947453, -0.51283180013117491, 0.021928982379654238]]], [[[-0.28169913804355806, -0.65879782083030158, 0.28473453732940901, 0.21602101787601313], [-0.65879782083030158, 0.002357903028225028, 0.52489496154840332, -0.45071579437499931], [0.9284361704710038, -0.54922204319660017, 0.64352796527590139, -0.3525208246382594]], [[0.47301405457397849, 0.64667241992778934, -0.46304504193527074, 0.65269583573367029], [-0.29297019443524719, -0.11534881519162021, -0.65879782083030158, -0.29977943515792416], [0.84968671403456253, -0.65879782083030158, 0.68490422443498633, 0.13896446057648792]]], [[[-0.56879280814763655, 0.53856592287852112, 0.418821466814012, -0.43811331694679412], [-0.22492197875356079, 0.75887167374914366, 0.35113680031718042, -0.65879782083030158], [0.33212813085962134, -0.20964539197588761, -0.54739474055381265, -0.6291521297883047]], [[0.78509272302164446, -0.65879782083030158, -0.43901690547351158, 0.28516276164445875], [0.9618269447301222, 0.74527960751937194, -0.30261256871456244, 0.3679638015873179], [-0.6484191631051166, 0.1515932441327219, 0.031335332542854921, -0.65879782083030158]]]]),self.functionspace)
13911          ref.setTaggedValue(1,numarray.array([[[[0.013607793411813507, -0.36282289887139152, 0.23518482902590265, -0.062041477811495938], [0.53034041017110134, -0.22579490630284704, -0.56096600949707542, -0.084929405097973643], [-0.37689004997752718, 0.22013122980568434, -0.65879782083030158, 0.37750003517931563]], [[-0.0099952159502807447, -0.11748521316287031, 0.12538769343171863, 0.84147604475294391], [-0.65879782083030158, -0.3597036800353024, -0.65879782083030158, -0.63698557655901777], [-0.28969074114670423, 0.068563439647513214, 0.84802425316138219, 0.51835240644519254]]], [[[-0.65879782083030158, -0.65879782083030158, 0.45785971364767342, 0.093125386056379655], [-0.15795404609652985, -0.4504805523576616, 0.7479447304899578, -0.65879782083030158], [-0.65879782083030158, -0.65879782083030158, -0.65879782083030158, -0.055804832316411535]], [[-0.65879782083030158, 0.75139305795081235, -0.13817173730790855, -0.65879782083030158], [-0.65879782083030158, 0.95695171738302931, 0.96497242206391109, -0.65879782083030158], [0.83168687571710365, 0.87919645382961997, 0.85154438270907651, -0.65879782083030158]]], [[[-0.65879782083030158, 0.62345573910354957, 0.49292493494861311, -0.45680410336998456], [-0.65879782083030158, 0.75968358062165331, -0.43343521882198455, -0.58998586398908448], [0.1296403096372043, -0.32944102432200295, -0.15849230325234309, -0.070143155505777655]], [[0.56400549150394719, -0.55809590289568756, -0.3446672399996622, -0.457237638930996], [0.35059915076627979, -0.38205004947025278, 0.19401029435141304, 0.061196810205449426], [0.90655743719059334, -0.65879782083030158, 0.45939741323556738, 0.84478155007424616]]]]))
13912          self.failUnless(isinstance(res,Data),"wrong type of result.")
13913          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
13914          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13915       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13916       def test_maximum_taggedData_rank0_array_rank0(self):
13917          arg0=Data(-0.925174714018,self.functionspace)
13918          arg0.setTaggedValue(1,-0.638792248656)
13919          arg1=numarray.array(-0.234557032758)
13920          res=maximum(arg0,arg1)
13921          ref=Data(-0.234557032758,self.functionspace)
13922          ref.setTaggedValue(1,-0.234557032758)
13923          self.failUnless(isinstance(res,Data),"wrong type of result.")
13924          self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
13925          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13926       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13927       def test_maximum_taggedData_rank1_array_rank0(self):
13928          arg0=Data(numarray.array([-0.69849163386416246, -0.12612598296766264]),self.functionspace)
13929          arg0.setTaggedValue(1,numarray.array([0.29944056207788727, 0.60762433355628587]))
13930          arg1=numarray.array(0.798087045957)
13931          res=maximum(arg0,arg1)
13932          ref=Data(numarray.array([0.79808704595692603, 0.79808704595692603]),self.functionspace)
13933          ref.setTaggedValue(1,numarray.array([0.79808704595692603, 0.79808704595692603]))
13934          self.failUnless(isinstance(res,Data),"wrong type of result.")
13935          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
13936          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13937       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13938       def test_maximum_taggedData_rank2_array_rank0(self):
13939          arg0=Data(numarray.array([[-0.52662965183815769, 0.57345406187402537, 0.90414404746228882, 0.42262577005483792, 0.31989683726049378], [0.0059418039362177932, 0.19227754679174658, 0.58599614019070523, -0.24443187900901697, 0.54375558535038571], [0.70261483573563899, -0.56558643939253539, -0.51690173380451476, -0.59465240855557822, -0.73198211064054508], [-0.21546932091661608, 0.59279865135361454, 0.85977065169379085, 0.7711017105670348, -0.31646152944503925]]),self.functionspace)
13940          arg0.setTaggedValue(1,numarray.array([[-0.60532457963913266, -0.7034719638067779, -0.28360614769376324, 0.80306839482586345, 0.42156217240843952], [0.48704494279914323, -0.86406044419690198, -0.54485210339812462, -0.17272514998453703, -0.37657680303876084], [0.60230010764391606, -0.63121348322279713, -0.74999412961581124, 0.67569953926345527, 0.27593314823678194], [0.58695545383872427, 0.7253535427899156, 0.44388220925172672, 0.36340364324674068, 0.0096800520668269829]]))
13941          arg1=numarray.array(0.419361707219)
13942          res=maximum(arg0,arg1)
13943          ref=Data(numarray.array([[0.41936170721941157, 0.57345406187402537, 0.90414404746228882, 0.42262577005483792, 0.41936170721941157], [0.41936170721941157, 0.41936170721941157, 0.58599614019070523, 0.41936170721941157, 0.54375558535038571], [0.70261483573563899, 0.41936170721941157, 0.41936170721941157, 0.41936170721941157, 0.41936170721941157], [0.41936170721941157, 0.59279865135361454, 0.85977065169379085, 0.7711017105670348, 0.41936170721941157]]),self.functionspace)
13944          ref.setTaggedValue(1,numarray.array([[0.41936170721941157, 0.41936170721941157, 0.41936170721941157, 0.80306839482586345, 0.42156217240843952], [0.48704494279914323, 0.41936170721941157, 0.41936170721941157, 0.41936170721941157, 0.41936170721941157], [0.60230010764391606, 0.41936170721941157, 0.41936170721941157, 0.67569953926345527, 0.41936170721941157], [0.58695545383872427, 0.7253535427899156, 0.44388220925172672, 0.41936170721941157, 0.41936170721941157]]))
13945          self.failUnless(isinstance(res,Data),"wrong type of result.")
13946          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
13947          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13948       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13949       def test_maximum_taggedData_rank3_array_rank0(self):
13950          arg0=Data(numarray.array([[[0.11996937338660096, -0.2381971872247417], [-0.63441963782454036, -0.66779750742805222]], [[0.92995457126434156, 0.15192851071559521], [0.084605389733761305, 0.35634515769340558]], [[0.84443922176028074, -0.88541263149824601], [-0.27094771060174816, 0.70139934037785689]], [[0.68994436428437256, 0.83186483072251027], [-0.14858063057687732, -0.18307204728965343]], [[0.78969080055932905, -0.93127882201058809], [-0.59100323574875491, 0.8780312990028496]], [[-0.51860050073948694, 0.19882970552560275], [-0.81585601658525864, -0.5773314991681564]]]),self.functionspace)
13951          arg0.setTaggedValue(1,numarray.array([[[0.4077119693670197, -0.15089092327581843], [0.32678651591661101, 0.45399585483056915]], [[-0.27171005023639183, 0.91576378268016767], [0.31142147182595403, -0.47936869062670207]], [[-0.23275353497070261, -0.069095101997814545], [0.060908158283257352, 0.23933590824512607]], [[0.60103860701300182, -0.44741778363728923], [0.88541668276824037, 0.95921374279165583]], [[-0.81126871572017278, -0.33059594874974341], [0.29995171427272238, 0.11876151588425388]], [[0.96038505930864182, -0.61891418238199214], [-0.95906798793793335, 0.51506426474349243]]]))
13952          arg1=numarray.array(-0.557855377146)
13953          res=maximum(arg0,arg1)
13954          ref=Data(numarray.array([[[0.11996937338660096, -0.2381971872247417], [-0.5578553771462389, -0.5578553771462389]], [[0.92995457126434156, 0.15192851071559521], [0.084605389733761305, 0.35634515769340558]], [[0.84443922176028074, -0.5578553771462389], [-0.27094771060174816, 0.70139934037785689]], [[0.68994436428437256, 0.83186483072251027], [-0.14858063057687732, -0.18307204728965343]], [[0.78969080055932905, -0.5578553771462389], [-0.5578553771462389, 0.8780312990028496]], [[-0.51860050073948694, 0.19882970552560275], [-0.5578553771462389, -0.5578553771462389]]]),self.functionspace)
13955          ref.setTaggedValue(1,numarray.array([[[0.4077119693670197, -0.15089092327581843], [0.32678651591661101, 0.45399585483056915]], [[-0.27171005023639183, 0.91576378268016767], [0.31142147182595403, -0.47936869062670207]], [[-0.23275353497070261, -0.069095101997814545], [0.060908158283257352, 0.23933590824512607]], [[0.60103860701300182, -0.44741778363728923], [0.88541668276824037, 0.95921374279165583]], [[-0.5578553771462389, -0.33059594874974341], [0.29995171427272238, 0.11876151588425388]], [[0.96038505930864182, -0.5578553771462389], [-0.5578553771462389, 0.51506426474349243]]]))
13956          self.failUnless(isinstance(res,Data),"wrong type of result.")
13957          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
13958          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13959       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13960       def test_maximum_taggedData_rank4_array_rank0(self):
13961          arg0=Data(numarray.array([[[[0.89275404109845424, -0.35146473741579665, -0.17568117509227243, -0.7578795999650203], [-0.33534647809383666, 0.59800996974635745, 0.31503435476011932, -0.46176882323818425], [-0.13146855290018755, 0.53080183078481635, 0.097739104079239469, 0.489397617772376]], [[0.66328825052473595, -0.016493169414107278, -0.19296570640621535, 0.53259751456448678], [0.14885726258574916, 0.20963457673525387, 0.33964874008570622, -0.60286867327138904], [-0.13878881815609945, 0.035625457403632765, -0.50046005552156148, -0.27555633863831641]]], [[[-0.89651648497925707, 0.29016557054006253, -0.55815574108322674, 0.21708312729185297], [0.14841730972031653, -0.37015999891426477, -0.43021572931663354, 0.86739175996362983], [-0.74377091514797833, 0.95901439254019638, -0.51386281665723521, -0.64879136103815416]], [[-0.15491801368832081, 0.16841099093477885, 0.65528197412357048, -0.064834886303676065], [-0.83402936883282486, 0.38346467957551589, -0.72018607765832909, -0.60954704574371155], [-0.34601567013589429, -0.35717627025481558, 0.42362282917531946, 0.23394075297738337]]], [[[-0.05834418636912031, -0.017425540900098957, -0.82371395647776446, 0.66954716651459911], [0.12689604172544566, 0.18110160335397429, 0.85959643269502739, 0.89393140565626927], [-0.74705661684005475, -0.36546182942180527, -0.71591627299616456, 0.50218215364204299]], [[0.60111164141963269, -0.92941174077167998, -0.98760106313591756, 0.53313765111509226], [-0.46946584016440918, 0.74282731709564231, 0.12617367148196079, 0.72282401835048349], [0.87975310489161518, -0.46260381145371832, -0.73799641157718865, 0.40842362602733084]]]]),self.functionspace)
13962          arg0.setTaggedValue(1,numarray.array([[[[-0.65832055711473147, 0.81977989475922763, 0.079060551117023703, -0.26083516362499615], [0.9011359200617044, -0.0020651577687489375, -0.98780037380796992, 0.318512556404142], [-0.098970777121136111, 0.93218583512683151, -0.75252613988451889, 0.50835112543510741]], [[0.27761772736531509, 0.22919045310778796, 0.18232481657294253, 0.1425134075457013], [0.47206045286859166, -0.73923765056264301, 0.27436450445356342, -0.56751723211924832], [0.62408752154214509, 0.71696546109438009, 0.96933745291446982, -0.023259873422613264]]], [[[-0.73384524032662513, -0.81564987888035945, -0.26761806526241916, 0.48013584699356304], [-0.084512492829282859, 0.2250774673643523, 0.96305055306276599, -0.68561304642276055], [0.66893632640183154, 0.50261954844894197, -0.81443979088134077, 0.10366661510514263]], [[-0.28870400357374915, 0.58838031677115343, -0.45793492733324936, 0.36403731953361351], [0.56168483329450147, -0.18113163365732321, -0.89656668226069214, -0.1938204315453429], [0.77411369722988854, 0.11257709116035186, 0.70170686853277231, -0.6693926170189155]]], [[[-0.37636393999209816, 0.63801870058103005, 0.3653488860837073, -0.66928500592201678], [-0.59259165330789743, 0.78617092236936137, -0.20604168110115295, 0.955633421887778], [-0.81696514728783787, 0.61154474690435578, -0.14237359445393083, -0.74314451147533411]], [[-0.94117651794335067, 0.35173957026195968, 0.17124685404860052, 0.42927640273794432], [0.5822566172546888, -0.70242468758245735, 0.5672314332554671, 0.17717092789636069], [0.85532249600047172, -0.41529472301095383, 0.47186050130451185, -0.74030950630891934]]]]))
13963          arg1=numarray.array(-0.0617969524811)
13964          res=maximum(arg0,arg1)
13965          ref=Data(numarray.array([[[[0.89275404109845424, -0.06179695248106376, -0.06179695248106376, -0.06179695248106376], [-0.06179695248106376, 0.59800996974635745, 0.31503435476011932, -0.06179695248106376], [-0.06179695248106376, 0.53080183078481635, 0.097739104079239469, 0.489397617772376]], [[0.66328825052473595, -0.016493169414107278, -0.06179695248106376, 0.53259751456448678], [0.14885726258574916, 0.20963457673525387, 0.33964874008570622, -0.06179695248106376], [-0.06179695248106376, 0.035625457403632765, -0.06179695248106376, -0.06179695248106376]]], [[[-0.06179695248106376, 0.29016557054006253, -0.06179695248106376, 0.21708312729185297], [0.14841730972031653, -0.06179695248106376, -0.06179695248106376, 0.86739175996362983], [-0.06179695248106376, 0.95901439254019638, -0.06179695248106376, -0.06179695248106376]], [[-0.06179695248106376, 0.16841099093477885, 0.65528197412357048, -0.06179695248106376], [-0.06179695248106376, 0.38346467957551589, -0.06179695248106376, -0.06179695248106376], [-0.06179695248106376, -0.06179695248106376, 0.42362282917531946, 0.23394075297738337]]], [[[-0.05834418636912031, -0.017425540900098957, -0.06179695248106376, 0.66954716651459911], [0.12689604172544566, 0.18110160335397429, 0.85959643269502739, 0.89393140565626927], [-0.06179695248106376, -0.06179695248106376, -0.06179695248106376, 0.50218215364204299]], [[0.60111164141963269, -0.06179695248106376, -0.06179695248106376, 0.53313765111509226], [-0.06179695248106376, 0.74282731709564231, 0.12617367148196079, 0.72282401835048349], [0.87975310489161518, -0.06179695248106376, -0.06179695248106376, 0.40842362602733084]]]]),self.functionspace)
13966          ref.setTaggedValue(1,numarray.array([[[[-0.06179695248106376, 0.81977989475922763, 0.079060551117023703, -0.06179695248106376], [0.9011359200617044, -0.0020651577687489375, -0.06179695248106376, 0.318512556404142], [-0.06179695248106376, 0.93218583512683151, -0.06179695248106376, 0.50835112543510741]], [[0.27761772736531509, 0.22919045310778796, 0.18232481657294253, 0.1425134075457013], [0.47206045286859166, -0.06179695248106376, 0.27436450445356342, -0.06179695248106376], [0.62408752154214509, 0.71696546109438009, 0.96933745291446982, -0.023259873422613264]]], [[[-0.06179695248106376, -0.06179695248106376, -0.06179695248106376, 0.48013584699356304], [-0.06179695248106376, 0.2250774673643523, 0.96305055306276599, -0.06179695248106376], [0.66893632640183154, 0.50261954844894197, -0.06179695248106376, 0.10366661510514263]], [[-0.06179695248106376, 0.58838031677115343, -0.06179695248106376, 0.36403731953361351], [0.56168483329450147, -0.06179695248106376, -0.06179695248106376, -0.06179695248106376], [0.77411369722988854, 0.11257709116035186, 0.70170686853277231, -0.06179695248106376]]], [[[-0.06179695248106376, 0.63801870058103005, 0.3653488860837073, -0.06179695248106376], [-0.06179695248106376, 0.78617092236936137, -0.06179695248106376, 0.955633421887778], [-0.06179695248106376, 0.61154474690435578, -0.06179695248106376, -0.06179695248106376]], [[-0.06179695248106376, 0.35173957026195968, 0.17124685404860052, 0.42927640273794432], [0.5822566172546888, -0.06179695248106376, 0.5672314332554671, 0.17717092789636069], [0.85532249600047172, -0.06179695248106376, 0.47186050130451185, -0.06179695248106376]]]]))
13967          self.failUnless(isinstance(res,Data),"wrong type of result.")
13968          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
13969          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13970       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13971       def test_maximum_taggedData_rank0_Symbol_rank0(self):
13972          arg0=Data(-0.13878698058,self.functionspace)
13973          arg0.setTaggedValue(1,0.077690906146)
13974          arg1=Symbol(shape=())
13975          res=maximum(arg0,arg1)
13976          s1=numarray.array(-0.659025132669)
13977          sub=res.substitute({arg1:s1})
13978          ref=Data(-0.13878698058,self.functionspace)
13979          ref.setTaggedValue(1,0.077690906146)
13980          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
13981          self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
13982          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13983       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13984       def test_maximum_taggedData_rank1_Symbol_rank0(self):
13985          arg0=Data(numarray.array([0.90121917025738973, 0.23475760658046929]),self.functionspace)
13986          arg0.setTaggedValue(1,numarray.array([-0.71343840687144322, 0.55627746419072244]))
13987          arg1=Symbol(shape=())
13988          res=maximum(arg0,arg1)
13989          s1=numarray.array(-0.595604324373)
13990          sub=res.substitute({arg1:s1})
13991          ref=Data(numarray.array([0.90121917025738973, 0.23475760658046929]),self.functionspace)
13992          ref.setTaggedValue(1,numarray.array([-0.59560432437342259, 0.55627746419072244]))
13993          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
13994          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
13995          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
13996       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13997       def test_maximum_taggedData_rank2_Symbol_rank0(self):
13998          arg0=Data(numarray.array([[-0.033808329856438002, 0.365889221644639, 0.80907073923042416, -0.88574029167277657, 0.20881537066695399], [-0.69400829868392955, -0.52210144491396049, -0.79665787783705211, -0.49573027436150063, 0.37564662465707266], [0.60926178928987662, 0.41563357168439063, -0.15016630131470277, 0.44755980622462643, 0.040895367053177534], [0.99636517932026192, 0.69555251616678948, -0.580679339827882, -0.019344106672687822, 0.84618929078410043]]),self.functionspace)
13999          arg0.setTaggedValue(1,numarray.array([[0.14355806097226109, -0.45861201119962902, 0.18264774706961107, -0.42820986163732666, -0.43564306126037566], [-0.054849084798904046, -0.97727401780265799, -0.25247885583334906, 0.034300878425015169, 0.44098845946091392], [0.98414598443090506, 0.59218617343550006, 0.042688633097921036, -0.085485059980703992, 0.25019270636878721], [0.16667250943994727, 0.3111895149902193, -0.43725823763294214, 0.015868779292465884, -0.88592775964297243]]))
14000          arg1=Symbol(shape=())
14001          res=maximum(arg0,arg1)
14002          s1=numarray.array(0.394704454882)
14003          sub=res.substitute({arg1:s1})
14004          ref=Data(numarray.array([[0.39470445488151484, 0.39470445488151484, 0.80907073923042416, 0.39470445488151484, 0.39470445488151484], [0.39470445488151484, 0.39470445488151484, 0.39470445488151484, 0.39470445488151484, 0.39470445488151484], [0.60926178928987662, 0.41563357168439063, 0.39470445488151484, 0.44755980622462643, 0.39470445488151484], [0.99636517932026192, 0.69555251616678948, 0.39470445488151484, 0.39470445488151484, 0.84618929078410043]]),self.functionspace)
14005          ref.setTaggedValue(1,numarray.array([[0.39470445488151484, 0.39470445488151484, 0.39470445488151484, 0.39470445488151484, 0.39470445488151484], [0.39470445488151484, 0.39470445488151484, 0.39470445488151484, 0.39470445488151484, 0.44098845946091392], [0.98414598443090506, 0.59218617343550006, 0.39470445488151484, 0.39470445488151484, 0.39470445488151484], [0.39470445488151484, 0.39470445488151484, 0.39470445488151484, 0.39470445488151484, 0.39470445488151484]]))
14006          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
14007          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14008          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14009       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14010       def test_maximum_taggedData_rank3_Symbol_rank0(self):
14011          arg0=Data(numarray.array([[[-0.74594177493647429, 0.25810225095089967], [0.44699013165788037, 0.57104044941685528]], [[0.88572067703793467, -0.10101086972536444], [0.75098953855073391, 0.16683757762910445]], [[-0.096215673956012049, 0.72593796429429336], [-0.43628454032050601, -0.55871361046988977]], [[0.88187060372203407, -0.51618475548183862], [0.80987891975116044, 0.83920043601375061]], [[0.90761269100993935, 0.97765302328128612], [0.074562741865257465, 0.47318710515836604]], [[-0.5142048115539628, 0.66778186761372305], [-0.47680063983780574, -0.57552309167488547]]]),self.functionspace)
14012          arg0.setTaggedValue(1,numarray.array([[[-0.24877498558681443, 0.87415128917689344], [-0.78546842369423464, -0.8603597277538968]], [[0.29886341402328909, 0.66836263539464214], [0.75078779381796612, -0.096323796241900572]], [[0.89333026229281987, 0.34411648779588289], [-0.15933857025250608, 0.97268599541914136]], [[0.30785384263720839, -0.51411967767010802], [0.31139565636383582, 0.56296470972360813]], [[-0.7756897864766128, 0.40252823023221951], [0.4502988250054849, -0.073563304499433047]], [[-0.32528178518688589, 0.18345336518532718], [0.9828156011978233, 0.57229515915362605]]]))
14013          arg1=Symbol(shape=())
14014          res=maximum(arg0,arg1)
14015          s1=numarray.array(0.396534692035)
14016          sub=res.substitute({arg1:s1})
14017          ref=Data(numarray.array([[[0.39653469203531744, 0.39653469203531744], [0.44699013165788037, 0.57104044941685528]], [[0.88572067703793467, 0.39653469203531744], [0.75098953855073391, 0.39653469203531744]], [[0.39653469203531744, 0.72593796429429336], [0.39653469203531744, 0.39653469203531744]], [[0.88187060372203407, 0.39653469203531744], [0.80987891975116044, 0.83920043601375061]], [[0.90761269100993935, 0.97765302328128612], [0.39653469203531744, 0.47318710515836604]], [[0.39653469203531744, 0.66778186761372305], [0.39653469203531744, 0.39653469203531744]]]),self.functionspace)
14018          ref.setTaggedValue(1,numarray.array([[[0.39653469203531744, 0.87415128917689344], [0.39653469203531744, 0.39653469203531744]], [[0.39653469203531744, 0.66836263539464214], [0.75078779381796612, 0.39653469203531744]], [[0.89333026229281987, 0.39653469203531744], [0.39653469203531744, 0.97268599541914136]], [[0.39653469203531744, 0.39653469203531744], [0.39653469203531744, 0.56296470972360813]], [[0.39653469203531744, 0.40252823023221951], [0.4502988250054849, 0.39653469203531744]], [[0.39653469203531744, 0.39653469203531744], [0.9828156011978233, 0.57229515915362605]]]))
14019          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
14020          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14021          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14022       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14023       def test_maximum_taggedData_rank4_Symbol_rank0(self):
14024          arg0=Data(numarray.array([[[[0.47703555877266646, 0.32866132035063322, 0.42408228451164631, -0.064711173660208399], [-0.86376484720882796, 0.75131142762099357, 0.81407501009818239, -0.95976346590344419], [0.024447138445151451, 0.3940282291263435, -0.35365512701480362, 0.65775198168677917]], [[0.57057189357039384, 0.79241820234271199, -0.80792232007129106, 0.15644698054188977], [-0.73346314134543311, 0.4436822513053591, 0.25884861320453778, -0.50762749745613323], [0.022923634752925803, 0.88125849031526271, 0.97468365398849177, 0.27413825806726355]]], [[[0.19319892403465011, 0.13502248113852522, 0.1516685902289161, -0.9575455085498461], [0.28581318361574359, -0.90637444837971537, -0.60956714689801861, -0.96551991125871028], [0.42582706439655316, 0.73123812252146259, -0.22436939877117923, -0.69313020149509308]], [[-0.34266400853131418, 0.83124111778810494, 0.75714128055040786, -0.81359481414509949], [0.1949732646506257, 0.70234089001355415, -0.20170310574860717, -0.26211957643813877], [0.48398202605127572, 0.80793444238581702, 0.50152792938517399, 0.11031823094460935]]], [[[-0.27141184778824723, 0.57598715751200236, -0.58077729359989561, -0.011077781271311204], [-0.018277616464780877, 0.0051154700466067293, 0.86730549685611136, 0.28907288035575651], [0.77669482172352899, 0.6002769873418119, 0.80264779363338801, -0.88668550704141635]], [[-0.43231806241651904, 0.10537604639160159, 0.86761105388877469, 0.059146738075732452], [-0.041091739837799013, -0.97455861350238049, 0.78464474112748106, 0.13371990069042106], [0.76324547681815336, 0.9845810761031899, 0.73858264316426614, -0.47129246131448665]]]]),self.functionspace)
14025          arg0.setTaggedValue(1,numarray.array([[[[0.27066961495785824, -0.089725059455445511, 0.77183588269550696, -0.46769270391741746], [0.65846910719077423, 0.72383067013020352, 0.72901173496268079, -0.9721536350813873], [-0.71884953305468979, -0.17055017241051895, 0.72225016729187286, 0.80024173094209972]], [[0.84464697040583991, -0.49321393372258182, -0.46163021648910729, 0.71790273822884565], [0.70017191845434712, -0.51032459101210881, -0.13246980037801781, -0.18030996831539925], [0.43520849177930154, 0.92241501522990688, 0.44321696301697178, -0.22914624272909556]]], [[[-0.64832491516924629, -0.37948885705018198, 0.88659070142273988, 0.030668767187835622], [-0.1874247944319134, -0.56928771257216004, -0.23586439776100931, 0.063330407984928838], [0.84689679668939921, 0.84927803607914987, -0.75912813148918934, -0.63283305393472511]], [[0.54940414600738685, -0.34983596190955923, -0.9373012324070007, -0.99086540150963298], [-0.35865911723466137, -0.31215649252331956, 0.40080451408040707, 0.47316404135728485], [-0.76331163823552295, -0.39001801688134319, 0.20280053165742795, 0.48171104896754358]]], [[[0.69280137978577949, -0.35963224092835011, 0.53122458378019211, -0.79453208593360691], [-0.2251501095766093, -0.95071588961543307, 0.13340737224883292, -0.8150487838864362], [-0.52442319328343001, 0.28207402395560788, -0.64400084112252087, -0.76335828956718643]], [[0.57952398370096025, -0.38270741165624944, 0.76507424519802747, -0.061324936088296811], [-0.21068969227378087, -0.51045611383213108, -0.22971413573932242, -0.052692767905317739], [-0.4884118420506931, 0.50831506106346214, 0.44777170374233521, -0.55010312883411561]]]]))
14026          arg1=Symbol(shape=())
14027          res=maximum(arg0,arg1)
14028          s1=numarray.array(-0.220529528405)
14029          sub=res.substitute({arg1:s1})
14030          ref=Data(numarray.array([[[[0.47703555877266646, 0.32866132035063322, 0.42408228451164631, -0.064711173660208399], [-0.2205295284046227, 0.75131142762099357, 0.81407501009818239, -0.2205295284046227], [0.024447138445151451, 0.3940282291263435, -0.2205295284046227, 0.65775198168677917]], [[0.57057189357039384, 0.79241820234271199, -0.2205295284046227, 0.15644698054188977], [-0.2205295284046227, 0.4436822513053591, 0.25884861320453778, -0.2205295284046227], [0.022923634752925803, 0.88125849031526271, 0.97468365398849177, 0.27413825806726355]]], [[[0.19319892403465011, 0.13502248113852522, 0.1516685902289161, -0.2205295284046227], [0.28581318361574359, -0.2205295284046227, -0.2205295284046227, -0.2205295284046227], [0.42582706439655316, 0.73123812252146259, -0.2205295284046227, -0.2205295284046227]], [[-0.2205295284046227, 0.83124111778810494, 0.75714128055040786, -0.2205295284046227], [0.1949732646506257, 0.70234089001355415, -0.20170310574860717, -0.2205295284046227], [0.48398202605127572, 0.80793444238581702, 0.50152792938517399, 0.11031823094460935]]], [[[-0.2205295284046227, 0.57598715751200236, -0.2205295284046227, -0.011077781271311204], [-0.018277616464780877, 0.0051154700466067293, 0.86730549685611136, 0.28907288035575651], [0.77669482172352899, 0.6002769873418119, 0.80264779363338801, -0.2205295284046227]], [[-0.2205295284046227, 0.10537604639160159, 0.86761105388877469, 0.059146738075732452], [-0.041091739837799013, -0.2205295284046227, 0.78464474112748106, 0.13371990069042106], [0.76324547681815336, 0.9845810761031899, 0.73858264316426614, -0.2205295284046227]]]]),self.functionspace)
14031          ref.setTaggedValue(1,numarray.array([[[[0.27066961495785824, -0.089725059455445511, 0.77183588269550696, -0.2205295284046227], [0.65846910719077423, 0.72383067013020352, 0.72901173496268079, -0.2205295284046227], [-0.2205295284046227, -0.17055017241051895, 0.72225016729187286, 0.80024173094209972]], [[0.84464697040583991, -0.2205295284046227, -0.2205295284046227, 0.71790273822884565], [0.70017191845434712, -0.2205295284046227, -0.13246980037801781, -0.18030996831539925], [0.43520849177930154, 0.92241501522990688, 0.44321696301697178, -0.2205295284046227]]], [[[-0.2205295284046227, -0.2205295284046227, 0.88659070142273988, 0.030668767187835622], [-0.1874247944319134, -0.2205295284046227, -0.2205295284046227, 0.063330407984928838], [0.84689679668939921, 0.84927803607914987, -0.2205295284046227, -0.2205295284046227]], [[0.54940414600738685, -0.2205295284046227, -0.2205295284046227, -0.2205295284046227], [-0.2205295284046227, -0.2205295284046227, 0.40080451408040707, 0.47316404135728485], [-0.2205295284046227, -0.2205295284046227, 0.20280053165742795, 0.48171104896754358]]], [[[0.69280137978577949, -0.2205295284046227, 0.53122458378019211, -0.2205295284046227], [-0.2205295284046227, -0.2205295284046227, 0.13340737224883292, -0.2205295284046227], [-0.2205295284046227, 0.28207402395560788, -0.2205295284046227, -0.2205295284046227]], [[0.57952398370096025, -0.2205295284046227, 0.76507424519802747, -0.061324936088296811], [-0.21068969227378087, -0.2205295284046227, -0.2205295284046227, -0.052692767905317739], [-0.2205295284046227, 0.50831506106346214, 0.44777170374233521, -0.2205295284046227]]]]))
14032          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
14033          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14034          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14035       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14036       def test_maximum_taggedData_rank0_constData_rank0(self):
14037          arg0=Data(-0.849363709294,self.functionspace)
14038          arg0.setTaggedValue(1,-0.382967103025)
14039          arg1=Data(0.974014450724,self.functionspace)
14040          res=maximum(arg0,arg1)
14041          ref=Data(0.974014450724,self.functionspace)
14042          ref.setTaggedValue(1,0.974014450724)
14043          self.failUnless(isinstance(res,Data),"wrong type of result.")
14044          self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
14045          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14046       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14047       def test_maximum_taggedData_rank1_constData_rank0(self):
14048          arg0=Data(numarray.array([0.15359534220057491, 0.81025586040974384]),self.functionspace)
14049          arg0.setTaggedValue(1,numarray.array([0.45081025408796638, 0.82764996189716289]))
14050          arg1=Data(-0.995343707269,self.functionspace)
14051          res=maximum(arg0,arg1)
14052          ref=Data(numarray.array([0.15359534220057491, 0.81025586040974384]),self.functionspace)
14053          ref.setTaggedValue(1,numarray.array([0.45081025408796638, 0.82764996189716289]))
14054          self.failUnless(isinstance(res,Data),"wrong type of result.")
14055          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14056          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14057       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14058       def test_maximum_taggedData_rank2_constData_rank0(self):
14059          arg0=Data(numarray.array([[0.13708122850182125, 0.99008715870007546, -0.70545154117672348, 0.99916050781045551, 0.25514058627455105], [-0.12561395088999538, -0.86438506107979385, 0.13034668941012062, 0.35224690602370012, -0.017162563999681746], [-0.91569579082587493, -0.67743146551876521, -0.95589806519073139, 0.1743108864158176, -0.33355994781829934], [-0.55523563941647414, 0.70472497252224087, 0.11627919923214836, -0.37172189001972078, 0.18550702772614969]]),self.functionspace)
14060          arg0.setTaggedValue(1,numarray.array([[0.073798446664826489, 0.3006244069574715, -0.89279180141507752, -0.87506777897706445, -0.62920651002059946], [0.038644010795130024, 0.40897497262022364, 0.15238521249533399, 0.55244990810882744, 0.99449051852373382], [-0.62128735737764407, -0.35315318920526884, 0.3995909771915227, 0.014927585301315327, 0.85133795538885293], [0.018435201197165352, -0.030162727474547957, -0.13451624890192559, -0.42008480913114044, 0.84075589075060631]]))
14061          arg1=Data(-0.921146847276,self.functionspace)
14062          res=maximum(arg0,arg1)
14063          ref=Data(numarray.array([[0.13708122850182125, 0.99008715870007546, -0.70545154117672348, 0.99916050781045551, 0.25514058627455105], [-0.12561395088999538, -0.86438506107979385, 0.13034668941012062, 0.35224690602370012, -0.017162563999681746], [-0.91569579082587493, -0.67743146551876521, -0.92114684727582952, 0.1743108864158176, -0.33355994781829934], [-0.55523563941647414, 0.70472497252224087, 0.11627919923214836, -0.37172189001972078, 0.18550702772614969]]),self.functionspace)
14064          ref.setTaggedValue(1,numarray.array([[0.073798446664826489, 0.3006244069574715, -0.89279180141507752, -0.87506777897706445, -0.62920651002059946], [0.038644010795130024, 0.40897497262022364, 0.15238521249533399, 0.55244990810882744, 0.99449051852373382], [-0.62128735737764407, -0.35315318920526884, 0.3995909771915227, 0.014927585301315327, 0.85133795538885293], [0.018435201197165352, -0.030162727474547957, -0.13451624890192559, -0.42008480913114044, 0.84075589075060631]]))
14065          self.failUnless(isinstance(res,Data),"wrong type of result.")
14066          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14067          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14068       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14069       def test_maximum_taggedData_rank3_constData_rank0(self):
14070          arg0=Data(numarray.array([[[-0.41383177356797463, -0.0079349927271721299], [-0.90947471917084233, -0.79468119935536907]], [[-0.19064212513470236, -0.82820544671402252], [0.31168520087678786, 0.57404206055363316]], [[0.98197346242601569, 0.80253966596195125], [-0.33540931513018069, 0.44691416089131786]], [[0.44594410245513605, 0.85517197254951238], [-0.066556018640275161, 0.62804259202268797]], [[0.543593854735404, -0.16270199888648107], [0.38740947895305733, 0.95732655994382188]], [[0.74719294730162322, 0.18724540092319875], [0.97336861552944964, 0.88152257094513686]]]),self.functionspace)
14071          arg0.setTaggedValue(1,numarray.array([[[-0.80870088556382247, -0.57012139600601452], [0.31992431989323777, 0.72728320881432018]], [[-0.98129612402840216, -0.30068237958185762], [-0.34254372207608919, 0.81760308616373334]], [[-0.58300511224222129, -0.62990156406393161], [0.66577278756599267, -0.89483189164245869]], [[-0.23555132532767087, 0.21281660069146269], [-0.77768605222075915, -0.57698070336982643]], [[0.054578977408722418, 0.10953806304154989], [-0.37891307232139115, -0.14558540370308215]], [[0.35566828339792633, 0.63078660214558968], [-0.34058348881531586, -0.69302067106712517]]]))
14072          arg1=Data(0.117893688047,self.functionspace)
14073          res=maximum(arg0,arg1)
14074          ref=Data(numarray.array([[[0.11789368804668054, 0.11789368804668054], [0.11789368804668054, 0.11789368804668054]], [[0.11789368804668054, 0.11789368804668054], [0.31168520087678786, 0.57404206055363316]], [[0.98197346242601569, 0.80253966596195125], [0.11789368804668054, 0.44691416089131786]], [[0.44594410245513605, 0.85517197254951238], [0.11789368804668054, 0.62804259202268797]], [[0.543593854735404, 0.11789368804668054], [0.38740947895305733, 0.95732655994382188]], [[0.74719294730162322, 0.18724540092319875], [0.97336861552944964, 0.88152257094513686]]]),self.functionspace)
14075          ref.setTaggedValue(1,numarray.array([[[0.11789368804668054, 0.11789368804668054], [0.31992431989323777, 0.72728320881432018]], [[0.11789368804668054, 0.11789368804668054], [0.11789368804668054, 0.81760308616373334]], [[0.11789368804668054, 0.11789368804668054], [0.66577278756599267, 0.11789368804668054]], [[0.11789368804668054, 0.21281660069146269], [0.11789368804668054, 0.11789368804668054]], [[0.11789368804668054, 0.11789368804668054], [0.11789368804668054, 0.11789368804668054]], [[0.35566828339792633, 0.63078660214558968], [0.11789368804668054, 0.11789368804668054]]]))
14076          self.failUnless(isinstance(res,Data),"wrong type of result.")
14077          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14078          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14079       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14080       def test_maximum_taggedData_rank4_constData_rank0(self):
14081          arg0=Data(numarray.array([[[[0.058530631584147841, 0.14750170330075418, 0.083554821050923156, 0.12739051526091272], [-0.96524804058847291, 0.208606108995401, -0.93204062175176716, -0.064016818762620442], [-0.16874685746413665, 0.12806083598258522, 0.41076238998523329, -0.48148824169789872]], [[-0.15831879740579691, 0.28831400768868387, 0.3982174652620778, -0.16248028079896515], [-0.27532326311687805, -0.021862137691255779, 0.09350394863730882, 0.78286608006869374], [-0.63089464456191502, 0.28554127685291042, -0.62526764012057812, 0.72594337680791199]]], [[[-0.6424127600311349, -0.21762021092041217, 0.2611370537310389, -0.52434944778859016], [0.35997637929992288, 0.76173275479140012, -0.6563115461338449, -0.90626014629268803], [0.50176242567542029, 0.16915711622775853, 0.87403536456826458, 0.61308431638548]], [[0.033212229761786283, 0.63077470361800581, -0.05709057602998735, -0.27186221772582786], [0.84770710741426436, 0.028921811923150686, -0.25629745341448174, 0.70688266388332743], [-0.97553041516851535, -0.79794387583154935, 0.62806989822101023, 0.40672359067803687]]], [[[-0.74111207066215212, -0.31687926245252651, -0.78612721063127888, 0.58083076665099287], [-0.30743221260109577, 0.57338542003085302, -0.14911240473892806, 0.98569614719602749], [0.24596223558102115, -0.5443517484938829, -0.79259488248175103, -0.69342114529009313]], [[-0.42259849098299629, -0.034397453248862897, -0.099822524038713389, -0.8468836448326178], [0.97527226747919893, 0.61972856955552458, -0.74471183260979834, -0.40408785286516768], [-0.87658138339376124, 0.84390281173153592, 0.13925306092932255, -0.33452693973067404]]]]),self.functionspace)
14082          arg0.setTaggedValue(1,numarray.array([[[[-0.12144409800449729, -0.33417039576434138, -0.61085065582742182, 0.8677662783183886], [0.8932843691663277, 0.084340565721825911, 0.40982244051084171, 0.034826116046352107], [-0.52327027500949352, 0.28231558158830583, 0.96316694749696996, 0.65530290034532812]], [[-0.48599557420440109, 0.94733329294485413, -0.54789959265104793, 0.9728641970472145], [0.19946614339353386, -0.46233735344589122, 0.38061862918115064, 0.60582971644701722], [0.39088733929715191, -0.27125261669514367, 0.64896347670959309, 0.20518579171289808]]], [[[-0.42708438888246159, 0.58991510815264414, -0.8979168816067753, 0.39660460366783656], [0.89047849986284233, 0.79571279345534807, 0.48161316017611755, -0.16618845208499899], [-0.37900902267404524, 0.37429071509740552, 0.15566009975997486, 0.36021174077288243]], [[0.60577858865639511, -0.907251230609458, 0.72699394638914705, 0.4580268717701188], [-0.60268237753401377, -0.012975109597635148, -0.24614971362638083, 0.53144328109785066], [0.34904906643582678, -0.29029548244600134, 0.82432163597412145, 0.64993980699502396]]], [[[0.38651003856272448, 0.91544426713746319, -0.28499396863792059, 0.84403596898915811], [0.044799630121824308, -0.5595319739528597, 0.98476752736083739, -0.055205325073725664], [0.56308155093763035, -0.22612614540599085, 0.84487723147154825, -0.32251627516945569]], [[-0.83935271937690636, 0.11596577500942273, 0.026618480268968625, -0.65760920822899149], [0.28333140444788762, 0.78566755623194018, -0.79801040291438397, 0.49856405176807894], [-0.039629093631027734, 0.29220360739139317, 0.51911055345014745, 0.17497093994658242]]]]))
14083          arg1=Data(0.0537820413535,self.functionspace)
14084          res=maximum(arg0,arg1)
14085          ref=Data(numarray.array([[[[0.058530631584147841, 0.14750170330075418, 0.083554821050923156, 0.12739051526091272], [0.053782041353522159, 0.208606108995401, 0.053782041353522159, 0.053782041353522159], [0.053782041353522159, 0.12806083598258522, 0.41076238998523329, 0.053782041353522159]], [[0.053782041353522159, 0.28831400768868387, 0.3982174652620778, 0.053782041353522159], [0.053782041353522159, 0.053782041353522159, 0.09350394863730882, 0.78286608006869374], [0.053782041353522159, 0.28554127685291042, 0.053782041353522159, 0.72594337680791199]]], [[[0.053782041353522159, 0.053782041353522159, 0.2611370537310389, 0.053782041353522159], [0.35997637929992288, 0.76173275479140012, 0.053782041353522159, 0.053782041353522159], [0.50176242567542029, 0.16915711622775853, 0.87403536456826458, 0.61308431638548]], [[0.053782041353522159, 0.63077470361800581, 0.053782041353522159, 0.053782041353522159], [0.84770710741426436, 0.053782041353522159, 0.053782041353522159, 0.70688266388332743], [0.053782041353522159, 0.053782041353522159, 0.62806989822101023, 0.40672359067803687]]], [[[0.053782041353522159, 0.053782041353522159, 0.053782041353522159, 0.58083076665099287], [0.053782041353522159, 0.57338542003085302, 0.053782041353522159, 0.98569614719602749], [0.24596223558102115, 0.053782041353522159, 0.053782041353522159, 0.053782041353522159]], [[0.053782041353522159, 0.053782041353522159, 0.053782041353522159, 0.053782041353522159], [0.97527226747919893, 0.61972856955552458, 0.053782041353522159, 0.053782041353522159], [0.053782041353522159, 0.84390281173153592, 0.13925306092932255, 0.053782041353522159]]]]),self.functionspace)
14086          ref.setTaggedValue(1,numarray.array([[[[0.053782041353522159, 0.053782041353522159, 0.053782041353522159, 0.8677662783183886], [0.8932843691663277, 0.084340565721825911, 0.40982244051084171, 0.053782041353522159], [0.053782041353522159, 0.28231558158830583, 0.96316694749696996, 0.65530290034532812]], [[0.053782041353522159, 0.94733329294485413, 0.053782041353522159, 0.9728641970472145], [0.19946614339353386, 0.053782041353522159, 0.38061862918115064, 0.60582971644701722], [0.39088733929715191, 0.053782041353522159, 0.64896347670959309, 0.20518579171289808]]], [[[0.053782041353522159, 0.58991510815264414, 0.053782041353522159, 0.39660460366783656], [0.89047849986284233, 0.79571279345534807, 0.48161316017611755, 0.053782041353522159], [0.053782041353522159, 0.37429071509740552, 0.15566009975997486, 0.36021174077288243]], [[0.60577858865639511, 0.053782041353522159, 0.72699394638914705, 0.4580268717701188], [0.053782041353522159, 0.053782041353522159, 0.053782041353522159, 0.53144328109785066], [0.34904906643582678, 0.053782041353522159, 0.82432163597412145, 0.64993980699502396]]], [[[0.38651003856272448, 0.91544426713746319, 0.053782041353522159, 0.84403596898915811], [0.053782041353522159, 0.053782041353522159, 0.98476752736083739, 0.053782041353522159], [0.56308155093763035, 0.053782041353522159, 0.84487723147154825, 0.053782041353522159]], [[0.053782041353522159, 0.11596577500942273, 0.053782041353522159, 0.053782041353522159], [0.28333140444788762, 0.78566755623194018, 0.053782041353522159, 0.49856405176807894], [0.053782041353522159, 0.29220360739139317, 0.51911055345014745, 0.17497093994658242]]]]))
14087          self.failUnless(isinstance(res,Data),"wrong type of result.")
14088          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14089          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14090       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14091       def test_maximum_taggedData_rank0_taggedData_rank0(self):
14092          arg0=Data(-0.0773050286218,self.functionspace)
14093          arg0.setTaggedValue(1,0.795622660396)
14094          arg1=Data(0.687408080924,self.functionspace)
14095          arg1.setTaggedValue(1,-0.893012441951)
14096          res=maximum(arg0,arg1)
14097          ref=Data(0.687408080924,self.functionspace)
14098          ref.setTaggedValue(1,0.795622660396)
14099          self.failUnless(isinstance(res,Data),"wrong type of result.")
14100          self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
14101          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14102       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14103       def test_maximum_taggedData_rank1_taggedData_rank0(self):
14104          arg0=Data(numarray.array([-0.97940722383606604, 0.20831974957133181]),self.functionspace)
14105          arg0.setTaggedValue(1,numarray.array([-0.1414990755156631, 0.25244721263550951]))
14106          arg1=Data(-0.932634599616,self.functionspace)
14107          arg1.setTaggedValue(1,-0.0406184999095)
14108          res=maximum(arg0,arg1)
14109          ref=Data(numarray.array([-0.93263459961646955, 0.20831974957133181]),self.functionspace)
14110          ref.setTaggedValue(1,numarray.array([-0.040618499909469197, 0.25244721263550951]))
14111          self.failUnless(isinstance(res,Data),"wrong type of result.")
14112          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14113          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14114       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14115       def test_maximum_taggedData_rank2_taggedData_rank0(self):
14116          arg0=Data(numarray.array([[0.81865421202670863, -0.48309271412923671, -0.2721938821807186, 0.46431024750046324, 0.80266295409265509], [-0.92189300694573761, -0.047361568571882007, 0.67496605976373658, 0.63397415606415652, 0.12548268283303088], [-0.2720386995977282, -0.99921605658341295, -0.97570019181320355, -0.87761388633010884, 0.43244382500846212], [0.31147069716597664, 0.68650179884169527, 0.21568489539421165, 0.71188054668904255, -0.074654471444180803]]),self.functionspace)
14117          arg0.setTaggedValue(1,numarray.array([[-0.64092321491154935, 0.75352868437484521, 0.70581906492627078, -0.59626477374775932, -0.49808340791716743], [-0.16077276729815138, 0.98644961425401534, 0.65421989255235213, 0.011816660133845858, -0.61492545805462773], [0.64343690927522323, -0.78078133450788467, -0.90704878580122839, -0.03273812861031411, 0.88026881938891033], [-0.75705605703252088, 0.65109494974282045, 0.33485057620634295, -0.43886483245682828, 0.53205333363042961]]))
14118          arg1=Data(-0.73132633447,self.functionspace)
14119          arg1.setTaggedValue(1,0.5627616956)
14120          res=maximum(arg0,arg1)
14121          ref=Data(numarray.array([[0.81865421202670863, -0.48309271412923671, -0.2721938821807186, 0.46431024750046324, 0.80266295409265509], [-0.7313263344703429, -0.047361568571882007, 0.67496605976373658, 0.63397415606415652, 0.12548268283303088], [-0.2720386995977282, -0.7313263344703429, -0.7313263344703429, -0.7313263344703429, 0.43244382500846212], [0.31147069716597664, 0.68650179884169527, 0.21568489539421165, 0.71188054668904255, -0.074654471444180803]]),self.functionspace)
14122          ref.setTaggedValue(1,numarray.array([[0.5627616955998842, 0.75352868437484521, 0.70581906492627078, 0.5627616955998842, 0.5627616955998842], [0.5627616955998842, 0.98644961425401534, 0.65421989255235213, 0.5627616955998842, 0.5627616955998842], [0.64343690927522323, 0.5627616955998842, 0.5627616955998842, 0.5627616955998842, 0.88026881938891033], [0.5627616955998842, 0.65109494974282045, 0.5627616955998842, 0.5627616955998842, 0.5627616955998842]]))
14123          self.failUnless(isinstance(res,Data),"wrong type of result.")
14124          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14125          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14126       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14127       def test_maximum_taggedData_rank3_taggedData_rank0(self):
14128          arg0=Data(numarray.array([[[-0.98539672133847422, -0.066559654209057628], [0.73258799215294079, -0.96930561391189896]], [[0.91281479696554624, 0.88681589442296715], [-0.29821008712592056, 0.86769445558487956]], [[0.54549310803389695, -0.94714668467079655], [-0.88406559478922886, -0.94384448275619626]], [[0.088804525243413313, 0.55716033028391743], [0.84248101886488769, -0.80351993484400186]], [[0.63959700723873314, 0.38407245797650402], [0.72260249029460488, -0.52723602697267569]], [[-0.63819007263327387, 0.79618949712425513], [-0.38164845782148848, -0.34440124307925601]]]),self.functionspace)
14129          arg0.setTaggedValue(1,numarray.array([[[-0.068822580807178957, -0.056368405194844096], [0.097742974763102008, -0.70483015098791957]], [[-0.66067964199224471, 0.34217386326535326], [-0.28722013448256978, 0.26926934492791066]], [[-0.24311752434158374, -0.80417487986334546], [0.38207143293187751, 0.038754968094078857]], [[-0.39836327466705601, 0.74975919273299629], [0.55814389365676575, -0.33827474179200778]], [[0.33785974041791622, 0.45821033877180106], [-0.35472232065460507, 0.88151115955192849]], [[0.28123899673688557, 0.53127396097933866], [-0.53894090929285499, -0.24499886092776557]]]))
14130          arg1=Data(-0.343424592439,self.functionspace)
14131          arg1.setTaggedValue(1,-0.181401039795)
14132          res=maximum(arg0,arg1)
14133          ref=Data(numarray.array([[[-0.34342459243887902, -0.066559654209057628], [0.73258799215294079, -0.34342459243887902]], [[0.91281479696554624, 0.88681589442296715], [-0.29821008712592056, 0.86769445558487956]], [[0.54549310803389695, -0.34342459243887902], [-0.34342459243887902, -0.34342459243887902]], [[0.088804525243413313, 0.55716033028391743], [0.84248101886488769, -0.34342459243887902]], [[0.63959700723873314, 0.38407245797650402], [0.72260249029460488, -0.34342459243887902]], [[-0.34342459243887902, 0.79618949712425513], [-0.34342459243887902, -0.34342459243887902]]]),self.functionspace)
14134          ref.setTaggedValue(1,numarray.array([[[-0.068822580807178957, -0.056368405194844096], [0.097742974763102008, -0.18140103979546862]], [[-0.18140103979546862, 0.34217386326535326], [-0.18140103979546862, 0.26926934492791066]], [[-0.18140103979546862, -0.18140103979546862], [0.38207143293187751, 0.038754968094078857]], [[-0.18140103979546862, 0.74975919273299629], [0.55814389365676575, -0.18140103979546862]], [[0.33785974041791622, 0.45821033877180106], [-0.18140103979546862, 0.88151115955192849]], [[0.28123899673688557, 0.53127396097933866], [-0.18140103979546862, -0.18140103979546862]]]))
14135          self.failUnless(isinstance(res,Data),"wrong type of result.")
14136          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14137          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14138       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14139       def test_maximum_taggedData_rank4_taggedData_rank0(self):
14140          arg0=Data(numarray.array([[[[0.82223168576566574, -0.39034148514526379, -0.94711419906947292, 0.86806035007101068], [-0.2548080146990308, -0.076426927175190285, -0.93645365020155502, -0.88057796359480744], [-0.62632340504906492, -0.91564753892682949, 0.20897202558403905, 0.42521530117093609]], [[0.85706286544748389, 0.18445700944364263, -0.41235539256262443, -0.86354278504183912], [-0.068520321389177186, 0.92680817821087369, -0.21753025675661553, 0.11504290657947713], [0.67612716594324618, 0.72911408811086109, 0.31613685556875448, -0.28280101200466023]]], [[[-0.5287979150830171, -0.43314984241026488, -0.423060681824589, -0.28680119480062327], [0.46829230775079789, -0.73927400726354553, -0.57885260942280059, -0.86597688869894807], [0.85219176461254653, -0.83165235642055091, -0.82090980966195892, 0.96552320190135776]], [[-0.53754032866502199, 0.10361563310991806, 0.04536386739623155, -0.083126518077624612], [-0.64065353373786227, 0.070242300568236882, -0.05511910627669514, 0.010746148569006131], [-0.29282928335317449, -0.28973787162126263, 0.8937649861634509, -0.34212368796139314]]], [[[-0.084883236922512761, -0.24802788469888815, -0.83603257677797727, -0.16733188815661548], [-0.96751180804381454, -0.9324284016154305, -0.71291710547447074, 0.51460065373168051], [-0.52079118499827715, 0.93730765691831586, 0.51010620006895446, -0.39915618582193901]], [[0.19812793189184785, -0.46876475960914865, 0.35505566574804037, -0.077963408541119827], [0.42135760706020275, 0.18151614891811407, -0.27859677619875689, -0.5706629366910998], [-0.28630661981927763, -0.6382594098998402, 0.69441943434339248, 0.17952645963348113]]]]),self.functionspace)
14141          arg0.setTaggedValue(1,numarray.array([[[[-0.54952366530408225, -0.71759607590503838, -0.050516796200858138, -0.1675098663390413], [-0.74431641125859538, 0.17133554793892669, 0.44986317513980922, -0.13041645263811108], [0.31865080791602152, 0.16192661121360175, -0.16960116270526027, -0.29754093334032317]], [[0.37651600855466572, -0.41242332065767218, -0.97670073815869229, 0.88382920458145176], [-0.18910784762409105, 0.32326820817394575, -0.32785764767200365, -0.21038790837238541], [-0.31899961237167096, -0.21533510249156174, 0.47173709175828171, 0.67947703219883659]]], [[[0.53639964146440167, 0.92849226037664412, 0.8338730454241956, -0.85536478844296182], [-0.22830297017919721, 0.34686252987501409, -0.86055709472397024, -0.59270840703730898], [-0.42298476784023098, 0.26829644328408486, -0.23256227464061485, 0.22715556948205951]], [[0.1240651761997138, -0.29784061059828915, 0.1756006268404986, 0.95332632944863516], [0.85500918190924424, -0.41143222047842953, -0.43059802994177043, -0.66360443585995088], [-0.2927336423613196, 0.25230657561304648, -0.22409949967070686, -0.59779458927362494]]], [[[-0.77446415717404093, -0.42828041921756022, -0.95092214224900284, 0.51114636793983603], [-0.94679606661444993, -0.45504604302435681, 0.79244715667059351, 0.78853431082389247], [-0.020581155417678243, 0.84373370013654525, -0.62638304380153209, -0.20526441124213579]], [[0.84529422818669242, 0.052482399563541726, 0.47434350715509299, -0.87457049333209924], [0.82830876346993176, 0.44340216476794092, -0.70171255874245575, -0.37606319845637515], [-0.86393232160446631, -0.044187973750994924, -0.63919765525092975, 0.55678681387162343]]]]))
14142          arg1=Data(0.131061463012,self.functionspace)
14143          arg1.setTaggedValue(1,-0.154171401658)
14144          res=maximum(arg0,arg1)
14145          ref=Data(numarray.array([[[[0.82223168576566574, 0.13106146301229837, 0.13106146301229837, 0.86806035007101068], [0.13106146301229837, 0.13106146301229837, 0.13106146301229837, 0.13106146301229837], [0.13106146301229837, 0.13106146301229837, 0.20897202558403905, 0.42521530117093609]], [[0.85706286544748389, 0.18445700944364263, 0.13106146301229837, 0.13106146301229837], [0.13106146301229837, 0.92680817821087369, 0.13106146301229837, 0.13106146301229837], [0.67612716594324618, 0.72911408811086109, 0.31613685556875448, 0.13106146301229837]]], [[[0.13106146301229837, 0.13106146301229837, 0.13106146301229837, 0.13106146301229837], [0.46829230775079789, 0.13106146301229837, 0.13106146301229837, 0.13106146301229837], [0.85219176461254653, 0.13106146301229837, 0.13106146301229837, 0.96552320190135776]], [[0.13106146301229837, 0.13106146301229837, 0.13106146301229837, 0.13106146301229837], [0.13106146301229837, 0.13106146301229837, 0.13106146301229837, 0.13106146301229837], [0.13106146301229837, 0.13106146301229837, 0.8937649861634509, 0.13106146301229837]]], [[[0.13106146301229837, 0.13106146301229837, 0.13106146301229837, 0.13106146301229837], [0.13106146301229837, 0.13106146301229837, 0.13106146301229837, 0.51460065373168051], [0.13106146301229837, 0.93730765691831586, 0.51010620006895446, 0.13106146301229837]], [[0.19812793189184785, 0.13106146301229837, 0.35505566574804037, 0.13106146301229837], [0.42135760706020275, 0.18151614891811407, 0.13106146301229837, 0.13106146301229837], [0.13106146301229837, 0.13106146301229837, 0.69441943434339248, 0.17952645963348113]]]]),self.functionspace)
14146          ref.setTaggedValue(1,numarray.array([[[[-0.15417140165809018, -0.15417140165809018, -0.050516796200858138, -0.15417140165809018], [-0.15417140165809018, 0.17133554793892669, 0.44986317513980922, -0.13041645263811108], [0.31865080791602152, 0.16192661121360175, -0.15417140165809018, -0.15417140165809018]], [[0.37651600855466572, -0.15417140165809018, -0.15417140165809018, 0.88382920458145176], [-0.15417140165809018, 0.32326820817394575, -0.15417140165809018, -0.15417140165809018], [-0.15417140165809018, -0.15417140165809018, 0.47173709175828171, 0.67947703219883659]]], [[[0.53639964146440167, 0.92849226037664412, 0.8338730454241956, -0.15417140165809018], [-0.15417140165809018, 0.34686252987501409, -0.15417140165809018, -0.15417140165809018], [-0.15417140165809018, 0.26829644328408486, -0.15417140165809018, 0.22715556948205951]], [[0.1240651761997138, -0.15417140165809018, 0.1756006268404986, 0.95332632944863516], [0.85500918190924424, -0.15417140165809018, -0.15417140165809018, -0.15417140165809018], [-0.15417140165809018, 0.25230657561304648, -0.15417140165809018, -0.15417140165809018]]], [[[-0.15417140165809018, -0.15417140165809018, -0.15417140165809018, 0.51114636793983603], [-0.15417140165809018, -0.15417140165809018, 0.79244715667059351, 0.78853431082389247], [-0.020581155417678243, 0.84373370013654525, -0.15417140165809018, -0.15417140165809018]], [[0.84529422818669242, 0.052482399563541726, 0.47434350715509299, -0.15417140165809018], [0.82830876346993176, 0.44340216476794092, -0.15417140165809018, -0.15417140165809018], [-0.15417140165809018, -0.044187973750994924, -0.15417140165809018, 0.55678681387162343]]]]))
14147          self.failUnless(isinstance(res,Data),"wrong type of result.")
14148          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14149          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14150       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14151       def test_maximum_taggedData_rank0_expandedData_rank0(self):
14152          arg0=Data(0.404613896023,self.functionspace)
14153          arg0.setTaggedValue(1,-0.605787471295)
14154          arg1=Data(-0.953147829874,self.functionspace)
14155          arg1.setTaggedValue(1,0.871023339507)
14156          arg1.expand()
14157          res=maximum(arg0,arg1)
14158          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14159          ref=msk_ref*(0.404613896023)+(1.-msk_ref)*(0.871023339507)
14160          self.failUnless(isinstance(res,Data),"wrong type of result.")
14161          self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
14162          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14163       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14164       def test_maximum_taggedData_rank1_expandedData_rank0(self):
14165          arg0=Data(numarray.array([-0.53734286036823153, -0.40147255817066241]),self.functionspace)
14166          arg0.setTaggedValue(1,numarray.array([0.37406391752627832, -0.98975771429517279]))
14167          arg1=Data(-0.673204948535,self.functionspace)
14168          arg1.setTaggedValue(1,0.865550829826)
14169          arg1.expand()
14170          res=maximum(arg0,arg1)
14171          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14172          ref=msk_ref*numarray.array([-0.53734286036823153, -0.40147255817066241])+(1.-msk_ref)*numarray.array([0.86555082982552345, 0.86555082982552345])
14173          self.failUnless(isinstance(res,Data),"wrong type of result.")
14174          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14175          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14176       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14177       def test_maximum_taggedData_rank2_expandedData_rank0(self):
14178          arg0=Data(numarray.array([[0.59718433144947225, 0.2185118451777206, 0.68106689437209922, 0.8330950201681262, 0.92251529616059336], [0.35915436627683461, 0.82050354603191278, -0.48346987667009711, 0.95798739323304094, -0.45212823813081804], [-0.6143397531819943, -0.59662090135653489, -0.17527607094482889, -0.51980046717121464, -0.69654082146478391], [0.80804619319490834, -0.64871787794038505, -0.61174035027023321, 0.61921189194019122, 0.57947500303286836]]),self.functionspace)
14179          arg0.setTaggedValue(1,numarray.array([[-0.7121781219674157, 0.87711958760290343, 0.17124948184868671, 0.0092844154019224856, 0.59174550729124076], [-0.79171061609947269, -0.7378641467324718, 0.55914098178797467, -0.64741556788173793, -0.53631396719845847], [0.26075613237228623, 0.53213127069458754, -0.8726256530309553, 0.27111087452724303, 0.11739286222190493], [0.29166396957322704, 0.75671926964971514, -0.076399138446586301, -0.69802601769574379, 0.95997927785343595]]))
14180          arg1=Data(0.281821267134,self.functionspace)
14181          arg1.setTaggedValue(1,-0.267044396323)
14182          arg1.expand()
14183          res=maximum(arg0,arg1)
14184          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14185          ref=msk_ref*numarray.array([[0.59718433144947225, 0.28182126713414779, 0.68106689437209922, 0.8330950201681262, 0.92251529616059336], [0.35915436627683461, 0.82050354603191278, 0.28182126713414779, 0.95798739323304094, 0.28182126713414779], [0.28182126713414779, 0.28182126713414779, 0.28182126713414779, 0.28182126713414779, 0.28182126713414779], [0.80804619319490834, 0.28182126713414779, 0.28182126713414779, 0.61921189194019122, 0.57947500303286836]])+(1.-msk_ref)*numarray.array([[-0.26704439632263077, 0.87711958760290343, 0.17124948184868671, 0.0092844154019224856, 0.59174550729124076], [-0.26704439632263077, -0.26704439632263077, 0.55914098178797467, -0.26704439632263077, -0.26704439632263077], [0.26075613237228623, 0.53213127069458754, -0.26704439632263077, 0.27111087452724303, 0.11739286222190493], [0.29166396957322704, 0.75671926964971514, -0.076399138446586301, -0.26704439632263077, 0.95997927785343595]])
14186          self.failUnless(isinstance(res,Data),"wrong type of result.")
14187          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14188          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14189       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14190       def test_maximum_taggedData_rank3_expandedData_rank0(self):
14191          arg0=Data(numarray.array([[[-0.8533458041194999, 0.045970167640473347], [-0.30892003571780102, 0.68404306174037122]], [[-0.2233635724050711, -0.1972699426853608], [0.55480158886511521, -0.081679837610963313]], [[0.46092131939377401, 0.61841845376278903], [-0.20135629761268814, 0.64568662909420782]], [[0.42220843169453914, 0.48788430349364686], [-0.21026274889184049, 0.92207885217687857]], [[0.19255327953788837, -0.98249593407651603], [-0.77974761806396331, 0.80531737845613161]], [[-0.076443695327172545, 0.0038557847104050413], [0.24935171772121745, -0.25051807392206449]]]),self.functionspace)
14192          arg0.setTaggedValue(1,numarray.array([[[0.27025548477652839, 0.86031576930313269], [-0.67371780949017235, 0.82251684778702772]], [[0.30087515206645254, 0.7888837003038216], [0.32479659296094598, -0.65301409296449964]], [[-0.15740090470976709, -0.99101728027566072], [0.57171440467946577, -0.71735225967556637]], [[0.5187975482154179, 0.12427821264169658], [-0.066862130192447466, 0.072664756311500156]], [[0.47887099987031401, -0.45696493285976181], [0.19388688089778983, -0.77558040097252556]], [[0.12149530302926204, 0.88141576474629457], [-0.21574845515507768, 0.11591491519891162]]]))
14193          arg1=Data(0.764990544123,self.functionspace)
14194          arg1.setTaggedValue(1,0.652885364686)
14195          arg1.expand()
14196          res=maximum(arg0,arg1)
14197          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14198          ref=msk_ref*numarray.array([[[0.76499054412263034, 0.76499054412263034], [0.76499054412263034, 0.76499054412263034]], [[0.76499054412263034, 0.76499054412263034], [0.76499054412263034, 0.76499054412263034]], [[0.76499054412263034, 0.76499054412263034], [0.76499054412263034, 0.76499054412263034]], [[0.76499054412263034, 0.76499054412263034], [0.76499054412263034, 0.92207885217687857]], [[0.76499054412263034, 0.76499054412263034], [0.76499054412263034, 0.80531737845613161]], [[0.76499054412263034, 0.76499054412263034], [0.76499054412263034, 0.76499054412263034]]])+(1.-msk_ref)*numarray.array([[[0.65288536468628089, 0.86031576930313269], [0.65288536468628089, 0.82251684778702772]], [[0.65288536468628089, 0.7888837003038216], [0.65288536468628089, 0.65288536468628089]], [[0.65288536468628089, 0.65288536468628089], [0.65288536468628089, 0.65288536468628089]], [[0.65288536468628089, 0.65288536468628089], [0.65288536468628089, 0.65288536468628089]], [[0.65288536468628089, 0.65288536468628089], [0.65288536468628089, 0.65288536468628089]], [[0.65288536468628089, 0.88141576474629457], [0.65288536468628089, 0.65288536468628089]]])
14199          self.failUnless(isinstance(res,Data),"wrong type of result.")
14200          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14201          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14202       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14203       def test_maximum_taggedData_rank4_expandedData_rank0(self):
14204          arg0=Data(numarray.array([[[[0.020321372851521025, -0.93303289613231555, -0.95544220026675974, -0.74796287954883267], [-0.55901645715191917, -0.36217214791370034, 0.53668281200168733, -0.62072014134910858], [0.83805495909946126, 0.77801126114371688, 0.29009932155835116, -0.11888480953765868]], [[0.59529921332903846, 0.18339193991589875, -0.53504376500242934, -0.44771907747332174], [-0.84892514285551224, 0.094393593853048241, -0.30451187753969244, 0.48476622589639429], [0.31356243394435968, -0.057441534965831709, 0.21499351301171732, -0.15075804141589444]]], [[[-0.94703424018204241, -0.92104669477115619, 0.99823597603366054, -0.32846952396898588], [0.27321519973915231, 0.57318554411784661, -0.30698818125973681, 0.36977603750084009], [-0.92416980500478063, -0.824412204771928, -0.5059174628188523, -0.85789760717090657]], [[0.94487600518674952, -0.70850736941014691, 0.99934299337146282, -0.27228751751816205], [0.98790892089967119, -0.86273585977927381, 0.58791085686482214, 0.47962584847037482], [0.45615710497316209, 0.98114105471982738, 0.035620550773440396, -0.26053229372544595]]], [[[-0.1202291869497587, 0.52289135145881516, 0.37036877069633567, -0.73751673095228876], [-0.7786897073727419, -0.40538194892533808, 0.13045362303694263, -0.080414453370386108], [0.71746193044629014, 0.74301083690226499, 0.73084215912703909, 0.80085666126038157]], [[0.95037071748664692, -0.91198227675294419, -0.65964614505382402, 0.084204985381424624], [-0.36948676097327637, 0.028114901134742132, -0.72803456102656239, -0.44262625387838828], [0.69591152795978251, 0.19324513934386278, -0.84347572196959231, 0.32397343231861542]]]]),self.functionspace)
14205          arg0.setTaggedValue(1,numarray.array([[[[-0.24422409034649251, 0.45246529593531504, 0.45562364834245339, 0.4808189145316053], [-0.16981439839788326, -0.30658463816074488, -0.080968711430397855, 0.97248637580601649], [0.24869889786329136, 0.47964155030130162, -0.40834468120180056, -0.68979933049205955]], [[0.76755525804469693, -0.69809845994799447, -0.20296863341718785, -0.82781540863709657], [-0.60734832748063483, 0.47561020582127189, -0.1236043806840661, 0.83631467315572583], [0.12443889610964276, 0.0003527545890085193, 0.077149308433344999, 0.38046623627369702]]], [[[0.91461817871600304, -0.57475023451064855, -0.90841472637097342, -0.62829270542168669], [0.29480893596414326, -0.97192517793673971, -0.47991983665599292, 0.51390104336966513], [-0.75775548373292678, -0.18052549363005266, -0.56327405379176243, 0.96964582135188926]], [[-0.22650781069521786, -0.10512952061089442, 0.84466780553372245, 0.84278325439355717], [0.074018912142888027, 0.10121224724730116, -0.35621293935333775, 0.92522669299227434], [-0.16210447824173713, -0.77087007456783763, 0.66780917153393071, -0.90668068535906987]]], [[[-0.56005535597335143, 0.31356129488603779, -0.15316971454601092, 0.40223673586421604], [-0.050377244061466486, -0.73004306346445169, 0.21636888803187748, -0.53958091647537199], [0.46247110370429745, 0.42897768398448388, -0.17689648225954002, -0.10259309906145675]], [[-0.26689251428607474, 0.85792406448711533, 0.7690855531164642, -0.86751842029893322], [-0.94075022205947945, -0.48534849005619107, 0.22360137438091021, -0.56367049064610764], [-0.63452523314118614, -0.30384914180664246, -0.60704022107059785, -0.3528338703453564]]]]))
14206          arg1=Data(-0.608331286804,self.functionspace)
14207          arg1.setTaggedValue(1,-0.229410045543)
14208          arg1.expand()
14209          res=maximum(arg0,arg1)
14210          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14211          ref=msk_ref*numarray.array([[[[0.020321372851521025, -0.60833128680443482, -0.60833128680443482, -0.60833128680443482], [-0.55901645715191917, -0.36217214791370034, 0.53668281200168733, -0.60833128680443482], [0.83805495909946126, 0.77801126114371688, 0.29009932155835116, -0.11888480953765868]], [[0.59529921332903846, 0.18339193991589875, -0.53504376500242934, -0.44771907747332174], [-0.60833128680443482, 0.094393593853048241, -0.30451187753969244, 0.48476622589639429], [0.31356243394435968, -0.057441534965831709, 0.21499351301171732, -0.15075804141589444]]], [[[-0.60833128680443482, -0.60833128680443482, 0.99823597603366054, -0.32846952396898588], [0.27321519973915231, 0.57318554411784661, -0.30698818125973681, 0.36977603750084009], [-0.60833128680443482, -0.60833128680443482, -0.5059174628188523, -0.60833128680443482]], [[0.94487600518674952, -0.60833128680443482, 0.99934299337146282, -0.27228751751816205], [0.98790892089967119, -0.60833128680443482, 0.58791085686482214, 0.47962584847037482], [0.45615710497316209, 0.98114105471982738, 0.035620550773440396, -0.26053229372544595]]], [[[-0.1202291869497587, 0.52289135145881516, 0.37036877069633567, -0.60833128680443482], [-0.60833128680443482, -0.40538194892533808, 0.13045362303694263, -0.080414453370386108], [0.71746193044629014, 0.74301083690226499, 0.73084215912703909, 0.80085666126038157]], [[0.95037071748664692, -0.60833128680443482, -0.60833128680443482, 0.084204985381424624], [-0.36948676097327637, 0.028114901134742132, -0.60833128680443482, -0.44262625387838828], [0.69591152795978251, 0.19324513934386278, -0.60833128680443482, 0.32397343231861542]]]])+(1.-msk_ref)*numarray.array([[[[-0.22941004554296418, 0.45246529593531504, 0.45562364834245339, 0.4808189145316053], [-0.16981439839788326, -0.22941004554296418, -0.080968711430397855, 0.97248637580601649], [0.24869889786329136, 0.47964155030130162, -0.22941004554296418, -0.22941004554296418]], [[0.76755525804469693, -0.22941004554296418, -0.20296863341718785, -0.22941004554296418], [-0.22941004554296418, 0.47561020582127189, -0.1236043806840661, 0.83631467315572583], [0.12443889610964276, 0.0003527545890085193, 0.077149308433344999, 0.38046623627369702]]], [[[0.91461817871600304, -0.22941004554296418, -0.22941004554296418, -0.22941004554296418], [0.29480893596414326, -0.22941004554296418, -0.22941004554296418, 0.51390104336966513], [-0.22941004554296418, -0.18052549363005266, -0.22941004554296418, 0.96964582135188926]], [[-0.22650781069521786, -0.10512952061089442, 0.84466780553372245, 0.84278325439355717], [0.074018912142888027, 0.10121224724730116, -0.22941004554296418, 0.92522669299227434], [-0.16210447824173713, -0.22941004554296418, 0.66780917153393071, -0.22941004554296418]]], [[[-0.22941004554296418, 0.31356129488603779, -0.15316971454601092, 0.40223673586421604], [-0.050377244061466486, -0.22941004554296418, 0.21636888803187748, -0.22941004554296418], [0.46247110370429745, 0.42897768398448388, -0.17689648225954002, -0.10259309906145675]], [[-0.22941004554296418, 0.85792406448711533, 0.7690855531164642, -0.22941004554296418], [-0.22941004554296418, -0.22941004554296418, 0.22360137438091021, -0.22941004554296418], [-0.22941004554296418, -0.22941004554296418, -0.22941004554296418, -0.22941004554296418]]]])
14212          self.failUnless(isinstance(res,Data),"wrong type of result.")
14213          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14214          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14215       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14216       def test_maximum_taggedData_rank0_array_rank1(self):
14217          arg0=Data(0.157645231269,self.functionspace)
14218          arg0.setTaggedValue(1,0.716081649316)
14219          arg1=numarray.array([-0.0288762834591898, 0.48103408390263014])
14220          res=maximum(arg0,arg1)
14221          ref=Data(numarray.array([0.15764523126859631, 0.48103408390263014]),self.functionspace)
14222          ref.setTaggedValue(1,numarray.array([0.71608164931572404, 0.71608164931572404]))
14223          self.failUnless(isinstance(res,Data),"wrong type of result.")
14224          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14225          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14226       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14227       def test_maximum_taggedData_rank1_array_rank1(self):
14228          arg0=Data(numarray.array([-0.47594729252226253, 0.69591812782109863]),self.functionspace)
14229          arg0.setTaggedValue(1,numarray.array([-0.047244738730578772, 0.15536580029588487]))
14230          arg1=numarray.array([0.0012221931857514523, 0.2807431886449292])
14231          res=maximum(arg0,arg1)
14232          ref=Data(numarray.array([0.0012221931857514523, 0.69591812782109863]),self.functionspace)
14233          ref.setTaggedValue(1,numarray.array([0.0012221931857514523, 0.2807431886449292]))
14234          self.failUnless(isinstance(res,Data),"wrong type of result.")
14235          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14236          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14237       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14238       def test_maximum_taggedData_rank0_Symbol_rank1(self):
14239          arg0=Data(-0.970874434487,self.functionspace)
14240          arg0.setTaggedValue(1,0.895447484278)
14241          arg1=Symbol(shape=(2,))
14242          res=maximum(arg0,arg1)
14243          s1=numarray.array([-0.4151111239764198, 0.44881294735595589])
14244          sub=res.substitute({arg1:s1})
14245          ref=Data(numarray.array([-0.4151111239764198, 0.44881294735595589]),self.functionspace)
14246          ref.setTaggedValue(1,numarray.array([0.8954474842779645, 0.8954474842779645]))
14247          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
14248          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14249          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14250       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14251       def test_maximum_taggedData_rank1_Symbol_rank1(self):
14252          arg0=Data(numarray.array([-0.5474902418067602, -0.72644707480789128]),self.functionspace)
14253          arg0.setTaggedValue(1,numarray.array([0.27958572656202318, -0.30237334948020345]))
14254          arg1=Symbol(shape=(2,))
14255          res=maximum(arg0,arg1)
14256          s1=numarray.array([0.52149744462171399, -0.032623266765084313])
14257          sub=res.substitute({arg1:s1})
14258          ref=Data(numarray.array([0.52149744462171399, -0.032623266765084313]),self.functionspace)
14259          ref.setTaggedValue(1,numarray.array([0.52149744462171399, -0.032623266765084313]))
14260          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
14261          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14262          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14263       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14264       def test_maximum_taggedData_rank0_constData_rank1(self):
14265          arg0=Data(0.586837179464,self.functionspace)
14266          arg0.setTaggedValue(1,0.546120003623)
14267          arg1=Data(numarray.array([-0.7842602045051339, 0.016535060489875297]),self.functionspace)
14268          res=maximum(arg0,arg1)
14269          ref=Data(numarray.array([0.58683717946353786, 0.58683717946353786]),self.functionspace)
14270          ref.setTaggedValue(1,numarray.array([0.54612000362283886, 0.54612000362283886]))
14271          self.failUnless(isinstance(res,Data),"wrong type of result.")
14272          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14273          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14274       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14275       def test_maximum_taggedData_rank1_constData_rank1(self):
14276          arg0=Data(numarray.array([-0.67359413520434108, -0.09712658701640331]),self.functionspace)
14277          arg0.setTaggedValue(1,numarray.array([-0.84882422147895475, -0.10311432585644575]))
14278          arg1=Data(numarray.array([0.35883918452068664, -0.25504388543838896]),self.functionspace)
14279          res=maximum(arg0,arg1)
14280          ref=Data(numarray.array([0.35883918452068664, -0.09712658701640331]),self.functionspace)
14281          ref.setTaggedValue(1,numarray.array([0.35883918452068664, -0.10311432585644575]))
14282          self.failUnless(isinstance(res,Data),"wrong type of result.")
14283          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14284          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14285       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14286       def test_maximum_taggedData_rank0_taggedData_rank1(self):
14287          arg0=Data(0.708247927721,self.functionspace)
14288          arg0.setTaggedValue(1,-0.544069251896)
14289          arg1=Data(numarray.array([0.1322099809790529, 0.0011452422922577643]),self.functionspace)
14290          arg1.setTaggedValue(1,numarray.array([0.8180746389225646, 0.1358975439783694]))
14291          res=maximum(arg0,arg1)
14292          ref=Data(numarray.array([0.70824792772120904, 0.70824792772120904]),self.functionspace)
14293          ref.setTaggedValue(1,numarray.array([0.8180746389225646, 0.1358975439783694]))
14294          self.failUnless(isinstance(res,Data),"wrong type of result.")
14295          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14296          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14297       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14298       def test_maximum_taggedData_rank1_taggedData_rank1(self):
14299          arg0=Data(numarray.array([-0.51503313886621216, 0.85281181698410458]),self.functionspace)
14300          arg0.setTaggedValue(1,numarray.array([-0.94713786377098041, -0.61862964694821243]))
14301          arg1=Data(numarray.array([-0.84325579274513851, -0.478261048265473]),self.functionspace)
14302          arg1.setTaggedValue(1,numarray.array([0.16213555285616055, 0.57048289256596396]))
14303          res=maximum(arg0,arg1)
14304          ref=Data(numarray.array([-0.51503313886621216, 0.85281181698410458]),self.functionspace)
14305          ref.setTaggedValue(1,numarray.array([0.16213555285616055, 0.57048289256596396]))
14306          self.failUnless(isinstance(res,Data),"wrong type of result.")
14307          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14308          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14309       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14310       def test_maximum_taggedData_rank0_expandedData_rank1(self):
14311          arg0=Data(0.369528177665,self.functionspace)
14312          arg0.setTaggedValue(1,0.0822421658421)
14313          arg1=Data(numarray.array([-0.9845991986964342, -0.46923308913203976]),self.functionspace)
14314          arg1.setTaggedValue(1,numarray.array([-0.98799743233626836, -0.6799905201091454]))
14315          arg1.expand()
14316          res=maximum(arg0,arg1)
14317          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14318          ref=msk_ref*numarray.array([0.36952817766485468, 0.36952817766485468])+(1.-msk_ref)*numarray.array([0.082242165842115966, 0.082242165842115966])
14319          self.failUnless(isinstance(res,Data),"wrong type of result.")
14320          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14321          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14322       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14323       def test_maximum_taggedData_rank1_expandedData_rank1(self):
14324          arg0=Data(numarray.array([-0.79270890908270375, 0.45978510662593486]),self.functionspace)
14325          arg0.setTaggedValue(1,numarray.array([-0.83309549385730208, 0.15503831909823051]))
14326          arg1=Data(numarray.array([0.18269716440918637, -0.64345121320159193]),self.functionspace)
14327          arg1.setTaggedValue(1,numarray.array([-0.74718380549682117, -0.18492910420451336]))
14328          arg1.expand()
14329          res=maximum(arg0,arg1)
14330          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14331          ref=msk_ref*numarray.array([0.18269716440918637, 0.45978510662593486])+(1.-msk_ref)*numarray.array([-0.74718380549682117, 0.15503831909823051])
14332          self.failUnless(isinstance(res,Data),"wrong type of result.")
14333          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14334          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14335       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14336       def test_maximum_taggedData_rank0_array_rank2(self):
14337          arg0=Data(-0.566144580073,self.functionspace)
14338          arg0.setTaggedValue(1,0.528503409453)
14339          arg1=numarray.array([[-0.87296213805104572, 0.78171285196302387, -0.75206465126245625, -0.37760325752482382, 0.56140852913273864], [-0.40408379117250814, -0.24086342170557162, 0.8196150565102196, 0.12732037183922351, -0.69490245846358101], [0.86331196812568689, -0.14995362196070072, -0.21427445909629594, 0.2824984342989636, 0.21435006695361514], [-0.086206831999868561, 0.62128214949299521, -0.028443307644340665, 0.17196722697690414, 0.52156533272349992]])
14340          res=maximum(arg0,arg1)
14341          ref=Data(numarray.array([[-0.56614458007328183, 0.78171285196302387, -0.56614458007328183, -0.37760325752482382, 0.56140852913273864], [-0.40408379117250814, -0.24086342170557162, 0.8196150565102196, 0.12732037183922351, -0.56614458007328183], [0.86331196812568689, -0.14995362196070072, -0.21427445909629594, 0.2824984342989636, 0.21435006695361514], [-0.086206831999868561, 0.62128214949299521, -0.028443307644340665, 0.17196722697690414, 0.52156533272349992]]),self.functionspace)
14342          ref.setTaggedValue(1,numarray.array([[0.52850340945270546, 0.78171285196302387, 0.52850340945270546, 0.52850340945270546, 0.56140852913273864], [0.52850340945270546, 0.52850340945270546, 0.8196150565102196, 0.52850340945270546, 0.52850340945270546], [0.86331196812568689, 0.52850340945270546, 0.52850340945270546, 0.52850340945270546, 0.52850340945270546], [0.52850340945270546, 0.62128214949299521, 0.52850340945270546, 0.52850340945270546, 0.52850340945270546]]))
14343          self.failUnless(isinstance(res,Data),"wrong type of result.")
14344          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14345          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14346       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14347       def test_maximum_taggedData_rank2_array_rank2(self):
14348          arg0=Data(numarray.array([[-0.81265839421787689, 0.26758136299963464, -0.039939932546667389, 0.082787369558762425, 0.96314292603725948], [-0.20035649646977394, 0.30575758837077016, -0.014967614657659389, -0.34454970578264077, 0.16326060363713779], [0.99730052382471346, -0.20752367257200888, -0.28054897850668659, -0.32346909583472461, 0.83256462668205899], [0.82903872612833673, -0.027773951243003969, -0.94960232582589588, 0.62054418211137197, -0.70848122510744749]]),self.functionspace)
14349          arg0.setTaggedValue(1,numarray.array([[-0.96080046835659583, -0.85008526456100042, 0.41518071014390467, 0.23122321813314395, 0.84922894101851676], [0.49724369844222727, 0.092773358522958427, 0.70959454786472476, -0.58860469047485164, -0.53449686276170838], [0.26904004689599925, -0.35567861386234068, 0.14923076840486571, 0.32405907812410284, 0.99459882904575658], [0.9585300557126224, 0.8794254635764116, 0.29544460705476605, -0.57828890766257723, -0.53844059216552131]]))
14350          arg1=numarray.array([[-0.42759689305620907, 0.5288377513195337, -0.36520782027363063, -0.096353962936305493, 0.52597520435345646], [0.22481642713756611, -0.056850043728278177, -0.93738809829177772, 0.38229119722314686, -0.45318890370183262], [0.75133292650894035, 0.33349120206980376, -0.35069851925638473, -0.063532053787333176, -0.98384425698514311], [-0.44244992103700653, -0.8725983072010739, -0.93880217759007722, -0.342313301291431, -0.91388239718385478]])
14351          res=maximum(arg0,arg1)
14352          ref=Data(numarray.array([[-0.42759689305620907, 0.5288377513195337, -0.039939932546667389, 0.082787369558762425, 0.96314292603725948], [0.22481642713756611, 0.30575758837077016, -0.014967614657659389, 0.38229119722314686, 0.16326060363713779], [0.99730052382471346, 0.33349120206980376, -0.28054897850668659, -0.063532053787333176, 0.83256462668205899], [0.82903872612833673, -0.027773951243003969, -0.93880217759007722, 0.62054418211137197, -0.70848122510744749]]),self.functionspace)
14353          ref.setTaggedValue(1,numarray.array([[-0.42759689305620907, 0.5288377513195337, 0.41518071014390467, 0.23122321813314395, 0.84922894101851676], [0.49724369844222727, 0.092773358522958427, 0.70959454786472476, 0.38229119722314686, -0.45318890370183262], [0.75133292650894035, 0.33349120206980376, 0.14923076840486571, 0.32405907812410284, 0.99459882904575658], [0.9585300557126224, 0.8794254635764116, 0.29544460705476605, -0.342313301291431, -0.53844059216552131]]))
14354          self.failUnless(isinstance(res,Data),"wrong type of result.")
14355          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14356          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14357       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14358       def test_maximum_taggedData_rank0_Symbol_rank2(self):
14359          arg0=Data(-0.864732993978,self.functionspace)
14360          arg0.setTaggedValue(1,0.393930446982)
14361          arg1=Symbol(shape=(4, 5))
14362          res=maximum(arg0,arg1)
14363          s1=numarray.array([[-0.79477800272280663, -0.088235531119936095, 0.82145419362665839, 0.35464061363595634, 0.30816367982624859], [0.81340354741046195, 0.38363046381642518, -0.61573433831071656, -0.70276705274359008, 0.92274001461743227], [-0.51542545711858501, 0.67744962522973817, 0.36551724136980557, 0.98685504994119655, -0.91525305844877369], [-0.36775091217750888, 0.14975002863471598, -0.63300836019068196, 0.87943471576786969, 0.7148111532360284]])
14364          sub=res.substitute({arg1:s1})
14365          ref=Data(numarray.array([[-0.79477800272280663, -0.088235531119936095, 0.82145419362665839, 0.35464061363595634, 0.30816367982624859], [0.81340354741046195, 0.38363046381642518, -0.61573433831071656, -0.70276705274359008, 0.92274001461743227], [-0.51542545711858501, 0.67744962522973817, 0.36551724136980557, 0.98685504994119655, -0.86473299397758163], [-0.36775091217750888, 0.14975002863471598, -0.63300836019068196, 0.87943471576786969, 0.7148111532360284]]),self.functionspace)
14366          ref.setTaggedValue(1,numarray.array([[0.39393044698221336, 0.39393044698221336, 0.82145419362665839, 0.39393044698221336, 0.39393044698221336], [0.81340354741046195, 0.39393044698221336, 0.39393044698221336, 0.39393044698221336, 0.92274001461743227], [0.39393044698221336, 0.67744962522973817, 0.39393044698221336, 0.98685504994119655, 0.39393044698221336], [0.39393044698221336, 0.39393044698221336, 0.39393044698221336, 0.87943471576786969, 0.7148111532360284]]))
14367          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
14368          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14369          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14370       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14371       def test_maximum_taggedData_rank2_Symbol_rank2(self):
14372          arg0=Data(numarray.array([[-0.5776461877359611, 0.9670513862703336, -0.43614416040976667, -0.52401754012335156, 0.068734952547034212], [-0.41327576366291185, -0.87074549754679653, 0.005346314540628283, -0.23809111642472547, 0.18733723161783433], [-0.96727382642466431, 0.031123480683935112, 0.20054929343183847, 0.9313992059076972, 0.74047462598219216], [0.14768236227215703, -0.28461623364325694, 0.33068363565236281, -0.7585483561226527, 0.88059570714507052]]),self.functionspace)
14373          arg0.setTaggedValue(1,numarray.array([[-0.5696617839758773, 0.57491569977454682, -0.4845734663581347, 0.59970683777262979, -0.9211982167870838], [0.46441445746345256, -0.12502922087675161, -0.84623124730586019, 0.25402701925266036, 0.51599504709986954], [-0.36042184195666516, -0.61932233207266441, 0.62163159622762088, 0.3780027906064789, -0.67054052783851548], [-0.89443522880235848, 0.46310907831513992, -0.22642953196362203, 0.68336429931125586, 0.4861512639447445]]))
14374          arg1=Symbol(shape=(4, 5))
14375          res=maximum(arg0,arg1)
14376          s1=numarray.array([[-0.11632197934334854, -0.49902042852048711, -0.78073273297117396, 0.59874642943228751, 0.024019463365029248], [0.12783214530409959, -0.79013033953694323, -0.12796043025834969, -0.11832075061089986, 0.72018120721945866], [0.31237489038556721, -0.84697537690141367, 0.64467071647536556, -0.92833407640086829, 0.56047371139599056], [-0.21523630773315183, 0.37376101559954744, -0.54178895860050225, 0.30578499306757467, -0.69941813742104864]])
14377          sub=res.substitute({arg1:s1})
14378          ref=Data(numarray.array([[-0.11632197934334854, 0.9670513862703336, -0.43614416040976667, 0.59874642943228751, 0.068734952547034212], [0.12783214530409959, -0.79013033953694323, 0.005346314540628283, -0.11832075061089986, 0.72018120721945866], [0.31237489038556721, 0.031123480683935112, 0.64467071647536556, 0.9313992059076972, 0.74047462598219216], [0.14768236227215703, 0.37376101559954744, 0.33068363565236281, 0.30578499306757467, 0.88059570714507052]]),self.functionspace)
14379          ref.setTaggedValue(1,numarray.array([[-0.11632197934334854, 0.57491569977454682, -0.4845734663581347, 0.59970683777262979, 0.024019463365029248], [0.46441445746345256, -0.12502922087675161, -0.12796043025834969, 0.25402701925266036, 0.72018120721945866], [0.31237489038556721, -0.61932233207266441, 0.64467071647536556, 0.3780027906064789, 0.56047371139599056], [-0.21523630773315183, 0.46310907831513992, -0.22642953196362203, 0.68336429931125586, 0.4861512639447445]]))
14380          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
14381          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14382          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14383       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14384       def test_maximum_taggedData_rank0_constData_rank2(self):
14385          arg0=Data(-0.233453242662,self.functionspace)
14386          arg0.setTaggedValue(1,-0.456279104054)
14387          arg1=Data(numarray.array([[0.66295701883303426, 0.29837779390150132, -0.82144022260100957, -0.77655984622382679, -0.66922622684304289], [-0.03256402393406832, -0.42799728354943078, 0.84506060005715655, 0.58217244657439315, 0.87359667279386199], [0.23466185627816616, 0.6848241906434076, 0.43997066196917545, -0.23893662021692919, 0.21875346774664495], [-0.77373251780068508, 0.70651723473975481, 0.0010900801234461355, 0.61280029446432605, 0.13102123501431007]]),self.functionspace)
14388          res=maximum(arg0,arg1)
14389          ref=Data(numarray.array([[0.66295701883303426, 0.29837779390150132, -0.23345324266177125, -0.23345324266177125, -0.23345324266177125], [-0.03256402393406832, -0.23345324266177125, 0.84506060005715655, 0.58217244657439315, 0.87359667279386199], [0.23466185627816616, 0.6848241906434076, 0.43997066196917545, -0.23345324266177125, 0.21875346774664495], [-0.23345324266177125, 0.70651723473975481, 0.0010900801234461355, 0.61280029446432605, 0.13102123501431007]]),self.functionspace)
14390          ref.setTaggedValue(1,numarray.array([[0.66295701883303426, 0.29837779390150132, -0.45627910405357452, -0.45627910405357452, -0.45627910405357452], [-0.03256402393406832, -0.42799728354943078, 0.84506060005715655, 0.58217244657439315, 0.87359667279386199], [0.23466185627816616, 0.6848241906434076, 0.43997066196917545, -0.23893662021692919, 0.21875346774664495], [-0.45627910405357452, 0.70651723473975481, 0.0010900801234461355, 0.61280029446432605, 0.13102123501431007]]))
14391          self.failUnless(isinstance(res,Data),"wrong type of result.")
14392          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14393          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14394       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14395       def test_maximum_taggedData_rank2_constData_rank2(self):
14396          arg0=Data(numarray.array([[-0.65215706962235931, 0.90295000568745021, -0.74612755909172068, 0.37953410665950926, 0.78357573816776882], [-0.78423218701280173, 0.75555214479296429, -0.59550852179237301, -0.24260494628579798, -0.2932238102951934], [-0.055686626024025632, 0.27514500129879305, -0.01600793024888203, 0.36687585617384455, -0.22472615152530251], [-0.16564252376898891, -0.50691065174515448, 0.5496939242032004, 0.87263539425927727, -0.33391848438760219]]),self.functionspace)
14397          arg0.setTaggedValue(1,numarray.array([[-0.12386188640925844, -0.25058730239632698, -0.9689271379594171, -0.5124211412670221, 0.74240065030212299], [0.45117376601281056, -0.83930628760299553, -0.86873208426025794, 0.68322721489185634, -0.77441137178524722], [0.022366441843409968, 0.59963352898563937, 0.90647843959010643, -0.45676736088574121, 0.86628078310093226], [-0.87044361286207428, 0.81055443077557054, -0.28150703377487196, -0.97466590847188317, 0.35149769824613997]]))
14398          arg1=Data(numarray.array([[0.1020745016007365, 0.21200816967965475, -0.0048679588261282269, -0.48528770101328256, 0.37724018457132891], [-0.40651544887620483, -0.43859554346733276, 0.99662000840930154, -0.61717493207815277, -0.059381870626120881], [-0.98663711200355841, -0.23691413704363962, 0.029172336036756841, 0.47465699025438401, -0.43916394214769139], [-0.0086894600203351047, 0.78036589414306445, 0.58198638128365721, 0.71269158150109702, 0.41115923503302954]]),self.functionspace)
14399          res=maximum(arg0,arg1)
14400          ref=Data(numarray.array([[0.1020745016007365, 0.90295000568745021, -0.0048679588261282269, 0.37953410665950926, 0.78357573816776882], [-0.40651544887620483, 0.75555214479296429, 0.99662000840930154, -0.24260494628579798, -0.059381870626120881], [-0.055686626024025632, 0.27514500129879305, 0.029172336036756841, 0.47465699025438401, -0.22472615152530251], [-0.0086894600203351047, 0.78036589414306445, 0.58198638128365721, 0.87263539425927727, 0.41115923503302954]]),self.functionspace)
14401          ref.setTaggedValue(1,numarray.array([[0.1020745016007365, 0.21200816967965475, -0.0048679588261282269, -0.48528770101328256, 0.74240065030212299], [0.45117376601281056, -0.43859554346733276, 0.99662000840930154, 0.68322721489185634, -0.059381870626120881], [0.022366441843409968, 0.59963352898563937, 0.90647843959010643, 0.47465699025438401, 0.86628078310093226], [-0.0086894600203351047, 0.81055443077557054, 0.58198638128365721, 0.71269158150109702, 0.41115923503302954]]))
14402          self.failUnless(isinstance(res,Data),"wrong type of result.")
14403          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14404          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14405       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14406       def test_maximum_taggedData_rank0_taggedData_rank2(self):
14407          arg0=Data(-0.585208864451,self.functionspace)
14408          arg0.setTaggedValue(1,0.0506898621422)
14409          arg1=Data(numarray.array([[-0.80997906792202423, -0.075924759840865441, 0.98928518123637499, 0.86706250171141597, -0.20578992343413982], [0.34054971591980054, -0.8731692484525917, -0.31849377908136511, -0.64068207469152583, 0.50897802680347048], [-0.29260185280664297, -0.69905302942108505, -0.10391526485862457, -0.93109086526597662, 0.29696330488998668], [0.67915180353525195, 0.71820396998563285, -0.76723938174828388, -0.37773962131976435, -0.13767357299522898]]),self.functionspace)
14410          arg1.setTaggedValue(1,numarray.array([[-0.099303007344046401, 0.49937050384309001, 0.091044772694302223, 0.83837186928029905, -0.017212533407631625], [-0.12266788468962431, 0.98722623400467557, 0.78431773233335655, 0.80737492716491621, 0.22088529892352859], [0.71858828029752075, 0.79590416091199878, 0.76064250837914393, 0.81458140120815936, -0.72761294910228314], [0.70188024720370601, 0.15650206134474565, 0.69772536269288676, 0.12717822173663551, 0.40879517285709865]]))
14411          res=maximum(arg0,arg1)
14412          ref=Data(numarray.array([[-0.58520886445123543, -0.075924759840865441, 0.98928518123637499, 0.86706250171141597, -0.20578992343413982], [0.34054971591980054, -0.58520886445123543, -0.31849377908136511, -0.58520886445123543, 0.50897802680347048], [-0.29260185280664297, -0.58520886445123543, -0.10391526485862457, -0.58520886445123543, 0.29696330488998668], [0.67915180353525195, 0.71820396998563285, -0.58520886445123543, -0.37773962131976435, -0.13767357299522898]]),self.functionspace)
14413          ref.setTaggedValue(1,numarray.array([[0.050689862142220488, 0.49937050384309001, 0.091044772694302223, 0.83837186928029905, 0.050689862142220488], [0.050689862142220488, 0.98722623400467557, 0.78431773233335655, 0.80737492716491621, 0.22088529892352859], [0.71858828029752075, 0.79590416091199878, 0.76064250837914393, 0.81458140120815936, 0.050689862142220488], [0.70188024720370601, 0.15650206134474565, 0.69772536269288676, 0.12717822173663551, 0.40879517285709865]]))
14414          self.failUnless(isinstance(res,Data),"wrong type of result.")
14415          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14416          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14417       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14418       def test_maximum_taggedData_rank2_taggedData_rank2(self):
14419          arg0=Data(numarray.array([[-0.30850678432326584, -0.14671440717841144, -0.62505292697061354, -0.48788175882104245, -0.88033622977949011], [-0.20413849077041912, 0.39729468723019079, -0.65937111106987834, 0.50049182101978684, 0.65618274263823384], [-0.1379286800364965, 0.94149976500306054, 0.90332903869476699, 0.16809094104236655, -0.59432802779299387], [-0.55196115682150837, -0.47973942612365184, 0.79574098934383808, 0.33896290658985317, 0.2343806675438127]]),self.functionspace)
14420          arg0.setTaggedValue(1,numarray.array([[-0.37368847761905766, -0.95593326659472955, 0.39754064835368874, -0.45246762809233432, -0.42425605634194241], [-0.99798056188674145, -0.52507689732559304, 0.0015822699455976252, 0.18946957061682079, 0.27764304571427934], [-0.89045114004022086, 0.9222661634403877, -0.75320893801876476, -0.58466222910172183, -0.9324897007904267], [-0.77738407415352162, 0.33277681575170703, 0.44868550432487542, 0.80841032194704487, 0.50893188843742299]]))
14421          arg1=Data(numarray.array([[-0.76289796142918442, 0.39345737042716311, 0.3596731444573853, 0.66182356019299826, -0.54510163887049989], [-0.26177332627229943, -0.78574343883971465, -0.75984224877101436, 0.028640779973349906, 0.46101551650890005], [-0.12687242083637007, -0.76264019315585818, -0.96340043133788567, 0.99172307905538948, 0.93811391467075067], [0.10831278342078354, -0.90173438972021147, -0.71795722450200561, 0.24798855275616649, -0.91077721563078629]]),self.functionspace)
14422          arg1.setTaggedValue(1,numarray.array([[-0.75864681094935826, -0.37420478894040654, 0.94829061011275528, 0.092053105818372449, 0.88394212203325573], [0.50298175228281328, -0.37248434444266132, -0.97564238193308217, 0.069365016354938858, -0.68888590754687073], [0.42821414550127868, -0.81605567791083389, -0.39448602367127994, 0.85091949395493804, 0.3780204265086502], [0.80158313848467411, -0.49235019033769323, -0.010926781924918805, -0.63494508446086328, 0.66241645779934299]]))
14423          res=maximum(arg0,arg1)
14424          ref=Data(numarray.array([[-0.30850678432326584, 0.39345737042716311, 0.3596731444573853, 0.66182356019299826, -0.54510163887049989], [-0.20413849077041912, 0.39729468723019079, -0.65937111106987834, 0.50049182101978684, 0.65618274263823384], [-0.12687242083637007, 0.94149976500306054, 0.90332903869476699, 0.99172307905538948, 0.93811391467075067], [0.10831278342078354, -0.47973942612365184, 0.79574098934383808, 0.33896290658985317, 0.2343806675438127]]),self.functionspace)
14425          ref.setTaggedValue(1,numarray.array([[-0.37368847761905766, -0.37420478894040654, 0.94829061011275528, 0.092053105818372449, 0.88394212203325573], [0.50298175228281328, -0.37248434444266132, 0.0015822699455976252, 0.18946957061682079, 0.27764304571427934], [0.42821414550127868, 0.9222661634403877, -0.39448602367127994, 0.85091949395493804, 0.3780204265086502], [0.80158313848467411, 0.33277681575170703, 0.44868550432487542, 0.80841032194704487, 0.66241645779934299]]))
14426          self.failUnless(isinstance(res,Data),"wrong type of result.")
14427          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14428          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14429       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14430       def test_maximum_taggedData_rank0_expandedData_rank2(self):
14431          arg0=Data(-0.8367060972,self.functionspace)
14432          arg0.setTaggedValue(1,0.0350605925437)
14433          arg1=Data(numarray.array([[-0.85989987056335004, 0.95618415745286112, 0.77463129739257752, -0.70067281119395219, -0.066047724905169858], [0.86264523702229678, -0.034293428705689299, 0.94341208480632655, -0.97918888349110356, -0.079698215200129541], [-0.0074088951964081939, -0.32211469546282068, 0.28914186744481163, -0.76611669248815795, -0.80112036211678572], [-0.19454051292116281, -0.85192083234455263, -0.17204001110029332, -0.16718805755325405, 0.94370688593350516]]),self.functionspace)
14434          arg1.setTaggedValue(1,numarray.array([[-0.79462672331170969, 0.10786244880092033, 0.92368483185879247, -0.52964637915988444, 0.89011451705386446], [0.9919205122299033, 0.95607270137793043, 0.063625713506444859, -0.82052222689628329, 0.86050943954591586], [-0.89960127327577322, 0.50723964196251692, -0.02283813441781124, 0.94861758985346567, 0.61719197613764143], [-0.39088026638104756, 0.57775086029719569, 0.62360626786169004, 0.60219522446603913, -0.095231346974827158]]))
14435          arg1.expand()
14436          res=maximum(arg0,arg1)
14437          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14438          ref=msk_ref*numarray.array([[-0.83670609720026534, 0.95618415745286112, 0.77463129739257752, -0.70067281119395219, -0.066047724905169858], [0.86264523702229678, -0.034293428705689299, 0.94341208480632655, -0.83670609720026534, -0.079698215200129541], [-0.0074088951964081939, -0.32211469546282068, 0.28914186744481163, -0.76611669248815795, -0.80112036211678572], [-0.19454051292116281, -0.83670609720026534, -0.17204001110029332, -0.16718805755325405, 0.94370688593350516]])+(1.-msk_ref)*numarray.array([[0.03506059254370375, 0.10786244880092033, 0.92368483185879247, 0.03506059254370375, 0.89011451705386446], [0.9919205122299033, 0.95607270137793043, 0.063625713506444859, 0.03506059254370375, 0.86050943954591586], [0.03506059254370375, 0.50723964196251692, 0.03506059254370375, 0.94861758985346567, 0.61719197613764143], [0.03506059254370375, 0.57775086029719569, 0.62360626786169004, 0.60219522446603913, 0.03506059254370375]])
14439          self.failUnless(isinstance(res,Data),"wrong type of result.")
14440          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14441          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14442       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14443       def test_maximum_taggedData_rank2_expandedData_rank2(self):
14444          arg0=Data(numarray.array([[-0.34373928503159124, -0.20095674682530928, 0.95586896214465544, -0.80855219520628352, 0.99396751891132795], [0.40162251877028354, -0.19260684688049534, 0.4379110629309686, 0.38692750630684891, 0.63370086700747796], [0.37464522230985753, 0.2472286384517759, 0.19957447822987961, 0.30034489040810564, 0.20417583681583196], [0.43170346131406179, -0.40595521447218741, 0.38328741641588371, -0.64164601736722027, 0.44536105747043542]]),self.functionspace)
14445          arg0.setTaggedValue(1,numarray.array([[-0.78167198056366582, -0.69901804178307247, 0.32279307641069166, 0.090874473790751864, -0.24649499080861936], [-0.72101815532963576, 0.019336192244026273, -0.85743081322410064, -0.79792604048493221, -0.41024219136817819], [0.95637313861325035, -0.52993977638935363, -0.10838678348774478, 0.24616595678724185, -0.46684632231387457], [-0.91688210200431519, -0.92995326912189413, -0.15935492948777386, -0.46493458970034784, 0.92308361870309619]]))
14446          arg1=Data(numarray.array([[0.34999144895161294, 0.2867861514795973, -0.24803374798797839, -0.83053123485943026, 0.71679812088305694], [0.87160151772896022, 0.15880702138094605, -0.70250327340032048, 0.88803288312847806, 0.4017949060043422], [-0.67803992778620725, 0.65822511725017097, 0.28320404906394159, 0.70990960617397381, -0.4670691811622889], [0.41680006736135655, 0.49938710728969693, -0.14441005731430834, -0.073652978098713406, 0.048693430751279188]]),self.functionspace)
14447          arg1.setTaggedValue(1,numarray.array([[0.040544367585485741, -0.054138641181803671, -0.18487061883388378, -0.18530692129090642, -0.25801541779005044], [-0.79216945806755601, 0.51987045565101075, 0.4253962162954632, 0.89908331742690306, -0.58343361278128958], [-0.32286527453853275, -0.48630932124048942, 0.39634533656084936, 0.033506780092776856, -0.32207988533792431], [0.69982448441067535, -0.73033174432454162, 0.94246537337208935, 0.23627320563011223, 0.36489433134884752]]))
14448          arg1.expand()
14449          res=maximum(arg0,arg1)
14450          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14451          ref=msk_ref*numarray.array([[0.34999144895161294, 0.2867861514795973, 0.95586896214465544, -0.80855219520628352, 0.99396751891132795], [0.87160151772896022, 0.15880702138094605, 0.4379110629309686, 0.88803288312847806, 0.63370086700747796], [0.37464522230985753, 0.65822511725017097, 0.28320404906394159, 0.70990960617397381, 0.20417583681583196], [0.43170346131406179, 0.49938710728969693, 0.38328741641588371, -0.073652978098713406, 0.44536105747043542]])+(1.-msk_ref)*numarray.array([[0.040544367585485741, -0.054138641181803671, 0.32279307641069166, 0.090874473790751864, -0.24649499080861936], [-0.72101815532963576, 0.51987045565101075, 0.4253962162954632, 0.89908331742690306, -0.41024219136817819], [0.95637313861325035, -0.48630932124048942, 0.39634533656084936, 0.24616595678724185, -0.32207988533792431], [0.69982448441067535, -0.73033174432454162, 0.94246537337208935, 0.23627320563011223, 0.92308361870309619]])
14452          self.failUnless(isinstance(res,Data),"wrong type of result.")
14453          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14454          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14455       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14456       def test_maximum_taggedData_rank0_array_rank3(self):
14457          arg0=Data(0.0581603033552,self.functionspace)
14458          arg0.setTaggedValue(1,-0.349121797934)
14459          arg1=numarray.array([[[0.11212022647318243, 0.92431326100322941], [0.86294049550861751, -0.54577029057950299]], [[0.30162042594634375, 0.65153183276311566], [0.80784816169055063, -0.49647676963675558]], [[0.0016770050239853784, -0.76312931795236461], [-0.38377799913819266, -0.12288106017343825]], [[0.86225188976602163, -0.73263296462566041], [0.59637972478647505, -0.49278052730666388]], [[-0.27638452396632274, -0.75982151285804878], [0.32525341084371373, -0.93082850394127825]], [[-0.021108338065601862, 0.044094406189113311], [-0.33098268109813711, -0.45115291322275364]]])
14460          res=maximum(arg0,arg1)
14461          ref=Data(numarray.array([[[0.11212022647318243, 0.92431326100322941], [0.86294049550861751, 0.05816030335518696]], [[0.30162042594634375, 0.65153183276311566], [0.80784816169055063, 0.05816030335518696]], [[0.05816030335518696, 0.05816030335518696], [0.05816030335518696, 0.05816030335518696]], [[0.86225188976602163, 0.05816030335518696], [0.59637972478647505, 0.05816030335518696]], [[0.05816030335518696, 0.05816030335518696], [0.32525341084371373, 0.05816030335518696]], [[0.05816030335518696, 0.05816030335518696], [0.05816030335518696, 0.05816030335518696]]]),self.functionspace)
14462          ref.setTaggedValue(1,numarray.array([[[0.11212022647318243, 0.92431326100322941], [0.86294049550861751, -0.34912179793353193]], [[0.30162042594634375, 0.65153183276311566], [0.80784816169055063, -0.34912179793353193]], [[0.0016770050239853784, -0.34912179793353193], [-0.34912179793353193, -0.12288106017343825]], [[0.86225188976602163, -0.34912179793353193], [0.59637972478647505, -0.34912179793353193]], [[-0.27638452396632274, -0.34912179793353193], [0.32525341084371373, -0.34912179793353193]], [[-0.021108338065601862, 0.044094406189113311], [-0.33098268109813711, -0.34912179793353193]]]))
14463          self.failUnless(isinstance(res,Data),"wrong type of result.")
14464          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14465          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14466       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14467       def test_maximum_taggedData_rank3_array_rank3(self):
14468          arg0=Data(numarray.array([[[0.51745400487065463, -0.046018812730892478], [0.93448372998822093, -0.15624548432249896]], [[-0.19172879200641457, -0.79651544933935736], [-0.15176950730662009, -0.13079058253123965]], [[0.037505168169944758, -0.46778341016285641], [-0.27839242608504011, -0.21031804391015574]], [[0.18704468648397143, -0.92178872447095439], [0.099081878288656222, 0.35867382961234551]], [[-0.45608361794547347, -0.26142429345451146], [-0.54796118279600425, -0.20833025068917332]], [[-0.17579136952010566, 0.55497568775611072], [-0.67560881772233694, -0.21997428049707923]]]),self.functionspace)
14469          arg0.setTaggedValue(1,numarray.array([[[0.60566560883647336, -0.29630658336264948], [-0.87510153393660994, 0.69526723875992325]], [[0.37148881382237198, -0.51171679135224224], [-0.27107595939647466, 0.35755098694698262]], [[-0.14043640634308741, 0.13036455401271119], [-0.53395960656650399, -0.023442547016014226]], [[-0.51288684167259024, 0.31930186247779213], [0.4647898134236943, 0.49107334166705852]], [[-0.55324165237516754, -0.014599188008774799], [0.96183327522495943, -0.14508297231814549]], [[-0.27185406040237092, 0.95658917212938332], [-0.87508686477361231, -0.42737850356341411]]]))
14470          arg1=numarray.array([[[0.9872501315717821, -0.61258669757993767], [0.79290816451735524, 0.075272751954812422]], [[0.72410541969379305, -0.83079825068869595], [-0.92718658420664535, 0.029072395647118832]], [[-0.98386594926830795, 0.2420005355888577], [0.75731198088670593, -0.65028424942459195]], [[0.11481268877581563, -0.66970518060714834], [0.95079934440937763, 0.0036926128296570493]], [[-0.83413942275382147, 0.45274370051699075], [0.28400088867799789, 0.8662157653352538]], [[-0.33098582440372182, 0.21458367461821037], [0.44429092297623662, -0.94171297612495297]]])
14471          res=maximum(arg0,arg1)
14472          ref=Data(numarray.array([[[0.9872501315717821, -0.046018812730892478], [0.93448372998822093, 0.075272751954812422]], [[0.72410541969379305, -0.79651544933935736], [-0.15176950730662009, 0.029072395647118832]], [[0.037505168169944758, 0.2420005355888577], [0.75731198088670593, -0.21031804391015574]], [[0.18704468648397143, -0.66970518060714834], [0.95079934440937763, 0.35867382961234551]], [[-0.45608361794547347, 0.45274370051699075], [0.28400088867799789, 0.8662157653352538]], [[-0.17579136952010566, 0.55497568775611072], [0.44429092297623662, -0.21997428049707923]]]),self.functionspace)
14473          ref.setTaggedValue(1,numarray.array([[[0.9872501315717821, -0.29630658336264948], [0.79290816451735524, 0.69526723875992325]], [[0.72410541969379305, -0.51171679135224224], [-0.27107595939647466, 0.35755098694698262]], [[-0.14043640634308741, 0.2420005355888577], [0.75731198088670593, -0.023442547016014226]], [[0.11481268877581563, 0.31930186247779213], [0.95079934440937763, 0.49107334166705852]], [[-0.55324165237516754, 0.45274370051699075], [0.96183327522495943, 0.8662157653352538]], [[-0.27185406040237092, 0.95658917212938332], [0.44429092297623662, -0.42737850356341411]]]))
14474          self.failUnless(isinstance(res,Data),"wrong type of result.")
14475          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14476          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14477       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14478       def test_maximum_taggedData_rank0_Symbol_rank3(self):
14479          arg0=Data(0.0704915180428,self.functionspace)
14480          arg0.setTaggedValue(1,0.283050577458)
14481          arg1=Symbol(shape=(6, 2, 2))
14482          res=maximum(arg0,arg1)
14483          s1=numarray.array([[[-0.58779201266319725, -0.39600922025402685], [-0.90314719725890091, 0.77297074375511543]], [[-0.17221707892935134, 0.61890010456431765], [0.20078261310789358, 0.40753913885562709]], [[-0.69064665104455703, -0.83106098061800471], [-0.78989393692226417, -0.16105728538588693]], [[0.15938938932638247, -0.05877365037056359], [-0.213809277323459, -0.90264153907426858]], [[-0.40239062993756258, 0.034864035232504031], [-0.99804502749300639, -0.50482898316952318]], [[0.021063481602385803, 0.22330156687595437], [0.80625649609767258, 0.16664103371846251]]])
14484          sub=res.substitute({arg1:s1})
14485          ref=Data(numarray.array([[[0.070491518042836931, 0.070491518042836931], [0.070491518042836931, 0.77297074375511543]], [[0.070491518042836931, 0.61890010456431765], [0.20078261310789358, 0.40753913885562709]], [[0.070491518042836931, 0.070491518042836931], [0.070491518042836931, 0.070491518042836931]], [[0.15938938932638247, 0.070491518042836931], [0.070491518042836931, 0.070491518042836931]], [[0.070491518042836931, 0.070491518042836931], [0.070491518042836931, 0.070491518042836931]], [[0.070491518042836931, 0.22330156687595437], [0.80625649609767258, 0.16664103371846251]]]),self.functionspace)
14486          ref.setTaggedValue(1,numarray.array([[[0.2830505774577039, 0.2830505774577039], [0.2830505774577039, 0.77297074375511543]], [[0.2830505774577039, 0.61890010456431765], [0.2830505774577039, 0.40753913885562709]], [[0.2830505774577039, 0.2830505774577039], [0.2830505774577039, 0.2830505774577039]], [[0.2830505774577039, 0.2830505774577039], [0.2830505774577039, 0.2830505774577039]], [[0.2830505774577039, 0.2830505774577039], [0.2830505774577039, 0.2830505774577039]], [[0.2830505774577039, 0.2830505774577039], [0.80625649609767258, 0.2830505774577039]]]))
14487          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
14488          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14489          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14490       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14491       def test_maximum_taggedData_rank3_Symbol_rank3(self):
14492          arg0=Data(numarray.array([[[0.9730289680984836, 0.43809521372629812], [-0.17007268934092323, 0.70903849462906265]], [[0.9824902205086592, 0.7112933956534937], [0.077162524958588552, 0.12653362188374384]], [[-0.1134722382193285, 0.20794421528036433], [-0.57242739803388121, 0.80029835118748349]], [[-0.12199863428593005, -0.99989184335399051], [0.37356016800578828, 0.57904961767773266]], [[0.18450050469807078, -0.98309850722821635], [0.0027848821498857035, -0.34530288739302328]], [[-0.52634757582755287, -0.97399072803640041], [0.18880045051396444, 0.55064592721105288]]]),self.functionspace)
14493          arg0.setTaggedValue(1,numarray.array([[[-0.43864676100411404, -0.038101913840908885], [0.98122837523224615, -0.50329068726631898]], [[-0.56046921438380903, 0.026054795646191398], [-0.45218765117731285, 0.1089551321310045]], [[0.1866251396686871, -0.022125849165341771], [0.454204035668206, 0.28068934175790061]], [[0.54143811102679473, 0.80223802035316338], [0.83712477451690703, -0.50475066145550529]], [[-0.55978266601348348, 0.49241646378862458], [0.95097223282370269, 0.22726835389734346]], [[0.28454703695319705, -0.67262631771451264], [-0.95071153849382561, 0.45384275141124752]]]))
14494          arg1=Symbol(shape=(6, 2, 2))
14495          res=maximum(arg0,arg1)
14496          s1=numarray.array([[[0.61251373806922738, -0.35556570053152869], [-0.14275558402961241, -0.34136170849916558]], [[0.94980948662052733, -0.43504428906890924], [-0.46140811208227461, -0.82529186588472991]], [[0.56432819799698986, 0.65994771187798507], [-0.096681837065751397, -0.10660857515816358]], [[-0.009384724402220046, -0.60623944392545703], [-0.057834380689773202, 0.64728413613995173]], [[-0.69798566944812013, 0.85077910659587896], [-0.73213411746591439, 0.70601027851209852]], [[-0.0015474903697365594, 0.18504753552459929], [0.63488558064230838, 0.083829685707396795]]])
14497          sub=res.substitute({arg1:s1})
14498          ref=Data(numarray.array([[[0.9730289680984836, 0.43809521372629812], [-0.14275558402961241, 0.70903849462906265]], [[0.9824902205086592, 0.7112933956534937], [0.077162524958588552, 0.12653362188374384]], [[0.56432819799698986, 0.65994771187798507], [-0.096681837065751397, 0.80029835118748349]], [[-0.009384724402220046, -0.60623944392545703], [0.37356016800578828, 0.64728413613995173]], [[0.18450050469807078, 0.85077910659587896], [0.0027848821498857035, 0.70601027851209852]], [[-0.0015474903697365594, 0.18504753552459929], [0.63488558064230838, 0.55064592721105288]]]),self.functionspace)
14499          ref.setTaggedValue(1,numarray.array([[[0.61251373806922738, -0.038101913840908885], [0.98122837523224615, -0.34136170849916558]], [[0.94980948662052733, 0.026054795646191398], [-0.45218765117731285, 0.1089551321310045]], [[0.56432819799698986, 0.65994771187798507], [0.454204035668206, 0.28068934175790061]], [[0.54143811102679473, 0.80223802035316338], [0.83712477451690703, 0.64728413613995173]], [[-0.55978266601348348, 0.85077910659587896], [0.95097223282370269, 0.70601027851209852]], [[0.28454703695319705, 0.18504753552459929], [0.63488558064230838, 0.45384275141124752]]]))
14500          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
14501          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14502          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14503       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14504       def test_maximum_taggedData_rank0_constData_rank3(self):
14505          arg0=Data(0.257971702048,self.functionspace)
14506          arg0.setTaggedValue(1,0.646644382588)
14507          arg1=Data(numarray.array([[[0.49904929085854621, -0.079761501970988746], [0.075034915444887496, -0.94716344759297177]], [[-0.37980260593056059, 0.85797450155684918], [0.041844423739421988, 0.62190282388567164]], [[-0.60519295629858183, -0.30044611114194431], [-0.88830803768029365, 0.05880187491888389]], [[0.91664888909366882, -0.66140129841949724], [-0.83569339239858054, -0.74103720634562897]], [[-0.20530841406562872, -0.79656147644353958], [-0.021618611122280029, 0.85238657512193949]], [[0.97795389625070084, 0.22832269349992895], [-0.60788049508889452, 0.30726030792880121]]]),self.functionspace)
14508          res=maximum(arg0,arg1)
14509          ref=Data(numarray.array([[[0.49904929085854621, 0.25797170204809405], [0.25797170204809405, 0.25797170204809405]], [[0.25797170204809405, 0.85797450155684918], [0.25797170204809405, 0.62190282388567164]], [[0.25797170204809405, 0.25797170204809405], [0.25797170204809405, 0.25797170204809405]], [[0.91664888909366882, 0.25797170204809405], [0.25797170204809405, 0.25797170204809405]], [[0.25797170204809405, 0.25797170204809405], [0.25797170204809405, 0.85238657512193949]], [[0.97795389625070084, 0.25797170204809405], [0.25797170204809405, 0.30726030792880121]]]),self.functionspace)
14510          ref.setTaggedValue(1,numarray.array([[[0.64664438258815893, 0.64664438258815893], [0.64664438258815893, 0.64664438258815893]], [[0.64664438258815893, 0.85797450155684918], [0.64664438258815893, 0.64664438258815893]], [[0.64664438258815893, 0.64664438258815893], [0.64664438258815893, 0.64664438258815893]], [[0.91664888909366882, 0.64664438258815893], [0.64664438258815893, 0.64664438258815893]], [[0.64664438258815893, 0.64664438258815893], [0.64664438258815893, 0.85238657512193949]], [[0.97795389625070084, 0.64664438258815893], [0.64664438258815893, 0.64664438258815893]]]))
14511          self.failUnless(isinstance(res,Data),"wrong type of result.")
14512          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14513          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14514       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14515       def test_maximum_taggedData_rank3_constData_rank3(self):
14516          arg0=Data(numarray.array([[[-0.56751632774592187, -0.73873819050204514], [-0.70675214085599025, 0.075273297867217703]], [[-0.82619054246682722, -0.43841409013876054], [-0.81593285813249583, 0.57072143683876275]], [[0.75097389353446231, 0.8059142329234954], [0.75469092644153113, -0.590953918982426]], [[0.99708694453613278, -0.47598366396407665], [-0.15581235865014786, -0.81818514340188542]], [[0.80447282591491498, 0.7575818859809631], [0.43866527734468796, -0.77086721558887961]], [[-0.095833961867939577, 0.64854342025417644], [0.13004699443460566, 0.80163635085132712]]]),self.functionspace)
14517          arg0.setTaggedValue(1,numarray.array([[[-0.99316257628238525, 0.9198743871338837], [0.051959190663095622, -0.87982546560302755]], [[0.61856474049176824, 0.48035555547172004], [-0.77183438688142281, -0.47372766104737107]], [[0.9235928849032522, -0.10938503521583876], [0.55613100507586699, -0.5588780048717723]], [[0.11274959464476875, -0.81729613150631075], [0.92870934279327022, -0.5586894895370409]], [[0.90668972584954544, 0.67362436327774144], [0.57843369758161201, -0.91218232013865941]], [[0.18244027677393304, 0.90502484761620838], [-0.37599484305367947, -0.085246056017418637]]]))
14518          arg1=Data(numarray.array([[[-0.66932848598996109, -0.58207476065266528], [-0.1493405950290152, 0.12445960583277182]], [[0.45155948881913743, -0.49232825711577721], [-0.56890294923615747, 0.046142203525306957]], [[0.96275426269804543, -0.25600355922921492], [-0.9213170293556654, -0.95218629371696761]], [[-0.79758049150801025, 0.93439075617400502], [0.14110111669783043, -0.0053009431666664053]], [[0.4887902663007464, 0.82106629975476064], [-0.5139818225807713, -0.23995011242420916]], [[0.45373257160847591, -0.87255921993470342], [-0.13467963047673903, 0.22706913569205978]]]),self.functionspace)
14519          res=maximum(arg0,arg1)
14520          ref=Data(numarray.array([[[-0.56751632774592187, -0.58207476065266528], [-0.1493405950290152, 0.12445960583277182]], [[0.45155948881913743, -0.43841409013876054], [-0.56890294923615747, 0.57072143683876275]], [[0.96275426269804543, 0.8059142329234954], [0.75469092644153113, -0.590953918982426]], [[0.99708694453613278, 0.93439075617400502], [0.14110111669783043, -0.0053009431666664053]], [[0.80447282591491498, 0.82106629975476064], [0.43866527734468796, -0.23995011242420916]], [[0.45373257160847591, 0.64854342025417644], [0.13004699443460566, 0.80163635085132712]]]),self.functionspace)
14521          ref.setTaggedValue(1,numarray.array([[[-0.66932848598996109, 0.9198743871338837], [0.051959190663095622, 0.12445960583277182]], [[0.61856474049176824, 0.48035555547172004], [-0.56890294923615747, 0.046142203525306957]], [[0.96275426269804543, -0.10938503521583876], [0.55613100507586699, -0.5588780048717723]], [[0.11274959464476875, 0.93439075617400502], [0.92870934279327022, -0.0053009431666664053]], [[0.90668972584954544, 0.82106629975476064], [0.57843369758161201, -0.23995011242420916]], [[0.45373257160847591, 0.90502484761620838], [-0.13467963047673903, 0.22706913569205978]]]))
14522          self.failUnless(isinstance(res,Data),"wrong type of result.")
14523          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14524          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14525       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14526       def test_maximum_taggedData_rank0_taggedData_rank3(self):
14527          arg0=Data(0.408669382137,self.functionspace)
14528          arg0.setTaggedValue(1,-0.703473386386)
14529          arg1=Data(numarray.array([[[-0.72265172414617895, 0.36842589688480998], [0.82800897405276208, -0.31630373506981457]], [[-0.24366919257554343, -0.23889030631113917], [-0.52800896225048288, -0.21248414052650766]], [[0.24773819543004527, -0.26540119896144665], [-0.83808606494769955, -0.67309354394148579]], [[0.04492619479074178, -0.5273146784313123], [-0.4614640788557387, -0.26351672856909425]], [[0.60540692576582789, 0.076964383439644291], [-0.18122633890826956, -0.10989714114659166]], [[-0.91176828299242252, -0.4863357690158705], [-0.028353540080707784, -0.67873198803390133]]]),self.functionspace)
14530          arg1.setTaggedValue(1,numarray.array([[[0.75234456096077973, 0.47310059411707095], [0.97485531260531388, 0.036623209278044522]], [[0.80159772524220596, 0.0039440509463060103], [0.47162965967450066, 0.063875645716604534]], [[0.67962813041533177, 0.70506608156224315], [0.31622514170725724, 0.95725919878846244]], [[0.34190799146654549, 0.33607946212592732], [-0.54969741489444357, -0.67229942405314369]], [[-0.75877915279959729, -0.25502321313553011], [-0.11246023107344127, 0.70044262849547567]], [[0.8818668030507637, -0.64953062543270512], [0.042723626292767714, 0.89103423021136363]]]))
14531          res=maximum(arg0,arg1)
14532          ref=Data(numarray.array([[[0.4086693821370766, 0.4086693821370766], [0.82800897405276208, 0.4086693821370766]], [[0.4086693821370766, 0.4086693821370766], [0.4086693821370766, 0.4086693821370766]], [[0.4086693821370766, 0.4086693821370766], [0.4086693821370766, 0.4086693821370766]], [[0.4086693821370766, 0.4086693821370766], [0.4086693821370766, 0.4086693821370766]], [[0.60540692576582789, 0.4086693821370766], [0.4086693821370766, 0.4086693821370766]], [[0.4086693821370766, 0.4086693821370766], [0.4086693821370766, 0.4086693821370766]]]),self.functionspace)
14533          ref.setTaggedValue(1,numarray.array([[[0.75234456096077973, 0.47310059411707095], [0.97485531260531388, 0.036623209278044522]], [[0.80159772524220596, 0.0039440509463060103], [0.47162965967450066, 0.063875645716604534]], [[0.67962813041533177, 0.70506608156224315], [0.31622514170725724, 0.95725919878846244]], [[0.34190799146654549, 0.33607946212592732], [-0.54969741489444357, -0.67229942405314369]], [[-0.70347338638573675, -0.25502321313553011], [-0.11246023107344127, 0.70044262849547567]], [[0.8818668030507637, -0.64953062543270512], [0.042723626292767714, 0.89103423021136363]]]))
14534          self.failUnless(isinstance(res,Data),"wrong type of result.")
14535          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14536          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14537       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14538       def test_maximum_taggedData_rank3_taggedData_rank3(self):
14539          arg0=Data(numarray.array([[[0.34361794289520842, -0.79214603437560327], [-0.67469557682196202, -0.79554951867898738]], [[0.96474076774081019, 0.86760220798227095], [-0.65602182052786651, -0.090618351473820358]], [[-0.50410919250595509, -0.39449742983708891], [-0.61047476471374895, -0.13986711763859283]], [[0.40614535872757696, 0.49363459177702729], [-0.99096492684145732, -0.48164033297073883]], [[0.28262904021112401, -0.36774714969436406], [-0.43020413774246302, 0.33125918175575886]], [[0.41135236616191628, 0.24704948263970783], [0.17671215385410055, -0.36880284585106216]]]),self.functionspace)
14540          arg0.setTaggedValue(1,numarray.array([[[0.23270826050508076, 0.55031406934725324], [0.092799947294044838, 0.70142274746084854]], [[-0.25806542137818278, -0.87043773253800327], [-0.20561418588308666, 0.60804147150696619]], [[0.27875168984588394, 0.046223650669499516], [0.21294073592740315, 0.17510990250879055]], [[0.5360111538711636, 0.35942691987175945], [0.17741284066963869, 0.93652114853145196]], [[-0.78753623491747038, -0.21960161615292195], [-0.18155304297147001, -0.69524778068455761]], [[0.83868620490676649, 0.0061992069149379159], [-0.20834087789014211, 0.11313571214536511]]]))
14541          arg1=Data(numarray.array([[[-0.95777503985776336, 0.56386012454524304], [0.76573667300539716, -0.89229386480914141]], [[-0.31035742914627096, -0.5228172508939628], [0.096398948411295926, 0.91370766889932464]], [[0.85033658242781307, 0.85268637772571898], [-0.13271122394598978, -0.62815262953593365]], [[-0.82915300066758801, 0.16335568135696987], [-0.15570534038852646, -0.72875100039206209]], [[-0.210459568078049, -0.29221352220263896], [0.80332611313097635, -0.51027457536803156]], [[0.55922997294548638, -0.55841452089231103], [0.70573807495946217, -0.14111887714839244]]]),self.functionspace)
14542          arg1.setTaggedValue(1,numarray.array([[[0.044900424380813986, -0.35514225753300876], [-0.43271652761471247, -0.094909517366706275]], [[0.46485774988607798, -0.25534078780382652], [-0.23160409661392989, -0.68419287018217623]], [[0.19410334639787785, 0.36164243112719752], [0.922804486894377, 0.17831645481510328]], [[-0.30227034917847595, 0.25943111330765767], [0.050140014847715575, -0.64471232473927387]], [[0.4661054807291336, 0.47678010231455681], [0.35863653458299161, 0.016778825939667508]], [[-0.22201071392861627, 0.87879019799689506], [-0.028293896975291943, 0.15393400831946891]]]))
14543          res=maximum(arg0,arg1)
14544          ref=Data(numarray.array([[[0.34361794289520842, 0.56386012454524304], [0.76573667300539716, -0.79554951867898738]], [[0.96474076774081019, 0.86760220798227095], [0.096398948411295926, 0.91370766889932464]], [[0.85033658242781307, 0.85268637772571898], [-0.13271122394598978, -0.13986711763859283]], [[0.40614535872757696, 0.49363459177702729], [-0.15570534038852646, -0.48164033297073883]], [[0.28262904021112401, -0.29221352220263896], [0.80332611313097635, 0.33125918175575886]], [[0.55922997294548638, 0.24704948263970783], [0.70573807495946217, -0.14111887714839244]]]),self.functionspace)
14545          ref.setTaggedValue(1,numarray.array([[[0.23270826050508076, 0.55031406934725324], [0.092799947294044838, 0.70142274746084854]], [[0.46485774988607798, -0.25534078780382652], [-0.20561418588308666, 0.60804147150696619]], [[0.27875168984588394, 0.36164243112719752], [0.922804486894377, 0.17831645481510328]], [[0.5360111538711636, 0.35942691987175945], [0.17741284066963869, 0.93652114853145196]], [[0.4661054807291336, 0.47678010231455681], [0.35863653458299161, 0.016778825939667508]], [[0.83868620490676649, 0.87879019799689506], [-0.028293896975291943, 0.15393400831946891]]]))
14546          self.failUnless(isinstance(res,Data),"wrong type of result.")
14547          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14548          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14549       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14550       def test_maximum_taggedData_rank0_expandedData_rank3(self):
14551          arg0=Data(-0.226197098806,self.functionspace)
14552          arg0.setTaggedValue(1,0.522192103891)
14553          arg1=Data(numarray.array([[[-0.476801185411313, 0.44963895943426313], [0.60716647491303011, 0.39648169172310621]], [[-0.61188355620687029, -0.8200235603683792], [0.7148583348047397, -0.91767242519128334]], [[0.39767620370403223, 0.62277713712673211], [-0.93601734373066692, 0.21708579495611535]], [[0.39840239441288894, 0.83592894519047656], [-0.77696316832477064, 0.38217695509729332]], [[-0.51941026427864934, 0.63602057176447357], [0.13171585832349253, 0.58992892878117908]], [[-0.49900668044267915, 0.71167296228538834], [0.33167107311847377, -0.55775348136514102]]]),self.functionspace)
14554          arg1.setTaggedValue(1,numarray.array([[[0.71337553566700285, 0.59202111257777457], [-0.21456982223917076, -0.71002583837425925]], [[0.24531735150782907, 0.39937968963766823], [-0.21484993112655526, -0.86378912365397964]], [[0.69918125290293864, -0.94461214810425709], [0.8242591161308539, -0.19657343614514389]], [[-0.64708651457614685, -0.4732042074857854], [0.8064938979298597, -0.11741313018408772]], [[0.66272112582001386, -0.54392741431807989], [0.499942470885264, -0.42093049581276465]], [[-0.34841932486190474, -0.48760940304902634], [0.49404808300120928, -0.45202140599415497]]]))
14555          arg1.expand()
14556          res=maximum(arg0,arg1)
14557          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14558          ref=msk_ref*numarray.array([[[-0.22619709880625916, 0.44963895943426313], [0.60716647491303011, 0.39648169172310621]], [[-0.22619709880625916, -0.22619709880625916], [0.7148583348047397, -0.22619709880625916]], [[0.39767620370403223, 0.62277713712673211], [-0.22619709880625916, 0.21708579495611535]], [[0.39840239441288894, 0.83592894519047656], [-0.22619709880625916, 0.38217695509729332]], [[-0.22619709880625916, 0.63602057176447357], [0.13171585832349253, 0.58992892878117908]], [[-0.22619709880625916, 0.71167296228538834], [0.33167107311847377, -0.22619709880625916]]])+(1.-msk_ref)*numarray.array([[[0.71337553566700285, 0.59202111257777457], [0.52219210389146631, 0.52219210389146631]], [[0.52219210389146631, 0.52219210389146631], [0.52219210389146631, 0.52219210389146631]], [[0.69918125290293864, 0.52219210389146631], [0.8242591161308539, 0.52219210389146631]], [[0.52219210389146631, 0.52219210389146631], [0.8064938979298597, 0.52219210389146631]], [[0.66272112582001386, 0.52219210389146631], [0.52219210389146631, 0.52219210389146631]], [[0.52219210389146631, 0.52219210389146631], [0.52219210389146631, 0.52219210389146631]]])
14559          self.failUnless(isinstance(res,Data),"wrong type of result.")
14560          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14561          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14562       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14563       def test_maximum_taggedData_rank3_expandedData_rank3(self):
14564          arg0=Data(numarray.array([[[-0.15254677491326296, -0.73792843638706129], [-0.8860393636164603, 0.17141576138477377]], [[-0.58390457441332733, 0.58893441480122144], [0.63803303568095848, -0.9880496752401795]], [[-0.34820091961137156, 0.49777371182112007], [0.86080228247319424, 0.42868250082943504]], [[0.67542965261369536, 0.6121873787033163], [0.2652931974973356, 0.16497221834953968]], [[-0.74059011075673564, 0.59969423838435021], [-0.53251293900871088, 0.99180907488808523]], [[-0.50592776611259538, 0.29029544745011449], [-0.19869794858667844, -0.98656336507129083]]]),self.functionspace)
14565          arg0.setTaggedValue(1,numarray.array([[[-0.42486946532406078, -0.091090334688143093], [-0.13379915635758977, -0.59823779897950735]], [[0.08619882870789497, 0.5604474445370613], [0.12656809755099241, -0.68357805878068012]], [[-0.6719040453202263, -0.43482705708570735], [-0.26808535349731311, 0.90186927101211256]], [[-0.9897041292722466, 0.30520100226807645], [-0.3055416703957925, -0.048221750186620893]], [[0.21951523032010689, -0.36215940449847883], [-0.56081915812168681, 0.66782741691403369]], [[-0.57022064974883424, -0.53594351926414108], [-0.748573617352565, -0.077799281835090994]]]))
14566          arg1=Data(numarray.array([[[0.70447088573450056, -0.71278717909498845], [-0.86132753808998697, 0.76366555387101842]], [[-0.46138212438459769, -0.3489329333342146], [0.54606158476413524, -0.83731465773119829]], [[0.60904460269062644, -0.27504282756581611], [0.59442412655021282, 0.63394121077583687]], [[-0.093599642360094437, 0.28524722572151129], [0.57215715523487187, 0.32043802017988243]], [[-0.46978319490960008, 0.8320899984237411], [-0.81959981195018106, 0.3503904055563718]], [[-0.67782474338099807, 0.6277948712480681], [0.5904568698600825, 0.19793043441246461]]]),self.functionspace)
14567          arg1.setTaggedValue(1,numarray.array([[[-0.72594789754747269, 0.87349402665851694], [-0.39536817653526857, -0.43834992550681506]], [[-0.066702830682781489, 0.90125757338912393], [0.24153649435848101, -0.61076430522901282]], [[-0.44706750826588104, -0.32475521625981529], [-0.75805998693509413, 0.5609814816056331]], [[-0.048254096644559263, -0.1019965676559671], [0.94934345435851686, 0.49525773976526155]], [[-0.17137160131178897, -0.59131541634931173], [0.3355019114914144, 0.81136679086153363]], [[0.4361355584873543, -0.37189941405839422], [-0.97448706411876906, 0.13546560223519699]]]))
14568          arg1.expand()
14569          res=maximum(arg0,arg1)
14570          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14571          ref=msk_ref*numarray.array([[[0.70447088573450056, -0.71278717909498845], [-0.86132753808998697, 0.76366555387101842]], [[-0.46138212438459769, 0.58893441480122144], [0.63803303568095848, -0.83731465773119829]], [[0.60904460269062644, 0.49777371182112007], [0.86080228247319424, 0.63394121077583687]], [[0.67542965261369536, 0.6121873787033163], [0.57215715523487187, 0.32043802017988243]], [[-0.46978319490960008, 0.8320899984237411], [-0.53251293900871088, 0.99180907488808523]], [[-0.50592776611259538, 0.6277948712480681], [0.5904568698600825, 0.19793043441246461]]])+(1.-msk_ref)*numarray.array([[[-0.42486946532406078, 0.87349402665851694], [-0.13379915635758977, -0.43834992550681506]], [[0.08619882870789497, 0.90125757338912393], [0.24153649435848101, -0.61076430522901282]], [[-0.44706750826588104, -0.32475521625981529], [-0.26808535349731311, 0.90186927101211256]], [[-0.048254096644559263, 0.30520100226807645], [0.94934345435851686, 0.49525773976526155]], [[0.21951523032010689, -0.36215940449847883], [0.3355019114914144, 0.81136679086153363]], [[0.4361355584873543, -0.37189941405839422], [-0.748573617352565, 0.13546560223519699]]])
14572          self.failUnless(isinstance(res,Data),"wrong type of result.")
14573          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14574          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14575       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14576       def test_maximum_taggedData_rank0_array_rank4(self):
14577          arg0=Data(0.140204506116,self.functionspace)
14578          arg0.setTaggedValue(1,0.776411556396)
14579          arg1=numarray.array([[[[-0.99730381064015416, -0.24646978869934588, -0.8483851020872577, -0.7636563070313116], [-0.37243951612773407, 0.94238036382120205, 0.10234422233575913, -0.63481799846807152], [-0.67656654171039943, 0.61957842577897493, -0.75412115238345123, -0.14535307618694615]], [[-0.60794681550683238, -0.050666392748995426, 0.52975855520730453, 0.56525643887581056], [-0.68144300499306509, -0.22034933599205075, -0.019087784600194002, -0.5766101077680903], [0.99924951249979999, 0.66069703297235249, -0.40435693431731012, 0.12691208330117165]]], [[[0.11258502364035783, -0.64800200326456747, 0.23414988213600085, -0.71024538014446348], [-0.02764389408377399, 0.38832760452106951, -0.41253157132059348, 0.46027425110814213], [-0.014904176332623642, -0.87466358698261537, 0.28557945253459471, 0.47967954202610219]], [[-0.68820256981476446, -0.2638698803868027, 0.66531286373165166, -0.4022134780781832], [0.52543063559744185, -0.3687195790800637, 0.089403779258439231, 0.42119045530723787], [-0.69780787995295634, -0.018028374192776475, 0.8458285634538667, 0.73504128402816327]]], [[[-0.55258302630417377, -0.98693739100258671, 0.92802184049228553, -0.67964316167207195], [0.11568531485433886, -0.03064436749490107, -0.62766216298735977, 0.71464348176870485], [-0.32604829252105594, 0.65983171661889051, -0.16689514632621183, 0.83420411995502253]], [[0.99089692365004511, -0.7366512690612772, 0.80586227471226946, 0.35265029390335689], [0.47413984995904923, 0.96956365223556262, -0.89326421583911775, -0.044234821495733545], [0.76312554985775916, -0.48494934965578018, -0.76505524948669201, 0.10779366614869068]]]])
14580          res=maximum(arg0,arg1)
14581          ref=Data(numarray.array([[[[0.14020450611621582, 0.14020450611621582, 0.14020450611621582, 0.14020450611621582], [0.14020450611621582, 0.94238036382120205, 0.14020450611621582, 0.14020450611621582], [0.14020450611621582, 0.61957842577897493, 0.14020450611621582, 0.14020450611621582]], [[0.14020450611621582, 0.14020450611621582, 0.52975855520730453, 0.56525643887581056], [0.14020450611621582, 0.14020450611621582, 0.14020450611621582, 0.14020450611621582], [0.99924951249979999, 0.66069703297235249, 0.14020450611621582, 0.14020450611621582]]], [[[0.14020450611621582, 0.14020450611621582, 0.23414988213600085, 0.14020450611621582], [0.14020450611621582, 0.38832760452106951, 0.14020450611621582, 0.46027425110814213], [0.14020450611621582, 0.14020450611621582, 0.28557945253459471, 0.47967954202610219]], [[0.14020450611621582, 0.14020450611621582, 0.66531286373165166, 0.14020450611621582], [0.52543063559744185, 0.14020450611621582, 0.14020450611621582, 0.42119045530723787], [0.14020450611621582, 0.14020450611621582, 0.8458285634538667, 0.73504128402816327]]], [[[0.14020450611621582, 0.14020450611621582, 0.92802184049228553, 0.14020450611621582], [0.14020450611621582, 0.14020450611621582, 0.14020450611621582, 0.71464348176870485], [0.14020450611621582, 0.65983171661889051, 0.14020450611621582, 0.83420411995502253]], [[0.99089692365004511, 0.14020450611621582, 0.80586227471226946, 0.35265029390335689], [0.47413984995904923, 0.96956365223556262, 0.14020450611621582, 0.14020450611621582], [0.76312554985775916, 0.14020450611621582, 0.14020450611621582, 0.14020450611621582]]]]),self.functionspace)
14582          ref.setTaggedValue(1,numarray.array([[[[0.77641155639600079, 0.77641155639600079, 0.77641155639600079, 0.77641155639600079], [0.77641155639600079, 0.94238036382120205, 0.77641155639600079, 0.77641155639600079], [0.77641155639600079, 0.77641155639600079, 0.77641155639600079, 0.77641155639600079]], [[0.77641155639600079, 0.77641155639600079, 0.77641155639600079, 0.77641155639600079], [0.77641155639600079, 0.77641155639600079, 0.77641155639600079, 0.77641155639600079], [0.99924951249979999, 0.77641155639600079, 0.77641155639600079, 0.77641155639600079]]], [[[0.77641155639600079, 0.77641155639600079, 0.77641155639600079, 0.77641155639600079], [0.77641155639600079, 0.77641155639600079, 0.77641155639600079, 0.77641155639600079], [0.77641155639600079, 0.77641155639600079, 0.77641155639600079, 0.77641155639600079]], [[0.77641155639600079, 0.77641155639600079, 0.77641155639600079, 0.77641155639600079], [0.77641155639600079, 0.77641155639600079, 0.77641155639600079, 0.77641155639600079], [0.77641155639600079, 0.77641155639600079, 0.8458285634538667, 0.77641155639600079]]], [[[0.77641155639600079, 0.77641155639600079, 0.92802184049228553, 0.77641155639600079], [0.77641155639600079, 0.77641155639600079, 0.77641155639600079, 0.77641155639600079], [0.77641155639600079, 0.77641155639600079, 0.77641155639600079, 0.83420411995502253]], [[0.99089692365004511, 0.77641155639600079, 0.80586227471226946, 0.77641155639600079], [0.77641155639600079, 0.96956365223556262, 0.77641155639600079, 0.77641155639600079], [0.77641155639600079, 0.77641155639600079, 0.77641155639600079, 0.77641155639600079]]]]))
14583          self.failUnless(isinstance(res,Data),"wrong type of result.")
14584          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14585          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14586       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14587       def test_maximum_taggedData_rank4_array_rank4(self):
14588          arg0=Data(numarray.array([[[[0.89689625041254883, 0.52797242797125987, 0.012935829969779045, 0.49739496562383811], [0.34654145869541342, 0.4942154511824135, 0.94728577054973773, -0.10647593987831683], [0.42098816875060185, -0.60112678726905733, 0.74841354845432084, 0.44557512382722142]], [[-0.61998183370410276, 0.85144500853434146, -0.28365889739397487, 0.57815050434017645], [-0.073398626336939499, -0.035793593325857964, -0.93049258850187866, -0.69393875636990177], [0.32501660176603653, -0.87489337072275752, -0.46854428856990138, 0.86399974360707255]]], [[[-0.92438693157358687, -0.75297959172395323, -0.33823121248451793, 0.014123356193518788], [0.98598606579865589, 0.54835313244053441, 0.80251720308499097, 0.98875411533401869], [-0.17381509958185415, 0.44756510667464799, -0.95865420581901217, -0.63813924760819751]], [[-0.51554994901347917, 0.42325971045002753, -0.19806502163747419, 0.74110302895556757], [0.88399089280465937, -0.30018223381520892, -0.4050697214624428, 0.2465561846189932], [-0.98658498763042668, -0.92954507208238568, 0.34050996236947095, -0.30283411802274318]]], [[[-0.40279303616480244, 0.36341107069788103, 0.3228965744327823, 0.86919171803320583], [0.10338485362839478, -0.78546891952979836, -0.87519266310857957, -0.32557356812767146], [0.30051447520272312, -0.54311085576072449, -0.014839064605417507, -0.078365146479810965]], [[-0.040636503187079898, -0.70404312747433018, 0.86303384584731657, -0.25462623792025108], [-0.18808201385852819, -0.44580495135621301, 0.34898203854670484, 0.78465268140519728], [-0.0025280295686012089, 0.36433072033888747, -0.64542201771473051, 0.66645257859304641]]]]),self.functionspace)
14589          arg0.setTaggedValue(1,numarray.array([[[[-0.85559785511179776, -0.42936125949288684, -0.33648916313606492, -0.77929994043028983], [0.020366478246076181, -0.8363148142078094, 0.7529516721432552, 0.6965240356486615], [-0.89540620718949748, 0.62380401139707753, -0.69521784993527147, -0.45892632490273066]], [[0.69034651039417039, -0.33652641970660402, -0.9789857874991823, -0.049177230513813619], [-0.74603529283905035, -0.32823769853088014, -0.45275283441605074, -0.26007166682012217], [0.31275465231469335, 0.49437754374087128, 0.34806959467048393, -0.31195372954442813]]], [[[0.2271524360393844, 0.30619559786492001, 0.87568312184360875, 0.8032341525540927], [-0.83008411611779698, -0.57617978140716897, -0.77894079072162548, 0.25906244606102025], [0.68367611193427469, 0.75744030915131488, 0.83491116847936997, 0.54938827549770952]], [[0.79484821673100248, 0.70712266760039011, 0.89243778698890619, -0.573749082381108], [0.54924472046747308, -0.0095753891050591733, 0.74675761108210903, -0.08251004626096603], [0.068950333437353351, -0.76377814757397666, -0.1142338675364134, -0.030399841045661402]]], [[[0.2186100506517219, -0.055932476862738278, 0.12997017593997096, 0.13555431069824042], [0.82266213810484645, -0.57343346541492091, 0.97736407173466588, 0.98176763854796856], [0.60260684810778309, 0.996967155568111, -0.15882057312466502, -0.792335270074354]], [[0.96602989206010337, -0.5106269598547557, 0.91047056823779182, 0.3353665072357912], [-0.0026088601145151102, -0.58109645451299929, -0.031488711946613401, -0.76919028629929831], [-0.55700524280657149, 0.066918152406544751, -0.13042055185497259, -0.30333596282980113]]]]))
14590          arg1=numarray.array([[[[0.69669428736757877, 0.7573662080876189, -0.28698915009281389, -0.26263218314437808], [-0.15335012146772953, -0.62535631572943706, -0.53623194531254237, -0.50555271878711228], [0.55592278359816816, 0.28333179997930236, 0.65537435793536547, -0.31404112777228099]], [[0.56940127981552546, 0.71165007047354578, 0.4325715566033419, -0.42514367104530604], [-0.27930914984964161, 0.5034942187155893, -0.25361414135973326, 0.35097037311346213], [0.45914696727200144, 0.46275307374310293, -0.4998987424366792, 0.84722848964391684]]], [[[0.46778209786126901, -0.11143967069851946, -0.41618899067705462, -0.36463067467562715], [0.76855607801782044, 0.36795344917547901, -0.024865778266954131, 0.22488717628373256], [-0.058634999803149901, -0.65314137012873452, 0.21396523701043657, -0.87909034263150931]], [[0.64964244910871694, 0.0074080822454571926, -0.77322071351678745, -0.9513615698801865], [0.88590983808550816, -0.96921308694915442, -0.86220659803169108, 0.97756109908032229], [-0.34837342682409878, 0.16535564442036033, 0.81256597584619628, -0.83271776398797193]]], [[[0.15476061942959141, 0.05462973166284546, 0.75392817594319128, -0.46973878944029845], [-0.76850410382242185, 0.86756778812159374, -0.77845519937521712, -0.47092759508271609], [-0.23798857255206429, -0.84954729015921648, 0.18724388871121578, 0.94132468469936303]], [[-0.43665169072688226, -0.01535133018101309, 0.55649733815446201, 0.34191191590172498], [0.48863937044966188, 0.81250399692378195, 0.80263147202960305, 0.51097322438609094], [0.93752210265262925, -0.12745960614585439, 0.54530101717511803, -0.47122533892842222]]]])
14591          res=maximum(arg0,arg1)
14592          ref=Data(numarray.array([[[[0.89689625041254883, 0.7573662080876189, 0.012935829969779045, 0.49739496562383811], [0.34654145869541342, 0.4942154511824135, 0.94728577054973773, -0.10647593987831683], [0.55592278359816816, 0.28333179997930236, 0.74841354845432084, 0.44557512382722142]], [[0.56940127981552546, 0.85144500853434146, 0.4325715566033419, 0.57815050434017645], [-0.073398626336939499, 0.5034942187155893, -0.25361414135973326, 0.35097037311346213], [0.45914696727200144, 0.46275307374310293, -0.46854428856990138, 0.86399974360707255]]], [[[0.46778209786126901, -0.11143967069851946, -0.33823121248451793, 0.014123356193518788], [0.98598606579865589, 0.54835313244053441, 0.80251720308499097, 0.98875411533401869], [-0.058634999803149901, 0.44756510667464799, 0.21396523701043657, -0.63813924760819751]], [[0.64964244910871694, 0.42325971045002753, -0.19806502163747419, 0.74110302895556757], [0.88590983808550816, -0.30018223381520892, -0.4050697214624428, 0.97756109908032229], [-0.34837342682409878, 0.16535564442036033, 0.81256597584619628, -0.30283411802274318]]], [[[0.15476061942959141, 0.36341107069788103, 0.75392817594319128, 0.86919171803320583], [0.10338485362839478, 0.86756778812159374, -0.77845519937521712, -0.32557356812767146], [0.30051447520272312, -0.54311085576072449, 0.18724388871121578, 0.94132468469936303]], [[-0.040636503187079898, -0.01535133018101309, 0.86303384584731657, 0.34191191590172498], [0.48863937044966188, 0.81250399692378195, 0.80263147202960305, 0.78465268140519728], [0.93752210265262925, 0.36433072033888747, 0.54530101717511803, 0.66645257859304641]]]]),self.functionspace)
14593          ref.setTaggedValue(1,numarray.array([[[[0.69669428736757877, 0.7573662080876189, -0.28698915009281389, -0.26263218314437808], [0.020366478246076181, -0.62535631572943706, 0.7529516721432552, 0.6965240356486615], [0.55592278359816816, 0.62380401139707753, 0.65537435793536547, -0.31404112777228099]], [[0.69034651039417039, 0.71165007047354578, 0.4325715566033419, -0.049177230513813619], [-0.27930914984964161, 0.5034942187155893, -0.25361414135973326, 0.35097037311346213], [0.45914696727200144, 0.49437754374087128, 0.34806959467048393, 0.84722848964391684]]], [[[0.46778209786126901, 0.30619559786492001, 0.87568312184360875, 0.8032341525540927], [0.76855607801782044, 0.36795344917547901, -0.024865778266954131, 0.25906244606102025], [0.68367611193427469, 0.75744030915131488, 0.83491116847936997, 0.54938827549770952]], [[0.79484821673100248, 0.70712266760039011, 0.89243778698890619, -0.573749082381108], [0.88590983808550816, -0.0095753891050591733, 0.74675761108210903, 0.97756109908032229], [0.068950333437353351, 0.16535564442036033, 0.81256597584619628, -0.030399841045661402]]], [[[0.2186100506517219, 0.05462973166284546, 0.75392817594319128, 0.13555431069824042], [0.82266213810484645, 0.86756778812159374, 0.97736407173466588, 0.98176763854796856], [0.60260684810778309, 0.996967155568111, 0.18724388871121578, 0.94132468469936303]], [[0.96602989206010337, -0.01535133018101309, 0.91047056823779182, 0.34191191590172498], [0.48863937044966188, 0.81250399692378195, 0.80263147202960305, 0.51097322438609094], [0.93752210265262925, 0.066918152406544751, 0.54530101717511803, -0.30333596282980113]]]]))
14594          self.failUnless(isinstance(res,Data),"wrong type of result.")
14595          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14596          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14597       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14598       def test_maximum_taggedData_rank0_Symbol_rank4(self):
14599          arg0=Data(-0.68893275511,self.functionspace)
14600          arg0.setTaggedValue(1,-0.849805726636)
14601          arg1=Symbol(shape=(3, 2, 3, 4))
14602          res=maximum(arg0,arg1)
14603          s1=numarray.array([[[[0.79730512623447725, 0.56180687480162894, 0.79867790139520789, -0.86935013154092866], [-0.61689945601824148, 0.017156113369876769, -0.69067208028640881, -0.48539289283405584], [-0.62346387190225805, -0.13815708613813449, 0.50748938944119537, -0.37834770121718275]], [[0.067873492459750606, 0.63912626539579431, -0.76465664438332559, 0.92801327933550781], [-0.46860228915841007, -0.024046616892978934, 0.22239473943368715, 0.75526245206829468], [0.76655708400973133, 0.25379562122639032, -0.051820127307795616, -0.99050450042334925]]], [[[0.55446163610046173, -0.069524829420344769, -0.08914390809369177, 0.95932803538588374], [-0.68637647310207739, -0.8130063176400768, 0.47574659928040219, -0.89796165118811344], [0.14349158899441505, -0.87166286008360316, -0.72593395313455256, -0.35505822961510969]], [[-0.86396575651584273, 0.038619692731091115, -0.76539074115046346, 0.4509929390056493], [-0.34166981678127595, -0.49658304330178482, 0.5050189481022449, 0.14714728195901161], [0.91018001634292944, 0.89654125771827364, 0.66208155029976368, -0.42671825788650275]]], [[[0.68628389154051606, 0.4928255688885308, 0.47262159343159538, -0.43636261584197822], [0.37003968409145505, -0.65495701400689632, -0.11106046620434307, -0.33686672585984856], [0.17101375509341588, -0.21731135191147732, 0.54843014003987123, -0.91971617124530458]], [[0.311892706202612, -0.73529009144437762, 0.66345261754972751, 0.11175285154742509], [-0.11109673093316652, -0.53154690605547739, -0.32856789101659944, -0.052510635850146148], [0.3627705194824411, 0.077825502806491587, -0.71182360821543789, 0.70435889951454866]]]])
14604          sub=res.substitute({arg1:s1})
14605          ref=Data(numarray.array([[[[0.79730512623447725, 0.56180687480162894, 0.79867790139520789, -0.6889327551098845], [-0.61689945601824148, 0.017156113369876769, -0.6889327551098845, -0.48539289283405584], [-0.62346387190225805, -0.13815708613813449, 0.50748938944119537, -0.37834770121718275]], [[0.067873492459750606, 0.63912626539579431, -0.6889327551098845, 0.92801327933550781], [-0.46860228915841007, -0.024046616892978934, 0.22239473943368715, 0.75526245206829468], [0.76655708400973133, 0.25379562122639032, -0.051820127307795616, -0.6889327551098845]]], [[[0.55446163610046173, -0.069524829420344769, -0.08914390809369177, 0.95932803538588374], [-0.68637647310207739, -0.6889327551098845, 0.47574659928040219, -0.6889327551098845], [0.14349158899441505, -0.6889327551098845, -0.6889327551098845, -0.35505822961510969]], [[-0.6889327551098845, 0.038619692731091115, -0.6889327551098845, 0.4509929390056493], [-0.34166981678127595, -0.49658304330178482, 0.5050189481022449, 0.14714728195901161], [0.91018001634292944, 0.89654125771827364, 0.66208155029976368, -0.42671825788650275]]], [[[0.68628389154051606, 0.4928255688885308, 0.47262159343159538, -0.43636261584197822], [0.37003968409145505, -0.65495701400689632, -0.11106046620434307, -0.33686672585984856], [0.17101375509341588, -0.21731135191147732, 0.54843014003987123, -0.6889327551098845]], [[0.311892706202612, -0.6889327551098845, 0.66345261754972751, 0.11175285154742509], [-0.11109673093316652, -0.53154690605547739, -0.32856789101659944, -0.052510635850146148], [0.3627705194824411, 0.077825502806491587, -0.6889327551098845, 0.70435889951454866]]]]),self.functionspace)
14606          ref.setTaggedValue(1,numarray.array([[[[0.79730512623447725, 0.56180687480162894, 0.79867790139520789, -0.84980572663565312], [-0.61689945601824148, 0.017156113369876769, -0.69067208028640881, -0.48539289283405584], [-0.62346387190225805, -0.13815708613813449, 0.50748938944119537, -0.37834770121718275]], [[0.067873492459750606, 0.63912626539579431, -0.76465664438332559, 0.92801327933550781], [-0.46860228915841007, -0.024046616892978934, 0.22239473943368715, 0.75526245206829468], [0.76655708400973133, 0.25379562122639032, -0.051820127307795616, -0.84980572663565312]]], [[[0.55446163610046173, -0.069524829420344769, -0.08914390809369177, 0.95932803538588374], [-0.68637647310207739, -0.8130063176400768, 0.47574659928040219, -0.84980572663565312], [0.14349158899441505, -0.84980572663565312, -0.72593395313455256, -0.35505822961510969]], [[-0.84980572663565312, 0.038619692731091115, -0.76539074115046346, 0.4509929390056493], [-0.34166981678127595, -0.49658304330178482, 0.5050189481022449, 0.14714728195901161], [0.91018001634292944, 0.89654125771827364, 0.66208155029976368, -0.42671825788650275]]], [[[0.68628389154051606, 0.4928255688885308, 0.47262159343159538, -0.43636261584197822], [0.37003968409145505, -0.65495701400689632, -0.11106046620434307, -0.33686672585984856], [0.17101375509341588, -0.21731135191147732, 0.54843014003987123, -0.84980572663565312]], [[0.311892706202612, -0.73529009144437762, 0.66345261754972751, 0.11175285154742509], [-0.11109673093316652, -0.53154690605547739, -0.32856789101659944, -0.052510635850146148], [0.3627705194824411, 0.077825502806491587, -0.71182360821543789, 0.70435889951454866]]]]))
14607          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
14608          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14609          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14610       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14611       def test_maximum_taggedData_rank4_Symbol_rank4(self):
14612          arg0=Data(numarray.array([[[[0.25846889717082, -0.43675513913698238, 0.46966132949736394, 0.26271037479264003], [-0.77414654144877604, -0.63601493486643257, 0.88894816797808685, 0.99382037067626605], [0.45057175491733159, -0.99428383172625634, 0.095874375569470427, 0.79056282164989633]], [[-0.64168664737268366, 0.62826655381525054, 0.34271359246010502, 0.60054989268825065], [0.042096356545918256, 0.48894006458184358, 0.0653138452405988, -0.19469045860906053], [-0.30673432797997258, -0.62655515725268063, 0.41493001944296193, -0.52273981594635033]]], [[[0.85588175221355578, 0.29179469605736053, 0.73953800549639981, 0.85392471492682809], [0.15319449819317588, 0.47709612742375995, 0.79721936016962847, -0.62313286149911606], [-0.53560273233595868, 0.24708901402391259, 0.15794454436950045, 0.99523857402370441]], [[-0.35808571787090404, -0.21061557789107899, -0.41981053736416318, 0.13850935518093066], [-0.5510773696878617, -0.98303942221105567, -0.023146742611956261, 0.59925569415931856], [0.60085616221178406, 0.24053071794143399, -0.29965937588216995, -0.743908794488775]]], [[[0.17201408476223179, -0.043509240504472579, -0.77922553966978758, 0.60246241729640415], [0.73638837802096124, 0.84259996426830175, 0.25355052286455959, -0.17487186541464994], [-0.28681197596077102, -0.97431023035828845, -0.36238422533429682, -0.83228276964159331]], [[0.42513450019963805, 0.063132103977851628, 0.06047205379436793, -0.76123831538533615], [0.69773136350665621, -0.43428974445624013, 0.96574341776625894, 0.43999514430398468], [0.44885242002277259, 0.62328526324258737, 0.15545594375254823, -0.13292602683351795]]]]),self.functionspace)
14613          arg0.setTaggedValue(1,numarray.array([[[[-0.17816988740395368, -0.24978135005744018, 0.68205644781752617, -0.0016964225185969184], [-0.872799843986241, 0.78660504862736724, 0.47607947426570263, -0.99772282518549149], [0.85410217569124836, 0.34264000873601463, -0.15095039160444368, 0.80879586088918187]], [[-0.41150391460727387, -0.14470925513168686, 0.38543724978256955, -0.54134658354280729], [-0.35049695672959702, 0.71462746784717246, -0.91244096723431767, 0.38890570109775102], [-0.64344775183311076, -0.88716085000452205, 0.38020104690395895, -0.81099640980927079]]], [[[0.41492023553429869, -0.42387114738509268, 0.10736759701296639, -0.43265479705740129], [-0.77031076621277728, 0.31647563681009716, -0.1521118567278601, -0.90165915668225116], [-0.42675538085230857, -0.6052863616271722, -0.46577142661704274, -0.57737806810138936]], [[0.033142780664008775, -0.33541362995484292, -0.52106498023397707, 0.84891242884127061], [-0.48250915560536378, 0.18321814621179033, -0.019087937504425279, 0.4622540933598378], [-0.89796205822002606, -0.86220638152367779, -0.42296085044749776, -0.77194364978549213]]], [[[-0.80435863583103728, -0.48619590729036211, -0.1093832464371769, -0.91300325258438875], [0.88740237040038061, -0.43382030914859215, 0.21070336274434887, -0.24105920399804326], [-0.64151196258097132, 0.29816200692011097, 0.28231890806571314, -0.82541096690428573]], [[0.88764709099491634, -0.17151694464484546, -0.23092696834788584, -0.12799919200850307], [0.76945845582303884, -0.98952375400753834, -0.39321297839968561, -0.89119607266265577], [-0.63009645309091167, 0.77629321774922833, 0.57581124329549782, 0.62340279188998204]]]]))
14614          arg1=Symbol(shape=(3, 2, 3, 4))
14615          res=maximum(arg0,arg1)
14616          s1=numarray.array([[[[-0.98712702867593105, 0.31540869215633371, 0.21907560276401217, -0.71689224023655806], [-0.94331785137371815, 0.24671097423076094, 0.85905947166053354, 0.35089702869942707], [-0.94211799098938331, -0.087478268457717556, 0.58349802214714064, -0.96537242728230277]], [[0.69062547380804418, 0.2933382750296849, 0.34897387652725276, 0.77878426522002631], [0.44452292026097595, -0.25007672751353094, 0.82832596227530586, -0.21968786049741285], [-0.28581419506347827, 0.78118108162334066, 0.4251656400142001, -0.19061202976734593]]], [[[0.50529299037335007, -0.83265985001188625, -0.98703141578807774, 0.52389301551281786], [-0.86296548597476974, 0.55047964370884461, -0.46212480581184723, -0.42641604928441601], [0.51728308714452864, -0.72698266548665513, 0.35159705898217974, 0.33362867874919599]], [[0.29360535347502759, -0.75423059853457097, 0.40838415401465356, 0.57674431883068955], [-0.70241663834476875, -0.68824769793525808, -0.84579423499879303, 0.081247077008906432], [-0.54360584386616684, -0.74003179687288778, 0.89408549990357056, 0.41038078172700287]]], [[[0.60076937636029992, -0.97881520004268818, -0.86557008228874488, -0.46397623389735454], [-0.095610016715328872, 0.79689729712477697, -0.65631650739527592, 0.98913624500611363], [0.59487818592675512, 0.8574232690296224, 0.091510535765386258, -0.68415817634334131]], [[0.2688475027361843, -0.31670490529718687, 0.47982678893042019, 0.50745776466491299], [-0.74996860445309221, -0.27133226690386048, -0.034942645185377152, -0.61972207331642304], [-0.72306879028726412, -0.17250631535848915, -0.023490381815820305, 0.48234882724306094]]]])
14617          sub=res.substitute({arg1:s1})
14618          ref=Data(numarray.array([[[[0.25846889717082, 0.31540869215633371, 0.46966132949736394, 0.26271037479264003], [-0.77414654144877604, 0.24671097423076094, 0.88894816797808685, 0.99382037067626605], [0.45057175491733159, -0.087478268457717556, 0.58349802214714064, 0.79056282164989633]], [[0.69062547380804418, 0.62826655381525054, 0.34897387652725276, 0.77878426522002631], [0.44452292026097595, 0.48894006458184358, 0.82832596227530586, -0.19469045860906053], [-0.28581419506347827, 0.78118108162334066, 0.4251656400142001, -0.19061202976734593]]], [[[0.85588175221355578, 0.29179469605736053, 0.73953800549639981, 0.85392471492682809], [0.15319449819317588, 0.55047964370884461, 0.79721936016962847, -0.42641604928441601], [0.51728308714452864, 0.24708901402391259, 0.35159705898217974, 0.99523857402370441]], [[0.29360535347502759, -0.21061557789107899, 0.40838415401465356, 0.57674431883068955], [-0.5510773696878617, -0.68824769793525808, -0.023146742611956261, 0.59925569415931856], [0.60085616221178406, 0.24053071794143399, 0.89408549990357056, 0.41038078172700287]]], [[[0.60076937636029992, -0.043509240504472579, -0.77922553966978758, 0.60246241729640415], [0.73638837802096124, 0.84259996426830175, 0.25355052286455959, 0.98913624500611363], [0.59487818592675512, 0.8574232690296224, 0.091510535765386258, -0.68415817634334131]], [[0.42513450019963805, 0.063132103977851628, 0.47982678893042019, 0.50745776466491299], [0.69773136350665621, -0.27133226690386048, 0.96574341776625894, 0.43999514430398468], [0.44885242002277259, 0.62328526324258737, 0.15545594375254823, 0.48234882724306094]]]]),self.functionspace)
14619          ref.setTaggedValue(1,numarray.array([[[[-0.17816988740395368, 0.31540869215633371, 0.68205644781752617, -0.0016964225185969184], [-0.872799843986241, 0.78660504862736724, 0.85905947166053354, 0.35089702869942707], [0.85410217569124836, 0.34264000873601463, 0.58349802214714064, 0.80879586088918187]], [[0.69062547380804418, 0.2933382750296849, 0.38543724978256955, 0.77878426522002631], [0.44452292026097595, 0.71462746784717246, 0.82832596227530586, 0.38890570109775102], [-0.28581419506347827, 0.78118108162334066, 0.4251656400142001, -0.19061202976734593]]], [[[0.50529299037335007, -0.42387114738509268, 0.10736759701296639, 0.52389301551281786], [-0.77031076621277728, 0.55047964370884461, -0.1521118567278601, -0.42641604928441601], [0.51728308714452864, -0.6052863616271722, 0.35159705898217974, 0.33362867874919599]], [[0.29360535347502759, -0.33541362995484292, 0.40838415401465356, 0.84891242884127061], [-0.48250915560536378, 0.18321814621179033, -0.019087937504425279, 0.4622540933598378], [-0.54360584386616684, -0.74003179687288778, 0.89408549990357056, 0.41038078172700287]]], [[[0.60076937636029992, -0.48619590729036211, -0.1093832464371769, -0.46397623389735454], [0.88740237040038061, 0.79689729712477697, 0.21070336274434887, 0.98913624500611363], [0.59487818592675512, 0.8574232690296224, 0.28231890806571314, -0.68415817634334131]], [[0.88764709099491634, -0.17151694464484546, 0.47982678893042019, 0.50745776466491299], [0.76945845582303884, -0.27133226690386048, -0.034942645185377152, -0.61972207331642304], [-0.63009645309091167, 0.77629321774922833, 0.57581124329549782, 0.62340279188998204]]]]))
14620          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
14621          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14622          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14623       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14624       def test_maximum_taggedData_rank0_constData_rank4(self):
14625          arg0=Data(0.175075982346,self.functionspace)
14626          arg0.setTaggedValue(1,-0.753273109847)
14627          arg1=Data(numarray.array([[[[-0.90520491931836822, -0.93468993950409329, -0.69817984330991467, -0.19472712451275731], [0.024217147917435344, -0.051917085489648462, 0.95832186406934072, -0.15829046726386564], [-0.48306067231914596, -0.41568967685574232, 0.14434666355953474, -0.77262231860205799]], [[0.68747264268070341, 0.078098731827530354, -0.13676776472237995, 0.39580091142465523], [0.085784643596960031, 0.51757857880302582, -0.22620668285994228, -0.97695853326632109], [0.33320282360444509, -0.46906331447209726, 0.84298134633045896, 0.65728527461243669]]], [[[0.22868537840705616, -0.42917598979637384, 0.98021942369056747, 0.036486378920451923], [0.33526830672431229, 0.29845278576530587, 0.73318498063457294, 0.96455250980131879], [0.70157227491685203, -0.11966179656269249, -0.35144444326452851, 0.92978237965210186]], [[0.49662231192561057, -0.44191431253928704, 0.93392477626295167, -0.049858840167848584], [-0.92454951849267708, 0.35236313087098647, 0.060998074836456917, 0.57844628283558808], [0.76405432987726818, 0.67022116939456367, -0.41218118864500397, -0.069592294330405702]]], [[[-0.9489924452956886, 0.0023052791008568718, 0.91174990075813356, -0.045011693952122345], [-0.98325017436556439, -0.27232336410089664, 0.56200175967572896, 0.071945996926542355], [-0.86371744481279089, 0.49082955373961301, -0.3804849735134217, -0.6430043583685896]], [[0.654115340545951, -0.38797201046510255, -0.88752480607181661, 0.28133634556572007], [-0.66333324462780863, -0.98636701436618246, -0.39400019159584487, 0.031940367391527724], [0.29437766730392068, -0.14066757728058876, 0.7102223684414517, 0.51992231433698177]]]]),self.functionspace)
14628          res=maximum(arg0,arg1)
14629          ref=Data(numarray.array([[[[0.17507598234624222, 0.17507598234624222, 0.17507598234624222, 0.17507598234624222], [0.17507598234624222, 0.17507598234624222, 0.95832186406934072, 0.17507598234624222], [0.17507598234624222, 0.17507598234624222, 0.17507598234624222, 0.17507598234624222]], [[0.68747264268070341, 0.17507598234624222, 0.17507598234624222, 0.39580091142465523], [0.17507598234624222, 0.51757857880302582, 0.17507598234624222, 0.17507598234624222], [0.33320282360444509, 0.17507598234624222, 0.84298134633045896, 0.65728527461243669]]], [[[0.22868537840705616, 0.17507598234624222, 0.98021942369056747, 0.17507598234624222], [0.33526830672431229, 0.29845278576530587, 0.73318498063457294, 0.96455250980131879], [0.70157227491685203, 0.17507598234624222, 0.17507598234624222, 0.92978237965210186]], [[0.49662231192561057, 0.17507598234624222, 0.93392477626295167, 0.17507598234624222], [0.17507598234624222, 0.35236313087098647, 0.17507598234624222, 0.57844628283558808], [0.76405432987726818, 0.67022116939456367, 0.17507598234624222, 0.17507598234624222]]], [[[0.17507598234624222, 0.17507598234624222, 0.91174990075813356, 0.17507598234624222], [0.17507598234624222, 0.17507598234624222, 0.56200175967572896, 0.17507598234624222], [0.17507598234624222, 0.49082955373961301, 0.17507598234624222, 0.17507598234624222]], [[0.654115340545951, 0.17507598234624222, 0.17507598234624222, 0.28133634556572007], [0.17507598234624222, 0.17507598234624222, 0.17507598234624222, 0.17507598234624222], [0.29437766730392068, 0.17507598234624222, 0.7102223684414517, 0.51992231433698177]]]]),self.functionspace)
14630          ref.setTaggedValue(1,numarray.array([[[[-0.75327310984690454, -0.75327310984690454, -0.69817984330991467, -0.19472712451275731], [0.024217147917435344, -0.051917085489648462, 0.95832186406934072, -0.15829046726386564], [-0.48306067231914596, -0.41568967685574232, 0.14434666355953474, -0.75327310984690454]], [[0.68747264268070341, 0.078098731827530354, -0.13676776472237995, 0.39580091142465523], [0.085784643596960031, 0.51757857880302582, -0.22620668285994228, -0.75327310984690454], [0.33320282360444509, -0.46906331447209726, 0.84298134633045896, 0.65728527461243669]]], [[[0.22868537840705616, -0.42917598979637384, 0.98021942369056747, 0.036486378920451923], [0.33526830672431229, 0.29845278576530587, 0.73318498063457294, 0.96455250980131879], [0.70157227491685203, -0.11966179656269249, -0.35144444326452851, 0.92978237965210186]], [[0.49662231192561057, -0.44191431253928704, 0.93392477626295167, -0.049858840167848584], [-0.75327310984690454, 0.35236313087098647, 0.060998074836456917, 0.57844628283558808], [0.76405432987726818, 0.67022116939456367, -0.41218118864500397, -0.069592294330405702]]], [[[-0.75327310984690454, 0.0023052791008568718, 0.91174990075813356, -0.045011693952122345], [-0.75327310984690454, -0.27232336410089664, 0.56200175967572896, 0.071945996926542355], [-0.75327310984690454, 0.49082955373961301, -0.3804849735134217, -0.6430043583685896]], [[0.654115340545951, -0.38797201046510255, -0.75327310984690454, 0.28133634556572007], [-0.66333324462780863, -0.75327310984690454, -0.39400019159584487, 0.031940367391527724], [0.29437766730392068, -0.14066757728058876, 0.7102223684414517, 0.51992231433698177]]]]))
14631          self.failUnless(isinstance(res,Data),"wrong type of result.")
14632          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14633          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14634       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14635       def test_maximum_taggedData_rank4_constData_rank4(self):
14636          arg0=Data(numarray.array([[[[-0.83554041071651497, 0.71408854090245599, 0.60208475969377528, -0.48074567274281188], [-0.52759893410924819, -0.71615915803340324, 0.53333465163432692, -0.66988543484474605], [0.77637769090560016, -0.63913469863001549, 0.29301783500609346, -0.96046850219501256]], [[-0.2934774353287235, -0.83491727033450602, 0.068674887022271092, 0.15208898687960493], [-0.15482824781008264, -0.33821742546013978, -0.72427728138855074, 0.8070363392853257], [-0.29904185760156743, -0.2258288530271948, -0.037614687529824442, 0.83542534634450893]]], [[[0.19062537975270066, -0.23547948354521986, -0.41417602748868476, 0.72248428650742569], [-0.48296945282438974, 0.42128745145501134, 0.41652452158546938, -0.49944580063054222], [0.92772652297265146, 0.7270672572706014, -0.81760023566538487, 0.50095443130798856]], [[-0.74454869833090132, -0.70129367956832489, 0.36418680176033158, 0.38020322489950353], [0.20567532340417127, 0.15899857920753857, -0.41608677444765596, -0.20142186667572437], [-0.59223036711040766, -0.72216663548334203, -0.89066959971018722, -0.18384858463777798]]], [[[-0.86601762107365099, -0.39565676563683971, -0.3572559636912318, -0.75130471010020128], [0.61425518475424612, -0.047414537516563104, -0.46216310325753218, -0.79662509756346322], [-0.15391711914956874, 0.44577576348654691, -0.072098272539505626, -0.8810102747315931]], [[-0.18482310072006736, 0.53784496328328535, -0.24060782705170269, -0.13964203947011744], [0.4607198252775071, -0.28876214166544623, -0.64125936246661297, -0.45000998399530601], [-0.36469590037570154, -0.76346190967180227, 0.18143150646312955, 0.71074540892672355]]]]),self.functionspace)
14637          arg0.setTaggedValue(1,numarray.array([[[[0.38410988074270191, 0.48698261126925724, -0.71546872240537973, 0.24481247675581641], [0.99885682895314476, -0.25511670532604369, -0.71070355861906731, -0.72696546965933506], [-0.94912342150579154, -0.46411231113604301, -0.41021969012408888, 0.28731035829800411]], [[0.025228750258471155, 0.052193465179895204, 0.9667489767755737, -0.75023922525523989], [0.42541075459313893, -0.33499016293652595, 0.53921113379042773, 0.56807827977061542], [-0.85656916434076646, -0.50708798843058855, 0.095729837523134798, -0.93853871926968524]]], [[[0.72256037457316435, 0.87951699212687973, -0.25700948888996167, -0.36895326307397425], [-0.10383347850044355, 0.055990596622860211, 0.8505383875796928, -0.060493735214111277], [-0.15474973198303821, 0.084300406749669099, 0.18359703378401737, -0.39026465982377245]], [[-0.57679037452493054, -0.79939222661951659, 0.96534755723804411, -0.5570215917480128], [0.90049139166436554, 0.97719408860871826, 0.50274901942217842, 0.32543237814304438], [-0.49678670997716967, -0.564748676453384, 0.53223489483479858, 0.084495376513626264]]], [[[0.99677248621279202, -0.72739982709913842, -0.13880590557865724, 0.15133583376283433], [0.76244310510429059, -0.14755688136107215, 0.16518884190374328, 0.083060985420594369], [-0.038160642105724119, -0.24133253446363812, 0.58857369505920176, -0.024863384107122855]], [[0.6765400209954735, -0.26957688268590263, 0.26961637512199643, -0.49644190164725588], [-0.74754865637610313, -0.27081415764153416, 0.34883570273480924, -0.14892014181377533], [0.39562098011519908, -0.55360659958531344, 0.42315840716945852, -0.92845920852039332]]]]))
14638          arg1=Data(numarray.array([[[[-0.96631869879503518, -0.28641755911727418, 0.12373979419442604, 0.48542674969519384], [-0.76157324731506382, 0.47654843860186769, -0.52233692676173993, -0.3924418091656916], [0.091788811985614283, -0.65599501387602555, -0.73156215199864261, -0.61436310586467435]], [[-0.090856928024656947, 0.94405650117949436, 0.26960360201567446, 0.86164324014188276], [0.051142373301623412, -0.34635650648076655, -0.63840458037438319, -0.67326079913537829], [0.091684265168592072, 0.4926229620141751, -0.23501283462010925, -0.57864913724747113]]], [[[-0.91848196770480595, 0.47177138324142032, -0.20804568417267366, 0.74766249038054111], [0.13648841759432262, -0.86260941082421949, 0.83438299358276091, -0.44680910343388991], [0.48124568087048081, 0.49492688617119374, -0.87250408657471179, 0.42135484555644287]], [[-0.58724283171517877, -0.81287498457771457, -0.48121017671547528, -0.30112540340537608], [0.52688704971498135, -0.27495826164856152, 0.62176459312402876, -0.70535467900420312], [-0.93424398659195496, 0.43798922141764662, -0.14965859673809367, -0.97767246532594232]]], [[[-0.4630811897807674, -0.36376768653981673, -0.72017037184924604, -0.49842765407284229], [0.64937429811150449, -0.15823487622512489, 0.65967401184976682, 0.41715402488099307], [-0.97143026036379743, -0.3672551538027351, -0.73381298765192149, 0.72454560789134392]], [[-0.52279746407536987, 0.74263228500102474, -0.53788299341072765, -0.29063337196731642], [-0.30189250558381775, -0.30671529171740897, -0.99527483620813095, 0.22945727156053297], [0.66460628434796365, 0.78890813192725351, 0.048234854061694143, 0.6439469411562937]]]]),self.functionspace)
14639          res=maximum(arg0,arg1)
14640          ref=Data(numarray.array([[[[-0.83554041071651497, 0.71408854090245599, 0.60208475969377528, 0.48542674969519384], [-0.52759893410924819, 0.47654843860186769, 0.53333465163432692, -0.3924418091656916], [0.77637769090560016, -0.63913469863001549, 0.29301783500609346, -0.61436310586467435]], [[-0.090856928024656947, 0.94405650117949436, 0.26960360201567446, 0.86164324014188276], [0.051142373301623412, -0.33821742546013978, -0.63840458037438319, 0.8070363392853257], [0.091684265168592072, 0.4926229620141751, -0.037614687529824442, 0.83542534634450893]]], [[[0.19062537975270066, 0.47177138324142032, -0.20804568417267366, 0.74766249038054111], [0.13648841759432262, 0.42128745145501134, 0.83438299358276091, -0.44680910343388991], [0.92772652297265146, 0.7270672572706014, -0.81760023566538487, 0.50095443130798856]], [[-0.58724283171517877, -0.70129367956832489, 0.36418680176033158, 0.38020322489950353], [0.52688704971498135, 0.15899857920753857, 0.62176459312402876, -0.20142186667572437], [-0.59223036711040766, 0.43798922141764662, -0.14965859673809367, -0.18384858463777798]]], [[[-0.4630811897807674, -0.36376768653981673, -0.3572559636912318, -0.49842765407284229], [0.64937429811150449, -0.047414537516563104, 0.65967401184976682, 0.41715402488099307], [-0.15391711914956874, 0.44577576348654691, -0.072098272539505626, 0.72454560789134392]], [[-0.18482310072006736, 0.74263228500102474, -0.24060782705170269, -0.13964203947011744], [0.4607198252775071, -0.28876214166544623, -0.64125936246661297, 0.22945727156053297], [0.66460628434796365, 0.78890813192725351, 0.18143150646312955, 0.71074540892672355]]]]),self.functionspace)
14641          ref.setTaggedValue(1,numarray.array([[[[0.38410988074270191, 0.48698261126925724, 0.12373979419442604, 0.48542674969519384], [0.99885682895314476, 0.47654843860186769, -0.52233692676173993, -0.3924418091656916], [0.091788811985614283, -0.46411231113604301, -0.41021969012408888, 0.28731035829800411]], [[0.025228750258471155, 0.94405650117949436, 0.9667489767755737, 0.86164324014188276], [0.42541075459313893, -0.33499016293652595, 0.53921113379042773, 0.56807827977061542], [0.091684265168592072, 0.4926229620141751, 0.095729837523134798, -0.57864913724747113]]], [[[0.72256037457316435, 0.87951699212687973, -0.20804568417267366, 0.74766249038054111], [0.13648841759432262, 0.055990596622860211, 0.8505383875796928, -0.060493735214111277], [0.48124568087048081, 0.49492688617119374, 0.18359703378401737, 0.42135484555644287]], [[-0.57679037452493054, -0.79939222661951659, 0.96534755723804411, -0.30112540340537608], [0.90049139166436554, 0.97719408860871826, 0.62176459312402876, 0.32543237814304438], [-0.49678670997716967, 0.43798922141764662, 0.53223489483479858, 0.084495376513626264]]], [[[0.99677248621279202, -0.36376768653981673, -0.13880590557865724, 0.15133583376283433], [0.76244310510429059, -0.14755688136107215, 0.65967401184976682, 0.41715402488099307], [-0.038160642105724119, -0.24133253446363812, 0.58857369505920176, 0.72454560789134392]], [[0.6765400209954735, 0.74263228500102474, 0.26961637512199643, -0.29063337196731642], [-0.30189250558381775, -0.27081415764153416, 0.34883570273480924, 0.22945727156053297], [0.66460628434796365, 0.78890813192725351, 0.42315840716945852, 0.6439469411562937]]]]))
14642          self.failUnless(isinstance(res,Data),"wrong type of result.")
14643          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14644          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14645       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14646       def test_maximum_taggedData_rank0_taggedData_rank4(self):
14647          arg0=Data(0.359848099791,self.functionspace)
14648          arg0.setTaggedValue(1,-0.32301879346)
14649          arg1=Data(numarray.array([[[[-0.16702432092235409, -0.06866876640451669, -0.92785635272040379, -0.92005334963800678], [-0.9738980183757846, -0.76396923416949791, -0.1456849962483111, 0.4545699448145355], [-0.75613105524163693, -0.48664003507384024, 0.17761051693218599, 0.88396540985438654]], [[-0.12740955092566053, -0.66428545503968239, 0.92830953756719303, 0.90914274494830827], [-0.57723852475234083, 0.070878461299128448, -0.55777398440813886, -0.49042966779867481], [-0.19776456885718008, -0.39523659475973272, 0.65506918257425273, -0.7493940072567562]]], [[[0.72888194265778572, -0.041168654770973312, -0.059569991301786862, -0.07323948419301729], [0.82838219301280835, -0.060765027842354602, 0.17723089681084914, 0.66279184149014925], [-0.6249853567294843, -0.36892972584898809, -0.05891880437023822, 0.99230971020254266]], [[-0.91915653784996665, 0.44538349382517528, -0.098012471289684822, -0.39235609068909483], [-0.095784275082066328, 0.92889885409591244, -0.33940090860481908, -0.56520432599462844], [-0.84518516880775918, 0.2096567118449062, 0.73364142442547964, -0.80439567355077379]]], [[[0.98097911106432778, 0.37425430053692543, -0.95421426335162574, -0.9711798879942215], [0.20793947160953397, 0.18980820452364755, 0.62427193579423057, 0.97936933611501353], [-0.84744217037696457, -0.92800447234171024, -0.67435896077327473, -0.40465279589978764]], [[0.17651512016349158, -0.075802975431532138, 0.80479273628853232, 0.84252390054322657], [-0.29535938280495855, -0.70019289558460041, 0.50743658132201852, -0.23494470011704305], [0.89991130167365241, 0.37038846620431487, -0.020752227049099403, 0.10638454882043757]]]]),self.functionspace)
14650          arg1.setTaggedValue(1,numarray.array([[[[0.97578498738753083, -0.78566072302491374, 0.78180749249393844, -0.59478729639483663], [0.848606560968721, 0.58370925867603796, 0.63526222841440694, -0.099861890757521055], [0.28848242860671069, 0.13789155213119297, 0.61435463081039376, -0.58646995769074328]], [[-0.37096038653019647, 0.69581697388381025, -0.88679025736391726, 0.7749694667466025], [0.63817615633948832, -0.72722528507215278, -0.4425160299955575, 0.66445379947171856], [-0.93345379909845216, 0.67998510495666631, 0.53825423228386082, 0.50356993307639808]]], [[[-0.96614128056737081, -0.35729090986965129, 0.6037760685289093, 0.10230903877022546], [-0.2386724832095497, 0.19052031803304703, -0.88325401184715369, 0.22532508246496374], [0.3318869974006442, 0.19915372276857712, -0.95932746578114902, 0.79477805730513129]], [[0.9443821536396948, 0.73570756597820552, -0.2792714255865858, 0.83906303842776286], [0.97073740444357415, -0.41792084568097976, -0.28021605438811803, 0.6832261432593556], [0.99821460704228837, -0.81852541485186525, -0.24587890850209848, -0.95760062960296066]]], [[[0.47497950241118625, 0.6268272063294047, -0.36180249908656426, 0.19800693306026362], [0.59402477011371491, 0.72905899355312687, -0.50047002505571792, -0.2858694836640483], [0.92021086832490906, 0.24454277677303526, 0.40377936020168037, 0.15756138553056842]], [[0.37256951712130082, -0.85651180048010866, -0.62348844997233877, 0.94297969025886741], [-0.28818150118089991, 0.86231107270803986, -0.51024752748623681, 0.6549079906323394], [-0.88536217536802075, 0.098109147666445073, 0.51905538404276341, 0.25916674167511156]]]]))
14651          res=maximum(arg0,arg1)
14652          ref=Data(numarray.array([[[[0.35984809979125787, 0.35984809979125787, 0.35984809979125787, 0.35984809979125787], [0.35984809979125787, 0.35984809979125787, 0.35984809979125787, 0.4545699448145355], [0.35984809979125787, 0.35984809979125787, 0.35984809979125787, 0.88396540985438654]], [[0.35984809979125787, 0.35984809979125787, 0.92830953756719303, 0.90914274494830827], [0.35984809979125787, 0.35984809979125787, 0.35984809979125787, 0.35984809979125787], [0.35984809979125787, 0.35984809979125787, 0.65506918257425273, 0.35984809979125787]]], [[[0.72888194265778572, 0.35984809979125787, 0.35984809979125787, 0.35984809979125787], [0.82838219301280835, 0.35984809979125787, 0.35984809979125787, 0.66279184149014925], [0.35984809979125787, 0.35984809979125787, 0.35984809979125787, 0.99230971020254266]], [[0.35984809979125787, 0.44538349382517528, 0.35984809979125787, 0.35984809979125787], [0.35984809979125787, 0.92889885409591244, 0.35984809979125787, 0.35984809979125787], [0.35984809979125787, 0.35984809979125787, 0.73364142442547964, 0.35984809979125787]]], [[[0.98097911106432778, 0.37425430053692543, 0.35984809979125787, 0.35984809979125787], [0.35984809979125787, 0.35984809979125787, 0.62427193579423057, 0.97936933611501353], [0.35984809979125787, 0.35984809979125787, 0.35984809979125787, 0.35984809979125787]], [[0.35984809979125787, 0.35984809979125787, 0.80479273628853232, 0.84252390054322657], [0.35984809979125787, 0.35984809979125787, 0.50743658132201852, 0.35984809979125787], [0.89991130167365241, 0.37038846620431487, 0.35984809979125787, 0.35984809979125787]]]]),self.functionspace)
14653          ref.setTaggedValue(1,numarray.array([[[[0.97578498738753083, -0.32301879346006701, 0.78180749249393844, -0.32301879346006701], [0.848606560968721, 0.58370925867603796, 0.63526222841440694, -0.099861890757521055], [0.28848242860671069, 0.13789155213119297, 0.61435463081039376, -0.32301879346006701]], [[-0.32301879346006701, 0.69581697388381025, -0.32301879346006701, 0.7749694667466025], [0.63817615633948832, -0.32301879346006701, -0.32301879346006701, 0.66445379947171856], [-0.32301879346006701, 0.67998510495666631, 0.53825423228386082, 0.50356993307639808]]], [[[-0.32301879346006701, -0.32301879346006701, 0.6037760685289093, 0.10230903877022546], [-0.2386724832095497, 0.19052031803304703, -0.32301879346006701, 0.22532508246496374], [0.3318869974006442, 0.19915372276857712, -0.32301879346006701, 0.79477805730513129]], [[0.9443821536396948, 0.73570756597820552, -0.2792714255865858, 0.83906303842776286], [0.97073740444357415, -0.32301879346006701, -0.28021605438811803, 0.6832261432593556], [0.99821460704228837, -0.32301879346006701, -0.24587890850209848, -0.32301879346006701]]], [[[0.47497950241118625, 0.6268272063294047, -0.32301879346006701, 0.19800693306026362], [0.59402477011371491, 0.72905899355312687, -0.32301879346006701, -0.2858694836640483], [0.92021086832490906, 0.24454277677303526, 0.40377936020168037, 0.15756138553056842]], [[0.37256951712130082, -0.32301879346006701, -0.32301879346006701, 0.94297969025886741], [-0.28818150118089991, 0.86231107270803986, -0.32301879346006701, 0.6549079906323394], [-0.32301879346006701, 0.098109147666445073, 0.51905538404276341, 0.25916674167511156]]]]))
14654          self.failUnless(isinstance(res,Data),"wrong type of result.")
14655          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14656          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14657       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14658       def test_maximum_taggedData_rank4_taggedData_rank4(self):
14659          arg0=Data(numarray.array([[[[0.26563127580812163, -0.34457797630255338, 0.2346903853285327, -0.8454883899910306], [0.2163845841669394, 0.053180577149721575, 0.31193541105564782, -0.50332171144939508], [-0.63201079937206139, -0.21150738299206129, 0.36186929378192878, 0.67650322506866201]], [[-0.54480747048081724, 0.12266763421497173, 0.80210944561378761, 0.0084698895634938154], [-0.055181153809809924, 0.8900392186506163, 0.0069214374987596194, -0.70161401569131709], [0.62173917883517626, 0.87861441240175409, -0.064371810173868838, 0.5082145071910984]]], [[[-0.63133302440615457, -0.047684747320537957, 0.12413281764706618, -0.98961720351875915], [0.1866616419093623, 0.043198711151814839, 0.62670028456093441, 0.0016937528271721014], [-0.99986630288429335, -0.41687463572411132, 0.73185666060689925, 0.92659394364832615]], [[-0.22157046318387597, -0.020675529999787612, -0.35218831231208192, 0.63483071623135645], [0.94607227720114495, 0.62615232251281494, -0.044533114877439273, -0.37003516015413451], [0.82063080133814892, 0.54096160623847278, -0.22246914607905643, -0.83172892127578213]]], [[[0.86754739333404673, 0.30595625521104064, -0.70612129879028118, 0.15718748076070055], [-0.71268367667725374, -0.29730161390926568, -0.32629361912768418, -0.7579722067667729], [0.41934454460428694, -0.95593762763858381, -0.23225038340368021, 0.37944713138969899]], [[0.77047144164271053, -0.50683589201042145, 0.21800816850393812, 0.21164251772657794], [0.25414763143208341, 0.80815173698637732, -0.46136883329991663, 0.68175673965981565], [0.6893702060110618, -0.16899889812522995, 0.68975555805828126, -0.1530772898537438]]]]),self.functionspace)
14660          arg0.setTaggedValue(1,numarray.array([[[[0.75401054459557981, 0.22974491712268508, -0.9122286508760824, -0.71704655166790099], [-0.25772543935471504, 0.64733600330531482, -0.13380189816965116, 0.6837271101692175], [0.55016408391760385, 0.59860890181370552, 0.1678663011437469, 0.84544454148220383]], [[-0.5390322424098386, 0.38471591463575439, 0.14116680406396132, -0.71500462019902677], [-0.94603615037127642, 0.11116321983180111, -0.83037248593137369, -0.49206844633311175], [0.72800264379158741, 0.57317609607871511, 0.81428936715884426, -0.6451313611386611]]], [[[-0.1054601921648366, -0.71417564446292769, -0.63899885864164752, -0.78045985178766419], [-0.55826576249476534, 0.34383219474527271, -0.66865907842784855, -0.55330184587791731], [-0.10602478556251405, -0.52284096714332962, -0.42695030789151867, -0.23131983333227413]], [[0.28730778310526506, -0.085300698105907014, 0.5669155701973807, -0.20487499776860418], [-0.020350594546123979, 0.49563110676180955, 0.66872971083776456, 0.58659063108834153], [-0.40323833026885181, -0.13804956957639525, -0.13780754419072094, -0.28226957781803019]]], [[[-0.60381667373682957, -0.058075783190817187, -0.10532115562777933, -0.26715167856932887], [-0.19840431185134255, 0.69200725798237595, 0.38388056071569476, -0.64213175790884369], [-0.61074301744663906, 0.68826224833107874, 0.25197297202419233, -0.27118324277121952]], [[0.71196898811688136, 0.75110748472376376, -0.22232922168177227, -0.95967398083135169], [-0.78464593947887984, 0.75900640150763565, 0.83029869697090319, 0.29517865933303722], [0.29715263603632724, 0.67665285355536331, 0.33062147124950947, 0.91780337254142141]]]]))
14661          arg1=Data(numarray.array([[[[0.10834925808760554, 0.55593666772031813, -0.22422168329127934, 0.63184497781252724], [0.43452302333321979, 0.47315661964460642, -0.61443737662358711, -0.81886754397548867], [0.83411846958641367, 0.4207149140946822, 0.41805764797970157, -0.36104035745344842]], [[-0.63615594549860166, -0.052706169424120652, -0.15506592979579281, -0.046722162261591871], [0.36734157985950233, -0.43910412475291039, -0.061632693839534403, 0.18387311643630877], [0.45207152039801857, -0.53174209014251117, -0.56930417812185241, 0.069623692061308251]]], [[[-0.80553258796465199, -0.9476361259810826, -0.67678809193888267, 0.50047211585197537], [0.57132412591369652, -0.89036491249248639, 0.1463541471029719, 0.1310204313578176], [-0.52678159360532018, 0.86253046002929401, -0.13259801867844456, -0.73430184522051367]], [[-0.58156092425108663, -0.77775450829480652, 0.0078060289706782804, 0.28714248943423071], [0.98988944133317314, 0.54181301559287998, -0.61462537129798167, 0.14488621669222557], [0.87738560858575676, -0.014532853678190349, 0.17835610721597273, 0.13696312060367277]]], [[[0.47219801825391206, 0.27692443894787355, 0.82782943299942358, -0.045268759625685995], [0.74104720022727033, 0.60944473904656138, 0.96323454865477021, -0.37858728270454667], [0.066889023852941376, 0.79432558840660694, -0.99667963232663292, -0.94808878863656876]], [[-0.98117591436714591, -0.40309070095698152, 0.9066629270881108, 0.20871508818579465], [0.68208565955272249, 0.66093198766169658, -0.37112210438141235, -0.4100888357839263], [-0.51930559641087237, 0.29025264374472637, -0.20291928312909602, 0.78965727017388976]]]]),self.functionspace)
14662          arg1.setTaggedValue(1,numarray.array([[[[0.7535796556325729, 0.16409966774352025, -0.88163609330597614, 0.56611570203052342], [0.99867923676244463, -0.23230312747792015, 0.62170084861892039, -0.22474648980293477], [-0.33076740528642024, -0.96091332651139116, 0.49387004370177379, 0.087929575219180212]], [[0.056606714059171725, -0.46722548152987597, -0.4149824551994532, -0.52836187405201196], [-0.057637558987633009, 0.32534381846242311, -0.95764919152402617, 0.50425020136131793], [0.41881030044180179, -0.55193233174518119, -0.078461126391198288, 0.64283212596462569]]], [[[-0.31961433638862391, 0.48336634285543356, 0.59868359034545504, 0.77807690526146023], [0.65047394099235656, 0.32490505228075128, 0.42586694990221696, -0.20898406086196863], [-0.78063775101477328, -0.60017480640193521, -0.19528339985812826, -0.4290661099696067]], [[-0.6281113768473745, 0.88512376401871418, 0.51250293267364899, -0.12808536932751546], [-0.68566879547771453, 0.15835536317350218, 0.56336708108297739, 0.97844620592141629], [0.85685030465286061, -0.2685316814753469, 0.42370516851863238, -0.10127727176306944]]], [[[-0.15757344636460613, -0.52528087961252456, 0.13534155518702806, 0.045330858581224653], [0.53022236877841289, -0.47026331333427995, -0.3252704688762782, -0.068276962336971003], [-0.58499778641657674, -0.23213972270253658, 0.76509335187050698, -0.80540742615170369]], [[-0.47529529033301121, 0.68570197963703494, -0.57953510489505522, -0.21311529731625289], [0.411965909939493, 0.90315382735644922, -0.82763488040329602, 0.35884447681529119], [-0.65609615546301359, 0.11773605632689677, 0.39005319527180782, 0.0077075450799588552]]]]))
14663          res=maximum(arg0,arg1)
14664          ref=Data(numarray.array([[[[0.26563127580812163, 0.55593666772031813, 0.2346903853285327, 0.63184497781252724], [0.43452302333321979, 0.47315661964460642, 0.31193541105564782, -0.50332171144939508], [0.83411846958641367, 0.4207149140946822, 0.41805764797970157, 0.67650322506866201]], [[-0.54480747048081724, 0.12266763421497173, 0.80210944561378761, 0.0084698895634938154], [0.36734157985950233, 0.8900392186506163, 0.0069214374987596194, 0.18387311643630877], [0.62173917883517626, 0.87861441240175409, -0.064371810173868838, 0.5082145071910984]]], [[[-0.63133302440615457, -0.047684747320537957, 0.12413281764706618, 0.50047211585197537], [0.57132412591369652, 0.043198711151814839, 0.62670028456093441, 0.1310204313578176], [-0.52678159360532018, 0.86253046002929401, 0.73185666060689925, 0.92659394364832615]], [[-0.22157046318387597, -0.020675529999787612, 0.0078060289706782804, 0.63483071623135645], [0.98988944133317314, 0.62615232251281494, -0.044533114877439273, 0.14488621669222557], [0.87738560858575676, 0.54096160623847278, 0.17835610721597273, 0.13696312060367277]]], [[[0.86754739333404673, 0.30595625521104064, 0.82782943299942358, 0.15718748076070055], [0.74104720022727033, 0.60944473904656138, 0.96323454865477021, -0.37858728270454667], [0.41934454460428694, 0.79432558840660694, -0.23225038340368021, 0.37944713138969899]], [[0.77047144164271053, -0.40309070095698152, 0.9066629270881108, 0.21164251772657794], [0.68208565955272249, 0.80815173698637732, -0.37112210438141235, 0.68175673965981565], [0.6893702060110618, 0.29025264374472637, 0.68975555805828126, 0.78965727017388976]]]]),self.functionspace)
14665          ref.setTaggedValue(1,numarray.array([[[[0.75401054459557981, 0.22974491712268508, -0.88163609330597614, 0.56611570203052342], [0.99867923676244463, 0.64733600330531482, 0.62170084861892039, 0.6837271101692175], [0.55016408391760385, 0.59860890181370552, 0.49387004370177379, 0.84544454148220383]], [[0.056606714059171725, 0.38471591463575439, 0.14116680406396132, -0.52836187405201196], [-0.057637558987633009, 0.32534381846242311, -0.83037248593137369, 0.50425020136131793], [0.72800264379158741, 0.57317609607871511, 0.81428936715884426, 0.64283212596462569]]], [[[-0.1054601921648366, 0.48336634285543356, 0.59868359034545504, 0.77807690526146023], [0.65047394099235656, 0.34383219474527271, 0.42586694990221696, -0.20898406086196863], [-0.10602478556251405, -0.52284096714332962, -0.19528339985812826, -0.23131983333227413]], [[0.28730778310526506, 0.88512376401871418, 0.5669155701973807, -0.12808536932751546], [-0.020350594546123979, 0.49563110676180955, 0.66872971083776456, 0.97844620592141629], [0.85685030465286061, -0.13804956957639525, 0.42370516851863238, -0.10127727176306944]]], [[[-0.15757344636460613, -0.058075783190817187, 0.13534155518702806, 0.045330858581224653], [0.53022236877841289, 0.69200725798237595, 0.38388056071569476, -0.068276962336971003], [-0.58499778641657674, 0.68826224833107874, 0.76509335187050698, -0.27118324277121952]], [[0.71196898811688136, 0.75110748472376376, -0.22232922168177227, -0.21311529731625289], [0.411965909939493, 0.90315382735644922, 0.83029869697090319, 0.35884447681529119], [0.29715263603632724, 0.67665285355536331, 0.39005319527180782, 0.91780337254142141]]]]))
14666          self.failUnless(isinstance(res,Data),"wrong type of result.")
14667          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14668          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14669       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14670       def test_maximum_taggedData_rank0_expandedData_rank4(self):
14671          arg0=Data(0.469968604774,self.functionspace)
14672          arg0.setTaggedValue(1,-0.841933836654)
14673          arg1=Data(numarray.array([[[[0.96799917063261409, -0.86661811201272831, 0.47201141981822858, 0.049952270268001753], [-0.22338695322375646, 0.96872332483282375, 0.19877209616296909, 0.49772168968845887], [-0.73591764400471771, 0.62012726879516444, -0.5521797985767154, 0.72050763180743038]], [[-0.39231636254539071, -0.074539493325833428, 0.92293794375703264, -0.20157806333761341], [-0.11248886972963335, 0.97843635480846136, -0.14603677189557196, -0.42671608085961998], [-0.49876635566180272, -0.43130758530937729, -0.4584513671641568, 0.9525109700965102]]], [[[0.52539281253864512, 0.76087490949891379, -0.49103094194895758, -0.13973163539196176], [-0.12037225493441173, 0.47148631628813731, -0.37094299665033681, -0.19863435762328141], [-0.29172470012921492, 0.40403163351028182, -0.49021494890655504, 0.3017376697760985]], [[0.37259332003286083, -0.32301598375868767, 0.21334657588342654, 0.91568668490748339], [0.38348229129047495, -0.40656229355948459, -0.20679538025187538, 0.4883167426693038], [0.74528188999593414, 0.12326480339528434, 0.19371601127829052, 0.20745454690184806]]], [[[-0.18933480162300764, 0.65853853119832761, -0.56680098625762776, -0.96099802784436772], [-0.84061607066227451, 0.62349684395724125, 0.52607653495550122, -0.90964589662813178], [0.2637452143217951, 0.39860784868507193, -0.15461854461685509, -0.80144007937114847]], [[0.43037498830435017, -0.20517355213181587, -0.40137631349231695, 0.35128258168015569], [-0.91803534480975713, 0.78874943586980617, 0.6970466108744684, -0.51093512430996157], [0.2678122718491025, 0.84711792647927608, -0.087433537131151207, -0.42251221731093414]]]]),self.functionspace)
14674          arg1.setTaggedValue(1,numarray.array([[[[-0.79902570155778041, -0.96231459941099207, -0.23753030474741288, 0.32015814046069635], [-0.69519556701166341, 0.56633323595909246, 0.75751301528775272, -0.06669352527047101], [0.82836725287295332, -0.027963371325754327, 0.087921933670011221, 0.86536517681111547]], [[0.4325375591348628, -0.34896586965417353, 0.70354538947504319, -0.20056808943825621], [-0.52988367698250194, -0.59423561520650758, -0.97968384708944667, 0.026349425862099096], [-0.50171628506273414, -0.29951170726168153, 0.2288122009424558, 0.39674411303152968]]], [[[-0.90269088072410208, -0.16278684381394903, -0.15269927499094682, 0.18509624754432652], [0.64036370121272612, -0.31610867439020707, 0.95209701283440196, -0.35041334363144094], [0.96111584894830626, -0.29793105576122403, 0.97110776227797535, 0.25247132709610609]], [[0.27743693873052067, -0.38424998978589087, 0.61128936845407544, -0.94025011164981076], [0.88629254641622657, 0.41485617895265148, -0.63255160284551004, 0.17669809948946202], [-0.56608338692442239, -0.17214950023195152, 0.52140620940859761, 0.32567292143787885]]], [[[-0.12136715353558047, -0.98637919281311182, 0.98268049823328707, 0.79774302895185389], [0.045567737996956126, -0.55633965988549927, 0.73487999272018034, -0.17918250878589093], [0.97769835593420829, 0.75944281097916932, 0.016724295704277692, 0.54206523256588879]], [[-0.097591940836256885, 0.16199513255394415, -0.70561669003548055, -0.073562737251948951], [-0.16227839596318816, 0.19795405960405921, -0.76257514431383444, -0.91606555039067894], [0.75840636984124221, 0.83500880212967443, 0.42673148597153787, -0.27665081857084672]]]]))
14675          arg1.expand()
14676          res=maximum(arg0,arg1)
14677          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14678          ref=msk_ref*numarray.array([[[[0.96799917063261409, 0.46996860477429592, 0.47201141981822858, 0.46996860477429592], [0.46996860477429592, 0.96872332483282375, 0.46996860477429592, 0.49772168968845887], [0.46996860477429592, 0.62012726879516444, 0.46996860477429592, 0.72050763180743038]], [[0.46996860477429592, 0.46996860477429592, 0.92293794375703264, 0.46996860477429592], [0.46996860477429592, 0.97843635480846136, 0.46996860477429592, 0.46996860477429592], [0.46996860477429592, 0.46996860477429592, 0.46996860477429592, 0.9525109700965102]]], [[[0.52539281253864512, 0.76087490949891379, 0.46996860477429592, 0.46996860477429592], [0.46996860477429592, 0.47148631628813731, 0.46996860477429592, 0.46996860477429592], [0.46996860477429592, 0.46996860477429592, 0.46996860477429592, 0.46996860477429592]], [[0.46996860477429592, 0.46996860477429592, 0.46996860477429592, 0.91568668490748339], [0.46996860477429592, 0.46996860477429592, 0.46996860477429592, 0.4883167426693038], [0.74528188999593414, 0.46996860477429592, 0.46996860477429592, 0.46996860477429592]]], [[[0.46996860477429592, 0.65853853119832761, 0.46996860477429592, 0.46996860477429592], [0.46996860477429592, 0.62349684395724125, 0.52607653495550122, 0.46996860477429592], [0.46996860477429592, 0.46996860477429592, 0.46996860477429592, 0.46996860477429592]], [[0.46996860477429592, 0.46996860477429592, 0.46996860477429592, 0.46996860477429592], [0.46996860477429592, 0.78874943586980617, 0.6970466108744684, 0.46996860477429592], [0.46996860477429592, 0.84711792647927608, 0.46996860477429592, 0.46996860477429592]]]])+(1.-msk_ref)*numarray.array([[[[-0.79902570155778041, -0.84193383665442045, -0.23753030474741288, 0.32015814046069635], [-0.69519556701166341, 0.56633323595909246, 0.75751301528775272, -0.06669352527047101], [0.82836725287295332, -0.027963371325754327, 0.087921933670011221, 0.86536517681111547]], [[0.4325375591348628, -0.34896586965417353, 0.70354538947504319, -0.20056808943825621], [-0.52988367698250194, -0.59423561520650758, -0.84193383665442045, 0.026349425862099096], [-0.50171628506273414, -0.29951170726168153, 0.2288122009424558, 0.39674411303152968]]], [[[-0.84193383665442045, -0.16278684381394903, -0.15269927499094682, 0.18509624754432652], [0.64036370121272612, -0.31610867439020707, 0.95209701283440196, -0.35041334363144094], [0.96111584894830626, -0.29793105576122403, 0.97110776227797535, 0.25247132709610609]], [[0.27743693873052067, -0.38424998978589087, 0.61128936845407544, -0.84193383665442045], [0.88629254641622657, 0.41485617895265148, -0.63255160284551004, 0.17669809948946202], [-0.56608338692442239, -0.17214950023195152, 0.52140620940859761, 0.32567292143787885]]], [[[-0.12136715353558047, -0.84193383665442045, 0.98268049823328707, 0.79774302895185389], [0.045567737996956126, -0.55633965988549927, 0.73487999272018034, -0.17918250878589093], [0.97769835593420829, 0.75944281097916932, 0.016724295704277692, 0.54206523256588879]], [[-0.097591940836256885, 0.16199513255394415, -0.70561669003548055, -0.073562737251948951], [-0.16227839596318816, 0.19795405960405921, -0.76257514431383444, -0.84193383665442045], [0.75840636984124221, 0.83500880212967443, 0.42673148597153787, -0.27665081857084672]]]])
14679          self.failUnless(isinstance(res,Data),"wrong type of result.")
14680          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14681          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14682       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14683       def test_maximum_taggedData_rank4_expandedData_rank4(self):
14684          arg0=Data(numarray.array([[[[0.17011890199565505, 0.012491731554322483, 0.68256748742414319, -0.81719958495420797], [0.74406930512472269, -0.14723025410749746, 0.44075186805280797, 0.26350411120931172], [-0.6561756812946733, -0.0057499514698438059, -0.42610418167990249, 0.62037645373934813]], [[0.04214322089694944, -0.51678689718464721, -0.47284322793307076, 0.2362074239254115], [0.094616672018278836, -0.97784214369059996, 0.62203411436109834, -0.84914557611328068], [-0.73480465431865083, 0.32701771835981663, 0.29173732358266657, -0.53414340612908906]]], [[[0.87760671365571685, 0.23702139444517556, 0.96537866890262891, 0.016090149009011068], [0.99366467643201961, 0.71372417442915892, 0.85225018627477067, -0.64500940039217913], [0.48197861012437127, -0.73532690596378769, -0.22143168285654791, 0.29176529211391244]], [[-0.13555889099911278, 0.8267135744566636, 0.87899259525077778, 0.69133559278711698], [0.07268574366965419, -0.76271205666442321, 0.57022619167259458, 0.31546663582717716], [-0.31537561003821302, -0.78782689871054901, 0.1113608900572931, -0.076429146299475281]]], [[[0.51958114573630576, -0.74017735928116934, -0.12370880033659826, -0.16262742669583541], [0.40996949833873697, -0.44090572970717146, -0.18625749746739984, -0.70066367152560827], [0.84295948903907658, -0.62143739657913155, 0.67911533223602527, -0.64691833789742681]], [[0.10078587849351872, 0.33589231968040756, 0.1162008658852578, 0.82764502498062087], [0.14890247007952917, -0.72628235215206072, -0.93575242911087453, -0.84236507788984083], [-0.60229223033356982, 0.53131604811058852, -0.94053633532047853, 0.16539484858314313]]]]),self.functionspace)
14685          arg0.setTaggedValue(1,numarray.array([[[[0.018976007218767244, 0.099322777123676653, 0.71366707156868481, -0.22878348385769076], [0.78578474236157958, 0.84630287446581098, 0.72929454627823076, -0.88830712257451983], [0.64301481937440785, 0.52116322320377417, 0.1970425485822751, -0.72517228523071497]], [[-0.020402857553825315, 0.91427721251920091, -0.50768591256964068, -0.66545474524420634], [0.50189121168846618, 0.84533523042586189, -0.85709751948982982, -0.59235917428014084], [0.69544846189320775, -0.99232447839305404, -0.41196226863364238, -0.88439740854067783]]], [[[0.79656532563074944, 0.56896777821890021, 0.33138835863853866, -0.66292590878912305], [0.30452117957021851, 0.065858998465211149, 0.81465880143475711, -0.4882852026900204], [-0.31574407895226431, 0.63352382252195083, -0.27839534078752504, -0.63546346809565302]], [[-0.12760679020742605, -0.86882714833599151, -0.18047061675034959, -0.96996723969541998], [-0.10781508772821979, -0.35569215942943799, -0.15828371288345755, 0.90563308858060365], [-0.81685869695187474, 0.24029199408039514, 0.20419548781326236, -0.81764921130223067]]], [[[0.2850054984772834, 0.7627457219523146, 0.60192919646893839, 0.92860863577549324], [0.38272295399764844, 0.63922506079556873, 0.91012536728959792, 0.23840788997679008], [-0.66417151972746624, 0.41012468409180891, 0.69551622234874477, 0.69385347288012644]], [[0.3510118799331543, 0.036668719298536656, -0.30489782793779985, -0.77390172511630761], [-0.28600675097554262, -0.26913515312460157, 0.9282219697537224, -0.12188253822477479], [0.66024739821145428, -0.16637608341532695, 0.76041699763549997, -0.45709713833511723]]]]))
14686          arg1=Data(numarray.array([[[[0.61136503290314326, -0.9583623189339503, -0.071111339698633813, 0.50823450262690639], [-0.91370014958462753, -0.57444315283280867, 0.88871572476171035, -0.72648904747012533], [0.91718509774010948, 0.74029234483051298, 0.81359933629774561, 0.17231905669887015]], [[-0.39889780284662257, 0.24678695785705496, 0.62462078938126075, 0.46766672497251749], [-0.96150034521586658, -0.11514014559100438, 0.65390919502033795, -0.22254683439345824], [0.968826953341269, 0.4548040265697908, 0.63841722597965811, 0.27597672152017383]]], [[[-0.67355264176575647, -0.1578078828847953, 0.53605000621095833, 0.66735108383917829], [0.97674770476592254, -0.15475778131628037, 0.46725942432288603, 0.27546459379283661], [-0.165986261182546, 0.54327085078645654, -0.29409779812674008, 0.91303065524149729]], [[-0.20407223332156255, 0.50784612751752678, 0.50504834054454339, 0.35806688218678717], [0.6368167147413637, 0.13094643656949279, 0.42013937012956948, -0.1532152807402456], [0.61624494910961691, -0.62288004538551411, 0.88353811932694071, -0.78330402028144697]]], [[[0.84136347714033266, 0.2991007327978259, -0.19113648177205667, -0.78642546935555457], [-0.28913146194132966, -0.34256583676388908, 0.82091750950874065, -0.97792363430747864], [-0.028382417989220032, -0.75992603329343278, -0.51749656663179566, 0.076851139682463376]], [[0.54359012126046236, 0.26967236287800045, 0.8998349269257937, -0.19140928789968226], [0.11792876188493961, -0.72723528139193472, -0.72989452527701926, -0.07985159697537858], [-0.58211421995747359, 0.99248594105873855, -0.84701415247397738, 0.69680114105695368]]]]),self.functionspace)
14687          arg1.setTaggedValue(1,numarray.array([[[[-0.63571254524701759, 0.20370592255074182, -0.64548309985704999, 0.77652367903402131], [0.36230291102741763, -0.77716092138963599, 0.37503342523027161, 0.50580548237875722], [-0.80476176999744298, 0.43811320566049328, 0.9523892099430129, -0.080610444991192187]], [[-0.29860215012414315, 0.92120981653648437, 0.92326725495046702, 0.79082000429192978], [-0.30546740941720318, 0.056650128257929699, -0.16008152867712999, -0.62196364825925499], [0.61818701505402518, -0.12151838977341978, 0.28908127563919428, -0.87769634840198751]]], [[[0.54636794023437063, -0.56427286960541045, -0.8046880441135964, -0.86286817830595197], [-0.89930195996257845, -0.65201723944472989, -0.54635454097129665, -0.78225496543791539], [0.64326740231955726, 0.53428131623295072, -0.60124494225447478, -0.19047720636463028]], [[0.64480428134100465, -0.9604075252803197, -0.018342425030688725, -0.902529630428063], [-0.61508139044329324, -0.76582597096513005, -0.91068255111115981, 0.54021795903014769], [-0.78398977334913633, 0.19354315441019265, 0.75161914561978693, -0.1784273766678417]]], [[[0.70651195164291747, -0.38013254980625022, -0.42892733702099628, 0.76218105791882018], [0.87008144981991875, 0.8415007055668402, -0.93553838665506706, 0.36596867894300966], [0.37708148652459728, 0.73706705651814941, -0.91814349937326178, -0.12915340952471444]], [[-0.57945334441687035, 0.068897411819411891, 0.13444813818129719, 0.012465407268180906], [-0.16485376132646112, 0.51736826348586362, -0.32716335023341148, 0.52188670759134292], [-0.71241361375043133, -0.87684700004061544, 0.92751538707310321, -0.3163835738640477]]]]))
14688          arg1.expand()
14689          res=maximum(arg0,arg1)
14690          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14691          ref=msk_ref*numarray.array([[[[0.61136503290314326, 0.012491731554322483, 0.68256748742414319, 0.50823450262690639], [0.74406930512472269, -0.14723025410749746, 0.88871572476171035, 0.26350411120931172], [0.91718509774010948, 0.74029234483051298, 0.81359933629774561, 0.62037645373934813]], [[0.04214322089694944, 0.24678695785705496, 0.62462078938126075, 0.46766672497251749], [0.094616672018278836, -0.11514014559100438, 0.65390919502033795, -0.22254683439345824], [0.968826953341269, 0.4548040265697908, 0.63841722597965811, 0.27597672152017383]]], [[[0.87760671365571685, 0.23702139444517556, 0.96537866890262891, 0.66735108383917829], [0.99366467643201961, 0.71372417442915892, 0.85225018627477067, 0.27546459379283661], [0.48197861012437127, 0.54327085078645654, -0.22143168285654791, 0.91303065524149729]], [[-0.13555889099911278, 0.8267135744566636, 0.87899259525077778, 0.69133559278711698], [0.6368167147413637, 0.13094643656949279, 0.57022619167259458, 0.31546663582717716], [0.61624494910961691, -0.62288004538551411, 0.88353811932694071, -0.076429146299475281]]], [[[0.84136347714033266, 0.2991007327978259, -0.12370880033659826, -0.16262742669583541], [0.40996949833873697, -0.34256583676388908, 0.82091750950874065, -0.70066367152560827], [0.84295948903907658, -0.62143739657913155, 0.67911533223602527, 0.076851139682463376]], [[0.54359012126046236, 0.33589231968040756, 0.8998349269257937, 0.82764502498062087], [0.14890247007952917, -0.72628235215206072, -0.72989452527701926, -0.07985159697537858], [-0.58211421995747359, 0.99248594105873855, -0.84701415247397738, 0.69680114105695368]]]])+(1.-msk_ref)*numarray.array([[[[0.018976007218767244, 0.20370592255074182, 0.71366707156868481, 0.77652367903402131], [0.78578474236157958, 0.84630287446581098, 0.72929454627823076, 0.50580548237875722], [0.64301481937440785, 0.52116322320377417, 0.9523892099430129, -0.080610444991192187]], [[-0.020402857553825315, 0.92120981653648437, 0.92326725495046702, 0.79082000429192978], [0.50189121168846618, 0.84533523042586189, -0.16008152867712999, -0.59235917428014084], [0.69544846189320775, -0.12151838977341978, 0.28908127563919428, -0.87769634840198751]]], [[[0.79656532563074944, 0.56896777821890021, 0.33138835863853866, -0.66292590878912305], [0.30452117957021851, 0.065858998465211149, 0.81465880143475711, -0.4882852026900204], [0.64326740231955726, 0.63352382252195083, -0.27839534078752504, -0.19047720636463028]], [[0.64480428134100465, -0.86882714833599151, -0.018342425030688725, -0.902529630428063], [-0.10781508772821979, -0.35569215942943799, -0.15828371288345755, 0.90563308858060365], [-0.78398977334913633, 0.24029199408039514, 0.75161914561978693, -0.1784273766678417]]], [[[0.70651195164291747, 0.7627457219523146, 0.60192919646893839, 0.92860863577549324], [0.87008144981991875, 0.8415007055668402, 0.91012536728959792, 0.36596867894300966], [0.37708148652459728, 0.73706705651814941, 0.69551622234874477, 0.69385347288012644]], [[0.3510118799331543, 0.068897411819411891, 0.13444813818129719, 0.012465407268180906], [-0.16485376132646112, 0.51736826348586362, 0.9282219697537224, 0.52188670759134292], [0.66024739821145428, -0.16637608341532695, 0.92751538707310321, -0.3163835738640477]]]])
14692          self.failUnless(isinstance(res,Data),"wrong type of result.")
14693          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14694          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14695       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14696       def test_maximum_expandedData_rank0_taggedData_rank0(self):
14697          arg0=Data(-0.770416527778,self.functionspace)
14698          arg0.setTaggedValue(1,-0.119957544315)
14699          arg0.expand()
14700          arg1=Data(0.474753756871,self.functionspace)
14701          arg1.setTaggedValue(1,0.810578501236)
14702          res=maximum(arg0,arg1)
14703          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14704          ref=msk_ref*(0.474753756871)+(1.-msk_ref)*(0.810578501236)
14705          self.failUnless(isinstance(res,Data),"wrong type of result.")
14706          self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
14707          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14708       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14709       def test_maximum_expandedData_rank1_taggedData_rank0(self):
14710          arg0=Data(numarray.array([-0.90345143142679607, -0.13416885186088923]),self.functionspace)
14711          arg0.setTaggedValue(1,numarray.array([-0.33205401475987184, 0.19290593142804124]))
14712          arg0.expand()
14713          arg1=Data(0.439515912286,self.functionspace)
14714          arg1.setTaggedValue(1,-0.32959484933)
14715          res=maximum(arg0,arg1)
14716          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14717          ref=msk_ref*numarray.array([0.4395159122859198, 0.4395159122859198])+(1.-msk_ref)*numarray.array([-0.32959484933029048, 0.19290593142804124])
14718          self.failUnless(isinstance(res,Data),"wrong type of result.")
14719          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14720          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14721       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14722       def test_maximum_expandedData_rank2_taggedData_rank0(self):
14723          arg0=Data(numarray.array([[0.43922074256473276, 0.0079120810391168916, 0.1259514035506768, -0.81976263905332281, 0.22765318928035638], [-0.88565682969644199, 0.58003358429582219, -0.46586840067079094, -0.18975265061192093, -0.35961893325441308], [-0.97387322162339141, 0.91203728971074072, 0.58315914470271135, -0.96277527234543614, 0.54600207266375422], [0.967552839442682, 0.14676060927846857, -0.039638732927746112, -0.11956428889953585, 0.74642774018193192]]),self.functionspace)
14724          arg0.setTaggedValue(1,numarray.array([[0.62075677261147288, -0.45667940372405669, 0.30063606656178843, -0.55559974833961401, -0.2755921860001902], [-0.98316388377705821, -0.54118758166498004, 0.2947378884171552, 0.20623349090806964, -0.20563354685188306], [0.99570732573031462, 0.42428346604349709, -0.67254094797032282, -0.72385152307713096, 0.12652687164985221], [0.86027605858930056, 0.69983693229105892, -0.54255499543667995, -0.34652000344244804, 0.29258488270051397]]))
14725          arg0.expand()
14726          arg1=Data(-0.683436160364,self.functionspace)
14727          arg1.setTaggedValue(1,0.237423149367)
14728          res=maximum(arg0,arg1)
14729          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14730          ref=msk_ref*numarray.array([[0.43922074256473276, 0.0079120810391168916, 0.1259514035506768, -0.68343616036418209, 0.22765318928035638], [-0.68343616036418209, 0.58003358429582219, -0.46586840067079094, -0.18975265061192093, -0.35961893325441308], [-0.68343616036418209, 0.91203728971074072, 0.58315914470271135, -0.68343616036418209, 0.54600207266375422], [0.967552839442682, 0.14676060927846857, -0.039638732927746112, -0.11956428889953585, 0.74642774018193192]])+(1.-msk_ref)*numarray.array([[0.62075677261147288, 0.23742314936707154, 0.30063606656178843, 0.23742314936707154, 0.23742314936707154], [0.23742314936707154, 0.23742314936707154, 0.2947378884171552, 0.23742314936707154, 0.23742314936707154], [0.99570732573031462, 0.42428346604349709, 0.23742314936707154, 0.23742314936707154, 0.23742314936707154], [0.86027605858930056, 0.69983693229105892, 0.23742314936707154, 0.23742314936707154, 0.29258488270051397]])
14731          self.failUnless(isinstance(res,Data),"wrong type of result.")
14732          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14733          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14734       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14735       def test_maximum_expandedData_rank3_taggedData_rank0(self):
14736          arg0=Data(numarray.array([[[-0.21366601469826718, 0.99527040818565293], [0.22215618408937154, 0.31701252929306478]], [[0.40623060792399568, 0.21372472646539054], [-0.47540828991388162, -0.46252911439545796]], [[-0.72333391349122134, 0.098643583537729285], [0.52420807960470261, -0.50471492899503079]], [[-0.40644921673789036, -0.45254174080439036], [0.78953583656759241, -0.94694089619305699]], [[0.10109303594579955, 0.71996063617220285], [0.99742338935639263, -0.70472498807905137]], [[0.081799072345769552, 0.18293416803446694], [0.94055435086427286, 0.20985468194654966]]]),self.functionspace)
14737          arg0.setTaggedValue(1,numarray.array([[[0.85922501286389963, -0.95314495089101836], [-0.41714431819315956, -0.98482774191370592]], [[-0.36714035024248104, -0.68192801230381117], [0.050175258818712987, -0.71275657603909282]], [[-0.067382389619428773, 0.89129921856134686], [0.36619893079335464, -0.5296889938497984]], [[0.37130647053619814, 0.93695230545987362], [0.3719018436922632, 0.60940463384310828]], [[-0.034716030432518696, -0.21726170531723676], [0.13410420999221606, 0.45218157437810746]], [[-0.60130757007073377, -0.55224098558489643], [0.35071707364717586, 0.73918188881062408]]]))
14738          arg0.expand()
14739          arg1=Data(0.589930215921,self.functionspace)
14740          arg1.setTaggedValue(1,-0.791358930914)
14741          res=maximum(arg0,arg1)
14742          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14743          ref=msk_ref*numarray.array([[[0.58993021592108552, 0.99527040818565293], [0.58993021592108552, 0.58993021592108552]], [[0.58993021592108552, 0.58993021592108552], [0.58993021592108552, 0.58993021592108552]], [[0.58993021592108552, 0.58993021592108552], [0.58993021592108552, 0.58993021592108552]], [[0.58993021592108552, 0.58993021592108552], [0.78953583656759241, 0.58993021592108552]], [[0.58993021592108552, 0.71996063617220285], [0.99742338935639263, 0.58993021592108552]], [[0.58993021592108552, 0.58993021592108552], [0.94055435086427286, 0.58993021592108552]]])+(1.-msk_ref)*numarray.array([[[0.85922501286389963, -0.79135893091398235], [-0.41714431819315956, -0.79135893091398235]], [[-0.36714035024248104, -0.68192801230381117], [0.050175258818712987, -0.71275657603909282]], [[-0.067382389619428773, 0.89129921856134686], [0.36619893079335464, -0.5296889938497984]], [[0.37130647053619814, 0.93695230545987362], [0.3719018436922632, 0.60940463384310828]], [[-0.034716030432518696, -0.21726170531723676], [0.13410420999221606, 0.45218157437810746]], [[-0.60130757007073377, -0.55224098558489643], [0.35071707364717586, 0.73918188881062408]]])
14744          self.failUnless(isinstance(res,Data),"wrong type of result.")
14745          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14746          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14747       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14748       def test_maximum_expandedData_rank4_taggedData_rank0(self):
14749          arg0=Data(numarray.array([[[[0.058452530027124805, 0.20115061735928141, -0.013407311335628558, -0.62733037718045215], [0.30578317601612204, 0.18587813517772922, -0.46083224983819182, 0.38420623366127171], [-0.35041386682037245, 0.28613237541338643, 0.84287606761862599, -0.37452032983582861]], [[-0.1571001411973949, 0.48404434987845502, -0.82445608306831009, -0.5087589407859181], [0.080024058489493344, 0.60071403089801323, 0.76226797059719953, 0.52457829108635523], [-0.47422782685361131, 0.68442557385398506, 0.66334103264465472, 0.64005155311144235]]], [[[0.65185373935916635, -0.052178567808071508, -0.97872127915831397, 0.75346659417896045], [-0.7930913742759933, 0.035965062214120769, -0.048637444759485504, -0.57671265123293947], [-0.77598367520914446, -0.63886273463026555, 0.77179543911420989, -0.72328815552507297]], [[0.6245388094023514, 0.21638017300875068, 0.98319402644101062, -0.90884610419532641], [0.063053421739729831, 0.13831930984516361, -0.35843200982016654, 0.50589485921428756], [0.17854873853074138, 0.14205857566189661, 0.27873814750700032, 0.044143543347939129]]], [[[-0.98235903467690555, -0.3779883610410002, 0.20182363674090387, -0.99195045062105591], [-0.84378162546138302, 0.13009634759743482, -0.021923717778070007, -0.21732600979488104], [0.64072354550435562, -0.29472251730728827, -0.85957706692075986, -0.97194980141864828]], [[-0.20303445856569358, -0.32820645194490372, -0.54738924943535761, 0.63120829931168476], [0.72062853854960118, 0.9314323308822694, -0.76951439295743085, 0.69074779508974804], [0.029387956008169347, -0.17961113301791842, -0.28654263317059403, 0.93712330786747544]]]]),self.functionspace)
14750          arg0.setTaggedValue(1,numarray.array([[[[-0.23539178002763772, -0.73120437151627637, 0.28316833446181899, 0.86284986085143967], [-0.24353257383874816, -0.893212124404694, 0.59742195037052448, -0.40530874064915312], [-0.57175026142836627, 0.25022701748997545, 0.17567464768761232, -0.071490198224184232]], [[-0.48372399998626525, -0.46003016110634976, 0.162227597393092, -0.10421637975460807], [-0.84250355339179328, -0.45635672728478416, -0.41133900862963402, 0.15232657179157161], [-0.78484435415388187, 0.91063328248964459, 0.94267309796018428, 0.6465806608067326]]], [[[0.96940080044077348, 0.92260535563446022, 0.14530523054519273, -0.059208623621642698], [0.65642237359346445, -0.74588495205964689, 0.20182736082108588, -0.31654806017892678], [0.53577721101623577, 0.75646492881119287, 0.7657224840563881, 0.50502072922800201]], [[-0.51642103766997005, 0.62533968630116266, -0.98595880165403349, 0.69718594133432021], [0.94920592257949976, -0.40699371519169691, -0.72576193045697934, 0.13718863337454934], [-0.95814498747220611, 0.09240739415652377, -0.58862477478085462, 0.40331711277464044]]], [[[0.11456697769797963, -0.59435563966968585, -0.50208215421818791, 0.55936719433132809], [0.89532220784394423, -0.4195336101704854, -0.72937425429419789, 0.74317410016178731], [-0.19327200728151439, -0.14918712139341905, 0.52793569011349706, -0.20821618856608448]], [[-0.46777868535808764, 0.20593248679186105, -0.87810200969679886, -0.98507550795727039], [-0.42479747623997333, -0.21395671462352706, 0.49812776303723116, 0.77515813391518718], [0.033556016565504887, 0.72639708232512157, -0.67862416607200315, 0.31556674450753253]]]]))
14751          arg0.expand()
14752          arg1=Data(-0.872258244985,self.functionspace)
14753          arg1.setTaggedValue(1,-0.599062516076)
14754          res=maximum(arg0,arg1)
14755          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14756          ref=msk_ref*numarray.array([[[[0.058452530027124805, 0.20115061735928141, -0.013407311335628558, -0.62733037718045215], [0.30578317601612204, 0.18587813517772922, -0.46083224983819182, 0.38420623366127171], [-0.35041386682037245, 0.28613237541338643, 0.84287606761862599, -0.37452032983582861]], [[-0.1571001411973949, 0.48404434987845502, -0.82445608306831009, -0.5087589407859181], [0.080024058489493344, 0.60071403089801323, 0.76226797059719953, 0.52457829108635523], [-0.47422782685361131, 0.68442557385398506, 0.66334103264465472, 0.64005155311144235]]], [[[0.65185373935916635, -0.052178567808071508, -0.87225824498472293, 0.75346659417896045], [-0.7930913742759933, 0.035965062214120769, -0.048637444759485504, -0.57671265123293947], [-0.77598367520914446, -0.63886273463026555, 0.77179543911420989, -0.72328815552507297]], [[0.6245388094023514, 0.21638017300875068, 0.98319402644101062, -0.87225824498472293], [0.063053421739729831, 0.13831930984516361, -0.35843200982016654, 0.50589485921428756], [0.17854873853074138, 0.14205857566189661, 0.27873814750700032, 0.044143543347939129]]], [[[-0.87225824498472293, -0.3779883610410002, 0.20182363674090387, -0.87225824498472293], [-0.84378162546138302, 0.13009634759743482, -0.021923717778070007, -0.21732600979488104], [0.64072354550435562, -0.29472251730728827, -0.85957706692075986, -0.87225824498472293]], [[-0.20303445856569358, -0.32820645194490372, -0.54738924943535761, 0.63120829931168476], [0.72062853854960118, 0.9314323308822694, -0.76951439295743085, 0.69074779508974804], [0.029387956008169347, -0.17961113301791842, -0.28654263317059403, 0.93712330786747544]]]])+(1.-msk_ref)*numarray.array([[[[-0.23539178002763772, -0.59906251607554895, 0.28316833446181899, 0.86284986085143967], [-0.24353257383874816, -0.59906251607554895, 0.59742195037052448, -0.40530874064915312], [-0.57175026142836627, 0.25022701748997545, 0.17567464768761232, -0.071490198224184232]], [[-0.48372399998626525, -0.46003016110634976, 0.162227597393092, -0.10421637975460807], [-0.59906251607554895, -0.45635672728478416, -0.41133900862963402, 0.15232657179157161], [-0.59906251607554895, 0.91063328248964459, 0.94267309796018428, 0.6465806608067326]]], [[[0.96940080044077348, 0.92260535563446022, 0.14530523054519273, -0.059208623621642698], [0.65642237359346445, -0.59906251607554895, 0.20182736082108588, -0.31654806017892678], [0.53577721101623577, 0.75646492881119287, 0.7657224840563881, 0.50502072922800201]], [[-0.51642103766997005, 0.62533968630116266, -0.59906251607554895, 0.69718594133432021], [0.94920592257949976, -0.40699371519169691, -0.59906251607554895, 0.13718863337454934], [-0.59906251607554895, 0.09240739415652377, -0.58862477478085462, 0.40331711277464044]]], [[[0.11456697769797963, -0.59435563966968585, -0.50208215421818791, 0.55936719433132809], [0.89532220784394423, -0.4195336101704854, -0.59906251607554895, 0.74317410016178731], [-0.19327200728151439, -0.14918712139341905, 0.52793569011349706, -0.20821618856608448]], [[-0.46777868535808764, 0.20593248679186105, -0.59906251607554895, -0.59906251607554895], [-0.42479747623997333, -0.21395671462352706, 0.49812776303723116, 0.77515813391518718], [0.033556016565504887, 0.72639708232512157, -0.59906251607554895, 0.31556674450753253]]]])
14757          self.failUnless(isinstance(res,Data),"wrong type of result.")
14758          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14759          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14760       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14761       def test_maximum_expandedData_rank0_taggedData_rank1(self):
14762          arg0=Data(-0.093529730868,self.functionspace)
14763          arg0.setTaggedValue(1,0.110676465592)
14764          arg0.expand()
14765          arg1=Data(numarray.array([-0.24077231783613207, 0.021968113006201273]),self.functionspace)
14766          arg1.setTaggedValue(1,numarray.array([0.69246963874543788, -0.11448974195720685]))
14767          res=maximum(arg0,arg1)
14768          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14769          ref=msk_ref*numarray.array([-0.09352973086798122, 0.021968113006201273])+(1.-msk_ref)*numarray.array([0.69246963874543788, 0.11067646559234223])
14770          self.failUnless(isinstance(res,Data),"wrong type of result.")
14771          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14772          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14773       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14774       def test_maximum_expandedData_rank1_taggedData_rank1(self):
14775          arg0=Data(numarray.array([-0.043611999909903609, -0.75469634662679885]),self.functionspace)
14776          arg0.setTaggedValue(1,numarray.array([0.97796930150784322, 0.27203588315418514]))
14777          arg0.expand()
14778          arg1=Data(numarray.array([0.99115736338403471, -0.27063973980015166]),self.functionspace)
14779          arg1.setTaggedValue(1,numarray.array([-0.66221422553399734, -0.4445440806254044]))
14780          res=maximum(arg0,arg1)
14781          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14782          ref=msk_ref*numarray.array([0.99115736338403471, -0.27063973980015166])+(1.-msk_ref)*numarray.array([0.97796930150784322, 0.27203588315418514])
14783          self.failUnless(isinstance(res,Data),"wrong type of result.")
14784          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14785          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14786       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14787       def test_maximum_expandedData_rank0_taggedData_rank2(self):
14788          arg0=Data(0.562200963296,self.functionspace)
14789          arg0.setTaggedValue(1,-0.548717725726)
14790          arg0.expand()
14791          arg1=Data(numarray.array([[0.46302058489008435, 0.39744900050570653, -0.31760126560331359, -0.74752181980080645, 0.66145632559247969], [0.23022554234537362, 0.045049075349218093, 0.47633449866518918, 0.92590614489792178, 0.83235604073104486], [-0.064032426645444174, -0.95919048878578828, 0.12438083700652847, 0.76795909320208078, -0.79733667826256194], [0.94008936801365239, 0.18171575357678926, 0.13755218013794224, -0.41510128527708789, 0.98167626068722313]]),self.functionspace)
14792          arg1.setTaggedValue(1,numarray.array([[-0.085533977491544011, -0.93060326532816573, 0.56871857978607299, 0.64816224420242974, -0.31867781829316999], [-0.037176782985713919, 0.047131059915608065, -0.10164449238423523, -0.34884037578484639, 0.88404765826084875], [0.7918226937102506, -0.2261614400671339, 0.6482237690064454, 0.2079147708003577, -0.53283060407360239], [0.76435770832885708, 0.3881379874070694, 0.6014042528428114, 0.5028235019961087, -0.055323669447446155]]))
14793          res=maximum(arg0,arg1)
14794          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14795          ref=msk_ref*numarray.array([[0.56220096329648528, 0.56220096329648528, 0.56220096329648528, 0.56220096329648528, 0.66145632559247969], [0.56220096329648528, 0.56220096329648528, 0.56220096329648528, 0.92590614489792178, 0.83235604073104486], [0.56220096329648528, 0.56220096329648528, 0.56220096329648528, 0.76795909320208078, 0.56220096329648528], [0.94008936801365239, 0.56220096329648528, 0.56220096329648528, 0.56220096329648528, 0.98167626068722313]])+(1.-msk_ref)*numarray.array([[-0.085533977491544011, -0.54871772572627697, 0.56871857978607299, 0.64816224420242974, -0.31867781829316999], [-0.037176782985713919, 0.047131059915608065, -0.10164449238423523, -0.34884037578484639, 0.88404765826084875], [0.7918226937102506, -0.2261614400671339, 0.6482237690064454, 0.2079147708003577, -0.53283060407360239], [0.76435770832885708, 0.3881379874070694, 0.6014042528428114, 0.5028235019961087, -0.055323669447446155]])
14796          self.failUnless(isinstance(res,Data),"wrong type of result.")
14797          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14798          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14799       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14800       def test_maximum_expandedData_rank2_taggedData_rank2(self):
14801          arg0=Data(numarray.array([[0.95250070334252501, 0.64179594117717476, 0.7167453892355482, -0.061767675759885954, 0.2083685039484644], [0.48813056886651807, -0.1606681211293568, 0.20439892123657244, 0.28289621453136227, 0.70024296852753021], [0.76591981855093239, 0.3046465331639463, -0.62959399544720429, 0.063923416563474333, -0.86871278195397172], [0.58170260659522488, -0.39794844598673951, -0.65152408954750385, -0.47787725382817348, -0.71387975157040096]]),self.functionspace)
14802          arg0.setTaggedValue(1,numarray.array([[-0.90856041306199531, -0.23227397078715706, 0.27336542418286824, -0.80781812954858623, 0.867873827511638], [-0.087352806605938582, -0.86269266300680103, -0.11942072102346013, 0.86401044819248507, -0.11498573224937791], [-0.7024042295787194, 0.71001251168456547, -0.50926611775019337, 0.64503564060050755, -0.72376495202954239], [0.33615193865620419, -0.77494971698915838, 0.72401984261341212, 0.0012922102318457807, -0.37428786801575198]]))
14803          arg0.expand()
14804          arg1=Data(numarray.array([[0.20367156607055192, -0.82704445252224801, -0.87142392198822427, -0.31031405049634375, 0.58087729006045619], [0.51057143457714127, -0.27207610740823251, 0.42578927315563231, -0.093080378558869636, 0.015547166871238582], [0.79676548326720398, -0.035900358788261144, 0.30551798071437042, -0.40888810953186705, -0.67286861845528234], [0.16156799341392203, 0.35652355717772588, -0.60846707575455095, -0.40466620246153551, -0.85212577402488598]]),self.functionspace)
14805          arg1.setTaggedValue(1,numarray.array([[0.22540342674499247, -0.31253350564886428, 0.66349648680317075, -0.72430451779761729, -0.64802942349008652], [0.46990597522394184, 0.17192636352441948, -0.81927146771373249, 0.33673292484183692, 0.097905227205821621], [0.11962243052664623, 0.1852073417887059, -0.37523746529768909, -0.90949222260581686, -0.82374706876749482], [0.24737438344353802, 0.17879293284034126, -0.89391109198951679, 0.26302854741774051, 0.91163389900291247]]))
14806          res=maximum(arg0,arg1)
14807          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14808          ref=msk_ref*numarray.array([[0.95250070334252501, 0.64179594117717476, 0.7167453892355482, -0.061767675759885954, 0.58087729006045619], [0.51057143457714127, -0.1606681211293568, 0.42578927315563231, 0.28289621453136227, 0.70024296852753021], [0.79676548326720398, 0.3046465331639463, 0.30551798071437042, 0.063923416563474333, -0.67286861845528234], [0.58170260659522488, 0.35652355717772588, -0.60846707575455095, -0.40466620246153551, -0.71387975157040096]])+(1.-msk_ref)*numarray.array([[0.22540342674499247, -0.23227397078715706, 0.66349648680317075, -0.72430451779761729, 0.867873827511638], [0.46990597522394184, 0.17192636352441948, -0.11942072102346013, 0.86401044819248507, 0.097905227205821621], [0.11962243052664623, 0.71001251168456547, -0.37523746529768909, 0.64503564060050755, -0.72376495202954239], [0.33615193865620419, 0.17879293284034126, 0.72401984261341212, 0.26302854741774051, 0.91163389900291247]])
14809          self.failUnless(isinstance(res,Data),"wrong type of result.")
14810          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14811          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14812       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14813       def test_maximum_expandedData_rank0_taggedData_rank3(self):
14814          arg0=Data(0.518888053272,self.functionspace)
14815          arg0.setTaggedValue(1,-0.526416582974)
14816          arg0.expand()
14817          arg1=Data(numarray.array([[[0.29196426529678976, 0.32043612632866503], [-0.89707110782253463, 0.038228958797583923]], [[0.030493489554798137, -0.723108722645039], [0.98623722967674055, 0.66252274455661753]], [[0.39916522486562722, -0.45876533710564305], [0.75447948886732941, 0.15340589898476398]], [[0.81578682948478276, 0.20522022333925705], [0.47335990871775424, -0.6355595726654879]], [[-0.93239359678287848, 0.217306855880812], [-0.88354692825016867, 0.56677014722507546]], [[0.11742167565485251, -0.12080999397647729], [0.79569009080530706, 0.22001425648306694]]]),self.functionspace)
14818          arg1.setTaggedValue(1,numarray.array([[[-0.24172936662080913, 0.62410363287595794], [-0.94649908269893368, 0.80957984698971019]], [[-0.95851870834110486, -0.49011739229006857], [-0.049499510664444246, -0.37934214612873873]], [[-0.5325422920695364, -0.87275009910709511], [0.67744619631994052, 0.35293782191134171]], [[-0.93486756159181361, -0.27050536347040222], [0.24337856921346934, 0.9450297004409578]], [[0.54054330962315134, -0.39032751650920527], [0.98009854283693931, 0.40832854762680859]], [[-0.34552393114212099, -0.39712782701241256], [-0.44647745946589668, -0.81843160678995419]]]))
14819          res=maximum(arg0,arg1)
14820          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14821          ref=msk_ref*numarray.array([[[0.51888805327181631, 0.51888805327181631], [0.51888805327181631, 0.51888805327181631]], [[0.51888805327181631, 0.51888805327181631], [0.98623722967674055, 0.66252274455661753]], [[0.51888805327181631, 0.51888805327181631], [0.75447948886732941, 0.51888805327181631]], [[0.81578682948478276, 0.51888805327181631], [0.51888805327181631, 0.51888805327181631]], [[0.51888805327181631, 0.51888805327181631], [0.51888805327181631, 0.56677014722507546]], [[0.51888805327181631, 0.51888805327181631], [0.79569009080530706, 0.51888805327181631]]])+(1.-msk_ref)*numarray.array([[[-0.24172936662080913, 0.62410363287595794], [-0.52641658297364669, 0.80957984698971019]], [[-0.52641658297364669, -0.49011739229006857], [-0.049499510664444246, -0.37934214612873873]], [[-0.52641658297364669, -0.52641658297364669], [0.67744619631994052, 0.35293782191134171]], [[-0.52641658297364669, -0.27050536347040222], [0.24337856921346934, 0.9450297004409578]], [[0.54054330962315134, -0.39032751650920527], [0.98009854283693931, 0.40832854762680859]], [[-0.34552393114212099, -0.39712782701241256], [-0.44647745946589668, -0.52641658297364669]]])
14822          self.failUnless(isinstance(res,Data),"wrong type of result.")
14823          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14824          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14825       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14826       def test_maximum_expandedData_rank3_taggedData_rank3(self):
14827          arg0=Data(numarray.array([[[-0.37358195248163262, -0.27336564520633688], [0.31185513666213693, -0.97253484086889852]], [[-0.23168627929530583, -0.03616192464774648], [-0.32948193730210429, 0.78686549068518663]], [[-0.61449118133391689, 0.90998031960320436], [0.99605491014410519, -0.19027309086387212]], [[0.94604471442750215, -0.72799516092415306], [0.86948766116606113, -0.81240404435014413]], [[0.99030218260245695, 0.56350567065263735], [-0.039620325891805752, -0.81732668479461523]], [[-0.39750688951062196, 0.40169693961536113], [0.94787126923095011, 0.57812481686625183]]]),self.functionspace)
14828          arg0.setTaggedValue(1,numarray.array([[[0.32594941395302701, 0.087905777161087384], [-0.52219886862144738, -0.9731314947029206]], [[0.58502802758929651, -0.41142097068201489], [-0.88364691152976493, -0.10414245222136698]], [[-0.576353412686192, -0.95369860222969849], [0.2099372100186514, 0.50421743886742365]], [[-0.51847992419818412, -0.24059284345629162], [0.84039522274325185, 0.11037716688528287]], [[-0.1507436522189145, -0.27490435756027432], [0.28670037025118655, 0.33083817728664044]], [[-0.20086532148474423, 0.37400644898968993], [0.50401082589377033, -0.71131837198550185]]]))
14829          arg0.expand()
14830          arg1=Data(numarray.array([[[-0.65818845288483652, -0.86621168561924344], [-0.67077872357267854, 0.49138367131164107]], [[-0.5281433157210047, -0.72346242749506806], [0.61631433617349707, 0.12025122366548602]], [[0.41212118683148069, -0.46248287281405998], [0.30957103073079462, 0.15147402020930234]], [[-0.646681250682696, -0.32759770784581188], [0.92304065918314526, -0.71108271334269801]], [[-0.58354307425432239, 0.37676623449431679], [-0.52285211273345134, 0.21083981696926224]], [[0.23564951404346224, 0.88899136001079682], [-0.12150868659653757, 0.43961348936939371]]]),self.functionspace)
14831          arg1.setTaggedValue(1,numarray.array([[[-0.98583186182546845, 0.93635507276650998], [-0.80192348917001577, -0.17450779277321748]], [[0.15122760577460825, -0.54809589011071025], [-0.72163021964022223, -0.34435970073118782]], [[-0.1075348665208602, 0.82723530422236191], [-0.026284279321377113, 0.99655978862994155]], [[0.88591020241017526, 0.4033730619812268], [0.58710034420101342, 0.45449118143951517]], [[-0.75632762213219995, -0.18778964902536099], [-0.86748293055806136, 0.037624977312142649]], [[0.91517418897127945, -0.51665633539711497], [-0.32873185902105706, -0.27720413216145157]]]))
14832          res=maximum(arg0,arg1)
14833          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14834          ref=msk_ref*numarray.array([[[-0.37358195248163262, -0.27336564520633688], [0.31185513666213693, 0.49138367131164107]], [[-0.23168627929530583, -0.03616192464774648], [0.61631433617349707, 0.78686549068518663]], [[0.41212118683148069, 0.90998031960320436], [0.99605491014410519, 0.15147402020930234]], [[0.94604471442750215, -0.32759770784581188], [0.92304065918314526, -0.71108271334269801]], [[0.99030218260245695, 0.56350567065263735], [-0.039620325891805752, 0.21083981696926224]], [[0.23564951404346224, 0.88899136001079682], [0.94787126923095011, 0.57812481686625183]]])+(1.-msk_ref)*numarray.array([[[0.32594941395302701, 0.93635507276650998], [-0.52219886862144738, -0.17450779277321748]], [[0.58502802758929651, -0.41142097068201489], [-0.72163021964022223, -0.10414245222136698]], [[-0.1075348665208602, 0.82723530422236191], [0.2099372100186514, 0.99655978862994155]], [[0.88591020241017526, 0.4033730619812268], [0.84039522274325185, 0.45449118143951517]], [[-0.1507436522189145, -0.18778964902536099], [0.28670037025118655, 0.33083817728664044]], [[0.91517418897127945, 0.37400644898968993], [0.50401082589377033, -0.27720413216145157]]])
14835          self.failUnless(isinstance(res,Data),"wrong type of result.")
14836          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14837          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14838       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14839       def test_maximum_expandedData_rank0_taggedData_rank4(self):
14840          arg0=Data(0.450629877736,self.functionspace)
14841          arg0.setTaggedValue(1,0.579460820819)
14842          arg0.expand()
14843          arg1=Data(numarray.array([[[[-0.93458352340359307, -0.41190067471865022, -0.23664358363068883, -0.40370986429176203], [0.41247850740268155, 0.44897475734401082, 0.79900860948329, -0.80980394525129284], [0.5108826808220337, 0.013981347297780555, 0.17465414053669592, -0.1669664733120535]], [[-0.12378328511678194, -0.17844456261491004, -0.44505368193438311, -0.46383709809413642], [0.89281480055911766, -0.31338677696404593, 0.93180996621646917, -0.71015409425700105], [0.31137743484605229, -0.009819696375075182, 0.85505937142450295, 0.5378881600091503]]], [[[0.34441745593066697, -0.075449850187962575, 0.26642985235916572, 0.5423072309997008], [-0.61883754887568521, 0.98860123211230855, 0.90741603461179854, -0.15597073824641106], [0.54808223548024415, -0.22522989614967615, 0.68978257581627056, -0.72646580012977768]], [[-0.32116504709223048, 0.59210693779982515, 0.87444883555895481, -0.44800630836857747], [0.45053215713839712, 0.56398716173861096, -0.23978471018735403, -0.6354746422998645], [-0.6487212918194265, 0.95086139306366735, 0.08394378260375901, 0.38780478286457187]]], [[[0.57335107011599828, -0.37310359482598487, 0.97431386356392546, 0.40055848390252358], [-0.13201356350120763, 0.85412964511631384, 0.19285445907386611, -0.56721463144240136], [0.8075580531915918, 0.87134037440501655, -0.60961756368144604, -0.18929027481643401]], [[-0.27613225648092476, 0.7593111093249223, -0.39704005972987222, -0.020132271921616374], [0.58468253560648864, 0.82466000389884875, 0.3965353792647317, 0.26845317296980276], [-0.95534621342452231, 0.013290004356439233, 0.76350095350066249, -0.20133960448758703]]]]),self.functionspace)
14844          arg1.setTaggedValue(1,numarray.array([[[[0.10792932086568485, 0.76021978616093389, -0.70032561973317597, 0.47528252889807487], [0.58819854593101017, 0.10720165909492785, 0.40461033718299455, 0.96470130871039728], [0.2733654977507971, 0.22627953190591543, -0.15219119226102595, -0.7598912157762121]], [[-0.90956332777302396, -0.10955833859077013, 0.6649135519190148, -0.57746657860324735], [-0.019921200392668315, -0.70777890883173944, 0.47962326795551902, 0.58757555444487441], [-0.8665727165391135, -0.87611823532523214, -0.38793769719568871, 0.85610589809831183]]], [[[0.77200272262876735, 0.0037098363709966442, 0.99387194888657837, 0.3494515184202891], [-0.72958616039152324, 0.96944670676713685, -0.006253374601870032, -0.018096547195453283], [0.41754132743125272, 0.33086367724606069, -0.27529259918889237, -0.30633432878374722]], [[0.66334426462768281, -0.94726367994136851, 0.10911913469154411, 0.89104989766953868], [-0.1063190734973869, 0.078911289428541309, 0.49957092103283962, -0.73778001984841701], [-0.86299384831882842, 0.58737042896179137, 0.21143673144036601, -0.62130701205123984]]], [[[0.35506351814086479, 0.45092232689175282, 0.16925970871320795, 0.47406940636561812], [0.53818751206031901, 0.93889883620185999, -0.79558165482196253, 0.62792107870495362], [0.11989219421739072, -0.71732760316640487, 0.3239610675465181, -0.99104959828236661]], [[0.18035311137897203, -0.63337421992458909, -0.21054837143515481, 0.60920122284201339], [-0.85183723100083641, 0.75783166690834491, 0.44873865199630925, 0.69285091955764977], [-0.87699217725458767, -0.64176974664742015, 0.32529932761770453, 0.5328938499677689]]]]))
14845          res=maximum(arg0,arg1)
14846          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14847          ref=msk_ref*numarray.array([[[[0.45062987773571628, 0.45062987773571628, 0.45062987773571628, 0.45062987773571628], [0.45062987773571628, 0.45062987773571628, 0.79900860948329, 0.45062987773571628], [0.5108826808220337, 0.45062987773571628, 0.45062987773571628, 0.45062987773571628]], [[0.45062987773571628, 0.45062987773571628, 0.45062987773571628, 0.45062987773571628], [0.89281480055911766, 0.45062987773571628, 0.93180996621646917, 0.45062987773571628], [0.45062987773571628, 0.45062987773571628, 0.85505937142450295, 0.5378881600091503]]], [[[0.45062987773571628, 0.45062987773571628, 0.45062987773571628, 0.5423072309997008], [0.45062987773571628, 0.98860123211230855, 0.90741603461179854, 0.45062987773571628], [0.54808223548024415, 0.45062987773571628, 0.68978257581627056, 0.45062987773571628]], [[0.45062987773571628, 0.59210693779982515, 0.87444883555895481, 0.45062987773571628], [0.45062987773571628, 0.56398716173861096, 0.45062987773571628, 0.45062987773571628], [0.45062987773571628, 0.95086139306366735, 0.45062987773571628, 0.45062987773571628]]], [[[0.57335107011599828, 0.45062987773571628, 0.97431386356392546, 0.45062987773571628], [0.45062987773571628, 0.85412964511631384, 0.45062987773571628, 0.45062987773571628], [0.8075580531915918, 0.87134037440501655, 0.45062987773571628, 0.45062987773571628]], [[0.45062987773571628, 0.7593111093249223, 0.45062987773571628, 0.45062987773571628], [0.58468253560648864, 0.82466000389884875, 0.45062987773571628, 0.45062987773571628], [0.45062987773571628, 0.45062987773571628, 0.76350095350066249, 0.45062987773571628]]]])+(1.-msk_ref)*numarray.array([[[[0.5794608208193015, 0.76021978616093389, 0.5794608208193015, 0.5794608208193015], [0.58819854593101017, 0.5794608208193015, 0.5794608208193015, 0.96470130871039728], [0.5794608208193015, 0.5794608208193015, 0.5794608208193015, 0.5794608208193015]], [[0.5794608208193015, 0.5794608208193015, 0.6649135519190148, 0.5794608208193015], [0.5794608208193015, 0.5794608208193015, 0.5794608208193015, 0.58757555444487441], [0.5794608208193015, 0.5794608208193015, 0.5794608208193015, 0.85610589809831183]]], [[[0.77200272262876735, 0.5794608208193015, 0.99387194888657837, 0.5794608208193015], [0.5794608208193015, 0.96944670676713685, 0.5794608208193015, 0.5794608208193015], [0.5794608208193015, 0.5794608208193015, 0.5794608208193015, 0.5794608208193015]], [[0.66334426462768281, 0.5794608208193015, 0.5794608208193015, 0.89104989766953868], [0.5794608208193015, 0.5794608208193015, 0.5794608208193015, 0.5794608208193015], [0.5794608208193015, 0.58737042896179137, 0.5794608208193015, 0.5794608208193015]]], [[[0.5794608208193015, 0.5794608208193015, 0.5794608208193015, 0.5794608208193015], [0.5794608208193015, 0.93889883620185999, 0.5794608208193015, 0.62792107870495362], [0.5794608208193015, 0.5794608208193015, 0.5794608208193015, 0.5794608208193015]], [[0.5794608208193015, 0.5794608208193015, 0.5794608208193015, 0.60920122284201339], [0.5794608208193015, 0.75783166690834491, 0.5794608208193015, 0.69285091955764977], [0.5794608208193015, 0.5794608208193015, 0.5794608208193015, 0.5794608208193015]]]])
14848          self.failUnless(isinstance(res,Data),"wrong type of result.")
14849          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14850          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14851       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14852       def test_maximum_expandedData_rank4_taggedData_rank4(self):
14853          arg0=Data(numarray.array([[[[0.76955091692252009, -0.53121537020924503, 0.92331536295401873, -0.34367627453467331], [0.78723109623384668, 0.39458953116365492, 0.59502877122173681, 0.050372844530587102], [-0.19899713844924194, 0.41152644602298483, 0.94677471664022517, 0.4876799155785223]], [[-0.24703339834170768, -0.94331939863901515, -0.88611729975454079, -0.40581722478832827], [0.029730838876508292, -0.38460076098005458, -0.17591045709031206, -0.71320405508614582], [-0.78628883956651152, -0.99007191820143547, 0.21418622927908659, -0.40818445968490713]]], [[[0.0042569312712867902, -0.25976403772271817, -0.92926712763264585, -0.79485232395125816], [0.86639872074193747, 0.65318357533211779, -0.89911442494314642, -0.94473972318104615], [0.39754126543806034, -0.4010815317447014, 0.56256299492880091, -0.23949565583407417]], [[0.82370891735547125, -0.85852746636505017, 0.29845825367811174, -0.28040293335963939], [-0.61552789972771471, 0.14297290291382159, 0.33854689551282213, -0.68819791199573888], [-0.037077917233494517, 0.42902512706506779, 0.45111029338748332, -0.27704393207309663]]], [[[-0.369691271262375, -0.074492575493751767, 0.20962012924176232, -0.43068635164595492], [-0.74226235220622327, -0.8736015539788955, 0.11358838335880383, 0.004443406808822381], [-0.20248253955628082, 0.53718374549305725, -0.36808790294556393, -0.19406034651763182]], [[-0.16352139419534062, 0.078533157655853225, -0.53797014473836535, 0.60321275736829927], [-0.66057616988324241, -0.2118944680944983, 0.80243206808067136, -0.23643742948344371], [-0.28823401957596984, -0.32859411841026498, -0.52803065603921806, -0.53227609313995283]]]]),self.functionspace)
14854          arg0.setTaggedValue(1,numarray.array([[[[0.22893873837133638, -0.49032344510039905, -0.55698272642024715, 0.71618665253896974], [0.60529046560589306, 0.26565627287768057, 0.92207632299530951, -0.40949122741896682], [-0.41264242762927905, -0.15102882820247232, 0.61915382485641035, -0.43730975896852309]], [[-0.85059990370747496, -0.34077663679356318, 0.23348722429510049, 0.31777151583548213], [0.41588343854033138, -0.27144967369935746, 0.21249667702630326, 0.87427855430994206], [0.34943255691829012, 0.69192103905430069, 0.063709530598745179, 0.20567366439114698]]], [[[0.96246207288049179, 0.24475471346016198, -0.22633498783383055, 0.146473569651703], [0.76997197890428226, 0.39220687810199539, 0.31182239497041775, -0.13463352690629304], [-0.067475434723136107, -0.57799434312011666, 0.69886245428531701, -0.069116225520234886]], [[0.092685825210803374, 0.021846384689953702, -0.50376649709604227, -0.62298523066650313], [0.92087793061697765, 0.86901049387336493, 0.68251311608741205, 0.18148555381187048], [0.60720079482140465, -0.44678148870224432, -0.48119781664038652, -0.054439679635572169]]], [[[0.27848461453784745, -0.15652525408976947, -0.55869430457320268, -0.73858941451889715], [-0.39210312683432447, 0.60836444957177926, -0.74841957373166634, 0.70011599175139705], [-0.092769041470482927, 0.33156247684724027, -0.68495653893819952, 0.35319609484609216]], [[-0.22495933585518757, -0.096475024360099582, 0.2355610004718216, 0.17889993988415509], [-0.86491942178254, 0.54177935518757092, -0.63422377027012633, 0.86326923436841296], [0.14631001107532704, 0.44478026064068987, 0.75750928188365085, -0.73386122551657351]]]]))
14855          arg0.expand()
14856          arg1=Data(numarray.array([[[[0.91290552097700961, 0.96789553150377028, 0.5661915230390262, 0.89714680715674189], [0.29992278520617788, 0.28755083362727496, 0.83096466656338142, 0.82333208753058562], [-0.078770147403909752, 0.62503017271004491, -0.62979893293063482, -0.99508655286186998]], [[0.31757643511433842, -0.45348384093288541, 0.72962857906377487, 0.53449962172469667], [-0.46890067225838106, 0.83138237158744688, -0.69273616988371511, -0.99605462794789057], [-0.49834757578929834, -0.1134992107172359, -0.50010087765904365, 0.98861392243258051]]], [[[-0.74185912566710188, 0.36515059841721165, -0.075699256695932471, -0.23203876779367794], [-0.1740338386390734, -0.76410429808447922, 0.21767257898811554, 0.59540241770907931], [-0.85459236163275376, 0.6537143985414422, -0.37696767012777999, 0.47291717166063463]], [[0.71337854110853649, -0.85661217912548882, -0.014994334384107244, -0.45117484346745385], [-0.17315566873478483, 0.39028491927421438, 0.51966032402965601, -0.76330002225642324], [-0.79767631128999539, -0.56314787584153136, 0.37540611842940774, -0.24913563575056741]]], [[[-0.45432811231748649, -0.26720600757130697, -0.79997604759698082, -0.23031243943826785], [-0.76477573937415166, 0.43777080081593645, -0.13968903747072337, -0.59451523956293006], [0.026345511656530318, -0.67031213472108453, 0.51762859567908182, 0.76037417901906479]], [[-0.97241171971550711, 0.99517960221360946, 0.85174195373738004, -0.57165876215219691], [-0.81856970336308632, -0.16628617968552795, -0.69999943836543976, 0.50540871726773329], [0.17351700489486732, 0.21749504868276825, 0.41234604437155831, 0.75119729004736091]]]]),self.functionspace)
14857          arg1.setTaggedValue(1,numarray.array([[[[0.20221150611649064, 0.73543647417815916, -0.70506602619258829, 0.97888830472663924], [-0.042473056413596666, -0.24031177393964387, 0.61387827889649693, 0.16788650420211271], [0.081750874778339755, -0.17016812549515126, -0.23293652933024123, -0.42891126898530652]], [[-0.069632045523091213, -0.50946504220329247, 0.49041692338883713, 0.92752077966828472], [-0.14923501242296999, 0.15792377649587719, 0.5750229888370284, -0.55892720436307552], [0.691679244310895, 0.87540802150655361, 0.35034306590253417, 0.89165513560989673]]], [[[0.98075125166370025, 0.43447886286465809, 0.043444723860348367, 0.53661282977717994], [-0.91869101586427027, -0.04378102201555234, 0.016213763078045229, 0.051842716078229545], [0.19528495664367918, 0.27828591208281717, -0.26927916824350495, 0.77252153037147786]], [[-0.85061031838009438, -0.8017408311567813, 0.72728115638694568, -0.62571931677148807], [-0.20249642479494723, -0.95831749554600032, 0.72112511685081904, 0.175876101828081], [-0.11501949288432667, 0.88291274097133776, 0.23600578977840847, 0.20437019632383424]]], [[[-0.86143674311986329, 0.56267400173528315, 0.12179348205187379, 0.55380088835123287], [0.05963080459609138, -0.98314564757026535, 0.92094209135081018, -0.5441422501105595], [-0.43506249239884576, -0.14306290639549979, 0.015644877962105008, 0.91126736181798007]], [[0.034198797224265887, -0.23845077679811655, -0.18418503551626553, -0.76966425306439756], [-0.17138782453655388, -0.51812286796946161, 0.81256262258343193, -0.47681509006956491], [-0.41117855881499032, 0.047955510684507763, -0.070536658862883517, 0.63977421617673258]]]]))
14858          res=maximum(arg0,arg1)
14859          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
14860          ref=msk_ref*numarray.array([[[[0.91290552097700961, 0.96789553150377028, 0.92331536295401873, 0.89714680715674189], [0.78723109623384668, 0.39458953116365492, 0.83096466656338142, 0.82333208753058562], [-0.078770147403909752, 0.62503017271004491, 0.94677471664022517, 0.4876799155785223]], [[0.31757643511433842, -0.45348384093288541, 0.72962857906377487, 0.53449962172469667], [0.029730838876508292, 0.83138237158744688, -0.17591045709031206, -0.71320405508614582], [-0.49834757578929834, -0.1134992107172359, 0.21418622927908659, 0.98861392243258051]]], [[[0.0042569312712867902, 0.36515059841721165, -0.075699256695932471, -0.23203876779367794], [0.86639872074193747, 0.65318357533211779, 0.21767257898811554, 0.59540241770907931], [0.39754126543806034, 0.6537143985414422, 0.56256299492880091, 0.47291717166063463]], [[0.82370891735547125, -0.85661217912548882, 0.29845825367811174, -0.28040293335963939], [-0.17315566873478483, 0.39028491927421438, 0.51966032402965601, -0.68819791199573888], [-0.037077917233494517, 0.42902512706506779, 0.45111029338748332, -0.24913563575056741]]], [[[-0.369691271262375, -0.074492575493751767, 0.20962012924176232, -0.23031243943826785], [-0.74226235220622327, 0.43777080081593645, 0.11358838335880383, 0.004443406808822381], [0.026345511656530318, 0.53718374549305725, 0.51762859567908182, 0.76037417901906479]], [[-0.16352139419534062, 0.99517960221360946, 0.85174195373738004, 0.60321275736829927], [-0.66057616988324241, -0.16628617968552795, 0.80243206808067136, 0.50540871726773329], [0.17351700489486732, 0.21749504868276825, 0.41234604437155831, 0.75119729004736091]]]])+(1.-msk_ref)*numarray.array([[[[0.22893873837133638, 0.73543647417815916, -0.55698272642024715, 0.97888830472663924], [0.60529046560589306, 0.26565627287768057, 0.92207632299530951, 0.16788650420211271], [0.081750874778339755, -0.15102882820247232, 0.61915382485641035, -0.42891126898530652]], [[-0.069632045523091213, -0.34077663679356318, 0.49041692338883713, 0.92752077966828472], [0.41588343854033138, 0.15792377649587719, 0.5750229888370284, 0.87427855430994206], [0.691679244310895, 0.87540802150655361, 0.35034306590253417, 0.89165513560989673]]], [[[0.98075125166370025, 0.43447886286465809, 0.043444723860348367, 0.53661282977717994], [0.76997197890428226, 0.39220687810199539, 0.31182239497041775, 0.051842716078229545], [0.19528495664367918, 0.27828591208281717, 0.69886245428531701, 0.77252153037147786]], [[0.092685825210803374, 0.021846384689953702, 0.72728115638694568, -0.62298523066650313], [0.92087793061697765, 0.86901049387336493, 0.72112511685081904, 0.18148555381187048], [0.60720079482140465, 0.88291274097133776, 0.23600578977840847, 0.20437019632383424]]], [[[0.27848461453784745, 0.56267400173528315, 0.12179348205187379, 0.55380088835123287], [0.05963080459609138, 0.60836444957177926, 0.92094209135081018, 0.70011599175139705], [-0.092769041470482927, 0.33156247684724027, 0.015644877962105008, 0.91126736181798007]], [[0.034198797224265887, -0.096475024360099582, 0.2355610004718216, 0.17889993988415509], [-0.17138782453655388, 0.54177935518757092, 0.81256262258343193, 0.86326923436841296], [0.14631001107532704, 0.44478026064068987, 0.75750928188365085, 0.63977421617673258]]]])
14861          self.failUnless(isinstance(res,Data),"wrong type of result.")
14862          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14863          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14864       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14865       def test_minimum_float_rank0_taggedData_rank0(self):
14866          arg0=0.314410800242
14867          arg1=Data(-0.577024414806,self.functionspace)
14868          arg1.setTaggedValue(1,0.964775347448)
14869          res=minimum(arg0,arg1)
14870          ref=Data(-0.577024414806,self.functionspace)
14871          ref.setTaggedValue(1,0.314410800242)
14872          self.failUnless(isinstance(res,Data),"wrong type of result.")
14873          self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
14874          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14875       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14876       def test_minimum_float_rank0_taggedData_rank1(self):
14877          arg0=-0.515997945622
14878          arg1=Data(numarray.array([-0.64331923939785285, -0.83496733964576708]),self.functionspace)
14879          arg1.setTaggedValue(1,numarray.array([0.9282790514923196, -0.15112956150860923]))
14880          res=minimum(arg0,arg1)
14881          ref=Data(numarray.array([-0.64331923939785285, -0.83496733964576708]),self.functionspace)
14882          ref.setTaggedValue(1,numarray.array([-0.51599794562235357, -0.51599794562235357]))
14883          self.failUnless(isinstance(res,Data),"wrong type of result.")
14884          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14885          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14886       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14887       def test_minimum_float_rank0_taggedData_rank2(self):
14888          arg0=0.959434014116
14889          arg1=Data(numarray.array([[-0.82865643130235433, -0.86989432976922765, 0.78539270692837082, -0.3296068834342365, -0.59752452029779235], [0.45399470911674844, 0.89720495650475707, -0.27922321552613094, -0.95581005927706841, -0.025799264642782038], [0.60866190386723429, 0.6393901864959548, 0.018062705447958294, 0.17843032126338887, -0.80827623740659926], [-0.42832263621583189, 0.019812411062545721, -0.13572887746655038, -0.83792574167706202, 0.005010313213395845]]),self.functionspace)
14890          arg1.setTaggedValue(1,numarray.array([[0.98861548397887522, -0.73569853435701704, 0.80664186007766214, 0.078577026539418782, -0.17440451686191838], [0.32816757792655271, -0.88534578669733222, -0.48904232538334602, -0.94845276964437808, -0.57891853329910492], [-0.30705592020091399, 0.84474071634453729, 0.5699908556937392, 0.41989954790660988, -0.29492857264065675], [-0.24205776724643568, -0.97213289794262114, 0.89060261029711829, -0.19066848137499925, 0.95440668495914882]]))
14891          res=minimum(arg0,arg1)
14892          ref=Data(numarray.array([[-0.82865643130235433, -0.86989432976922765, 0.78539270692837082, -0.3296068834342365, -0.59752452029779235], [0.45399470911674844, 0.89720495650475707, -0.27922321552613094, -0.95581005927706841, -0.025799264642782038], [0.60866190386723429, 0.6393901864959548, 0.018062705447958294, 0.17843032126338887, -0.80827623740659926], [-0.42832263621583189, 0.019812411062545721, -0.13572887746655038, -0.83792574167706202, 0.005010313213395845]]),self.functionspace)
14893          ref.setTaggedValue(1,numarray.array([[0.95943401411573781, -0.73569853435701704, 0.80664186007766214, 0.078577026539418782, -0.17440451686191838], [0.32816757792655271, -0.88534578669733222, -0.48904232538334602, -0.94845276964437808, -0.57891853329910492], [-0.30705592020091399, 0.84474071634453729, 0.5699908556937392, 0.41989954790660988, -0.29492857264065675], [-0.24205776724643568, -0.97213289794262114, 0.89060261029711829, -0.19066848137499925, 0.95440668495914882]]))
14894          self.failUnless(isinstance(res,Data),"wrong type of result.")
14895          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14896          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14897       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14898       def test_minimum_float_rank0_taggedData_rank3(self):
14899          arg0=0.343560195642
14900          arg1=Data(numarray.array([[[-0.73752299737078775, 0.39826638960056715], [0.25261602074959999, 0.50844838788569269]], [[-0.55422873481124335, -0.62208683127921471], [0.44032548263239413, 0.64427653780141836]], [[-0.48004968311606921, 0.97684469371737292], [0.21464445505671104, -0.45535623764597899]], [[-0.28118124517849785, -0.042127054721157187], [-0.85380673186879164, -0.18520435409349867]], [[-0.52645407926751542, -0.91188357179212498], [0.41719397724901097, 0.19383508951655326]], [[-0.74986133429957991, -0.52359829593459484], [-0.12817264546573459, 0.63978256050128035]]]),self.functionspace)
14901          arg1.setTaggedValue(1,numarray.array([[[0.081728623698809733, 0.17906755292231713], [0.047824950970851265, -0.57962966450962194]], [[-0.013175077410390479, -0.38844365501858635], [-0.89612886718668916, -0.76039587634523853]], [[0.039392437174874839, 0.5988089324356789], [-0.17168318204191513, 0.036963051615617193]], [[0.80259229240606844, 0.2685081745207798], [0.67724833404577156, -0.63384185480486144]], [[0.92126110395884275, 0.4947193346772103], [0.85131094557460307, 0.44452093214705934]], [[-0.59417652826563017, 0.90088781157777698], [-0.7949098617674546, -0.27667140575417437]]]))
14902          res=minimum(arg0,arg1)
14903          ref=Data(numarray.array([[[-0.73752299737078775, 0.34356019564188056], [0.25261602074959999, 0.34356019564188056]], [[-0.55422873481124335, -0.62208683127921471], [0.34356019564188056, 0.34356019564188056]], [[-0.48004968311606921, 0.34356019564188056], [0.21464445505671104, -0.45535623764597899]], [[-0.28118124517849785, -0.042127054721157187], [-0.85380673186879164, -0.18520435409349867]], [[-0.52645407926751542, -0.91188357179212498], [0.34356019564188056, 0.19383508951655326]], [[-0.74986133429957991, -0.52359829593459484], [-0.12817264546573459, 0.34356019564188056]]]),self.functionspace)
14904          ref.setTaggedValue(1,numarray.array([[[0.081728623698809733, 0.17906755292231713], [0.047824950970851265, -0.57962966450962194]], [[-0.013175077410390479, -0.38844365501858635], [-0.89612886718668916, -0.76039587634523853]], [[0.039392437174874839, 0.34356019564188056], [-0.17168318204191513, 0.036963051615617193]], [[0.34356019564188056, 0.2685081745207798], [0.34356019564188056, -0.63384185480486144]], [[0.34356019564188056, 0.34356019564188056], [0.34356019564188056, 0.34356019564188056]], [[-0.59417652826563017, 0.34356019564188056], [-0.7949098617674546, -0.27667140575417437]]]))
14905          self.failUnless(isinstance(res,Data),"wrong type of result.")
14906          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14907          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14908       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14909       def test_minimum_float_rank0_taggedData_rank4(self):
14910          arg0=0.0632747947091
14911          arg1=Data(numarray.array([[[[0.87238226406626684, -0.45846347040032809, 0.0023464448190655407, -0.37591518354903264], [0.55817899856936481, -0.45194091104291845, 0.30775271128008574, 0.15505497086672482], [0.89696571776698653, -0.55294720136226161, 0.99421147223002526, -0.41148243178855859]], [[-0.39646904563533836, -0.93352763924776627, 0.61438604341774927, 0.51661611163655774], [0.14200882041878593, 0.49107306933069172, -0.81440598856715307, 0.9959896368711707], [0.43157857160005064, 0.090814591976436709, 0.74883972448246316, 0.80580641609047521]]], [[[-0.39913744414275398, -0.47515014279264212, -0.51219666797955554, -0.47081690458262626], [0.72936156620842185, -0.94807839964718066, -0.96958941305753199, -0.38643871103607341], [0.83195795924518201, 0.80082248782250898, 0.69661215359228423, -0.54283844005609172]], [[0.42856329004324856, 0.72663668404545834, 0.12183478498444322, 0.94807111171478575], [-0.60035358939179129, 0.77651141624611975, 0.042261687417343596, -0.61442516969369865], [0.67595484862207078, 0.25088974744681791, -0.76714966778968829, -0.59288410608547348]]], [[[0.69698091451590694, 0.71169947419023383, 0.57848500306922412, -0.43511881151463072], [0.46396502461574118, -0.99365569043960345, -0.67597116460633, 0.99120564943885592], [0.43121277811008163, -0.20451945415268025, 0.20630020117137304, 0.32413195254649829]], [[-0.66050181102977823, 0.48358288676150396, -0.50558621946335136, 0.011381847457725414], [-0.98805498927891167, -0.66499533378745235, -0.1434243355116922, -0.48380644484363788], [-0.12553880722863431, 0.14159374452497153, 0.79150568900005203, -0.90283886547542691]]]]),self.functionspace)
14912          arg1.setTaggedValue(1,numarray.array([[[[-0.71475588746426078, 0.99143332186761679, -0.51739944603141752, 0.67913058075763555], [0.35164679998427495, -0.51524338404955872, -0.32136539713493439, 0.33096253681463117], [-0.65394572409524043, -0.6195278956843242, -0.21886260195976992, 0.76373424534136114]], [[-0.42884215689516414, -0.83124535255341181, 0.19483645496670787, 0.76930158892093914], [0.41854727595618457, 0.60924937597464623, -0.44574269238184905, -0.62493158805228077], [-0.96456141069981371, 0.78140099292967657, -0.94500425468556148, 0.4790767667719078]]], [[[0.49939391649850551, -0.17343560513503564, -0.39444193063498822, -0.9637293728948686], [-0.73950545804405854, -0.18319256411268414, -0.90160189420914794, 0.89314960346073513], [-0.93177705110266507, -0.96358452422353014, 0.67858177722377011, 0.67894941054537772]], [[0.71580112488656344, -0.73345408801105383, -0.58361518632461862, -0.72516644734241997], [-0.65189216870623845, 0.15779867217473842, -0.4709865711774579, -0.81135557168013439], [-0.51223145159549111, 0.69504366056104239, -0.31692557885043482, -0.898628820656729]]], [[[-0.32366051426516185, -0.75792137329597931, 0.98488216633372572, 0.36852846523016991], [-0.3678142333385892, 0.43865958144671935, 0.65914988652001871, 0.61233533499616688], [-0.32361378959661469, 0.076780425063808, -0.20490340108832195, 0.7081414422184793]], [[-0.31045314804213242, -0.73456413272403998, 0.42435052137265927, -0.6717759746480747], [-0.043444555765702164, 0.44329835902102932, -0.86102564369737866, -0.2529972549806716], [-0.61105551262077018, -0.31856318802178119, 0.9670324004382822, 0.89913580753121702]]]]))
14913          res=minimum(arg0,arg1)
14914          ref=Data(numarray.array([[[[0.063274794709083482, -0.45846347040032809, 0.0023464448190655407, -0.37591518354903264], [0.063274794709083482, -0.45194091104291845, 0.063274794709083482, 0.063274794709083482], [0.063274794709083482, -0.55294720136226161, 0.063274794709083482, -0.41148243178855859]], [[-0.39646904563533836, -0.93352763924776627, 0.063274794709083482, 0.063274794709083482], [0.063274794709083482, 0.063274794709083482, -0.81440598856715307, 0.063274794709083482], [0.063274794709083482, 0.063274794709083482, 0.063274794709083482, 0.063274794709083482]]], [[[-0.39913744414275398, -0.47515014279264212, -0.51219666797955554, -0.47081690458262626], [0.063274794709083482, -0.94807839964718066, -0.96958941305753199, -0.38643871103607341], [0.063274794709083482, 0.063274794709083482, 0.063274794709083482, -0.54283844005609172]], [[0.063274794709083482, 0.063274794709083482, 0.063274794709083482, 0.063274794709083482], [-0.60035358939179129, 0.063274794709083482, 0.042261687417343596, -0.61442516969369865], [0.063274794709083482, 0.063274794709083482, -0.76714966778968829, -0.59288410608547348]]], [[[0.063274794709083482, 0.063274794709083482, 0.063274794709083482, -0.43511881151463072], [0.063274794709083482, -0.99365569043960345, -0.67597116460633, 0.063274794709083482], [0.063274794709083482, -0.20451945415268025, 0.063274794709083482, 0.063274794709083482]], [[-0.66050181102977823, 0.063274794709083482, -0.50558621946335136, 0.011381847457725414], [-0.98805498927891167, -0.66499533378745235, -0.1434243355116922, -0.48380644484363788], [-0.12553880722863431, 0.063274794709083482, 0.063274794709083482, -0.90283886547542691]]]]),self.functionspace)
14915          ref.setTaggedValue(1,numarray.array([[[[-0.71475588746426078, 0.063274794709083482, -0.51739944603141752, 0.063274794709083482], [0.063274794709083482, -0.51524338404955872, -0.32136539713493439, 0.063274794709083482], [-0.65394572409524043, -0.6195278956843242, -0.21886260195976992, 0.063274794709083482]], [[-0.42884215689516414, -0.83124535255341181, 0.063274794709083482, 0.063274794709083482], [0.063274794709083482, 0.063274794709083482, -0.44574269238184905, -0.62493158805228077], [-0.96456141069981371, 0.063274794709083482, -0.94500425468556148, 0.063274794709083482]]], [[[0.063274794709083482, -0.17343560513503564, -0.39444193063498822, -0.9637293728948686], [-0.73950545804405854, -0.18319256411268414, -0.90160189420914794, 0.063274794709083482], [-0.93177705110266507, -0.96358452422353014, 0.063274794709083482, 0.063274794709083482]], [[0.063274794709083482, -0.73345408801105383, -0.58361518632461862, -0.72516644734241997], [-0.65189216870623845, 0.063274794709083482, -0.4709865711774579, -0.81135557168013439], [-0.51223145159549111, 0.063274794709083482, -0.31692557885043482, -0.898628820656729]]], [[[-0.32366051426516185, -0.75792137329597931, 0.063274794709083482, 0.063274794709083482], [-0.3678142333385892, 0.063274794709083482, 0.063274794709083482, 0.063274794709083482], [-0.32361378959661469, 0.063274794709083482, -0.20490340108832195, 0.063274794709083482]], [[-0.31045314804213242, -0.73456413272403998, 0.063274794709083482, -0.6717759746480747], [-0.043444555765702164, 0.063274794709083482, -0.86102564369737866, -0.2529972549806716], [-0.61105551262077018, -0.31856318802178119, 0.063274794709083482, 0.063274794709083482]]]]))
14916          self.failUnless(isinstance(res,Data),"wrong type of result.")
14917          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14918          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14919       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14920       def test_minimum_array_rank0_taggedData_rank0(self):
14921          arg0=numarray.array(-0.20252478412)
14922          arg1=Data(-0.46028111512,self.functionspace)
14923          arg1.setTaggedValue(1,-0.455126378888)
14924          res=minimum(arg0,arg1)
14925          ref=Data(-0.46028111512,self.functionspace)
14926          ref.setTaggedValue(1,-0.455126378888)
14927          self.failUnless(isinstance(res,Data),"wrong type of result.")
14928          self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
14929          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14930       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14931       def test_minimum_array_rank1_taggedData_rank0(self):
14932          arg0=numarray.array([-0.72037285165823328, 0.95503431920973725])
14933          arg1=Data(0.970658979843,self.functionspace)
14934          arg1.setTaggedValue(1,0.839322765094)
14935          res=minimum(arg0,arg1)
14936          ref=Data(numarray.array([-0.72037285165823328, 0.95503431920973725]),self.functionspace)
14937          ref.setTaggedValue(1,numarray.array([-0.72037285165823328, 0.83932276509393922]))
14938          self.failUnless(isinstance(res,Data),"wrong type of result.")
14939          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14940          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14941       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14942       def test_minimum_array_rank2_taggedData_rank0(self):
14943          arg0=numarray.array([[0.68790811289178388, 0.17678941910803614, -0.41927624429074006, 0.60551635925208736, -0.0073344075085466365], [0.046816913771521529, 0.24513811064348356, 0.017612150222259926, -0.17115776083565448, 0.37475881757124885], [0.35035503835119086, -0.89972054188734929, -0.38758518050033808, -0.22163646159226169, -0.22785697903304913], [-0.30412878337396854, -0.63297420372891988, 0.26105300074372151, -0.7459870933271191, -0.78211306238154688]])
14944          arg1=Data(0.605901594887,self.functionspace)
14945          arg1.setTaggedValue(1,-0.23244763727)
14946          res=minimum(arg0,arg1)
14947          ref=Data(numarray.array([[0.60590159488701123, 0.17678941910803614, -0.41927624429074006, 0.60551635925208736, -0.0073344075085466365], [0.046816913771521529, 0.24513811064348356, 0.017612150222259926, -0.17115776083565448, 0.37475881757124885], [0.35035503835119086, -0.89972054188734929, -0.38758518050033808, -0.22163646159226169, -0.22785697903304913], [-0.30412878337396854, -0.63297420372891988, 0.26105300074372151, -0.7459870933271191, -0.78211306238154688]]),self.functionspace)
14948          ref.setTaggedValue(1,numarray.array([[-0.23244763726974238, -0.23244763726974238, -0.41927624429074006, -0.23244763726974238, -0.23244763726974238], [-0.23244763726974238, -0.23244763726974238, -0.23244763726974238, -0.23244763726974238, -0.23244763726974238], [-0.23244763726974238, -0.89972054188734929, -0.38758518050033808, -0.23244763726974238, -0.23244763726974238], [-0.30412878337396854, -0.63297420372891988, -0.23244763726974238, -0.7459870933271191, -0.78211306238154688]]))
14949          self.failUnless(isinstance(res,Data),"wrong type of result.")
14950          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
14951          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14952       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14953       def test_minimum_array_rank3_taggedData_rank0(self):
14954          arg0=numarray.array([[[-0.0028994602095799848, 0.6529286086211612], [-0.28098282832212296, 0.94733416730102871]], [[-0.088819657346991931, -0.58143097558931278], [-0.23961579693744972, 0.20032045218946992]], [[-0.91749971994417612, 0.89170403190697067], [0.17872742332625124, -0.36455219743560319]], [[0.28285275438832458, 0.10929072006405671], [-0.65666535622897149, 0.32116199707133908]], [[0.31762421552959674, -0.44102896645837419], [0.6319923089971482, 0.56009029939432109]], [[0.027818654688745559, -0.12753390561676259], [0.01688503944756703, -0.47393981980602917]]])
14955          arg1=Data(0.714420224537,self.functionspace)
14956          arg1.setTaggedValue(1,0.0644888589294)
14957          res=minimum(arg0,arg1)
14958          ref=Data(numarray.array([[[-0.0028994602095799848, 0.6529286086211612], [-0.28098282832212296, 0.71442022453675591]], [[-0.088819657346991931, -0.58143097558931278], [-0.23961579693744972, 0.20032045218946992]], [[-0.91749971994417612, 0.71442022453675591], [0.17872742332625124, -0.36455219743560319]], [[0.28285275438832458, 0.10929072006405671], [-0.65666535622897149, 0.32116199707133908]], [[0.31762421552959674, -0.44102896645837419], [0.6319923089971482, 0.56009029939432109]], [[0.027818654688745559, -0.12753390561676259], [0.01688503944756703, -0.47393981980602917]]]),self.functionspace)
14959          ref.setTaggedValue(1,numarray.array([[[-0.0028994602095799848, 0.064488858929440562], [-0.28098282832212296, 0.064488858929440562]], [[-0.088819657346991931, -0.58143097558931278], [-0.23961579693744972, 0.064488858929440562]], [[-0.91749971994417612, 0.064488858929440562], [0.064488858929440562, -0.36455219743560319]], [[0.064488858929440562, 0.064488858929440562], [-0.65666535622897149, 0.064488858929440562]], [[0.064488858929440562, -0.44102896645837419], [0.064488858929440562, 0.064488858929440562]], [[0.027818654688745559, -0.12753390561676259], [0.01688503944756703, -0.47393981980602917]]]))
14960          self.failUnless(isinstance(res,Data),"wrong type of result.")
14961          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
14962          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14963       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14964       def test_minimum_array_rank4_taggedData_rank0(self):
14965          arg0=numarray.array([[[[-0.95003081240586251, -0.086367597986508837, 0.82525936987273618, 0.85953101241538588], [0.31948730544154857, 0.7753946500866411, 0.75007381356868352, 0.75396760694678022], [-0.47112620993376253, -0.047074523000005142, -0.52266906246601752, -0.32494414840371055]], [[-0.58220951111906261, -0.055595353413821602, -0.20550610088269461, 0.4277756650464084], [-0.17473866838743324, 0.87514098564269993, -0.30559217253475146, 0.96916407322340348], [0.74679708120675059, 0.4529194492289077, 0.92187158067767849, -0.42419702603924714]]], [[[0.7407660740777009, -0.05636688555057523, -0.86533489319575874, 0.1769581309189161], [-0.62803639730053695, -0.91314434220294505, 0.60968780325061922, -0.87458044450145089], [-0.34980834403363659, 0.65053250718375599, -0.22817275302420326, 0.77728394303886161]], [[-0.042866731292045435, -0.35996284640160581, 0.72258986785769319, 0.59548688486958112], [-0.2267629396389681, 0.84450284822613297, -0.24615898484893872, 0.3340570574936288], [0.5658345572110437, 0.73397872443131695, 0.59418815345828513, 0.0081730536508146656]]], [[[0.55974514608672554, -0.67409551749498653, 0.098084779245508846, 0.077505494645091932], [0.93681287662757717, 0.10180072085412006, -0.62046563506403785, 0.92024870461246766], [0.19292450384570858, -0.76644825385427584, -0.97099453984172857, 0.64621148000496342]], [[-0.33700688604334994, -0.49452500927743048, -0.62948775841611537, -0.36593801966908845], [0.4380851249823845, 0.56966895305049303, 0.34213507066098336, -0.094678658488436485], [-0.96255362531891753, 0.030110984082165171, -0.41425734220559174, -0.95520666128723719]]]])
14966          arg1=Data(-0.929563528633,self.functionspace)
14967          arg1.setTaggedValue(1,0.79107831908)
14968          res=minimum(arg0,arg1)
14969          ref=Data(numarray.array([[[[-0.95003081240586251, -0.92956352863349068, -0.92956352863349068, -0.92956352863349068], [-0.92956352863349068, -0.92956352863349068, -0.92956352863349068, -0.92956352863349068], [-0.92956352863349068, -0.92956352863349068, -0.92956352863349068, -0.92956352863349068]], [[-0.92956352863349068, -0.92956352863349068, -0.92956352863349068, -0.92956352863349068], [-0.92956352863349068, -0.92956352863349068, -0.92956352863349068, -0.92956352863349068], [-0.92956352863349068, -0.92956352863349068, -0.92956352863349068, -0.92956352863349068]]], [[[-0.92956352863349068, -0.92956352863349068, -0.92956352863349068, -0.92956352863349068], [-0.92956352863349068, -0.92956352863349068, -0.92956352863349068, -0.92956352863349068], [-0.92956352863349068, -0.92956352863349068, -0.92956352863349068, -0.92956352863349068]], [[-0.92956352863349068, -0.92956352863349068, -0.92956352863349068, -0.92956352863349068], [-0.92956352863349068, -0.92956352863349068, -0.92956352863349068, -0.92956352863349068], [-0.92956352863349068, -0.92956352863349068, -0.92956352863349068, -0.92956352863349068]]], [[[-0.92956352863349068, -0.92956352863349068, -0.92956352863349068, -0.92956352863349068], [-0.92956352863349068, -0.92956352863349068, -0.92956352863349068, -0.92956352863349068], [-0.92956352863349068, -0.92956352863349068, -0.97099453984172857, -0.92956352863349068]], [[-0.92956352863349068, -0.92956352863349068, -0.92956352863349068, -0.92956352863349068], [-0.92956352863349068, -0.92956352863349068, -0.92956352863349068, -0.92956352863349068], [-0.96255362531891753, -0.92956352863349068, -0.92956352863349068, -0.95520666128723719]]]]),self.functionspace)
14970          ref.setTaggedValue(1,numarray.array([[[[-0.95003081240586251, -0.086367597986508837, 0.79107831908040183, 0.79107831908040183], [0.31948730544154857, 0.7753946500866411, 0.75007381356868352, 0.75396760694678022], [-0.47112620993376253, -0.047074523000005142, -0.52266906246601752, -0.32494414840371055]], [[-0.58220951111906261, -0.055595353413821602, -0.20550610088269461, 0.4277756650464084], [-0.17473866838743324, 0.79107831908040183, -0.30559217253475146, 0.79107831908040183], [0.74679708120675059, 0.4529194492289077, 0.79107831908040183, -0.42419702603924714]]], [[[0.7407660740777009, -0.05636688555057523, -0.86533489319575874, 0.1769581309189161], [-0.62803639730053695, -0.91314434220294505, 0.60968780325061922, -0.87458044450145089], [-0.34980834403363659, 0.65053250718375599, -0.22817275302420326, 0.77728394303886161]], [[-0.042866731292045435, -0.35996284640160581, 0.72258986785769319, 0.59548688486958112], [-0.2267629396389681, 0.79107831908040183, -0.24615898484893872, 0.3340570574936288], [0.5658345572110437, 0.73397872443131695, 0.59418815345828513, 0.0081730536508146656]]], [[[0.55974514608672554, -0.67409551749498653, 0.098084779245508846, 0.077505494645091932], [0.79107831908040183, 0.10180072085412006, -0.62046563506403785, 0.79107831908040183], [0.19292450384570858, -0.76644825385427584, -0.97099453984172857, 0.64621148000496342]], [[-0.33700688604334994, -0.49452500927743048, -0.62948775841611537, -0.36593801966908845], [0.4380851249823845, 0.56966895305049303, 0.34213507066098336, -0.094678658488436485], [-0.96255362531891753, 0.030110984082165171, -0.41425734220559174, -0.95520666128723719]]]]))
14971          self.failUnless(isinstance(res,Data),"wrong type of result.")
14972          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
14973          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14974       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14975       def test_minimum_array_rank0_taggedData_rank1(self):
14976          arg0=numarray.array(-0.828880570789)
14977          arg1=Data(numarray.array([0.64177570395415229, -0.31114428674347105]),self.functionspace)
14978          arg1.setTaggedValue(1,numarray.array([0.97776757662637648, -0.71646498675377002]))
14979          res=minimum(arg0,arg1)
14980          ref=Data(numarray.array([-0.828880570789158, -0.828880570789158]),self.functionspace)
14981          ref.setTaggedValue(1,numarray.array([-0.828880570789158, -0.828880570789158]))
14982          self.failUnless(isinstance(res,Data),"wrong type of result.")
14983          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14984          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14985       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14986       def test_minimum_array_rank1_taggedData_rank1(self):
14987          arg0=numarray.array([0.24938067058240132, -0.48026019808279363])
14988          arg1=Data(numarray.array([-0.65307384532077273, -0.42882409479737471]),self.functionspace)
14989          arg1.setTaggedValue(1,numarray.array([0.70847337578671321, -0.41800412668037157]))
14990          res=minimum(arg0,arg1)
14991          ref=Data(numarray.array([-0.65307384532077273, -0.48026019808279363]),self.functionspace)
14992          ref.setTaggedValue(1,numarray.array([0.24938067058240132, -0.48026019808279363]))
14993          self.failUnless(isinstance(res,Data),"wrong type of result.")
14994          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
14995          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
14996       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14997       def test_minimum_array_rank0_taggedData_rank2(self):
14998          arg0=numarray.array(-0.193118221984)
14999          arg1=Data(numarray.array([[-0.94675529095071509, 0.92530161828688451, 0.40386674715870008, -0.85353337318869071, -0.79232014116742322], [-0.25706735123401492, -0.11902896463516655, 0.52301264414040993, 0.077834454814631249, 0.68733853376048692], [0.79287392172825699, 0.40566275274315577, -0.49565085745319926, -0.49250460867430013, 0.25864322079351165], [-0.14615002893947571, -0.89456694320425045, -0.31822856058640814, -0.45289419927664909, -0.3188699472009453]]),self.functionspace)
15000          arg1.setTaggedValue(1,numarray.array([[0.88277144694232446, 0.49261305471843309, -0.62932625759247451, 0.21494504956811067, -0.21359697146048195], [0.056170266828586168, 0.31179416765764256, 0.31775300511305193, -0.42263188092404702, 0.22102900619820609], [-0.89723443521624646, 0.68550705628858011, -0.58301359456940371, 0.93550407187430373, -0.81092289770563442], [-0.23476401118657142, 0.28159797090006133, -0.11458369458827811, -0.7253636969757904, 0.35024271780680216]]))
15001          res=minimum(arg0,arg1)
15002          ref=Data(numarray.array([[-0.94675529095071509, -0.19311822198370843, -0.19311822198370843, -0.85353337318869071, -0.79232014116742322], [-0.25706735123401492, -0.19311822198370843, -0.19311822198370843, -0.19311822198370843, -0.19311822198370843], [-0.19311822198370843, -0.19311822198370843, -0.49565085745319926, -0.49250460867430013, -0.19311822198370843], [-0.19311822198370843, -0.89456694320425045, -0.31822856058640814, -0.45289419927664909, -0.3188699472009453]]),self.functionspace)
15003          ref.setTaggedValue(1,numarray.array([[-0.19311822198370843, -0.19311822198370843, -0.62932625759247451, -0.19311822198370843, -0.21359697146048195], [-0.19311822198370843, -0.19311822198370843, -0.19311822198370843, -0.42263188092404702, -0.19311822198370843], [-0.89723443521624646, -0.19311822198370843, -0.58301359456940371, -0.19311822198370843, -0.81092289770563442], [-0.23476401118657142, -0.19311822198370843, -0.19311822198370843, -0.7253636969757904, -0.19311822198370843]]))
15004          self.failUnless(isinstance(res,Data),"wrong type of result.")
15005          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
15006          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15007       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15008       def test_minimum_array_rank2_taggedData_rank2(self):
15009          arg0=numarray.array([[-0.37133591867434013, -0.10105924023572754, 0.54566918734681269, -0.85184601828884565, 0.25915795839039246], [-0.099825368868847519, 0.81746594046825583, -0.80649876256962649, -0.86577960197851289, -0.93845071691824167], [0.89510061440327271, 0.83081746482459851, 0.95976889324839076, 0.40310677493764668, -0.87561111394252622], [0.060210106298779653, 0.44955126888006758, 0.20775677293258998, 0.8456927311886433, -0.56480847644495213]])
15010          arg1=Data(numarray.array([[0.09871480861370352, -0.87906967067563269, -0.62821615377818785, -0.80847007660798376, 0.8979279544626344], [-0.70867100567303964, 0.17851759437367876, 0.76036093479947353, 0.82917823517526279, -0.80406762019974209], [0.78325247098989093, -0.8066813170823568, -0.80869245397111356, -0.04733038011938473, -0.71370138472671085], [0.23969373758081458, 0.5943770398313093, -0.87481887020553395, -0.75938564526286179, 0.033762430835217794]]),self.functionspace)
15011          arg1.setTaggedValue(1,numarray.array([[0.36175842694602234, -0.097988748663490499, 0.43988114574383275, -0.44877558014360708, 0.5289963239492308], [0.14474139217167026, -0.51848179046143716, 0.82758834602040321, -0.14062538411358427, 0.55082843312039165], [0.35420526378711403, -0.61578423648467506, 0.43849373792402058, -0.31408245301632021, 0.28477663837511979], [0.83391327884325128, 0.97408210265889883, 0.79723217034214588, 0.54307327569348329, 0.57553765901544995]]))
15012          res=minimum(arg0,arg1)
15013          ref=Data(numarray.array([[-0.37133591867434013, -0.87906967067563269, -0.62821615377818785, -0.85184601828884565, 0.25915795839039246], [-0.70867100567303964, 0.17851759437367876, -0.80649876256962649, -0.86577960197851289, -0.93845071691824167], [0.78325247098989093, -0.8066813170823568, -0.80869245397111356, -0.04733038011938473, -0.87561111394252622], [0.060210106298779653, 0.44955126888006758, -0.87481887020553395, -0.75938564526286179, -0.56480847644495213]]),self.functionspace)
15014          ref.setTaggedValue(1,numarray.array([[-0.37133591867434013, -0.10105924023572754, 0.43988114574383275, -0.85184601828884565, 0.25915795839039246], [-0.099825368868847519, -0.51848179046143716, -0.80649876256962649, -0.86577960197851289, -0.93845071691824167], [0.35420526378711403, -0.61578423648467506, 0.43849373792402058, -0.31408245301632021, -0.87561111394252622], [0.060210106298779653, 0.44955126888006758, 0.20775677293258998, 0.54307327569348329, -0.56480847644495213]]))
15015          self.failUnless(isinstance(res,Data),"wrong type of result.")
15016          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
15017          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15018       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15019       def test_minimum_array_rank0_taggedData_rank3(self):
15020          arg0=numarray.array(0.203029524701)
15021          arg1=Data(numarray.array([[[0.17094001119275259, 0.067140826306332446], [0.44532990064370725, 0.51789389752579273]], [[0.82114346947936911, 0.10282232389889834], [0.04866550530690894, -0.20870869506574818]], [[0.19441974115863947, -0.28344758490329602], [0.7571429611708258, -0.50812577666110004]], [[-0.069146843255929236, 0.062357934842570906], [0.05471633956068267, -0.34430968979544341]], [[-0.20409525100284021, 0.35148533762486656], [0.7592971485610629, -0.76273753864705096]], [[-0.80960417963744202, 0.62113007843213186], [0.34357986875124658, 0.17567196898373627]]]),self.functionspace)
15022          arg1.setTaggedValue(1,numarray.array([[[-0.013736771881341703, 0.73068164404186953], [0.32093216542863856, 0.087462380141183349]], [[-0.28973481635429255, 0.40987092598089125], [0.79279816248875612, -0.17486873131021241]], [[-0.95107631719717256, 0.55203732857972532], [0.0029821337466202635, 0.78351724940563394]], [[0.27025999112705001, -0.32649927600308448], [0.22667864106355951, -0.5051158980483037]], [[-0.58727814097138942, -0.71676326712662219], [0.56692487594097396, 0.17759101180604486]], [[-0.13796018760230688, 0.1467627194153307], [0.60618280867324836, 0.45343725498505982]]]))
15023          res=minimum(arg0,arg1)
15024          ref=Data(numarray.array([[[0.17094001119275259, 0.067140826306332446], [0.20302952470092794, 0.20302952470092794]], [[0.20302952470092794, 0.10282232389889834], [0.04866550530690894, -0.20870869506574818]], [[0.19441974115863947, -0.28344758490329602], [0.20302952470092794, -0.50812577666110004]], [[-0.069146843255929236, 0.062357934842570906], [0.05471633956068267, -0.34430968979544341]], [[-0.20409525100284021, 0.20302952470092794], [0.20302952470092794, -0.76273753864705096]], [[-0.80960417963744202, 0.20302952470092794], [0.20302952470092794, 0.17567196898373627]]]),self.functionspace)
15025          ref.setTaggedValue(1,numarray.array([[[-0.013736771881341703, 0.20302952470092794], [0.20302952470092794, 0.087462380141183349]], [[-0.28973481635429255, 0.20302952470092794], [0.20302952470092794, -0.17486873131021241]], [[-0.95107631719717256, 0.20302952470092794], [0.0029821337466202635, 0.20302952470092794]], [[0.20302952470092794, -0.32649927600308448], [0.20302952470092794, -0.5051158980483037]], [[-0.58727814097138942, -0.71676326712662219], [0.20302952470092794, 0.17759101180604486]], [[-0.13796018760230688, 0.1467627194153307], [0.20302952470092794, 0.20302952470092794]]]))
15026          self.failUnless(isinstance(res,Data),"wrong type of result.")
15027          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
15028          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15029       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15030       def test_minimum_array_rank3_taggedData_rank3(self):
15031          arg0=numarray.array([[[0.88502592369187472, 0.85742372196903149], [0.95976586879998771, -0.56036430367132684]], [[-0.97715398812929877, 0.59208471472826507], [-0.30813298039883286, -0.22034279818830593]], [[0.55591160845086618, -0.32695352913627795], [0.52710589636781058, 0.33036935066400797]], [[0.46784168392430514, -0.34446586394572476], [0.94834975280704481, -0.2447525595338107]], [[-0.32356541060801969, 0.81579809801884529], [-0.80159170475370045, 0.89565274725994448]], [[0.0599796427701631, -0.13999217181597801], [0.038354321743574671, -0.064582972070557521]]])
15032          arg1=Data(numarray.array([[[0.30167181991238623, -0.22424642575008313], [0.22362997834625409, -0.12801473865196655]], [[-0.58489150633202502, -0.27725740964875811], [-0.37223469869999937, -0.1936587136276573]], [[0.86810938230082701, -0.34324889592637953], [0.64321995850606184, -0.95689563918660414]], [[-0.35168289005407094, -0.37669604385487077], [0.20958004500538463, -0.96259570122393878]], [[-0.95970777368582993, 0.29930529415460616], [0.022094003885609004, 0.44257345067806053]], [[-0.70842609919647059, 0.2100050587389406], [0.11274820332002222, -0.16029281241528892]]]),self.functionspace)
15033          arg1.setTaggedValue(1,numarray.array([[[-0.095707658665982187, -0.87800332198596709], [-0.38791154579167308, 0.51988358408873681]], [[-0.45562391332623675, -0.12809397165941694], [0.54509076256290201, -0.1331291518931883]], [[-0.13276652586452298, -0.28650584169764359], [0.71920567169905825, -0.76794400899403348]], [[0.52184174625259416, 0.017901062113908184], [0.53553620170355121, -0.85637309040467691]], [[0.59614996252439401, 0.10854457585530342], [-0.40106217365323915, -0.018574034975204601]], [[0.82914280755218428, 0.93917580979105675], [-0.79396858050831365, 0.67231168747369185]]]))
15034          res=minimum(arg0,arg1)
15035          ref=Data(numarray.array([[[0.30167181991238623, -0.22424642575008313], [0.22362997834625409, -0.56036430367132684]], [[-0.97715398812929877, -0.27725740964875811], [-0.37223469869999937, -0.22034279818830593]], [[0.55591160845086618, -0.34324889592637953], [0.52710589636781058, -0.95689563918660414]], [[-0.35168289005407094, -0.37669604385487077], [0.20958004500538463, -0.96259570122393878]], [[-0.95970777368582993, 0.29930529415460616], [-0.80159170475370045, 0.44257345067806053]], [[-0.70842609919647059, -0.13999217181597801], [0.038354321743574671, -0.16029281241528892]]]),self.functionspace)
15036          ref.setTaggedValue(1,numarray.array([[[-0.095707658665982187, -0.87800332198596709], [-0.38791154579167308, -0.56036430367132684]], [[-0.97715398812929877, -0.12809397165941694], [-0.30813298039883286, -0.22034279818830593]], [[-0.13276652586452298, -0.32695352913627795], [0.52710589636781058, -0.76794400899403348]], [[0.46784168392430514, -0.34446586394572476], [0.53553620170355121, -0.85637309040467691]], [[-0.32356541060801969, 0.10854457585530342], [-0.80159170475370045, -0.018574034975204601]], [[0.0599796427701631, -0.13999217181597801], [-0.79396858050831365, -0.064582972070557521]]]))
15037          self.failUnless(isinstance(res,Data),"wrong type of result.")
15038          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
15039          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15040       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15041       def test_minimum_array_rank0_taggedData_rank4(self):
15042          arg0=numarray.array(0.0678969292101)
15043          arg1=Data(numarray.array([[[[-0.12665265383896052, 0.25645593020479551, 0.98760363728441125, -0.18916947363341063], [0.80211392746016208, -0.79655807258798306, -0.58940645847190098, -0.49724875807858249], [-0.49500991266219541, 0.4602060738670728, 0.21436040437842396, 0.5661338119377286]], [[0.087848762076911946, -0.50498475926115383, 0.84587065458694211, 0.098644104468930349], [-0.78596542284390747, -0.67651479618492383, 0.10511315770912644, -0.19058258127001615], [0.71641996302637323, 0.63500785746291033, 0.81560895563646962, -0.59288037729291543]]], [[[0.2559593657056265, -0.37776660101224069, -0.95946916347307143, 0.15501490738840618], [0.16730518685751106, -0.46222139471612178, -0.63791622168448936, 0.20954454673259826], [-0.31793841550339241, -0.45385595920233235, -0.68622140724374336, -0.039171204912008539]], [[-0.62590780736051577, -0.41267150556102661, 0.4768706255626276, -0.91372615915324573], [-0.65014259107618155, -0.94415768054557736, 0.71668785435302085, -0.16420336939602187], [-0.66667350748883991, 0.72442477148466233, 0.54733099686881515, 0.28594946193801762]]], [[[0.54837453405049308, -0.93876707187428177, -0.57240842469036468, -0.26885541497656629], [-0.12384857635906665, -0.23387533676354044, -0.40390939361228617, -0.89507651739575844], [-0.11173676719683701, -0.62400270312509165, -0.51527960825827956, -0.86726950428358274]], [[0.46650544732571664, -0.74581061151918226, -0.20094665381988297, -0.99385158149006902], [0.51290463590382118, 0.15844344795084497, -0.68281260892041074, 0.14035919323554125], [0.0042193218663537646, 0.71982120156389917, -0.3961301129880983, 0.92524756976901368]]]]),self.functionspace)
15044          arg1.setTaggedValue(1,numarray.array([[[[0.60594331810038815, -0.82528461892326299, -0.34523965416013458, -0.51839527724377676], [0.23847259856350234, -0.71361105356000376, 0.95103756502770009, 0.3132100477743327], [-0.96543739925905081, -0.98078990960070889, 0.79371150626242803, 0.19900802312419308]], [[-0.20741867984073736, -0.1355593671812001, 0.70720477617899968, -0.67009016018287726], [0.50556642629294268, 0.64847345373171117, -0.12039461947822128, -0.095057096271936148], [-0.37861447735464449, -0.81630928257989033, -0.28923776870741502, 0.78536425705695234]]], [[[0.71946535762817243, -0.73368866219465101, -0.78017140263003371, 0.65343711363699319], [-0.71060680699782086, 0.88716578588330663, -0.48188227213878809, -0.083661183023939545], [-0.82465736514301047, 0.31698524984234822, 0.44713834865060331, 0.098832471217584539]], [[0.63880848368962817, -0.15931797160423744, -0.3022343212279921, 0.13865738073465161], [0.34577961964212833, -0.42755843429704132, -0.55798716039458274, -0.34281486893970281], [0.085488423746791664, -0.50719763831744058, -0.94171316695839735, 0.90523404823880793]]], [[[-0.61887974101427501, -0.82508208104588832, -0.24641757627910255, -0.10216537470750242], [-0.39078188266722047, -0.12211127955934731, 0.65552463471164568, -0.38886408605624045], [-0.86372074296908941, 0.67650399227357116, 0.5313399570645958, 0.85485736331270434]], [[0.65752196932455664, -0.24628725268356577, -0.94477726363991676, -0.8923716031253266], [0.26769998715815624, -0.44356036711993219, 0.088773352375644654, 0.71558079112410322], [0.7857844239268903, -0.7781317703863746, -0.41540878674797521, -0.64162521327287636]]]]))
15045          res=minimum(arg0,arg1)
15046          ref=Data(numarray.array([[[[-0.12665265383896052, 0.067896929210103041, 0.067896929210103041, -0.18916947363341063], [0.067896929210103041, -0.79655807258798306, -0.58940645847190098, -0.49724875807858249], [-0.49500991266219541, 0.067896929210103041, 0.067896929210103041, 0.067896929210103041]], [[0.067896929210103041, -0.50498475926115383, 0.067896929210103041, 0.067896929210103041], [-0.78596542284390747, -0.67651479618492383, 0.067896929210103041, -0.19058258127001615], [0.067896929210103041, 0.067896929210103041, 0.067896929210103041, -0.59288037729291543]]], [[[0.067896929210103041, -0.37776660101224069, -0.95946916347307143, 0.067896929210103041], [0.067896929210103041, -0.46222139471612178, -0.63791622168448936, 0.067896929210103041], [-0.31793841550339241, -0.45385595920233235, -0.68622140724374336, -0.039171204912008539]], [[-0.62590780736051577, -0.41267150556102661, 0.067896929210103041, -0.91372615915324573], [-0.65014259107618155, -0.94415768054557736, 0.067896929210103041, -0.16420336939602187], [-0.66667350748883991, 0.067896929210103041, 0.067896929210103041, 0.067896929210103041]]], [[[0.067896929210103041, -0.93876707187428177, -0.57240842469036468, -0.26885541497656629], [-0.12384857635906665, -0.23387533676354044, -0.40390939361228617, -0.89507651739575844], [-0.11173676719683701, -0.62400270312509165, -0.51527960825827956, -0.86726950428358274]], [[0.067896929210103041, -0.74581061151918226, -0.20094665381988297, -0.99385158149006902], [0.067896929210103041, 0.067896929210103041, -0.68281260892041074, 0.067896929210103041], [0.0042193218663537646, 0.067896929210103041, -0.3961301129880983, 0.067896929210103041]]]]),self.functionspace)
15047          ref.setTaggedValue(1,numarray.array([[[[0.067896929210103041, -0.82528461892326299, -0.34523965416013458, -0.51839527724377676], [0.067896929210103041, -0.71361105356000376, 0.067896929210103041, 0.067896929210103041], [-0.96543739925905081, -0.98078990960070889, 0.067896929210103041, 0.067896929210103041]], [[-0.20741867984073736, -0.1355593671812001, 0.067896929210103041, -0.67009016018287726], [0.067896929210103041, 0.067896929210103041, -0.12039461947822128, -0.095057096271936148], [-0.37861447735464449, -0.81630928257989033, -0.28923776870741502, 0.067896929210103041]]], [[[0.067896929210103041, -0.73368866219465101, -0.78017140263003371, 0.067896929210103041], [-0.71060680699782086, 0.067896929210103041, -0.48188227213878809, -0.083661183023939545], [-0.82465736514301047, 0.067896929210103041, 0.067896929210103041, 0.067896929210103041]], [[0.067896929210103041, -0.15931797160423744, -0.3022343212279921, 0.067896929210103041], [0.067896929210103041, -0.42755843429704132, -0.55798716039458274, -0.34281486893970281], [0.067896929210103041, -0.50719763831744058, -0.94171316695839735, 0.067896929210103041]]], [[[-0.61887974101427501, -0.82508208104588832, -0.24641757627910255, -0.10216537470750242], [-0.39078188266722047, -0.12211127955934731, 0.067896929210103041, -0.38886408605624045], [-0.86372074296908941, 0.067896929210103041, 0.067896929210103041, 0.067896929210103041]], [[0.067896929210103041, -0.24628725268356577, -0.94477726363991676, -0.8923716031253266], [0.067896929210103041, -0.44356036711993219, 0.067896929210103041, 0.067896929210103041], [0.067896929210103041, -0.7781317703863746, -0.41540878674797521, -0.64162521327287636]]]]))
15048          self.failUnless(isinstance(res,Data),"wrong type of result.")
15049          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
15050          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15051       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15052       def test_minimum_array_rank4_taggedData_rank4(self):
15053          arg0=numarray.array([[[[-0.82936405041301198, -0.79396490383160967, 0.71763317639219992, 0.96552909548859644], [0.54476402156674797, 0.55433955587666683, -0.83248342605335224, -0.28702074227398566], [-0.13594783805294353, -0.58220301976404976, 0.89353208934671025, -0.33429954370388071]], [[0.20204071761968589, 0.58012236136665196, 0.94096401613735048, 0.77295041558343369], [0.70737919697043994, -0.94790815752100333, -0.6965481922929313, -0.10988610634726115], [0.42600259185457467, 0.84197958429976594, 0.34992874815030905, -0.1431861373350618]]], [[[-0.50292196020669744, 0.69406359516293459, -0.41311122847738813, 0.086707933043925989], [0.62081477697702314, -0.96503623119960991, -0.23089539183725338, 0.6128591741885816], [-0.38852475730206293, 0.64462729579766687, 0.54052477597763926, 0.25342473949324718]], [[-0.602588623382597, -0.20927787345329585, -0.67212591676516631, 0.32544187840330063], [0.30534939438050901, 0.9016343691426032, -0.26378576746521953, -0.96197872690176855], [0.093503831128672665, 0.29518020570069381, 0.6523991287635591, 0.54195123564830583]]], [[[-0.93313898366342074, 0.59672302663341048, 0.85516405738901713, -0.56702462819811239], [0.26877702315015761, -0.95424920677748548, 0.61717749112828346, -0.033322171153286062], [-0.014658844772328594, 0.17674457482801187, 0.7088883411053688, -0.96309807860029184]], [[-0.64718507871800468, -0.72384145624825158, -0.44945623150692637, 0.97411016582708587], [-0.2159683668777399, -0.7833017421119941, 0.32287182895004896, -0.32095554899946199], [-0.66944198289298384, 0.6528642104020832, 0.099479295648528643, -0.36823506607666356]]]])
15054          arg1=Data(numarray.array([[[[-0.54267306431995266, 0.087096750455018856, 0.37413578645680068, -0.59505148835111599], [0.069536118226759314, 0.99811334424129861, 0.45374232819065852, -0.33402980252348935], [0.43760248978614347, -0.19904906666925259, -0.7882022134905986, -0.082680693938014471]], [[-0.71591504696031172, 0.60484151747213377, -0.93307268942836163, 0.56587975826783032], [0.86599225417952175, -0.25371687247719499, 0.35010513899659323, 0.87149021307851582], [0.67747548970568472, -0.88681093776877362, 0.92515472388692421, 0.86913096121478972]]], [[[-0.52366880386216152, 0.82344423657223209, 0.26913922353373909, -0.34111415773856146], [0.50273314032539296, 0.58269243851260377, 0.95797032613915278, 0.19864109290731968], [-0.97431626128799009, 0.42434532984991713, 0.14335377279814132, -0.66915292104013568]], [[-0.33166570371753346, 0.032358507047952623, -0.67786155293815686, -0.93816498910878932], [0.20790849876514783, 0.53581063584175204, -0.069286880997705413, -0.93272841004996776], [-0.79913201135173084, -0.11062579251708482, -0.31293477845041284, -0.86451828989102331]]], [[[0.77387968120402162, 0.78894667886635039, 0.40442752879506472, -0.92685000952569352], [0.31688048445289541, -0.0059031014227473033, -0.099614279304440556, 0.58742793340853217], [-0.4274257220012434, 0.33517925091190692, 0.36607972859673787, 0.99889872122706813]], [[-0.20018638128390887, 0.59736816863175624, -0.37530716252853646, -0.77848082905042659], [0.48700042671809918, 0.54261968016751028, -0.0024921982843681967, -0.40430306778837388], [0.27038329607724232, 0.24397833296585514, -0.14780775183372574, 0.047581284322311124]]]]),self.functionspace)
15055          arg1.setTaggedValue(1,numarray.array([[[[0.39416800876734559, 0.99014338653708278, 0.15903122923314017, -0.35839797282431118], [0.40558089757631177, 0.8025581070129495, -0.35878538018143313, 0.93333384290537746], [0.40133276352205427, -0.015044367001857184, -0.28582498369942133, 0.18779258589737369]], [[-0.016090078310134093, 0.21616355497575501, 0.49426732010846619, -0.30892878282542413], [0.89875385300581434, -0.2868551786584046, -0.55731671132643945, -0.44660017090531134], [0.18137885565777268, -0.11848520809481, -0.28913384022425448, -0.64033385839366574]]], [[[0.45571924402024222, 0.21473831724468928, 0.42864453842635308, 0.5223409639104557], [0.65325121860405, -0.8057567709966591, 0.45127248421604627, 0.28175869398807385], [0.54569449100623868, -0.32032205858278262, 0.91593090123037246, 0.58863408387256055]], [[-0.42467124696344771, 0.9101396153519079, -0.79865017526445303, 0.70425425954435106], [-0.20695890594024746, -0.67163190975173648, -0.23733882318159805, 0.53689843977592844], [0.10995989031814291, 0.46119956351074332, 0.34819273977962717, -0.75598125930932247]]], [[[-0.56665623717604463, -0.17224727213003233, 0.053415864384508627, -0.050592664933241771], [0.51015093886792817, -0.9754302705114164, 0.091870806978513242, 0.41755275851280671], [0.19511977812160053, -0.97855216381010446, -0.90245021466194242, -0.40345947249795566]], [[-0.92403115745746733, 0.54858218537017089, -0.4822958075473629, -0.53222278948330182], [-0.4472614626168665, 0.89424670938908868, 0.10917902674712177, 0.98847119270078121], [-0.61871843988925113, 0.4910058506238939, -0.6899594042743955, 0.049800633462321109]]]]))
15056          res=minimum(arg0,arg1)
15057          ref=Data(numarray.array([[[[-0.82936405041301198, -0.79396490383160967, 0.37413578645680068, -0.59505148835111599], [0.069536118226759314, 0.55433955587666683, -0.83248342605335224, -0.33402980252348935], [-0.13594783805294353, -0.58220301976404976, -0.7882022134905986, -0.33429954370388071]], [[-0.71591504696031172, 0.58012236136665196, -0.93307268942836163, 0.56587975826783032], [0.70737919697043994, -0.94790815752100333, -0.6965481922929313, -0.10988610634726115], [0.42600259185457467, -0.88681093776877362, 0.34992874815030905, -0.1431861373350618]]], [[[-0.52366880386216152, 0.69406359516293459, -0.41311122847738813, -0.34111415773856146], [0.50273314032539296, -0.96503623119960991, -0.23089539183725338, 0.19864109290731968], [-0.97431626128799009, 0.42434532984991713, 0.14335377279814132, -0.66915292104013568]], [[-0.602588623382597, -0.20927787345329585, -0.67786155293815686, -0.93816498910878932], [0.20790849876514783, 0.53581063584175204, -0.26378576746521953, -0.96197872690176855], [-0.79913201135173084, -0.11062579251708482, -0.31293477845041284, -0.86451828989102331]]], [[[-0.93313898366342074, 0.59672302663341048, 0.40442752879506472, -0.92685000952569352], [0.26877702315015761, -0.95424920677748548, -0.099614279304440556, -0.033322171153286062], [-0.4274257220012434, 0.17674457482801187, 0.36607972859673787, -0.96309807860029184]], [[-0.64718507871800468, -0.72384145624825158, -0.44945623150692637, -0.77848082905042659], [-0.2159683668777399, -0.7833017421119941, -0.0024921982843681967, -0.40430306778837388], [-0.66944198289298384, 0.24397833296585514, -0.14780775183372574, -0.36823506607666356]]]]),self.functionspace)
15058          ref.setTaggedValue(1,numarray.array([[[[-0.82936405041301198, -0.79396490383160967, 0.15903122923314017, -0.35839797282431118], [0.40558089757631177, 0.55433955587666683, -0.83248342605335224, -0.28702074227398566], [-0.13594783805294353, -0.58220301976404976, -0.28582498369942133, -0.33429954370388071]], [[-0.016090078310134093, 0.21616355497575501, 0.49426732010846619, -0.30892878282542413], [0.70737919697043994, -0.94790815752100333, -0.6965481922929313, -0.44660017090531134], [0.18137885565777268, -0.11848520809481, -0.28913384022425448, -0.64033385839366574]]], [[[-0.50292196020669744, 0.21473831724468928, -0.41311122847738813, 0.086707933043925989], [0.62081477697702314, -0.96503623119960991, -0.23089539183725338, 0.28175869398807385], [-0.38852475730206293, -0.32032205858278262, 0.54052477597763926, 0.25342473949324718]], [[-0.602588623382597, -0.20927787345329585, -0.79865017526445303, 0.32544187840330063], [-0.20695890594024746, -0.67163190975173648, -0.26378576746521953, -0.96197872690176855], [0.093503831128672665, 0.29518020570069381, 0.34819273977962717, -0.75598125930932247]]], [[[-0.93313898366342074, -0.17224727213003233, 0.053415864384508627, -0.56702462819811239], [0.26877702315015761, -0.9754302705114164, 0.091870806978513242, -0.033322171153286062], [-0.014658844772328594, -0.97855216381010446, -0.90245021466194242, -0.96309807860029184]], [[-0.92403115745746733, -0.72384145624825158, -0.4822958075473629, -0.53222278948330182], [-0.4472614626168665, -0.7833017421119941, 0.10917902674712177, -0.32095554899946199], [-0.66944198289298384, 0.4910058506238939, -0.6899594042743955, -0.36823506607666356]]]]))
15059          self.failUnless(isinstance(res,Data),"wrong type of result.")
15060          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
15061          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15062       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15063       def test_minimum_Symbol_rank0_taggedData_rank0(self):
15064          arg0=Symbol(shape=())
15065          arg1=Data(0.167399301207,self.functionspace)
15066          arg1.setTaggedValue(1,0.355383878773)
15067          res=minimum(arg0,arg1)
15068          s0=numarray.array(-0.50130968572)
15069          sub=res.substitute({arg0:s0})
15070          ref=Data(-0.50130968572,self.functionspace)
15071          ref.setTaggedValue(1,-0.50130968572)
15072          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
15073          self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
15074          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15075       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15076       def test_minimum_Symbol_rank1_taggedData_rank0(self):
15077          arg0=Symbol(shape=(2,))
15078          arg1=Data(-0.404711674999,self.functionspace)
15079          arg1.setTaggedValue(1,-0.804814270867)
15080          res=minimum(arg0,arg1)
15081          s0=numarray.array([-0.2364030739504388, -0.017885499447197306])
15082          sub=res.substitute({arg0:s0})
15083          ref=Data(numarray.array([-0.40471167499911109, -0.40471167499911109]),self.functionspace)
15084          ref.setTaggedValue(1,numarray.array([-0.80481427086677693, -0.80481427086677693]))
15085          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
15086          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
15087          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15088       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15089       def test_minimum_Symbol_rank2_taggedData_rank0(self):
15090          arg0=Symbol(shape=(4, 5))
15091          arg1=Data(0.290293178116,self.functionspace)
15092          arg1.setTaggedValue(1,0.391750819703)
15093          res=minimum(arg0,arg1)
15094          s0=numarray.array([[-0.80064553715829367, -0.49633305928220817, -0.75663285709240857, 0.89021835592689746, 0.082323003146398621], [-0.45842575957439791, -0.066217547885058847, -0.71975945947543551, 0.037110767416837387, 0.54003745097719147], [-0.92608737081161774, -0.46805017463189125, 0.56016243033501456, -0.48135220969486103, -0.91185430047886884], [-0.49224792931659622, 0.78165755477605381, -0.1235536989206365, -0.4576368520951648, 0.32949575117788177]])
15095          sub=res.substitute({arg0:s0})
15096          ref=Data(numarray.array([[-0.80064553715829367, -0.49633305928220817, -0.75663285709240857, 0.2902931781159388, 0.082323003146398621], [-0.45842575957439791, -0.066217547885058847, -0.71975945947543551, 0.037110767416837387, 0.2902931781159388], [-0.92608737081161774, -0.46805017463189125, 0.2902931781159388, -0.48135220969486103, -0.91185430047886884], [-0.49224792931659622, 0.2902931781159388, -0.1235536989206365, -0.4576368520951648, 0.2902931781159388]]),self.functionspace)
15097          ref.setTaggedValue(1,numarray.array([[-0.80064553715829367, -0.49633305928220817, -0.75663285709240857, 0.39175081970322867, 0.082323003146398621], [-0.45842575957439791, -0.066217547885058847, -0.71975945947543551, 0.037110767416837387, 0.39175081970322867], [-0.92608737081161774, -0.46805017463189125, 0.39175081970322867, -0.48135220969486103, -0.91185430047886884], [-0.49224792931659622, 0.39175081970322867, -0.1235536989206365, -0.4576368520951648, 0.32949575117788177]]))
15098          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
15099          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
15100          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15101       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15102       def test_minimum_Symbol_rank3_taggedData_rank0(self):
15103          arg0=Symbol(shape=(6, 2, 2))
15104          arg1=Data(-0.88220115781,self.functionspace)
15105          arg1.setTaggedValue(1,0.544065096791)
15106          res=minimum(arg0,arg1)
15107          s0=numarray.array([[[0.69247147083019156, 0.059207865474831589], [-0.37251971058227995, -0.95630645192683916]], [[-0.96461758014157262, -0.25416053485315637], [0.58789180616255488, 0.33679196991155913]], [[0.96511971124430418, -0.024410807266803447], [-0.4811837746581038, 0.099791083601168618]], [[0.047502013355577688, 0.2598517164259404], [-0.94918079294884095, -0.27060625072133249]], [[-0.36317478653858082, -0.18688085964935475], [0.88380278685249247, 0.2427517438244513]], [[0.36258714542371706, 0.23603702250633463], [-0.1558170417889384, -0.93783631315383786]]])
15108          sub=res.substitute({arg0:s0})
15109          ref=Data(numarray.array([[[-0.8822011578101725, -0.8822011578101725], [-0.8822011578101725, -0.95630645192683916]], [[-0.96461758014157262, -0.8822011578101725], [-0.8822011578101725, -0.8822011578101725]], [[-0.8822011578101725, -0.8822011578101725], [-0.8822011578101725, -0.8822011578101725]], [[-0.8822011578101725, -0.8822011578101725], [-0.94918079294884095, -0.8822011578101725]], [[-0.8822011578101725, -0.8822011578101725], [-0.8822011578101725, -0.8822011578101725]], [[-0.8822011578101725, -0.8822011578101725], [-0.8822011578101725, -0.93783631315383786]]]),self.functionspace)
15110          ref.setTaggedValue(1,numarray.array([[[0.54406509679091419, 0.059207865474831589], [-0.37251971058227995, -0.95630645192683916]], [[-0.96461758014157262, -0.25416053485315637], [0.54406509679091419, 0.33679196991155913]], [[0.54406509679091419, -0.024410807266803447], [-0.4811837746581038, 0.099791083601168618]], [[0.047502013355577688, 0.2598517164259404], [-0.94918079294884095, -0.27060625072133249]], [[-0.36317478653858082, -0.18688085964935475], [0.54406509679091419, 0.2427517438244513]], [[0.36258714542371706, 0.23603702250633463], [-0.1558170417889384, -0.93783631315383786]]]))
15111          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
15112          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
15113          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15114       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15115       def test_minimum_Symbol_rank4_taggedData_rank0(self):
15116          arg0=Symbol(shape=(3, 2, 3, 4))
15117          arg1=Data(-0.454807720801,self.functionspace)
15118          arg1.setTaggedValue(1,-0.808190235477)
15119          res=minimum(arg0,arg1)
15120          s0=numarray.array([[[[0.60870617508262814, 0.75119907330804292, 0.62974331023165608, -0.57439939504332083], [0.86793634862407454, -0.082379204819952312, 0.14331876271791044, 0.750489523086455], [0.2391486238554108, 0.99100173189604379, -0.50565716464621735, -0.36413732419567735]], [[-0.44417469971360313, -0.022327152243068804, -0.39830801035558561, 0.62447244619424302], [-0.077419105085472228, -0.89272478135657818, -0.18807674636842409, -0.83917942203142837], [0.66392806469804033, 0.55874445162754216, 0.82528439406448673, 0.74824658295026403]]], [[[-0.93897375020480789, -0.87534950234717801, 0.48241579060373696, -0.6087020611861409], [0.54552613855591514, -0.15240255837781946, -0.095598355608322194, -0.85589404498444699], [0.023547949136817792, -0.069154823226686979, -0.64487985339353626, 0.88231597058582056]], [[-0.81840522199867149, -0.48431786763250884, 0.59637951357382768, -0.21219416417705284], [0.7309944716090746, 0.092711111384004452, 0.064695655711220379, 0.19680141038480614], [-0.20989522762917323, -0.61523639696782828, 0.35945670946873043, -0.95748010097210368]]], [[[0.58283433157541964, -0.34318142286701914, -0.46519942563409122, -0.96168406488721914], [-0.69884196113951824, -0.46796402107018209, 0.29158103850379669, 0.94760175549882253], [0.224803474938716, 0.8400831781569591, 0.081018534373029638, 0.28058299762293948]], [[-0.90464266689978778, -0.1673841429678109, 0.62663179487983456, -0.079833731102115113], [-0.68193640244447296, 0.74185590703439375, -0.96668357379632308, -0.53184705206640115], [0.55129086455018528, -0.67984339691239204, 0.83241532426675158, -0.23972499135911574]]]])
15121          sub=res.substitute({arg0:s0})
15122          ref=Data(numarray.array([[[[-0.45480772080141918, -0.45480772080141918, -0.45480772080141918, -0.57439939504332083], [-0.45480772080141918, -0.45480772080141918, -0.45480772080141918, -0.45480772080141918], [-0.45480772080141918, -0.45480772080141918, -0.50565716464621735, -0.45480772080141918]], [[-0.45480772080141918, -0.45480772080141918, -0.45480772080141918, -0.45480772080141918], [-0.45480772080141918, -0.89272478135657818, -0.45480772080141918, -0.83917942203142837], [-0.45480772080141918, -0.45480772080141918, -0.45480772080141918, -0.45480772080141918]]], [[[-0.93897375020480789, -0.87534950234717801, -0.45480772080141918, -0.6087020611861409], [-0.45480772080141918, -0.45480772080141918, -0.45480772080141918, -0.85589404498444699], [-0.45480772080141918, -0.45480772080141918, -0.64487985339353626, -0.45480772080141918]], [[-0.81840522199867149, -0.48431786763250884, -0.45480772080141918, -0.45480772080141918], [-0.45480772080141918, -0.45480772080141918, -0.45480772080141918, -0.45480772080141918], [-0.45480772080141918, -0.61523639696782828, -0.45480772080141918, -0.95748010097210368]]], [[[-0.45480772080141918, -0.45480772080141918, -0.46519942563409122, -0.96168406488721914], [-0.69884196113951824, -0.46796402107018209, -0.45480772080141918, -0.45480772080141918], [-0.45480772080141918, -0.45480772080141918, -0.45480772080141918, -0.45480772080141918]], [[-0.90464266689978778, -0.45480772080141918, -0.45480772080141918, -0.45480772080141918], [-0.68193640244447296, -0.45480772080141918, -0.96668357379632308, -0.53184705206640115], [-0.45480772080141918, -0.67984339691239204, -0.45480772080141918, -0.45480772080141918]]]]),self.functionspace)
15123          ref.setTaggedValue(1,numarray.array([[[[-0.80819023547683844, -0.80819023547683844, -0.80819023547683844, -0.80819023547683844], [-0.80819023547683844, -0.80819023547683844, -0.80819023547683844, -0.80819023547683844], [-0.80819023547683844, -0.80819023547683844, -0.80819023547683844, -0.80819023547683844]], [[-0.80819023547683844, -0.80819023547683844, -0.80819023547683844, -0.80819023547683844], [-0.80819023547683844, -0.89272478135657818, -0.80819023547683844, -0.83917942203142837], [-0.80819023547683844, -0.80819023547683844, -0.80819023547683844, -0.80819023547683844]]], [[[-0.93897375020480789, -0.87534950234717801, -0.80819023547683844, -0.80819023547683844], [-0.80819023547683844, -0.80819023547683844, -0.80819023547683844, -0.85589404498444699], [-0.80819023547683844, -0.80819023547683844, -0.80819023547683844, -0.80819023547683844]], [[-0.81840522199867149, -0.80819023547683844, -0.80819023547683844, -0.80819023547683844], [-0.80819023547683844, -0.80819023547683844, -0.80819023547683844, -0.80819023547683844], [-0.80819023547683844, -0.80819023547683844, -0.80819023547683844, -0.95748010097210368]]], [[[-0.80819023547683844, -0.80819023547683844, -0.80819023547683844, -0.96168406488721914], [-0.80819023547683844, -0.80819023547683844, -0.80819023547683844, -0.80819023547683844], [-0.80819023547683844, -0.80819023547683844, -0.80819023547683844, -0.80819023547683844]], [[-0.90464266689978778, -0.80819023547683844, -0.80819023547683844, -0.80819023547683844], [-0.80819023547683844, -0.80819023547683844, -0.96668357379632308, -0.80819023547683844], [-0.80819023547683844, -0.80819023547683844, -0.80819023547683844, -0.80819023547683844]]]]))
15124          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
15125          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
15126          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15127       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15128       def test_minimum_Symbol_rank0_taggedData_rank1(self):
15129          arg0=Symbol(shape=())
15130          arg1=Data(numarray.array([0.5266549796109723, -0.89672452724875451]),self.functionspace)
15131          arg1.setTaggedValue(1,numarray.array([-0.3726102523560515, -0.55977771941452881]))
15132          res=minimum(arg0,arg1)
15133          s0=numarray.array(-0.86791221191)
15134          sub=res.substitute({arg0:s0})
15135          ref=Data(numarray.array([-0.86791221191017054, -0.89672452724875451]),self.functionspace)
15136          ref.setTaggedValue(1,numarray.array([-0.86791221191017054, -0.86791221191017054]))
15137          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
15138          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
15139          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15140       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15141       def test_minimum_Symbol_rank1_taggedData_rank1(self):
15142          arg0=Symbol(shape=(2,))
15143          arg1=Data(numarray.array([0.51757799044247843, -0.93303185333137995]),self.functionspace)
15144          arg1.setTaggedValue(1,numarray.array([0.13979195405197786, 0.9743045143969522]))
15145          res=minimum(arg0,arg1)
15146          s0=numarray.array([-0.59564075725847387, -0.71591664079644235])
15147          sub=res.substitute({arg0:s0})
15148          ref=Data(numarray.array([-0.59564075725847387, -0.93303185333137995]),self.functionspace)
15149          ref.setTaggedValue(1,numarray.array([-0.59564075725847387, -0.71591664079644235]))
15150          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
15151          self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
15152          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15153       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15154       def test_minimum_Symbol_rank0_taggedData_rank2(self):
15155          arg0=Symbol(shape=())
15156          arg1=Data(numarray.array([[-0.39860312843328427, -0.80317475718836828, 0.75929821918932494, -0.52604646327778171, 0.91276496855781031], [-0.69092299935004498, 0.47305925145278604, 0.70335899394289414, -0.88878009731391816, 0.67662182355018641], [0.11557032362099218, -0.20001787393791037, -0.88565266741438009, 0.99346611557397391, -0.31872103674971042], [0.17074846382815334, -0.60046489481816634, 0.44003389194686293, -0.93447737281431498, -0.052559702754530813]]),self.functionspace)
15157          arg1.setTaggedValue(1,numarray.array([[0.58701216646000676, -0.036092480734188248, -0.27358868262499958, 0.60664430729101482, -0.022372560737456304], [-0.85817393598395175, 0.5496481740138055, -0.51473038059840603, 0.34115964642738206, -0.58400916981377793], [0.48962946479925473, 0.65679895787798714, -0.021753402410445988, -0.060618902736758518, -0.13286393169036836], [0.58359859868547859, 0.61518306731860517, 0.41765058968581248, 0.43791873007541882, 0.11279754959920685]]))
15158          res=minimum(arg0,arg1)
15159          s0=numarray.array(-0.0366442908073)
15160          sub=res.substitute({arg0:s0})
15161          ref=Data(numarray.array([[-0.39860312843328427, -0.80317475718836828, -0.036644290807349877, -0.52604646327778171, -0.036644290807349877], [-0.69092299935004498, -0.036644290807349877, -0.036644290807349877, -0.88878009731391816, -0.036644290807349877], [-0.036644290807349877, -0.20001787393791037, -0.88565266741438009, -0.036644290807349877, -0.31872103674971042], [-0.036644290807349877, -0.60046489481816634, -0.036644290807349877, -0.93447737281431498, -0.052559702754530813]]),self.functionspace)
15162          ref.setTaggedValue(1,numarray.array([[-0.036644290807349877, -0.036644290807349877, -0.27358868262499958, -0.036644290807349877, -0.036644290807349877], [-0.85817393598395175, -0.036644290807349877, -0.51473038059840603, -0.036644290807349877, -0.58400916981377793], [-0.036644290807349877, -0.036644290807349877, -0.036644290807349877, -0.060618902736758518, -0.13286393169036836], [-0.036644290807349877, -0.036644290807349877, -0.036644290807349877, -0.036644290807349877, -0.036644290807349877]]))
15163          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
15164          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
15165          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
15166       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15167       def test_minimum_Symbol_rank2_taggedData_rank2(self):
15168          arg0=Symbol(shape=(4, 5))
15169          arg1=Data(numarray.array([[0.81531245499152671, -0.88600054537406958, 0.32756439299945961, 0.32378736494968474, 0.34563842040435389], [-0.84450934073732808, 0.48988560791008795, 0.23689718754449118, 0.11600800788474452, 0.3856357383202742], [0.3398565068672208, -0.024085796211296806, -0.48446646231774659, -0.84768216078308622, -0.41729916697923253], [0.2362688789889491, -0.61087632064287711, -0.34321925053169022, -0.92645709785459673, -0.36525570848512445]]),self.functionspace)
15170          arg1.setTaggedValue(1,numarray.array([[0.72101289841491401, -0.13293642319718457, 0.18932568640227809, -0.28490890133151758, -0.60597543012035038], [-0.5611380720383341, -0.32466593381962694, -0.50672418700606836, 0.55317286384433317, -0.38958212584508578], [-0.0025869972170868838, -0.94655320359106865, -0.24569913688925826, -0.85503828568173912, -0.71424535571948189], [-0.14176675364606295, 0.99650000053104537, 0.1090075071354164, -0.46985302720045241, 0.12616442886687973]]))
15171          res=minimum(arg0,arg1)
15172          s0=numarray.array([[-0.1410971101352807, -0.19914043881104293, 0.20242548334736443, 0.76886855618183869, 0.99521055901818456], [0.90000265973521487, 0.70716351813682921, 0.0079231636191474664, -0.90883262420546052, 0.65196573915155209], [0.31824130780091275, 0.13509152424545889, 0.96977098691858066, 0.71892742326008685, 0.77181980234583514], [-0.084692586451538876, 0.26572688539373468, -0.046489270872921651, -0.53899221646927642, 0.73446001741335865]])
15173          sub=res.substitute({arg0:s0})
15174          ref=Data(numarray.array([[-0.1410971101352807, -0.88600054537406958, 0.20242548334736443, 0.32378736494968474, 0.34563842040435389], [-0.84450934073732808, 0.48988560791008795, 0.0079231636191474664, -0.90883262420546052, 0.3856357383202742], [0.31824130780091275, -0.024085796211296806, -0.48446646231774659, -0.84768216078308622, -0.41729916697923253], [-0.084692586451538876, -0.61087632064287711, -0.34321925053169022, -0.92645709785459673, -0.36525570848512445]]),self.functionspace)