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

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

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

trunk/escript/py_src/test_util_binary_with_tagged_data.py revision 396 by gross, Wed Dec 21 05:08:25 2005 UTC temp_trunk_copy/escript/test/python/test_util_binary_with_tagged_data.py revision 1384 by phornby, Fri Jan 11 02:29:38 2008 UTC
# Line 1  Line 1 
1  # $Id:$  #
2    # $Id$
3    #
4    #######################################################
5    #
6    #           Copyright 2003-2007 by ACceSS MNRF
7    #       Copyright 2007 by University of Queensland
8    #
9    #                http://esscc.uq.edu.au
10    #        Primary Business: Queensland, Australia
11    #  Licensed under the Open Software License version 3.0
12    #     http://www.opensource.org/licenses/osl-3.0.php
13    #
14    #######################################################
15    #
16    
17  """  """
18  test for binary operations with tagged data  test for binary operations with tagged data
19    
20  @remark: use see L{test_util}  @remark: use see L{test_util}
21  @var __author__: name of author  @var __author__: name of author
22  @var __licence__: licence agreement  @var __copyright__: copyrights
23    @var __license__: licence agreement
24  @var __url__: url entry point on documentation  @var __url__: url entry point on documentation
25  @var __version__: version  @var __version__: version
26  @var __date__: date of the version  @var __date__: date of the version
27  """  """
28    
29  __author__="Lutz Gross, l.gross@uq.edu.au"  __author__="Lutz Gross, l.gross@uq.edu.au"
30  __licence__="contact: esys@access.uq.edu.au"  __copyright__="""  Copyright (c) 2006 by ACcESS MNRF
31                        http://www.access.edu.au
32                    Primary Business: Queensland, Australia"""
33    __license__="""Licensed under the Open Software License version 3.0
34                 http://www.opensource.org/licenses/osl-3.0.php"""
35  __url__="http://www.iservo.edu.au/esys/escript"  __url__="http://www.iservo.edu.au/esys/escript"
36  __version__="$Revision:$"  __version__="$Revision$"
37  __date__="$Date:$"  __date__="$Date$"
38    
39  import unittest  import unittest
40  import numarray  import numarray
41  from esys.escript import *  from esys.escript import *
42  from esys.escript.test_util_base import Test_util_base  from test_util_base import Test_util_base
43    
44  class Test_util_binary_with_tagged_data(Test_util_base):  class Test_util_binary_with_tagged_data(Test_util_base):
45     """     """
# Line 1539  class Test_util_binary_with_tagged_data( Line 1559  class Test_util_binary_with_tagged_data(
1559     def test_add_taggedData_rank0_expandedData_rank0(self):     def test_add_taggedData_rank0_expandedData_rank0(self):
1560        arg0=Data(2.40692128115,self.functionspace)        arg0=Data(2.40692128115,self.functionspace)
1561        arg0.setTaggedValue(1,4.58276710489)        arg0.setTaggedValue(1,4.58276710489)
1562        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1563        arg1=msk_arg1*(-2.06978776562)+(1.-msk_arg1)*(0.778812640117)        arg1=msk_arg1*(-2.06978776562)+(1.-msk_arg1)*(0.778812640117)
1564        res=add(arg0,arg1)        res=add(arg0,arg1)
1565        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1566        ref=msk_ref*(0.337133515531)+(1.-msk_ref)*(5.36157974501)        ref=msk_ref*(0.337133515531)+(1.-msk_ref)*(5.36157974501)
1567        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1568        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
# Line 1551  class Test_util_binary_with_tagged_data( Line 1571  class Test_util_binary_with_tagged_data(
1571     def test_add_taggedData_rank1_expandedData_rank0(self):     def test_add_taggedData_rank1_expandedData_rank0(self):
1572        arg0=Data(numarray.array([-1.0651205752714632, 2.1384003461483179]),self.functionspace)        arg0=Data(numarray.array([-1.0651205752714632, 2.1384003461483179]),self.functionspace)
1573        arg0.setTaggedValue(1,numarray.array([-1.42018205492516, -3.4426214861294966]))        arg0.setTaggedValue(1,numarray.array([-1.42018205492516, -3.4426214861294966]))
1574        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1575        arg1=msk_arg1*(0.308744697483)+(1.-msk_arg1)*(3.91018914097)        arg1=msk_arg1*(0.308744697483)+(1.-msk_arg1)*(3.91018914097)
1576        res=add(arg0,arg1)        res=add(arg0,arg1)
1577        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1578        ref=msk_ref*numarray.array([-0.75637587778864424, 2.4471450436311368])+(1.-msk_ref)*numarray.array([2.4900070860419756, 0.46756765483763907])        ref=msk_ref*numarray.array([-0.75637587778864424, 2.4471450436311368])+(1.-msk_ref)*numarray.array([2.4900070860419756, 0.46756765483763907])
1579        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1580        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 1563  class Test_util_binary_with_tagged_data( Line 1583  class Test_util_binary_with_tagged_data(
1583     def test_add_taggedData_rank0_expandedData_rank1(self):     def test_add_taggedData_rank0_expandedData_rank1(self):
1584        arg0=Data(-4.0082096112,self.functionspace)        arg0=Data(-4.0082096112,self.functionspace)
1585        arg0.setTaggedValue(1,0.917767997361)        arg0.setTaggedValue(1,0.917767997361)
1586        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1587        arg1=msk_arg1*numarray.array([-3.3713834314617475, 1.017232070729488])+(1.-msk_arg1)*numarray.array([-3.8808274420324205, 0.92821535530986488])        arg1=msk_arg1*numarray.array([-3.3713834314617475, 1.017232070729488])+(1.-msk_arg1)*numarray.array([-3.8808274420324205, 0.92821535530986488])
1588        res=add(arg0,arg1)        res=add(arg0,arg1)
1589        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1590        ref=msk_ref*numarray.array([-7.3795930426576035, -2.9909775404663677])+(1.-msk_ref)*numarray.array([-2.9630594446713605, 1.8459833526709248])        ref=msk_ref*numarray.array([-7.3795930426576035, -2.9909775404663677])+(1.-msk_ref)*numarray.array([-2.9630594446713605, 1.8459833526709248])
1591        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1592        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 1575  class Test_util_binary_with_tagged_data( Line 1595  class Test_util_binary_with_tagged_data(
1595     def test_add_taggedData_rank2_expandedData_rank0(self):     def test_add_taggedData_rank2_expandedData_rank0(self):
1596        arg0=Data(numarray.array([[0.67401962620985501, 4.1827648743701822, 1.7509259177107399, 0.44328298213616701, 1.4207715774664091], [4.5200859098820789, -3.64665489230822, 3.5841077702985675, -2.9934230610347434, 4.4891762896806107], [-2.0314111638933188, 1.4526276762488912, -2.3947030233101909, -3.6905650655437814, -1.5113228975530788], [-3.0024609503808088, 1.6765951721290726, -4.4352094596972078, -1.2692745556551133, -4.8647863341411366]]),self.functionspace)        arg0=Data(numarray.array([[0.67401962620985501, 4.1827648743701822, 1.7509259177107399, 0.44328298213616701, 1.4207715774664091], [4.5200859098820789, -3.64665489230822, 3.5841077702985675, -2.9934230610347434, 4.4891762896806107], [-2.0314111638933188, 1.4526276762488912, -2.3947030233101909, -3.6905650655437814, -1.5113228975530788], [-3.0024609503808088, 1.6765951721290726, -4.4352094596972078, -1.2692745556551133, -4.8647863341411366]]),self.functionspace)
1597        arg0.setTaggedValue(1,numarray.array([[2.0437038696735339, 4.5607480041573538, 0.3735923264912886, 1.6561603607770872, 1.1696963326749863], [-0.087349912436516242, -3.2010086908343949, -0.12372987702575688, -0.39700575714796127, 0.8867768203345392], [-1.0471888644804062, -0.29523751359826189, 2.5149267515122027, -0.096808973389962638, 2.1347390058976634], [-2.5807107459930534, 2.8862199540578706, -2.2754772896832334, 1.8507983293878887, 3.1992918934731733]]))        arg0.setTaggedValue(1,numarray.array([[2.0437038696735339, 4.5607480041573538, 0.3735923264912886, 1.6561603607770872, 1.1696963326749863], [-0.087349912436516242, -3.2010086908343949, -0.12372987702575688, -0.39700575714796127, 0.8867768203345392], [-1.0471888644804062, -0.29523751359826189, 2.5149267515122027, -0.096808973389962638, 2.1347390058976634], [-2.5807107459930534, 2.8862199540578706, -2.2754772896832334, 1.8507983293878887, 3.1992918934731733]]))
1598        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1599        arg1=msk_arg1*(2.98640490902)+(1.-msk_arg1)*(-1.76910188099)        arg1=msk_arg1*(2.98640490902)+(1.-msk_arg1)*(-1.76910188099)
1600        res=add(arg0,arg1)        res=add(arg0,arg1)
1601        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1602        ref=msk_ref*numarray.array([[3.6604245352266815, 7.1691697833870087, 4.7373308267275664, 3.4296878911529936, 4.4071764864832357], [7.5064908188989055, -0.66024998329139351, 6.5705126793153941, -0.0070181520179168899, 7.4755811986974372], [0.95499374512350776, 4.4390325852657178, 0.59170188570663562, -0.70416015652695485, 1.4750820114637477], [-0.01605604136398231, 4.6630000811458991, -1.4488045506803813, 1.7171303533617133, -1.8783814251243101]])+(1.-msk_ref)*numarray.array([[0.27460198868326824, 2.7916461231670882, -1.3955095544989771, -0.11294152021317849, -0.59940554831527937], [-1.8564517934267819, -4.9701105718246605, -1.8928317580160225, -2.1661076381382269, -0.88232506065572647], [-2.8162907454706718, -2.0643393945885276, 0.74582487052193702, -1.8659108543802283, 0.36563712490739775], [-4.3498126269833186, 1.1171180730676049, -4.044579170673499, 0.081696448397623023, 1.4301900124829077]])        ref=msk_ref*numarray.array([[3.6604245352266815, 7.1691697833870087, 4.7373308267275664, 3.4296878911529936, 4.4071764864832357], [7.5064908188989055, -0.66024998329139351, 6.5705126793153941, -0.0070181520179168899, 7.4755811986974372], [0.95499374512350776, 4.4390325852657178, 0.59170188570663562, -0.70416015652695485, 1.4750820114637477], [-0.01605604136398231, 4.6630000811458991, -1.4488045506803813, 1.7171303533617133, -1.8783814251243101]])+(1.-msk_ref)*numarray.array([[0.27460198868326824, 2.7916461231670882, -1.3955095544989771, -0.11294152021317849, -0.59940554831527937], [-1.8564517934267819, -4.9701105718246605, -1.8928317580160225, -2.1661076381382269, -0.88232506065572647], [-2.8162907454706718, -2.0643393945885276, 0.74582487052193702, -1.8659108543802283, 0.36563712490739775], [-4.3498126269833186, 1.1171180730676049, -4.044579170673499, 0.081696448397623023, 1.4301900124829077]])
1603        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1604        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 1587  class Test_util_binary_with_tagged_data( Line 1607  class Test_util_binary_with_tagged_data(
1607     def test_add_taggedData_rank0_expandedData_rank2(self):     def test_add_taggedData_rank0_expandedData_rank2(self):
1608        arg0=Data(-2.09922320047,self.functionspace)        arg0=Data(-2.09922320047,self.functionspace)
1609        arg0.setTaggedValue(1,1.64059634833)        arg0.setTaggedValue(1,1.64059634833)
1610        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1611        arg1=msk_arg1*numarray.array([[-4.2020895674539691, -2.345768731957846, -3.7074409583190562, -0.71521944725161379, -3.3640402563820579], [-1.7696027784365018, -3.4575886399054778, -3.7784924455220361, 4.5197118566402601, 2.5467556106695346], [-1.433776798150145, -4.4622491780247495, -0.98347669852342356, 0.5673119164503948, 2.110260889711002], [4.4384181603926471, -3.2913761250163374, -0.073340094828859392, 0.44063707211639702, -3.1146360546364282]])+(1.-msk_arg1)*numarray.array([[0.3031423747994042, 3.3478589149891516, 1.8587177847647283, -1.7211223527770492, 2.0597595776378927], [0.3970529567645773, 4.4385663060231355, -3.9887108857146245, 4.6935511803852812, -0.98209565437719171], [0.82555824137784306, 3.4665289912733339, -0.5871095332614642, -0.55502381053032845, -1.4084959834101785], [-3.7439832279461771, 2.6476350330003182, 4.4669592247750849, 3.56587863113241, 0.66006587264770733]])        arg1=msk_arg1*numarray.array([[-4.2020895674539691, -2.345768731957846, -3.7074409583190562, -0.71521944725161379, -3.3640402563820579], [-1.7696027784365018, -3.4575886399054778, -3.7784924455220361, 4.5197118566402601, 2.5467556106695346], [-1.433776798150145, -4.4622491780247495, -0.98347669852342356, 0.5673119164503948, 2.110260889711002], [4.4384181603926471, -3.2913761250163374, -0.073340094828859392, 0.44063707211639702, -3.1146360546364282]])+(1.-msk_arg1)*numarray.array([[0.3031423747994042, 3.3478589149891516, 1.8587177847647283, -1.7211223527770492, 2.0597595776378927], [0.3970529567645773, 4.4385663060231355, -3.9887108857146245, 4.6935511803852812, -0.98209565437719171], [0.82555824137784306, 3.4665289912733339, -0.5871095332614642, -0.55502381053032845, -1.4084959834101785], [-3.7439832279461771, 2.6476350330003182, 4.4669592247750849, 3.56587863113241, 0.66006587264770733]])
1612        res=add(arg0,arg1)        res=add(arg0,arg1)
1613        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1614        ref=msk_ref*numarray.array([[-6.3013127679255065, -4.4449919324293834, -5.8066641587905936, -2.8144426477231512, -5.4632634568535954], [-3.8688259789080393, -5.5568118403770157, -5.8777156459935735, 2.4204886561687227, 0.44753241019799717], [-3.5329999986216825, -6.561472378496287, -3.082699898994961, -1.5319112840211426, 0.011037689239464576], [2.3391949599211097, -5.3905993254878748, -2.1725632953003968, -1.6585861283551404, -5.2138592551079661]])+(1.-msk_ref)*numarray.array([[1.9437387231254837, 4.988455263315231, 3.4993141330908077, -0.08052600445096969, 3.7003559259639722], [2.0376493050906568, 6.079162654349215, -2.348114537388545, 6.3341475287113607, 0.65850069394888777], [2.4661545897039225, 5.1071253395994134, 1.0534868150646153, 1.085572537795751, 0.23210036491590103], [-2.1033868796200976, 4.2882313813263977, 6.1075555731011644, 5.2064749794584895, 2.3006622209737868]])        ref=msk_ref*numarray.array([[-6.3013127679255065, -4.4449919324293834, -5.8066641587905936, -2.8144426477231512, -5.4632634568535954], [-3.8688259789080393, -5.5568118403770157, -5.8777156459935735, 2.4204886561687227, 0.44753241019799717], [-3.5329999986216825, -6.561472378496287, -3.082699898994961, -1.5319112840211426, 0.011037689239464576], [2.3391949599211097, -5.3905993254878748, -2.1725632953003968, -1.6585861283551404, -5.2138592551079661]])+(1.-msk_ref)*numarray.array([[1.9437387231254837, 4.988455263315231, 3.4993141330908077, -0.08052600445096969, 3.7003559259639722], [2.0376493050906568, 6.079162654349215, -2.348114537388545, 6.3341475287113607, 0.65850069394888777], [2.4661545897039225, 5.1071253395994134, 1.0534868150646153, 1.085572537795751, 0.23210036491590103], [-2.1033868796200976, 4.2882313813263977, 6.1075555731011644, 5.2064749794584895, 2.3006622209737868]])
1615        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1616        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 1599  class Test_util_binary_with_tagged_data( Line 1619  class Test_util_binary_with_tagged_data(
1619     def test_add_taggedData_rank3_expandedData_rank0(self):     def test_add_taggedData_rank3_expandedData_rank0(self):
1620        arg0=Data(numarray.array([[[-1.605897259441357, 3.94881452384978], [-1.8860533671835156, -2.6012190195178988]], [[4.7755977356476933, -4.4856983121095766], [1.5860487631292948, 0.65101805660808143]], [[-4.3538332309775267, 0.40099712029606938], [-3.7317939079409959, -2.982003492741585]], [[4.2232180951298908, 0.43337904474882016], [4.5268714262649326, 1.3114911585886277]], [[2.6474354944457854, -0.48318178764324404], [2.6696527681069249, -4.8115177543149477]], [[2.6056920109370285, -4.9512232090336328], [3.273152010677677, -0.84440961293366623]]]),self.functionspace)        arg0=Data(numarray.array([[[-1.605897259441357, 3.94881452384978], [-1.8860533671835156, -2.6012190195178988]], [[4.7755977356476933, -4.4856983121095766], [1.5860487631292948, 0.65101805660808143]], [[-4.3538332309775267, 0.40099712029606938], [-3.7317939079409959, -2.982003492741585]], [[4.2232180951298908, 0.43337904474882016], [4.5268714262649326, 1.3114911585886277]], [[2.6474354944457854, -0.48318178764324404], [2.6696527681069249, -4.8115177543149477]], [[2.6056920109370285, -4.9512232090336328], [3.273152010677677, -0.84440961293366623]]]),self.functionspace)
1621        arg0.setTaggedValue(1,numarray.array([[[2.1545358845995741, 3.9136512923822924], [3.8424341442570267, 4.9866859105393466]], [[3.6710295074191119, 3.4752789118760994], [-4.4479273706346927, 3.0977510626881557]], [[-4.8297624930531304, 0.12440294207382596], [0.3573996532477981, -1.4729927313916304]], [[2.6676813863964233, -3.558457095520092], [-1.7215283910459735, 4.5419901620729988]], [[0.58083963080025036, -0.24729292748733833], [-0.29507259338299452, 0.20417602454225303]], [[-1.3946425203953372, -0.98805004761827497], [4.4076105310242077, 4.5056859388969759]]]))        arg0.setTaggedValue(1,numarray.array([[[2.1545358845995741, 3.9136512923822924], [3.8424341442570267, 4.9866859105393466]], [[3.6710295074191119, 3.4752789118760994], [-4.4479273706346927, 3.0977510626881557]], [[-4.8297624930531304, 0.12440294207382596], [0.3573996532477981, -1.4729927313916304]], [[2.6676813863964233, -3.558457095520092], [-1.7215283910459735, 4.5419901620729988]], [[0.58083963080025036, -0.24729292748733833], [-0.29507259338299452, 0.20417602454225303]], [[-1.3946425203953372, -0.98805004761827497], [4.4076105310242077, 4.5056859388969759]]]))
1622        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1623        arg1=msk_arg1*(-3.10729512126)+(1.-msk_arg1)*(3.27914831931)        arg1=msk_arg1*(-3.10729512126)+(1.-msk_arg1)*(3.27914831931)
1624        res=add(arg0,arg1)        res=add(arg0,arg1)
1625        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1626        ref=msk_ref*numarray.array([[[-4.71319238069783, 0.84151940259330749], [-4.9933484884399881, -5.7085141407743709]], [[1.6683026143912207, -7.5929934333660487], [-1.5212463581271778, -2.4562770646483911]], [[-7.4611283522339988, -2.7062980009604032], [-6.8390890291974689, -6.0892986139980572]], [[1.1159229738734182, -2.6739160765076524], [1.41957630500846, -1.7958039626678448]], [[-0.45985962681068715, -3.5904769088997166], [-0.43764235314954769, -7.9188128755714207]], [[-0.50160311031944405, -8.0585183302901058], [0.16585688942120447, -3.9517047341901388]]])+(1.-msk_ref)*numarray.array([[[5.4336842039093307, 7.192799611692049], [7.1215824635667833, 8.2658342298491032]], [[6.9501778267288685, 6.754427231185856], [-1.1687790513249361, 6.3768993819979123]], [[-1.5506141737433738, 3.4035512613835825], [3.6365479725575547, 1.8061555879181261]], [[5.9468297057061799, -0.27930877621033545], [1.557619928263783, 7.8211384813827554]], [[3.8599879501100069, 3.0318553918224183], [2.9840757259267621, 3.4833243438520096]], [[1.8845057989144194, 2.2910982716914816], [7.6867588503339643, 7.7848342582067325]]])        ref=msk_ref*numarray.array([[[-4.71319238069783, 0.84151940259330749], [-4.9933484884399881, -5.7085141407743709]], [[1.6683026143912207, -7.5929934333660487], [-1.5212463581271778, -2.4562770646483911]], [[-7.4611283522339988, -2.7062980009604032], [-6.8390890291974689, -6.0892986139980572]], [[1.1159229738734182, -2.6739160765076524], [1.41957630500846, -1.7958039626678448]], [[-0.45985962681068715, -3.5904769088997166], [-0.43764235314954769, -7.9188128755714207]], [[-0.50160311031944405, -8.0585183302901058], [0.16585688942120447, -3.9517047341901388]]])+(1.-msk_ref)*numarray.array([[[5.4336842039093307, 7.192799611692049], [7.1215824635667833, 8.2658342298491032]], [[6.9501778267288685, 6.754427231185856], [-1.1687790513249361, 6.3768993819979123]], [[-1.5506141737433738, 3.4035512613835825], [3.6365479725575547, 1.8061555879181261]], [[5.9468297057061799, -0.27930877621033545], [1.557619928263783, 7.8211384813827554]], [[3.8599879501100069, 3.0318553918224183], [2.9840757259267621, 3.4833243438520096]], [[1.8845057989144194, 2.2910982716914816], [7.6867588503339643, 7.7848342582067325]]])
1627        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1628        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 1611  class Test_util_binary_with_tagged_data( Line 1631  class Test_util_binary_with_tagged_data(
1631     def test_add_taggedData_rank0_expandedData_rank3(self):     def test_add_taggedData_rank0_expandedData_rank3(self):
1632        arg0=Data(2.96783962413,self.functionspace)        arg0=Data(2.96783962413,self.functionspace)
1633        arg0.setTaggedValue(1,4.58545042025)        arg0.setTaggedValue(1,4.58545042025)
1634        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1635        arg1=msk_arg1*numarray.array([[[-1.0107776618681519, 0.22887495412393211], [-3.9041752171570741, 2.9454047735115179]], [[2.3392249754199632, 1.840363855278798], [-3.2897280955172494, -0.91314114284903081]], [[-4.7800295947753373, 4.5595789561543505], [-4.0249952090345129, 1.7656739241411881]], [[-2.4067568420486407, -4.6094356474780742], [-3.2238366711957878, 4.9158640569384264]], [[-3.4940467169428491, 3.0560571883051928], [3.1188459559490589, 2.9178822680175145]], [[-1.5881856461431711, -3.4229596502262916], [-2.5272618273299252, 3.9116238986924401]]])+(1.-msk_arg1)*numarray.array([[[-3.3488284831578321, -3.6791256261418317], [3.8636899178850896, -2.5930739210871421]], [[-3.110321827307402, 0.59953199957024861], [3.8764894420368829, -1.4612712893186899]], [[1.8425619409254388, -4.3141804006805717], [-0.55739608525827222, 2.8765503990800436]], [[-1.700938030746201, 2.3972870970534998], [3.7319057052119611, -1.2197005777289416]], [[2.709647085594983, -2.7848987604180975], [-2.3152664890316133, 2.9755329413089759]], [[1.4603446020442465, 1.0612840613239634], [2.6789858160903615, 0.37043397314306059]]])        arg1=msk_arg1*numarray.array([[[-1.0107776618681519, 0.22887495412393211], [-3.9041752171570741, 2.9454047735115179]], [[2.3392249754199632, 1.840363855278798], [-3.2897280955172494, -0.91314114284903081]], [[-4.7800295947753373, 4.5595789561543505], [-4.0249952090345129, 1.7656739241411881]], [[-2.4067568420486407, -4.6094356474780742], [-3.2238366711957878, 4.9158640569384264]], [[-3.4940467169428491, 3.0560571883051928], [3.1188459559490589, 2.9178822680175145]], [[-1.5881856461431711, -3.4229596502262916], [-2.5272618273299252, 3.9116238986924401]]])+(1.-msk_arg1)*numarray.array([[[-3.3488284831578321, -3.6791256261418317], [3.8636899178850896, -2.5930739210871421]], [[-3.110321827307402, 0.59953199957024861], [3.8764894420368829, -1.4612712893186899]], [[1.8425619409254388, -4.3141804006805717], [-0.55739608525827222, 2.8765503990800436]], [[-1.700938030746201, 2.3972870970534998], [3.7319057052119611, -1.2197005777289416]], [[2.709647085594983, -2.7848987604180975], [-2.3152664890316133, 2.9755329413089759]], [[1.4603446020442465, 1.0612840613239634], [2.6789858160903615, 0.37043397314306059]]])
1636        res=add(arg0,arg1)        res=add(arg0,arg1)
1637        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1638        ref=msk_ref*numarray.array([[[1.9570619622663554, 3.1967145782584394], [-0.93633559302256675, 5.9132443976460252]], [[5.3070645995544705, 4.8082034794133053], [-0.32188847138274213, 2.0546984812854765]], [[-1.81218997064083, 7.5274185802888578], [-1.0571555849000056, 4.7335135482756954]], [[0.56108278208586659, -1.6415960233435669], [-0.25599704706128046, 7.8837036810729337]], [[-0.52620709280834177, 6.0238968124397001], [6.0866855800835662, 5.8857218921520218]], [[1.3796539779913362, -0.45512002609178426], [0.44057779680458209, 6.8794635228269474]]])+(1.-msk_ref)*numarray.array([[[1.2366219370931271, 0.90632479410912747], [8.4491403381360488, 1.9923764991638171]], [[1.4751285929435571, 5.1849824198212078], [8.4619398622878421, 3.1241791309322693]], [[6.428012361176398, 0.27127001957038743], [4.0280543349926869, 7.4620008193310028]], [[2.8845123895047582, 6.982737517304459], [8.3173561254629202, 3.3657498425220176]], [[7.2950975058459422, 1.8005516598328617], [2.2701839312193459, 7.5609833615599351]], [[6.0457950222952057, 5.6467344815749225], [7.2644362363413206, 4.9558843933940198]]])        ref=msk_ref*numarray.array([[[1.9570619622663554, 3.1967145782584394], [-0.93633559302256675, 5.9132443976460252]], [[5.3070645995544705, 4.8082034794133053], [-0.32188847138274213, 2.0546984812854765]], [[-1.81218997064083, 7.5274185802888578], [-1.0571555849000056, 4.7335135482756954]], [[0.56108278208586659, -1.6415960233435669], [-0.25599704706128046, 7.8837036810729337]], [[-0.52620709280834177, 6.0238968124397001], [6.0866855800835662, 5.8857218921520218]], [[1.3796539779913362, -0.45512002609178426], [0.44057779680458209, 6.8794635228269474]]])+(1.-msk_ref)*numarray.array([[[1.2366219370931271, 0.90632479410912747], [8.4491403381360488, 1.9923764991638171]], [[1.4751285929435571, 5.1849824198212078], [8.4619398622878421, 3.1241791309322693]], [[6.428012361176398, 0.27127001957038743], [4.0280543349926869, 7.4620008193310028]], [[2.8845123895047582, 6.982737517304459], [8.3173561254629202, 3.3657498425220176]], [[7.2950975058459422, 1.8005516598328617], [2.2701839312193459, 7.5609833615599351]], [[6.0457950222952057, 5.6467344815749225], [7.2644362363413206, 4.9558843933940198]]])
1639        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1640        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 1623  class Test_util_binary_with_tagged_data( Line 1643  class Test_util_binary_with_tagged_data(
1643     def test_add_taggedData_rank4_expandedData_rank0(self):     def test_add_taggedData_rank4_expandedData_rank0(self):
1644        arg0=Data(numarray.array([[[[-2.0543438147199389, 3.7925270973681862, 4.9819257419011294, 2.5461008394242928], [-2.2037215218345176, -4.7139312943927738, 3.6741560860835296, 3.1023363244349618], [-1.3528871296528475, -4.5541584733114249, -4.0722543425303694, -4.5615889332960062]], [[-2.0642139239887394, 4.6643003219812122, 0.63229443011066255, 2.888421170849556], [3.3740102522470856, 0.97781290751269712, 0.97931483269287867, 2.3986621900491247], [-1.3731894400211564, 4.7888825679520703, 4.9162643064906426, -2.1724055356442626]]], [[[-2.9714473969421649, -4.7820170429120976, 1.1780685478422281, 3.136029484080332], [-1.3684513541008636, 0.33817411136606079, 0.95404569472184431, -0.21158326713454123], [-4.6093692604080765, 2.9155957063349982, -0.57616894984411182, -0.95645163409084599]], [[0.28861118082903303, 2.625513546169449, 1.210542369007972, 2.0974160595146207], [-3.9434035210041807, 1.1375893200844081, -1.6718773692668676, -1.5767759178968968], [-1.3030013784734971, -3.0467826385282293, 0.8952135056477637, 2.4889366899211769]]], [[[-3.0293543178753959, 0.052335057950755548, -0.25373780950039926, 2.7758713064558815], [-1.7143700975100518, 2.0601536746452176, 2.0820030050682634, -4.3141380606535149], [-3.0327381246561567, -0.96503985949187854, -0.75648809473719858, -0.059758299337909548]], [[4.4264484105530162, -1.3897491569161424, 3.2670479074608618, -3.283385057830924], [-0.75154596148570096, -2.1278954823356591, 2.5816756804860486, 1.4044348638576931], [-1.5657627617403538, 3.4138146772853908, 4.4492717288755141, -0.39625734609092778]]]]),self.functionspace)        arg0=Data(numarray.array([[[[-2.0543438147199389, 3.7925270973681862, 4.9819257419011294, 2.5461008394242928], [-2.2037215218345176, -4.7139312943927738, 3.6741560860835296, 3.1023363244349618], [-1.3528871296528475, -4.5541584733114249, -4.0722543425303694, -4.5615889332960062]], [[-2.0642139239887394, 4.6643003219812122, 0.63229443011066255, 2.888421170849556], [3.3740102522470856, 0.97781290751269712, 0.97931483269287867, 2.3986621900491247], [-1.3731894400211564, 4.7888825679520703, 4.9162643064906426, -2.1724055356442626]]], [[[-2.9714473969421649, -4.7820170429120976, 1.1780685478422281, 3.136029484080332], [-1.3684513541008636, 0.33817411136606079, 0.95404569472184431, -0.21158326713454123], [-4.6093692604080765, 2.9155957063349982, -0.57616894984411182, -0.95645163409084599]], [[0.28861118082903303, 2.625513546169449, 1.210542369007972, 2.0974160595146207], [-3.9434035210041807, 1.1375893200844081, -1.6718773692668676, -1.5767759178968968], [-1.3030013784734971, -3.0467826385282293, 0.8952135056477637, 2.4889366899211769]]], [[[-3.0293543178753959, 0.052335057950755548, -0.25373780950039926, 2.7758713064558815], [-1.7143700975100518, 2.0601536746452176, 2.0820030050682634, -4.3141380606535149], [-3.0327381246561567, -0.96503985949187854, -0.75648809473719858, -0.059758299337909548]], [[4.4264484105530162, -1.3897491569161424, 3.2670479074608618, -3.283385057830924], [-0.75154596148570096, -2.1278954823356591, 2.5816756804860486, 1.4044348638576931], [-1.5657627617403538, 3.4138146772853908, 4.4492717288755141, -0.39625734609092778]]]]),self.functionspace)
1645        arg0.setTaggedValue(1,numarray.array([[[[0.86681687994930279, 3.8222266948285295, -3.5491429263828431, 0.084506231211904925], [4.0350285712440677, 0.46549115494876503, -3.245138253606811, 1.71063394563771], [3.5714550787508887, -1.1854059260646266, -4.8403172692565111, -3.1293921007558434]], [[-3.9612810003917187, -4.5713490297346757, -0.25204638139524871, -3.0845024162342796], [1.4470025652907452, -0.17462170112188868, 2.2716168941836345, 1.3268386663311045], [-1.9019063157973779, 2.4989396579676928, -0.23659371984359989, -1.1180327503279495]]], [[[4.1934308946030079, -3.6616724618574725, -3.983018373380264, 1.1076724688514137], [-0.49715475968821465, -1.4975014940701348, 4.1959854547762205, 0.8003071889128508], [3.8738382149145867, 2.6071051516473442, 2.4712550383591916, 2.1169088549296022]], [[-4.4184571588532497, 3.3935730737458734, 1.7000615684377527, 2.7836638034373484], [1.9355983409132502, -0.078560290248584685, -1.4100991219452776, 1.5204723251156063], [-1.0163988839170344, -0.22882774679547424, 4.6304734666614298, 2.5159039031694412]]], [[[-4.802741213814075, -0.6350192356838793, -3.3903980961389326, -3.416335674771581], [0.0997916336706961, -0.16865899068473311, 2.7381236147848362, 2.9154551242548354], [-0.63642397574935039, -1.2241347755118559, -4.5568447785445461, 4.9242932238493129]], [[1.2257241435359409, 2.2874010343330218, -2.8989117480768201, -4.3485951730412777], [2.0747535607039893, -0.50629463404073505, -1.9766343056698754, 1.982714593716298], [3.0808472917735799, 1.1404277703663679, 4.7205501585359517, -2.3901127243493479]]]]))        arg0.setTaggedValue(1,numarray.array([[[[0.86681687994930279, 3.8222266948285295, -3.5491429263828431, 0.084506231211904925], [4.0350285712440677, 0.46549115494876503, -3.245138253606811, 1.71063394563771], [3.5714550787508887, -1.1854059260646266, -4.8403172692565111, -3.1293921007558434]], [[-3.9612810003917187, -4.5713490297346757, -0.25204638139524871, -3.0845024162342796], [1.4470025652907452, -0.17462170112188868, 2.2716168941836345, 1.3268386663311045], [-1.9019063157973779, 2.4989396579676928, -0.23659371984359989, -1.1180327503279495]]], [[[4.1934308946030079, -3.6616724618574725, -3.983018373380264, 1.1076724688514137], [-0.49715475968821465, -1.4975014940701348, 4.1959854547762205, 0.8003071889128508], [3.8738382149145867, 2.6071051516473442, 2.4712550383591916, 2.1169088549296022]], [[-4.4184571588532497, 3.3935730737458734, 1.7000615684377527, 2.7836638034373484], [1.9355983409132502, -0.078560290248584685, -1.4100991219452776, 1.5204723251156063], [-1.0163988839170344, -0.22882774679547424, 4.6304734666614298, 2.5159039031694412]]], [[[-4.802741213814075, -0.6350192356838793, -3.3903980961389326, -3.416335674771581], [0.0997916336706961, -0.16865899068473311, 2.7381236147848362, 2.9154551242548354], [-0.63642397574935039, -1.2241347755118559, -4.5568447785445461, 4.9242932238493129]], [[1.2257241435359409, 2.2874010343330218, -2.8989117480768201, -4.3485951730412777], [2.0747535607039893, -0.50629463404073505, -1.9766343056698754, 1.982714593716298], [3.0808472917735799, 1.1404277703663679, 4.7205501585359517, -2.3901127243493479]]]]))
1646        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1647        arg1=msk_arg1*(-0.922392061595)+(1.-msk_arg1)*(-3.02662961353)        arg1=msk_arg1*(-0.922392061595)+(1.-msk_arg1)*(-3.02662961353)
1648        res=add(arg0,arg1)        res=add(arg0,arg1)
1649        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1650        ref=msk_ref*numarray.array([[[[-2.9767358763154093, 2.8701350357727158, 4.059533680305659, 1.6237087778288224], [-3.126113583429988, -5.6363233559882442, 2.7517640244880592, 2.1799442628394914], [-2.2752791912483179, -5.4765505349068953, -4.9946464041258398, -5.4839809948914766]], [[-2.9866059855842098, 3.7419082603857419, -0.29009763148480783, 1.9660291092540856], [2.4516181906516152, 0.055420845917226735, 0.056922771097408287, 1.4762701284536544], [-2.2955815016166268, 3.8664905063566, 3.9938722448951722, -3.094797597239733]]], [[[-3.8938394585376352, -5.704409104507568, 0.25567648624675776, 2.2136374224848616], [-2.290843415696334, -0.58421795022940959, 0.031653633126373926, -1.1339753287300116], [-5.5317613220035469, 1.9932036447395278, -1.4985610114395822, -1.8788436956863164]], [[-0.63378088076643735, 1.7031214845739786, 0.28815030741250158, 1.1750239979191504], [-4.8657955825996506, 0.21519725848893767, -2.594269430862338, -2.4991679794923671], [-2.2253934400689674, -3.9691747001236997, -0.027178555947706684, 1.5665446283257065]]], [[[-3.9517463794708663, -0.87005700364471483, -1.1761298710958696, 1.8534792448604112], [-2.6367621591055221, 1.1377616130497472, 1.159610943472793, -5.2365301222489853], [-3.955130186251627, -1.8874319210873489, -1.678880156332669, -0.98215036093337993]], [[3.5040563489575458, -2.3121412185116128, 2.3446558458653914, -4.2057771194263944], [-1.6739380230811713, -3.0502875439311294, 1.6592836188905782, 0.48204280226222274], [-2.4881548233358242, 2.4914226156899204, 3.5268796672800438, -1.3186494076863982]]]])+(1.-msk_ref)*numarray.array([[[[-2.1598127335825774, 0.7955970812966493, -6.5757725399147233, -2.9421233823199753], [1.0083989577121875, -2.5611384585831152, -6.2717678671386912, -1.3159956678941702], [0.54482546521900854, -4.2120355395965063, -7.8669468827883913, -6.1560217142877232]], [[-6.9879106139235994, -7.5979786432665559, -3.2786759949271289, -6.1111320297661598], [-1.579627048241135, -3.2012513146537689, -0.75501271934824565, -1.6997909472007757], [-4.9285359293292581, -0.52768995556418741, -3.2632233333754801, -4.1446623638598297]]], [[[1.1668012810711277, -6.6883020753893527, -7.0096479869121442, -1.9189571446804665], [-3.5237843732200949, -4.524131107602015, 1.1693558412443403, -2.2263224246190294], [0.84720860138270648, -0.41952446188453596, -0.55537457517268862, -0.90972075860227797]], [[-7.4450867723851299, 0.36694346021399316, -1.3265680450941275, -0.24296581009453178], [-1.09103127261863, -3.1051899037804649, -4.4367287354771578, -1.5061572884162739], [-4.0430284974489146, -3.2554573603273544, 1.6038438531295496, -0.51072571036243897]]], [[[-7.8293708273459552, -3.6616488492157595, -6.4170277096708128, -6.4429652883034612], [-2.9268379798611841, -3.1952886042166133, -0.28850599874704397, -0.11117448927704476], [-3.6630535892812306, -4.2507643890437361, -7.5834743920764263, 1.8976636103174327]], [[-1.8009054699959393, -0.73922857919885843, -5.9255413616087003, -7.3752247865731579], [-0.9518760528278909, -3.5329242475726153, -5.0032639192017552, -1.0439150198155822], [0.054217678241699652, -1.8862018431655123, 1.6939205450040715, -5.4167423378812281]]]])        ref=msk_ref*numarray.array([[[[-2.9767358763154093, 2.8701350357727158, 4.059533680305659, 1.6237087778288224], [-3.126113583429988, -5.6363233559882442, 2.7517640244880592, 2.1799442628394914], [-2.2752791912483179, -5.4765505349068953, -4.9946464041258398, -5.4839809948914766]], [[-2.9866059855842098, 3.7419082603857419, -0.29009763148480783, 1.9660291092540856], [2.4516181906516152, 0.055420845917226735, 0.056922771097408287, 1.4762701284536544], [-2.2955815016166268, 3.8664905063566, 3.9938722448951722, -3.094797597239733]]], [[[-3.8938394585376352, -5.704409104507568, 0.25567648624675776, 2.2136374224848616], [-2.290843415696334, -0.58421795022940959, 0.031653633126373926, -1.1339753287300116], [-5.5317613220035469, 1.9932036447395278, -1.4985610114395822, -1.8788436956863164]], [[-0.63378088076643735, 1.7031214845739786, 0.28815030741250158, 1.1750239979191504], [-4.8657955825996506, 0.21519725848893767, -2.594269430862338, -2.4991679794923671], [-2.2253934400689674, -3.9691747001236997, -0.027178555947706684, 1.5665446283257065]]], [[[-3.9517463794708663, -0.87005700364471483, -1.1761298710958696, 1.8534792448604112], [-2.6367621591055221, 1.1377616130497472, 1.159610943472793, -5.2365301222489853], [-3.955130186251627, -1.8874319210873489, -1.678880156332669, -0.98215036093337993]], [[3.5040563489575458, -2.3121412185116128, 2.3446558458653914, -4.2057771194263944], [-1.6739380230811713, -3.0502875439311294, 1.6592836188905782, 0.48204280226222274], [-2.4881548233358242, 2.4914226156899204, 3.5268796672800438, -1.3186494076863982]]]])+(1.-msk_ref)*numarray.array([[[[-2.1598127335825774, 0.7955970812966493, -6.5757725399147233, -2.9421233823199753], [1.0083989577121875, -2.5611384585831152, -6.2717678671386912, -1.3159956678941702], [0.54482546521900854, -4.2120355395965063, -7.8669468827883913, -6.1560217142877232]], [[-6.9879106139235994, -7.5979786432665559, -3.2786759949271289, -6.1111320297661598], [-1.579627048241135, -3.2012513146537689, -0.75501271934824565, -1.6997909472007757], [-4.9285359293292581, -0.52768995556418741, -3.2632233333754801, -4.1446623638598297]]], [[[1.1668012810711277, -6.6883020753893527, -7.0096479869121442, -1.9189571446804665], [-3.5237843732200949, -4.524131107602015, 1.1693558412443403, -2.2263224246190294], [0.84720860138270648, -0.41952446188453596, -0.55537457517268862, -0.90972075860227797]], [[-7.4450867723851299, 0.36694346021399316, -1.3265680450941275, -0.24296581009453178], [-1.09103127261863, -3.1051899037804649, -4.4367287354771578, -1.5061572884162739], [-4.0430284974489146, -3.2554573603273544, 1.6038438531295496, -0.51072571036243897]]], [[[-7.8293708273459552, -3.6616488492157595, -6.4170277096708128, -6.4429652883034612], [-2.9268379798611841, -3.1952886042166133, -0.28850599874704397, -0.11117448927704476], [-3.6630535892812306, -4.2507643890437361, -7.5834743920764263, 1.8976636103174327]], [[-1.8009054699959393, -0.73922857919885843, -5.9255413616087003, -7.3752247865731579], [-0.9518760528278909, -3.5329242475726153, -5.0032639192017552, -1.0439150198155822], [0.054217678241699652, -1.8862018431655123, 1.6939205450040715, -5.4167423378812281]]]])
1651        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1652        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 1635  class Test_util_binary_with_tagged_data( Line 1655  class Test_util_binary_with_tagged_data(
1655     def test_add_taggedData_rank0_expandedData_rank4(self):     def test_add_taggedData_rank0_expandedData_rank4(self):
1656        arg0=Data(0.920681203441,self.functionspace)        arg0=Data(0.920681203441,self.functionspace)
1657        arg0.setTaggedValue(1,1.52056741268)        arg0.setTaggedValue(1,1.52056741268)
1658        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1659        arg1=msk_arg1*numarray.array([[[[2.9583390138446228, -2.4946837553476566, -3.7985189489364735, -0.51683986187066999], [-4.8073097822937161, -2.4940102544577849, 0.12612844722999395, -1.158186403722874], [-4.5426786547978306, 3.3588560560911098, 1.2047142802767326, 0.53982534303685448]], [[-4.1480841322909452, 2.5717029664314381, 4.1880202195446454, -1.0499096448494507], [-1.1588256970728636, -1.1097535529194333, -2.4978641459410711, -2.5871843744197296], [-3.7503802849513024, -0.34132966151974742, 4.030399140089191, 1.1131681806623721]]], [[[2.2739735525922935, -2.0983850732083988, 3.9591270252910782, -2.9021721968584724], [-4.7000766932067828, 1.2244820118870816, -3.9452419826739771, 2.5740565135257141], [1.5236761223797268, 0.58141183302406318, -2.5421604629612427, 3.8213200004188863]], [[4.1073891148926513, 1.3712460244705271, -3.5503183019406248, -3.7996826145092575], [0.15718626482878761, 3.6452428812286346, 2.2190960785543554, -1.7410968301038956], [-4.1330148081150133, 4.9861282148661275, 4.2939470611200257, 1.0877098517596897]]], [[[-2.573107596524312, 2.4490808294208026, -0.37930258830526853, -2.1713963336527975], [-1.5544288199974696, -4.1609878062634582, -0.40085475706002871, -1.1027486091505345], [2.780940874807678, 1.8935064020316075, -3.1707873945575802, -3.7767761524110135]], [[4.014707012380466, 0.72327588523105391, 0.073438809173238084, 0.95569186034013409], [2.1726953402530311, 1.1385890951894364, -2.8444035447817595, -0.087705506629269792], [-0.87668431164672533, 1.0245730999114464, 0.05725576471151772, 0.62034681236746181]]]])+(1.-msk_arg1)*numarray.array([[[[-2.3452702772497904, 2.5786476213791909, 3.1127751307254989, 1.7483351664375864], [-2.2652946439003507, -0.64659737961742625, 4.1707651566822683, 4.7918863964939806], [3.5919844015081352, 2.1743492168723257, 3.0583666012265329, 0.90499550318866273]], [[-3.5860561748558393, 1.1323175984157166, -0.42155389528373099, 3.6918862138968063], [-4.0454842056690516, -2.0768515736349857, 0.9842573903339602, 0.87541078490239244], [-2.6486479273040233, -0.75078538785365279, -3.4780256285434885, 0.95521083642287863]]], [[[2.1530789361931841, 2.5009540145088511, 0.70364176322303074, 0.32043601595833238], [-4.7907741796446146, 4.1588007607322517, 3.3334070601929824, -2.9956503415174272], [-3.1930470846122461, 2.6788433727544723, 4.8740458367845498, 2.8066501504326]], [[3.8408139040570592, 2.1014065608137278, 4.9259725948563133, 3.1328452838390373], [0.096889900044441646, 4.2224292276821735, 0.55023028525441653, -0.36205612136047272], [3.1084930209331691, -1.0172901326605244, -3.7169293869594333, -3.5215414501287592]]], [[[-3.9646352624136871, -3.5022457907576987, -0.68726090778455262, 4.5576079626991604], [3.1295390750659742, -3.2995464065837132, -4.4842646373739248, -2.7583619923245561], [-3.1325124539440918, -4.9136987467904802, -3.4544357297857098, 1.1872352513430018]], [[-1.7904933942482106, -2.9962468375544518, 4.5471037528804104, 4.4483587132448328], [-4.9684509905009824, 1.4917338550522228, 3.1152749913413231, -2.6702393989387163], [-2.2667078709221302, 0.62678100453811947, -0.94725635370747074, -1.8654812776103071]]]])        arg1=msk_arg1*numarray.array([[[[2.9583390138446228, -2.4946837553476566, -3.7985189489364735, -0.51683986187066999], [-4.8073097822937161, -2.4940102544577849, 0.12612844722999395, -1.158186403722874], [-4.5426786547978306, 3.3588560560911098, 1.2047142802767326, 0.53982534303685448]], [[-4.1480841322909452, 2.5717029664314381, 4.1880202195446454, -1.0499096448494507], [-1.1588256970728636, -1.1097535529194333, -2.4978641459410711, -2.5871843744197296], [-3.7503802849513024, -0.34132966151974742, 4.030399140089191, 1.1131681806623721]]], [[[2.2739735525922935, -2.0983850732083988, 3.9591270252910782, -2.9021721968584724], [-4.7000766932067828, 1.2244820118870816, -3.9452419826739771, 2.5740565135257141], [1.5236761223797268, 0.58141183302406318, -2.5421604629612427, 3.8213200004188863]], [[4.1073891148926513, 1.3712460244705271, -3.5503183019406248, -3.7996826145092575], [0.15718626482878761, 3.6452428812286346, 2.2190960785543554, -1.7410968301038956], [-4.1330148081150133, 4.9861282148661275, 4.2939470611200257, 1.0877098517596897]]], [[[-2.573107596524312, 2.4490808294208026, -0.37930258830526853, -2.1713963336527975], [-1.5544288199974696, -4.1609878062634582, -0.40085475706002871, -1.1027486091505345], [2.780940874807678, 1.8935064020316075, -3.1707873945575802, -3.7767761524110135]], [[4.014707012380466, 0.72327588523105391, 0.073438809173238084, 0.95569186034013409], [2.1726953402530311, 1.1385890951894364, -2.8444035447817595, -0.087705506629269792], [-0.87668431164672533, 1.0245730999114464, 0.05725576471151772, 0.62034681236746181]]]])+(1.-msk_arg1)*numarray.array([[[[-2.3452702772497904, 2.5786476213791909, 3.1127751307254989, 1.7483351664375864], [-2.2652946439003507, -0.64659737961742625, 4.1707651566822683, 4.7918863964939806], [3.5919844015081352, 2.1743492168723257, 3.0583666012265329, 0.90499550318866273]], [[-3.5860561748558393, 1.1323175984157166, -0.42155389528373099, 3.6918862138968063], [-4.0454842056690516, -2.0768515736349857, 0.9842573903339602, 0.87541078490239244], [-2.6486479273040233, -0.75078538785365279, -3.4780256285434885, 0.95521083642287863]]], [[[2.1530789361931841, 2.5009540145088511, 0.70364176322303074, 0.32043601595833238], [-4.7907741796446146, 4.1588007607322517, 3.3334070601929824, -2.9956503415174272], [-3.1930470846122461, 2.6788433727544723, 4.8740458367845498, 2.8066501504326]], [[3.8408139040570592, 2.1014065608137278, 4.9259725948563133, 3.1328452838390373], [0.096889900044441646, 4.2224292276821735, 0.55023028525441653, -0.36205612136047272], [3.1084930209331691, -1.0172901326605244, -3.7169293869594333, -3.5215414501287592]]], [[[-3.9646352624136871, -3.5022457907576987, -0.68726090778455262, 4.5576079626991604], [3.1295390750659742, -3.2995464065837132, -4.4842646373739248, -2.7583619923245561], [-3.1325124539440918, -4.9136987467904802, -3.4544357297857098, 1.1872352513430018]], [[-1.7904933942482106, -2.9962468375544518, 4.5471037528804104, 4.4483587132448328], [-4.9684509905009824, 1.4917338550522228, 3.1152749913413231, -2.6702393989387163], [-2.2667078709221302, 0.62678100453811947, -0.94725635370747074, -1.8654812776103071]]]])
1660        res=add(arg0,arg1)        res=add(arg0,arg1)
1661        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1662        ref=msk_ref*numarray.array([[[[3.8790202172854382, -1.5740025519068412, -2.8778377454956581, 0.4038413415701454], [-3.8866285788529007, -1.5733290510169695, 1.0468096506708093, -0.23750520028205857], [-3.6219974513570152, 4.2795372595319252, 2.1253954837175479, 1.4605065464776699]], [[-3.2274029288501298, 3.4923841698722535, 5.1087014229854608, -0.12922844140863532], [-0.23814449363204826, -0.18907234947861795, -1.5771829425002557, -1.6665031709789142], [-2.829699081510487, 0.57935154192106797, 4.9510803435300064, 2.0338493841031875]]], [[[3.1946547560331089, -1.1777038697675835, 4.8798082287318936, -1.981490993417657], [-3.7793954897659674, 2.145163215327897, -3.0245607792331617, 3.4947377169665295], [2.4443573258205422, 1.5020930364648786, -1.6214792595204273, 4.7420012038597017]], [[5.0280703183334667, 2.2919272279113425, -2.6296370984998094, -2.8790014110684421], [1.077867468269603, 4.56592408466945, 3.1397772819951708, -0.82041562666308021], [-3.2123336046741979, 5.9068094183069428, 5.2146282645608411, 2.0083910552005051]]], [[[-1.6524263930834966, 3.369762032861618, 0.54137861513554686, -1.2507151302119821], [-0.63374761655665424, -3.2403066028226428, 0.51982644638078668, -0.18206740570971913], [3.7016220782484934, 2.8141876054724229, -2.2501061911167648, -2.8560949489701981]], [[4.9353882158212814, 1.6439570886718693, 0.99412001261405347, 1.8763730637809495], [3.0933765436938465, 2.0592702986302518, -1.9237223413409441, 0.8329756968115456], [0.043996891794090054, 1.9452543033522618, 0.97793696815233311, 1.5410280158082772]]]])+(1.-msk_ref)*numarray.array([[[[-0.82470286456798014, 4.0992150340610012, 4.6333425434073092, 3.2689025791193966], [-0.74472723121854045, 0.87397003306438403, 5.6913325693640786, 6.3124538091757909], [5.1125518141899455, 3.694916629554136, 4.5789340139083432, 2.425562915870473]], [[-2.065488762174029, 2.6528850110975268, 1.0990135173980793, 5.2124536265786166], [-2.5249167929872414, -0.55628416095317545, 2.5048248030157705, 2.3959781975842027], [-1.128080514622213, 0.7697820248281575, -1.9574582158616782, 2.4757782491046889]]], [[[3.6736463488749944, 4.0215214271906614, 2.224209175904841, 1.8410034286401427], [-3.2702067669628043, 5.679368173414062, 4.8539744728747927, -1.4750829288356169], [-1.6724796719304358, 4.1994107854362825, 6.3946132494663601, 4.3272175631144103]], [[5.3613813167388695, 3.6219739734955381, 6.4465400075381236, 4.6534126965208475], [1.6174573127262519, 5.7429966403639838, 2.0707976979362268, 1.1585112913213376], [4.6290604336149794, 0.50327728002128591, -2.196361974277623, -2.0009740374469489]]], [[[-2.4440678497318769, -1.9816783780758884, 0.83330650489725766, 6.0781753753809706], [4.6501064877477845, -1.7789789939019029, -2.9636972246921145, -1.2377945796427459], [-1.6119450412622816, -3.39313133410867, -1.9338683171038995, 2.7078026640248121]], [[-0.26992598156640035, -1.4756794248726415, 6.0676711655622206, 5.9689261259266431], [-3.4478835778191721, 3.0123012677340331, 4.6358424040231334, -1.149671986256906], [-0.74614045824031994, 2.1473484172199298, 0.57331105897433954, -0.34491386492849685]]]])        ref=msk_ref*numarray.array([[[[3.8790202172854382, -1.5740025519068412, -2.8778377454956581, 0.4038413415701454], [-3.8866285788529007, -1.5733290510169695, 1.0468096506708093, -0.23750520028205857], [-3.6219974513570152, 4.2795372595319252, 2.1253954837175479, 1.4605065464776699]], [[-3.2274029288501298, 3.4923841698722535, 5.1087014229854608, -0.12922844140863532], [-0.23814449363204826, -0.18907234947861795, -1.5771829425002557, -1.6665031709789142], [-2.829699081510487, 0.57935154192106797, 4.9510803435300064, 2.0338493841031875]]], [[[3.1946547560331089, -1.1777038697675835, 4.8798082287318936, -1.981490993417657], [-3.7793954897659674, 2.145163215327897, -3.0245607792331617, 3.4947377169665295], [2.4443573258205422, 1.5020930364648786, -1.6214792595204273, 4.7420012038597017]], [[5.0280703183334667, 2.2919272279113425, -2.6296370984998094, -2.8790014110684421], [1.077867468269603, 4.56592408466945, 3.1397772819951708, -0.82041562666308021], [-3.2123336046741979, 5.9068094183069428, 5.2146282645608411, 2.0083910552005051]]], [[[-1.6524263930834966, 3.369762032861618, 0.54137861513554686, -1.2507151302119821], [-0.63374761655665424, -3.2403066028226428, 0.51982644638078668, -0.18206740570971913], [3.7016220782484934, 2.8141876054724229, -2.2501061911167648, -2.8560949489701981]], [[4.9353882158212814, 1.6439570886718693, 0.99412001261405347, 1.8763730637809495], [3.0933765436938465, 2.0592702986302518, -1.9237223413409441, 0.8329756968115456], [0.043996891794090054, 1.9452543033522618, 0.97793696815233311, 1.5410280158082772]]]])+(1.-msk_ref)*numarray.array([[[[-0.82470286456798014, 4.0992150340610012, 4.6333425434073092, 3.2689025791193966], [-0.74472723121854045, 0.87397003306438403, 5.6913325693640786, 6.3124538091757909], [5.1125518141899455, 3.694916629554136, 4.5789340139083432, 2.425562915870473]], [[-2.065488762174029, 2.6528850110975268, 1.0990135173980793, 5.2124536265786166], [-2.5249167929872414, -0.55628416095317545, 2.5048248030157705, 2.3959781975842027], [-1.128080514622213, 0.7697820248281575, -1.9574582158616782, 2.4757782491046889]]], [[[3.6736463488749944, 4.0215214271906614, 2.224209175904841, 1.8410034286401427], [-3.2702067669628043, 5.679368173414062, 4.8539744728747927, -1.4750829288356169], [-1.6724796719304358, 4.1994107854362825, 6.3946132494663601, 4.3272175631144103]], [[5.3613813167388695, 3.6219739734955381, 6.4465400075381236, 4.6534126965208475], [1.6174573127262519, 5.7429966403639838, 2.0707976979362268, 1.1585112913213376], [4.6290604336149794, 0.50327728002128591, -2.196361974277623, -2.0009740374469489]]], [[[-2.4440678497318769, -1.9816783780758884, 0.83330650489725766, 6.0781753753809706], [4.6501064877477845, -1.7789789939019029, -2.9636972246921145, -1.2377945796427459], [-1.6119450412622816, -3.39313133410867, -1.9338683171038995, 2.7078026640248121]], [[-0.26992598156640035, -1.4756794248726415, 6.0676711655622206, 5.9689261259266431], [-3.4478835778191721, 3.0123012677340331, 4.6358424040231334, -1.149671986256906], [-0.74614045824031994, 2.1473484172199298, 0.57331105897433954, -0.34491386492849685]]]])
1663        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1664        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 1647  class Test_util_binary_with_tagged_data( Line 1667  class Test_util_binary_with_tagged_data(
1667     def test_add_taggedData_rank1_expandedData_rank1(self):     def test_add_taggedData_rank1_expandedData_rank1(self):
1668        arg0=Data(numarray.array([-0.47601076552948562, -3.971336996591023]),self.functionspace)        arg0=Data(numarray.array([-0.47601076552948562, -3.971336996591023]),self.functionspace)
1669        arg0.setTaggedValue(1,numarray.array([-0.62434603622511098, -3.7950440497170557]))        arg0.setTaggedValue(1,numarray.array([-0.62434603622511098, -3.7950440497170557]))
1670        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1671        arg1=msk_arg1*numarray.array([-1.8804507838787332, 2.5424814250703944])+(1.-msk_arg1)*numarray.array([4.1775730456985212, -2.1327072009727646])        arg1=msk_arg1*numarray.array([-1.8804507838787332, 2.5424814250703944])+(1.-msk_arg1)*numarray.array([4.1775730456985212, -2.1327072009727646])
1672        res=add(arg0,arg1)        res=add(arg0,arg1)
1673        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1674        ref=msk_ref*numarray.array([-2.3564615494082188, -1.4288555715206286])+(1.-msk_ref)*numarray.array([3.5532270094734102, -5.9277512506898198])        ref=msk_ref*numarray.array([-2.3564615494082188, -1.4288555715206286])+(1.-msk_ref)*numarray.array([3.5532270094734102, -5.9277512506898198])
1675        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1676        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 1659  class Test_util_binary_with_tagged_data( Line 1679  class Test_util_binary_with_tagged_data(
1679     def test_add_taggedData_rank2_expandedData_rank1(self):     def test_add_taggedData_rank2_expandedData_rank1(self):
1680        arg0=Data(numarray.array([[-3.6436399569372382, -4.5777881968273872], [-2.247649635910113, -2.5302822600473074]]),self.functionspace)        arg0=Data(numarray.array([[-3.6436399569372382, -4.5777881968273872], [-2.247649635910113, -2.5302822600473074]]),self.functionspace)
1681        arg0.setTaggedValue(1,numarray.array([[-3.1398797748642115, 4.7708545661194748], [4.8881084224624427, 1.0619597145993147]]))        arg0.setTaggedValue(1,numarray.array([[-3.1398797748642115, 4.7708545661194748], [4.8881084224624427, 1.0619597145993147]]))
1682        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1683        arg1=msk_arg1*numarray.array([2.017045790923218, -2.0754783995264567])+(1.-msk_arg1)*numarray.array([3.5950238091411126, -4.4237723802120312])        arg1=msk_arg1*numarray.array([2.017045790923218, -2.0754783995264567])+(1.-msk_arg1)*numarray.array([3.5950238091411126, -4.4237723802120312])
1684        res=add(arg0,arg1)        res=add(arg0,arg1)
1685        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1686        ref=msk_ref*numarray.array([[-1.6265941660140202, -2.5607424059041692], [-4.3231280354365698, -4.6057606595737646]])+(1.-msk_ref)*numarray.array([[0.45514403427690109, 8.3658783752605874], [0.46433604225041147, -3.3618126656127165]])        ref=msk_ref*numarray.array([[-1.6265941660140202, -2.5607424059041692], [-4.3231280354365698, -4.6057606595737646]])+(1.-msk_ref)*numarray.array([[0.45514403427690109, 8.3658783752605874], [0.46433604225041147, -3.3618126656127165]])
1687        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1688        self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")
# Line 1671  class Test_util_binary_with_tagged_data( Line 1691  class Test_util_binary_with_tagged_data(
1691     def test_add_taggedData_rank1_expandedData_rank2(self):     def test_add_taggedData_rank1_expandedData_rank2(self):
1692        arg0=Data(numarray.array([-0.55420008423312961, -1.1878489780171373]),self.functionspace)        arg0=Data(numarray.array([-0.55420008423312961, -1.1878489780171373]),self.functionspace)
1693        arg0.setTaggedValue(1,numarray.array([-2.3957097201075497, -4.3030790976427857]))        arg0.setTaggedValue(1,numarray.array([-2.3957097201075497, -4.3030790976427857]))
1694        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1695        arg1=msk_arg1*numarray.array([[-2.3087330405446469, 1.4037515273691508], [-0.65252955803284429, -4.1293970268992242]])+(1.-msk_arg1)*numarray.array([[-4.6113803799901429, -1.4262675979312722], [3.3464652145005616, 2.3284001894430979]])        arg1=msk_arg1*numarray.array([[-2.3087330405446469, 1.4037515273691508], [-0.65252955803284429, -4.1293970268992242]])+(1.-msk_arg1)*numarray.array([[-4.6113803799901429, -1.4262675979312722], [3.3464652145005616, 2.3284001894430979]])
1696        res=add(arg0,arg1)        res=add(arg0,arg1)
1697        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1698        ref=msk_ref*numarray.array([[-2.8629331247777765, 0.84955144313602116], [-1.8403785360499816, -5.3172460049163615]])+(1.-msk_ref)*numarray.array([[-7.0070901000976926, -3.8219773180388219], [-0.95661388314222418, -1.9746789081996878]])        ref=msk_ref*numarray.array([[-2.8629331247777765, 0.84955144313602116], [-1.8403785360499816, -5.3172460049163615]])+(1.-msk_ref)*numarray.array([[-7.0070901000976926, -3.8219773180388219], [-0.95661388314222418, -1.9746789081996878]])
1699        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1700        self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")
# Line 1683  class Test_util_binary_with_tagged_data( Line 1703  class Test_util_binary_with_tagged_data(
1703     def test_add_taggedData_rank3_expandedData_rank1(self):     def test_add_taggedData_rank3_expandedData_rank1(self):
1704        arg0=Data(numarray.array([[[-4.3269011538857391, 4.4205568439483844, 0.22236736428477499, -4.543088549269453, 0.21786669367482681], [-0.90706427218369168, 0.29412096691022604, 3.4577716795943694, -1.995169502485854, -3.1655293236324642], [-4.1668185123852384, -4.5970527541748654, 3.2987113903117198, 3.4028729178881036, 3.885485493602145], [-2.0197655035982223, -4.7923310571377655, -1.0664906572309629, 2.7791710349511547, 3.114306548477737]], [[1.8002900772554273, 4.2886113672904553, -3.8376246541378189, -4.1295390816481703, -0.60871729234518135], [2.0437070183643851, 1.7126200712557669, -4.8056512996605658, 3.7930134262306652, 2.2167640315291361], [3.58395200346434, -2.7572989280754436, 2.4022340558789494, 3.3974857891676375, 4.6323395382970745], [-1.2375967596712578, -4.2252526014604408, 1.7424276000205339, 2.1906382574958103, -4.1196083188800694]]]),self.functionspace)        arg0=Data(numarray.array([[[-4.3269011538857391, 4.4205568439483844, 0.22236736428477499, -4.543088549269453, 0.21786669367482681], [-0.90706427218369168, 0.29412096691022604, 3.4577716795943694, -1.995169502485854, -3.1655293236324642], [-4.1668185123852384, -4.5970527541748654, 3.2987113903117198, 3.4028729178881036, 3.885485493602145], [-2.0197655035982223, -4.7923310571377655, -1.0664906572309629, 2.7791710349511547, 3.114306548477737]], [[1.8002900772554273, 4.2886113672904553, -3.8376246541378189, -4.1295390816481703, -0.60871729234518135], [2.0437070183643851, 1.7126200712557669, -4.8056512996605658, 3.7930134262306652, 2.2167640315291361], [3.58395200346434, -2.7572989280754436, 2.4022340558789494, 3.3974857891676375, 4.6323395382970745], [-1.2375967596712578, -4.2252526014604408, 1.7424276000205339, 2.1906382574958103, -4.1196083188800694]]]),self.functionspace)
1705        arg0.setTaggedValue(1,numarray.array([[[-3.6758493496566338, 1.2859818274151982, -4.5325618795461686, -1.7144286539966402, 0.029270101111348978], [4.2668159236687426, 1.8642520166273702, 3.1389437523837209, -1.7961098266956776, -0.82762911965615871], [3.7607026993425823, -2.9827346006602227, -1.5666598530037112, 0.85185974870011805, 1.596022090265139], [-0.43641013194260747, -0.87316225041482198, 3.9905011516501361, 3.5391862197724588, 2.5267582467272973]], [[-2.1864931510859265, 3.9596913169245944, 1.7839408749997929, -0.37901538172433291, 3.1363648999562095], [3.1037497767901083, 4.5000883238338112, 4.7508188503383568, 4.193302834783303, 3.2313984965528828], [4.317595432326506, -0.88468225104948228, -1.240138232313619, 2.923061274288016, -2.0319319423093276], [3.3247868951318882, 3.303064875704246, 4.2914437523375177, 0.97703610881040603, 3.7654284176969028]]]))        arg0.setTaggedValue(1,numarray.array([[[-3.6758493496566338, 1.2859818274151982, -4.5325618795461686, -1.7144286539966402, 0.029270101111348978], [4.2668159236687426, 1.8642520166273702, 3.1389437523837209, -1.7961098266956776, -0.82762911965615871], [3.7607026993425823, -2.9827346006602227, -1.5666598530037112, 0.85185974870011805, 1.596022090265139], [-0.43641013194260747, -0.87316225041482198, 3.9905011516501361, 3.5391862197724588, 2.5267582467272973]], [[-2.1864931510859265, 3.9596913169245944, 1.7839408749997929, -0.37901538172433291, 3.1363648999562095], [3.1037497767901083, 4.5000883238338112, 4.7508188503383568, 4.193302834783303, 3.2313984965528828], [4.317595432326506, -0.88468225104948228, -1.240138232313619, 2.923061274288016, -2.0319319423093276], [3.3247868951318882, 3.303064875704246, 4.2914437523375177, 0.97703610881040603, 3.7654284176969028]]]))
1706        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1707        arg1=msk_arg1*numarray.array([-0.32011214978728653, 3.6276119210702227])+(1.-msk_arg1)*numarray.array([-4.5617200827460067, -1.6701320515382023])        arg1=msk_arg1*numarray.array([-0.32011214978728653, 3.6276119210702227])+(1.-msk_arg1)*numarray.array([-4.5617200827460067, -1.6701320515382023])
1708        res=add(arg0,arg1)        res=add(arg0,arg1)
1709        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1710        ref=msk_ref*numarray.array([[[-4.6470133036730257, 4.1004446941610979, -0.097744785502511533, -4.8632006990567396, -0.10224545611245972], [-1.2271764219709782, -0.025991182877060481, 3.1376595298070828, -2.3152816522731405, -3.4856414734197507], [-4.4869306621725249, -4.9171649039621519, 2.9785992405244333, 3.0827607681008171, 3.5653733438148585], [-2.3398776533855088, -5.1124432069250521, -1.3866028070182495, 2.4590588851638682, 2.7941943986904505]], [[5.42790199832565, 7.916223288360678, -0.21001273306759627, -0.50192716057794762, 3.0188946287250413], [5.6713189394346077, 5.3402319923259896, -1.1780393785903431, 7.4206253473008879, 5.8443759525993588], [7.2115639245345626, 0.87031299299477904, 6.0298459769491721, 7.0250977102378602, 8.2599514593672971], [2.3900151613989649, -0.59764068039021812, 5.3700395210907566, 5.818250178566033, -0.49199639780984672]]])+(1.-msk_ref)*numarray.array([[[-8.2375694324026405, -3.2757382553308085, -9.0942819622921753, -6.2761487367426465, -4.5324499816346577], [-0.29490415907726408, -2.6974680661186365, -1.4227763303622858, -6.3578299094416844, -5.3893492024021654], [-0.80101738340342443, -7.5444546834062294, -6.1283799357497184, -3.7098603340458887, -2.9656979924808677], [-4.9981302146886142, -5.4348823331608287, -0.57121893109587063, -1.0225338629735479, -2.0349618360187094]], [[-3.8566252026241288, 2.2895592653863921, 0.1138088234615906, -2.0491474332625352, 1.4662328484180072], [1.433617725251906, 2.8299562722956089, 3.0806867988001545, 2.5231707832451007, 1.5612664450146805], [2.6474633807883037, -2.5548143025876846, -2.9102702838518213, 1.2529292227498137, -3.7020639938475299], [1.6546548435936859, 1.6329328241660437, 2.6213117007993154, -0.69309594272779629, 2.0952963661587005]]])        ref=msk_ref*numarray.array([[[-4.6470133036730257, 4.1004446941610979, -0.097744785502511533, -4.8632006990567396, -0.10224545611245972], [-1.2271764219709782, -0.025991182877060481, 3.1376595298070828, -2.3152816522731405, -3.4856414734197507], [-4.4869306621725249, -4.9171649039621519, 2.9785992405244333, 3.0827607681008171, 3.5653733438148585], [-2.3398776533855088, -5.1124432069250521, -1.3866028070182495, 2.4590588851638682, 2.7941943986904505]], [[5.42790199832565, 7.916223288360678, -0.21001273306759627, -0.50192716057794762, 3.0188946287250413], [5.6713189394346077, 5.3402319923259896, -1.1780393785903431, 7.4206253473008879, 5.8443759525993588], [7.2115639245345626, 0.87031299299477904, 6.0298459769491721, 7.0250977102378602, 8.2599514593672971], [2.3900151613989649, -0.59764068039021812, 5.3700395210907566, 5.818250178566033, -0.49199639780984672]]])+(1.-msk_ref)*numarray.array([[[-8.2375694324026405, -3.2757382553308085, -9.0942819622921753, -6.2761487367426465, -4.5324499816346577], [-0.29490415907726408, -2.6974680661186365, -1.4227763303622858, -6.3578299094416844, -5.3893492024021654], [-0.80101738340342443, -7.5444546834062294, -6.1283799357497184, -3.7098603340458887, -2.9656979924808677], [-4.9981302146886142, -5.4348823331608287, -0.57121893109587063, -1.0225338629735479, -2.0349618360187094]], [[-3.8566252026241288, 2.2895592653863921, 0.1138088234615906, -2.0491474332625352, 1.4662328484180072], [1.433617725251906, 2.8299562722956089, 3.0806867988001545, 2.5231707832451007, 1.5612664450146805], [2.6474633807883037, -2.5548143025876846, -2.9102702838518213, 1.2529292227498137, -3.7020639938475299], [1.6546548435936859, 1.6329328241660437, 2.6213117007993154, -0.69309594272779629, 2.0952963661587005]]])
1711        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1712        self.failUnlessEqual(res.getShape(),(2, 4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2, 4, 5),"wrong shape of result.")
# Line 1695  class Test_util_binary_with_tagged_data( Line 1715  class Test_util_binary_with_tagged_data(
1715     def test_add_taggedData_rank1_expandedData_rank3(self):     def test_add_taggedData_rank1_expandedData_rank3(self):
1716        arg0=Data(numarray.array([-2.2809626914454451, -4.8903799272295743]),self.functionspace)        arg0=Data(numarray.array([-2.2809626914454451, -4.8903799272295743]),self.functionspace)
1717        arg0.setTaggedValue(1,numarray.array([3.0642111228351663, -4.4985205961110015]))        arg0.setTaggedValue(1,numarray.array([3.0642111228351663, -4.4985205961110015]))
1718        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1719        arg1=msk_arg1*numarray.array([[[1.7754441240905336, 4.0529099729642635, 4.7043912512013382, -2.704617781649965, 1.4698776084757634], [4.5671784439941874, -1.7079006307437314, -3.6573973509647075, 2.7191976629083436, 4.2224125788127225], [-4.7271382312816188, 2.4306439107959585, -2.7916712096768959, 4.4588655619663982, 1.6326808784353872], [2.8679862905417366, -2.1634558950988101, -4.5103762844422199, 2.9646504931139814, -1.4392708782644812]], [[-0.27346159438262418, -3.3121813535650988, -1.7665668038855542, -3.3582004555495484, -4.1054858983173981], [-0.40969513902910393, 2.8934834908896709, -2.9124374828211117, -3.9567708090265317, 3.619914332846939], [3.4106485261471953, 0.59340821254075582, 2.0993184350851966, 1.6731156594793637, 4.1083758024191468], [0.24650469130243824, -4.40822445729368, 2.2530855111351986, 3.2240462472607785, -1.1603983396196451]]])+(1.-msk_arg1)*numarray.array([[[-2.17708054567197, -4.7187481639621343, 0.01584043834162685, 1.7724691875617964, 2.8319694130772346], [3.4208167650331287, 4.7099984429939514, 0.279297927774115, -3.6435488605894353, 1.54124394433871], [3.6858118109446796, 1.6177472546189406, -3.6493228984208059, 0.72559567280824044, -3.8073829706357296], [0.30542906299962613, 3.5404050123898791, -3.9172380193040968, 0.54860475655834495, 0.49882163892340348]], [[1.1967333964785345, -0.66667867478553333, -2.1126318253863197, -0.89752388455982324, -1.8253058606442729], [-4.419524542530187, 1.2608261909328808, -0.47493192732799816, 1.6363915259433508, -4.7043927920367512], [-3.7793494024501593, -4.7093035871219335, 0.91808071673963632, -2.2774755182068418, -4.1772965036203669], [3.8681722531246514, 0.09905632299260958, 4.869723287807469, -4.8754151025103916, -2.1510859972343246]]])        arg1=msk_arg1*numarray.array([[[1.7754441240905336, 4.0529099729642635, 4.7043912512013382, -2.704617781649965, 1.4698776084757634], [4.5671784439941874, -1.7079006307437314, -3.6573973509647075, 2.7191976629083436, 4.2224125788127225], [-4.7271382312816188, 2.4306439107959585, -2.7916712096768959, 4.4588655619663982, 1.6326808784353872], [2.8679862905417366, -2.1634558950988101, -4.5103762844422199, 2.9646504931139814, -1.4392708782644812]], [[-0.27346159438262418, -3.3121813535650988, -1.7665668038855542, -3.3582004555495484, -4.1054858983173981], [-0.40969513902910393, 2.8934834908896709, -2.9124374828211117, -3.9567708090265317, 3.619914332846939], [3.4106485261471953, 0.59340821254075582, 2.0993184350851966, 1.6731156594793637, 4.1083758024191468], [0.24650469130243824, -4.40822445729368, 2.2530855111351986, 3.2240462472607785, -1.1603983396196451]]])+(1.-msk_arg1)*numarray.array([[[-2.17708054567197, -4.7187481639621343, 0.01584043834162685, 1.7724691875617964, 2.8319694130772346], [3.4208167650331287, 4.7099984429939514, 0.279297927774115, -3.6435488605894353, 1.54124394433871], [3.6858118109446796, 1.6177472546189406, -3.6493228984208059, 0.72559567280824044, -3.8073829706357296], [0.30542906299962613, 3.5404050123898791, -3.9172380193040968, 0.54860475655834495, 0.49882163892340348]], [[1.1967333964785345, -0.66667867478553333, -2.1126318253863197, -0.89752388455982324, -1.8253058606442729], [-4.419524542530187, 1.2608261909328808, -0.47493192732799816, 1.6363915259433508, -4.7043927920367512], [-3.7793494024501593, -4.7093035871219335, 0.91808071673963632, -2.2774755182068418, -4.1772965036203669], [3.8681722531246514, 0.09905632299260958, 4.869723287807469, -4.8754151025103916, -2.1510859972343246]]])
1720        res=add(arg0,arg1)        res=add(arg0,arg1)
1721        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1722        ref=msk_ref*numarray.array([[[-0.50551856735491141, 1.7719472815188184, 2.4234285597558931, -4.9855804730954105, -0.81108508296968163], [2.2862157525487423, -3.9888633221891765, -5.938360042410153, 0.43823497146289858, 1.9414498873672774], [-7.0081009227270634, 0.14968121935051348, -5.0726339011223409, 2.1779028705209531, -0.64828181301005783], [0.58702359909629154, -4.4444185865442556, -6.7913389758876654, 0.68368780166853638, -3.7202335697099262]], [[-5.1638415216121984, -8.2025612807946722, -6.6569467311151289, -8.2485803827791226, -8.9958658255469715], [-5.3000750662586782, -1.9968964363399033, -7.802817410050686, -8.8471507362561059, -1.2704655943826353], [-1.479731401082379, -4.2969717146888184, -2.7910614921443777, -3.2172642677502106, -0.78200412481042747], [-4.643875235927136, -9.2986043845232551, -2.6372944160943756, -1.6663336799687958, -6.0507782668492194]]])+(1.-msk_ref)*numarray.array([[[0.88713057716319632, -1.654537041126968, 3.0800515611767931, 4.8366803103969627, 5.8961805359124009], [6.485027887868295, 7.7742095658291177, 3.3435090506092813, -0.579337737754269, 4.6054550671738763], [6.7500229337798459, 4.6819583774541069, -0.58511177558563965, 3.7898067956434067, -0.74317184780056333], [3.3696401858347924, 6.6046161352250454, -0.85302689646893048, 3.6128158793935112, 3.5630327617585698]], [[-3.301787199632467, -5.1651992708965349, -6.6111524214973212, -5.3960444806708248, -6.323826456755274], [-8.9180451386411885, -3.2376944051781207, -4.9734525234389997, -2.8621290701676507, -9.2029133881477527], [-8.2778699985611617, -9.2078241832329351, -3.5804398793713652, -6.7759961143178433, -8.6758170997313684], [-0.63034834298635012, -4.3994642731183919, 0.37120269169646747, -9.3739356986213931, -6.6496065933453261]]])        ref=msk_ref*numarray.array([[[-0.50551856735491141, 1.7719472815188184, 2.4234285597558931, -4.9855804730954105, -0.81108508296968163], [2.2862157525487423, -3.9888633221891765, -5.938360042410153, 0.43823497146289858, 1.9414498873672774], [-7.0081009227270634, 0.14968121935051348, -5.0726339011223409, 2.1779028705209531, -0.64828181301005783], [0.58702359909629154, -4.4444185865442556, -6.7913389758876654, 0.68368780166853638, -3.7202335697099262]], [[-5.1638415216121984, -8.2025612807946722, -6.6569467311151289, -8.2485803827791226, -8.9958658255469715], [-5.3000750662586782, -1.9968964363399033, -7.802817410050686, -8.8471507362561059, -1.2704655943826353], [-1.479731401082379, -4.2969717146888184, -2.7910614921443777, -3.2172642677502106, -0.78200412481042747], [-4.643875235927136, -9.2986043845232551, -2.6372944160943756, -1.6663336799687958, -6.0507782668492194]]])+(1.-msk_ref)*numarray.array([[[0.88713057716319632, -1.654537041126968, 3.0800515611767931, 4.8366803103969627, 5.8961805359124009], [6.485027887868295, 7.7742095658291177, 3.3435090506092813, -0.579337737754269, 4.6054550671738763], [6.7500229337798459, 4.6819583774541069, -0.58511177558563965, 3.7898067956434067, -0.74317184780056333], [3.3696401858347924, 6.6046161352250454, -0.85302689646893048, 3.6128158793935112, 3.5630327617585698]], [[-3.301787199632467, -5.1651992708965349, -6.6111524214973212, -5.3960444806708248, -6.323826456755274], [-8.9180451386411885, -3.2376944051781207, -4.9734525234389997, -2.8621290701676507, -9.2029133881477527], [-8.2778699985611617, -9.2078241832329351, -3.5804398793713652, -6.7759961143178433, -8.6758170997313684], [-0.63034834298635012, -4.3994642731183919, 0.37120269169646747, -9.3739356986213931, -6.6496065933453261]]])
1723        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1724        self.failUnlessEqual(res.getShape(),(2, 4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2, 4, 5),"wrong shape of result.")
# Line 1707  class Test_util_binary_with_tagged_data( Line 1727  class Test_util_binary_with_tagged_data(
1727     def test_add_taggedData_rank4_expandedData_rank1(self):     def test_add_taggedData_rank4_expandedData_rank1(self):
1728        arg0=Data(numarray.array([[[[-4.9761068010263614, -2.330957656498641], [3.2016031249438015, -0.54142230749998177]], [[-4.2688566178077183, 0.78304250243196272], [-2.9068505357289864, 3.5772086925275524]], [[1.5964382239427088, 1.2000151705248587], [1.7177227763109002, -3.4204226649128087]], [[4.3786665561330356, -0.45856253857608831], [-0.048747978965418604, 2.7467152366301182]], [[0.25481243758262728, -1.2889956906640254], [-3.4599239315739529, 2.9265721998255749]], [[-3.8105082870905038, 2.8763977599596426], [-4.2453237211282504, -0.06954578165181946]]], [[[0.35721384918730781, 3.7704400314838367], [-3.8543837782680845, 4.8651030347519466]], [[-1.7790508121379633, -0.030283759452368386], [4.8232398347602619, -4.9738353872769858]], [[0.6462642562197507, -4.7830647420422334], [-3.6352923529148837, -0.36914201478608533]], [[1.3318811051039212, -3.5587655297238663], [1.9044199241903845, 0.86565227679411727]], [[2.9316245505784391, 0.52103718338664429], [-2.10188529814199, 1.0715083664473184]], [[-0.70411721517569337, -0.86964958251028346], [4.3107639247544238, 0.3709958217615803]]]]),self.functionspace)        arg0=Data(numarray.array([[[[-4.9761068010263614, -2.330957656498641], [3.2016031249438015, -0.54142230749998177]], [[-4.2688566178077183, 0.78304250243196272], [-2.9068505357289864, 3.5772086925275524]], [[1.5964382239427088, 1.2000151705248587], [1.7177227763109002, -3.4204226649128087]], [[4.3786665561330356, -0.45856253857608831], [-0.048747978965418604, 2.7467152366301182]], [[0.25481243758262728, -1.2889956906640254], [-3.4599239315739529, 2.9265721998255749]], [[-3.8105082870905038, 2.8763977599596426], [-4.2453237211282504, -0.06954578165181946]]], [[[0.35721384918730781, 3.7704400314838367], [-3.8543837782680845, 4.8651030347519466]], [[-1.7790508121379633, -0.030283759452368386], [4.8232398347602619, -4.9738353872769858]], [[0.6462642562197507, -4.7830647420422334], [-3.6352923529148837, -0.36914201478608533]], [[1.3318811051039212, -3.5587655297238663], [1.9044199241903845, 0.86565227679411727]], [[2.9316245505784391, 0.52103718338664429], [-2.10188529814199, 1.0715083664473184]], [[-0.70411721517569337, -0.86964958251028346], [4.3107639247544238, 0.3709958217615803]]]]),self.functionspace)
1729        arg0.setTaggedValue(1,numarray.array([[[[4.1930979408302278, 3.4548797361332575], [-3.2109304532151195, 3.6065586942657983]], [[2.1496603490480961, -0.27294900359776264], [4.3423450876050467, -2.4181487923671297]], [[-1.7059873740485374, -1.583269777156886], [-4.5452656873708852, -2.370313398233761]], [[-0.72828692588611155, -3.9349842541833571], [-1.8309490152253396, -3.7536229394244467]], [[-1.4048183232730906, 0.63687025718848123], [4.9473053089650847, 2.1979510455769748]], [[1.7289146800302877, 4.6381893104780154], [3.7161984084014925, 4.5995448790165625]]], [[[-1.6160272241403328, -1.6203169184164201], [-3.3679032713587431, -2.9411488967179622]], [[3.4131592736106597, -3.8273134492050787], [-3.4631261485478571, -1.7153525072385989]], [[-3.014621477185532, -2.9174593934400495], [0.31162291317797131, 2.2471602355421938]], [[0.42699496010309534, 1.4555292776003128], [3.4543994663589235, 1.2103109670033421]], [[3.0150413200430322, -1.0356322790444397], [4.3444170923722361, -2.377505269050558]], [[0.26965949934675493, 3.2658340124438272], [-1.1356798254262701, -1.5574026586996528]]]]))        arg0.setTaggedValue(1,numarray.array([[[[4.1930979408302278, 3.4548797361332575], [-3.2109304532151195, 3.6065586942657983]], [[2.1496603490480961, -0.27294900359776264], [4.3423450876050467, -2.4181487923671297]], [[-1.7059873740485374, -1.583269777156886], [-4.5452656873708852, -2.370313398233761]], [[-0.72828692588611155, -3.9349842541833571], [-1.8309490152253396, -3.7536229394244467]], [[-1.4048183232730906, 0.63687025718848123], [4.9473053089650847, 2.1979510455769748]], [[1.7289146800302877, 4.6381893104780154], [3.7161984084014925, 4.5995448790165625]]], [[[-1.6160272241403328, -1.6203169184164201], [-3.3679032713587431, -2.9411488967179622]], [[3.4131592736106597, -3.8273134492050787], [-3.4631261485478571, -1.7153525072385989]], [[-3.014621477185532, -2.9174593934400495], [0.31162291317797131, 2.2471602355421938]], [[0.42699496010309534, 1.4555292776003128], [3.4543994663589235, 1.2103109670033421]], [[3.0150413200430322, -1.0356322790444397], [4.3444170923722361, -2.377505269050558]], [[0.26965949934675493, 3.2658340124438272], [-1.1356798254262701, -1.5574026586996528]]]]))
1730        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1731        arg1=msk_arg1*numarray.array([0.065857724577657706, 0.78873862791560168])+(1.-msk_arg1)*numarray.array([-3.6691266393881996, 4.8396807240752064])        arg1=msk_arg1*numarray.array([0.065857724577657706, 0.78873862791560168])+(1.-msk_arg1)*numarray.array([-3.6691266393881996, 4.8396807240752064])
1732        res=add(arg0,arg1)        res=add(arg0,arg1)
1733        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1734        ref=msk_ref*numarray.array([[[[-4.9102490764487037, -2.2650999319209832], [3.2674608495214592, -0.47556458292232406]], [[-4.2029988932300606, 0.84890022700962042], [-2.8409928111513287, 3.6430664171052101]], [[1.6622959485203666, 1.2658728951025164], [1.7835805008885579, -3.354564940335151]], [[4.4445242807106933, -0.3927048139984306], [0.017109745612239102, 2.8125729612077759]], [[0.32067016216028499, -1.2231379660863677], [-3.3940662069962952, 2.9924299244032326]], [[-3.7446505625128461, 2.9422554845373003], [-4.1794659965505927, -0.0036880570741617547]]], [[[1.1459524771029095, 4.5591786593994383], [-3.0656451503524829, 5.6538416626675483]], [[-0.99031218422236167, 0.75845486846323329], [5.6119784626758635, -4.1850967593613841]], [[1.4350028841353524, -3.9943261141266317], [-2.8465537249992821, 0.41959661312951635]], [[2.1206197330195229, -2.7700269018082646], [2.6931585521059862, 1.6543909047097189]], [[3.7203631784940407, 1.309775811302246], [-1.3131466702263883, 1.8602469943629201]], [[0.084621412739908308, -0.080910954594681783], [5.0995025526700255, 1.159734449677182]]]])+(1.-msk_ref)*numarray.array([[[[0.52397130144202819, -0.21424690325494211], [-6.8800570926033195, -0.062567945122401269]], [[-1.5194662903401035, -3.9420756429859622], [0.67321844821684707, -6.0872754317553293]], [[-5.375114013436737, -5.2523964165450856], [-8.2143923267590857, -6.0394400376219606]], [[-4.3974135652743112, -7.6041108935715567], [-5.5000756546135392, -7.4227495788126463]], [[-5.0739449626612902, -3.0322563821997184], [1.2781786695768851, -1.4711755938112248]], [[-1.9402119593579119, 0.96906267108981581], [0.047071769013292908, 0.9304182396283629]]], [[[3.2236534999348736, 3.2193638056587863], [1.4717774527164633, 1.8985318273572442]], [[8.2528399976858662, 1.0123672748701278], [1.3765545755273494, 3.1243282168366076]], [[1.8250592468896745, 1.922221330635157], [5.1513036372531777, 7.0868409596174002]], [[5.2666756841783018, 6.2952100016755193], [8.2940801904341299, 6.0499916910785485]], [[7.8547220441182386, 3.8040484450307668], [9.1840978164474425, 2.4621754550246484]], [[5.1093402234219614, 8.1055147365190336], [3.7040008986489363, 3.2822780653755537]]]])        ref=msk_ref*numarray.array([[[[-4.9102490764487037, -2.2650999319209832], [3.2674608495214592, -0.47556458292232406]], [[-4.2029988932300606, 0.84890022700962042], [-2.8409928111513287, 3.6430664171052101]], [[1.6622959485203666, 1.2658728951025164], [1.7835805008885579, -3.354564940335151]], [[4.4445242807106933, -0.3927048139984306], [0.017109745612239102, 2.8125729612077759]], [[0.32067016216028499, -1.2231379660863677], [-3.3940662069962952, 2.9924299244032326]], [[-3.7446505625128461, 2.9422554845373003], [-4.1794659965505927, -0.0036880570741617547]]], [[[1.1459524771029095, 4.5591786593994383], [-3.0656451503524829, 5.6538416626675483]], [[-0.99031218422236167, 0.75845486846323329], [5.6119784626758635, -4.1850967593613841]], [[1.4350028841353524, -3.9943261141266317], [-2.8465537249992821, 0.41959661312951635]], [[2.1206197330195229, -2.7700269018082646], [2.6931585521059862, 1.6543909047097189]], [[3.7203631784940407, 1.309775811302246], [-1.3131466702263883, 1.8602469943629201]], [[0.084621412739908308, -0.080910954594681783], [5.0995025526700255, 1.159734449677182]]]])+(1.-msk_ref)*numarray.array([[[[0.52397130144202819, -0.21424690325494211], [-6.8800570926033195, -0.062567945122401269]], [[-1.5194662903401035, -3.9420756429859622], [0.67321844821684707, -6.0872754317553293]], [[-5.375114013436737, -5.2523964165450856], [-8.2143923267590857, -6.0394400376219606]], [[-4.3974135652743112, -7.6041108935715567], [-5.5000756546135392, -7.4227495788126463]], [[-5.0739449626612902, -3.0322563821997184], [1.2781786695768851, -1.4711755938112248]], [[-1.9402119593579119, 0.96906267108981581], [0.047071769013292908, 0.9304182396283629]]], [[[3.2236534999348736, 3.2193638056587863], [1.4717774527164633, 1.8985318273572442]], [[8.2528399976858662, 1.0123672748701278], [1.3765545755273494, 3.1243282168366076]], [[1.8250592468896745, 1.922221330635157], [5.1513036372531777, 7.0868409596174002]], [[5.2666756841783018, 6.2952100016755193], [8.2940801904341299, 6.0499916910785485]], [[7.8547220441182386, 3.8040484450307668], [9.1840978164474425, 2.4621754550246484]], [[5.1093402234219614, 8.1055147365190336], [3.7040008986489363, 3.2822780653755537]]]])
1735        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1736        self.failUnlessEqual(res.getShape(),(2, 6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2, 6, 2, 2),"wrong shape of result.")
# Line 1719  class Test_util_binary_with_tagged_data( Line 1739  class Test_util_binary_with_tagged_data(
1739     def test_add_taggedData_rank1_expandedData_rank4(self):     def test_add_taggedData_rank1_expandedData_rank4(self):
1740        arg0=Data(numarray.array([-2.2556692590794691, -2.6681053592082673]),self.functionspace)        arg0=Data(numarray.array([-2.2556692590794691, -2.6681053592082673]),self.functionspace)
1741        arg0.setTaggedValue(1,numarray.array([2.863700134134108, -3.9488832397206819]))        arg0.setTaggedValue(1,numarray.array([2.863700134134108, -3.9488832397206819]))
1742        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1743        arg1=msk_arg1*numarray.array([[[[-0.072215602031625359, -2.069140076257765], [-2.316930191990425, 2.7522986163601191]], [[-4.5160191009329909, -0.73115381797841383], [2.7813318160148048, -1.8509458303791337]], [[0.098493034932795709, 1.847992468033171], [1.1788179300639881, 2.6287632570770043]], [[3.8838743569491179, -0.25168899766695585], [4.8136407846762133, 1.7155948931212244]], [[2.2695333244069813, -1.0547127732996131], [-0.21458278285434762, 3.7236887298486483]], [[-4.0972658164601263, 3.6965073107369033], [0.29932213894322679, -4.4562678981271517]]], [[[-1.794413425954815, -3.8605149622831867], [-3.720307473201574, 4.2653609784611373]], [[2.999602398170973, -0.87265408021619884], [0.072175797119182761, -1.6395351630887411]], [[4.5026516850484946, 2.0117162381940465], [-0.39823130719128841, 0.62478243386167787]], [[-4.6450435892705393, 4.8906138795612506], [0.042491443124056616, -4.6862363995787018]], [[4.345850568853038, -1.2505190220117068], [-3.6514580238932592, 1.4904987151914275]], [[4.8821494267344292, 0.077246189915283203], [-4.2517236866799779, 1.6153406088337166]]]])+(1.-msk_arg1)*numarray.array([[[[-0.32805503406503256, -0.48391450188312835], [-3.4161202090084677, -0.44721029172954907]], [[4.6793198520762491, 1.3306336018074569], [0.29928547621234891, 4.0920059848983357]], [[2.4395522585757732, -4.0843468210973928], [4.6196674376197002, 3.6893010273500586]], [[1.8879384964144492, -2.0267418806128932], [1.1860068140815718, 2.5798387978543333]], [[1.5848702173621296, -2.2545313535260716], [3.327359095616341, -3.7908172830306821]], [[-2.5153951604877745, 3.8965532528204498], [2.7288735259340999, 2.0860574272741967]]], [[[3.5189162491049011, 1.9860032663023102], [2.4086968032302298, 3.5098981240674227]], [[-3.3760621782830293, 3.1850656396939261], [3.3115134203892467, -0.94354174662541368]], [[-0.5011116722233746, 2.188604948233948], [0.48663541989570103, 4.2172672366421935]], [[0.09928805869946622, -2.3733223201797871], [-3.9467252050788257, -3.7403226202592768]], [[1.4397405491464053, 2.8208589979423229], [1.1236402834259032, 0.57394728630067426]], [[3.4174880203139288, 1.8964486839896031], [3.5399269207357591, 3.9727083620311436]]]])        arg1=msk_arg1*numarray.array([[[[-0.072215602031625359, -2.069140076257765], [-2.316930191990425, 2.7522986163601191]], [[-4.5160191009329909, -0.73115381797841383], [2.7813318160148048, -1.8509458303791337]], [[0.098493034932795709, 1.847992468033171], [1.1788179300639881, 2.6287632570770043]], [[3.8838743569491179, -0.25168899766695585], [4.8136407846762133, 1.7155948931212244]], [[2.2695333244069813, -1.0547127732996131], [-0.21458278285434762, 3.7236887298486483]], [[-4.0972658164601263, 3.6965073107369033], [0.29932213894322679, -4.4562678981271517]]], [[[-1.794413425954815, -3.8605149622831867], [-3.720307473201574, 4.2653609784611373]], [[2.999602398170973, -0.87265408021619884], [0.072175797119182761, -1.6395351630887411]], [[4.5026516850484946, 2.0117162381940465], [-0.39823130719128841, 0.62478243386167787]], [[-4.6450435892705393, 4.8906138795612506], [0.042491443124056616, -4.6862363995787018]], [[4.345850568853038, -1.2505190220117068], [-3.6514580238932592, 1.4904987151914275]], [[4.8821494267344292, 0.077246189915283203], [-4.2517236866799779, 1.6153406088337166]]]])+(1.-msk_arg1)*numarray.array([[[[-0.32805503406503256, -0.48391450188312835], [-3.4161202090084677, -0.44721029172954907]], [[4.6793198520762491, 1.3306336018074569], [0.29928547621234891, 4.0920059848983357]], [[2.4395522585757732, -4.0843468210973928], [4.6196674376197002, 3.6893010273500586]], [[1.8879384964144492, -2.0267418806128932], [1.1860068140815718, 2.5798387978543333]], [[1.5848702173621296, -2.2545313535260716], [3.327359095616341, -3.7908172830306821]], [[-2.5153951604877745, 3.8965532528204498], [2.7288735259340999, 2.0860574272741967]]], [[[3.5189162491049011, 1.9860032663023102], [2.4086968032302298, 3.5098981240674227]], [[-3.3760621782830293, 3.1850656396939261], [3.3115134203892467, -0.94354174662541368]], [[-0.5011116722233746, 2.188604948233948], [0.48663541989570103, 4.2172672366421935]], [[0.09928805869946622, -2.3733223201797871], [-3.9467252050788257, -3.7403226202592768]], [[1.4397405491464053, 2.8208589979423229], [1.1236402834259032, 0.57394728630067426]], [[3.4174880203139288, 1.8964486839896031], [3.5399269207357591, 3.9727083620311436]]]])
1744        res=add(arg0,arg1)        res=add(arg0,arg1)
1745        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1746        ref=msk_ref*numarray.array([[[[-2.3278848611110945, -4.3248093353372337], [-4.5725994510698946, 0.49662935728064994]], [[-6.77168836001246, -2.986823077057883], [0.5256625569353357, -4.1066150894586029]], [[-2.1571762241466734, -0.40767679104629817], [-1.0768513290154811, 0.37309399799753518]], [[1.6282050978696487, -2.507358256746425], [2.5579715255967441, -0.54007436595824476]], [[0.013864065327512165, -3.3103820323790822], [-2.4702520419338168, 1.4680194707691792]], [[-6.3529350755395955, 1.4408380516574342], [-1.9563471201362423, -6.7119371572066209]]], [[[-4.4625187851630823, -6.528620321491454], [-6.3884128324098413, 1.59725561925287]], [[0.33149703896270566, -3.5407594394244661], [-2.5959295620890845, -4.3076405222970084]], [[1.8345463258402273, -0.65638912101422076], [-3.0663366663995557, -2.0433229253465894]], [[-7.3131489484788066, 2.2225085203529833], [-2.6256139160842107, -7.3543417587869691]], [[1.6777452096447707, -3.9186243812199741], [-6.3195633831015261, -1.1776066440168398]], [[2.2140440675261619, -2.5908591692929841], [-6.9198290458882452, -1.0527647503745508]]]])+(1.-msk_ref)*numarray.array([[[[2.5356451000690754, 2.3797856322509796], [-0.55242007487435973, 2.4164898424045589]], [[7.5430199862103571, 4.1943337359415649], [3.1629856103464569, 6.9557061190324436]], [[5.3032523927098811, -1.2206466869632848], [7.4833675717538082, 6.5530011614841666]], [[4.7516386305485572, 0.83695825352121478], [4.0497069482156798, 5.4435389319884413]], [[4.4485703514962376, 0.60916878060803636], [6.191059229750449, -0.92711714889657415]], [[0.3483049736463335, 6.7602533869545578], [5.5925736600682079, 4.9497575614083047]]], [[[-0.42996699061578081, -1.9628799734183717], [-1.5401864364904521, -0.43898511565325915]], [[-7.3249454180037112, -0.76381760002675581], [-0.63736981933143522, -4.8924249863460956]], [[-4.4499949119440565, -1.7602782914867339], [-3.4622478198249809, 0.2683839969215116]], [[-3.8495951810212157, -6.3222055599004694], [-7.8956084447995076, -7.6892058599799586]], [[-2.5091426905742766, -1.128024241778359], [-2.8252429562947787, -3.3749359534200076]], [[-0.53139521940675305, -2.0524345557310788], [-0.4089563189849228, 0.023825122310461744]]]])        ref=msk_ref*numarray.array([[[[-2.3278848611110945, -4.3248093353372337], [-4.5725994510698946, 0.49662935728064994]], [[-6.77168836001246, -2.986823077057883], [0.5256625569353357, -4.1066150894586029]], [[-2.1571762241466734, -0.40767679104629817], [-1.0768513290154811, 0.37309399799753518]], [[1.6282050978696487, -2.507358256746425], [2.5579715255967441, -0.54007436595824476]], [[0.013864065327512165, -3.3103820323790822], [-2.4702520419338168, 1.4680194707691792]], [[-6.3529350755395955, 1.4408380516574342], [-1.9563471201362423, -6.7119371572066209]]], [[[-4.4625187851630823, -6.528620321491454], [-6.3884128324098413, 1.59725561925287]], [[0.33149703896270566, -3.5407594394244661], [-2.5959295620890845, -4.3076405222970084]], [[1.8345463258402273, -0.65638912101422076], [-3.0663366663995557, -2.0433229253465894]], [[-7.3131489484788066, 2.2225085203529833], [-2.6256139160842107, -7.3543417587869691]], [[1.6777452096447707, -3.9186243812199741], [-6.3195633831015261, -1.1776066440168398]], [[2.2140440675261619, -2.5908591692929841], [-6.9198290458882452, -1.0527647503745508]]]])+(1.-msk_ref)*numarray.array([[[[2.5356451000690754, 2.3797856322509796], [-0.55242007487435973, 2.4164898424045589]], [[7.5430199862103571, 4.1943337359415649], [3.1629856103464569, 6.9557061190324436]], [[5.3032523927098811, -1.2206466869632848], [7.4833675717538082, 6.5530011614841666]], [[4.7516386305485572, 0.83695825352121478], [4.0497069482156798, 5.4435389319884413]], [[4.4485703514962376, 0.60916878060803636], [6.191059229750449, -0.92711714889657415]], [[0.3483049736463335, 6.7602533869545578], [5.5925736600682079, 4.9497575614083047]]], [[[-0.42996699061578081, -1.9628799734183717], [-1.5401864364904521, -0.43898511565325915]], [[-7.3249454180037112, -0.76381760002675581], [-0.63736981933143522, -4.8924249863460956]], [[-4.4499949119440565, -1.7602782914867339], [-3.4622478198249809, 0.2683839969215116]], [[-3.8495951810212157, -6.3222055599004694], [-7.8956084447995076, -7.6892058599799586]], [[-2.5091426905742766, -1.128024241778359], [-2.8252429562947787, -3.3749359534200076]], [[-0.53139521940675305, -2.0524345557310788], [-0.4089563189849228, 0.023825122310461744]]]])
1747        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1748        self.failUnlessEqual(res.getShape(),(2, 6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2, 6, 2, 2),"wrong shape of result.")
# Line 1731  class Test_util_binary_with_tagged_data( Line 1751  class Test_util_binary_with_tagged_data(
1751     def test_add_taggedData_rank2_expandedData_rank2(self):     def test_add_taggedData_rank2_expandedData_rank2(self):
1752        arg0=Data(numarray.array([[1.7152692280060329, -1.2300464860743099, -1.9498701034859067, 4.9728542805682903, 4.6992154069303123], [4.099244493040473, -3.2801010093693614, 4.3385500210790848, 3.9730092559560486, 0.46869522504508065], [1.0737430954270835, 2.7561941043401141, -3.1438560774173729, -2.2410109059034022, 0.5213253226610215], [-3.581204447457834, -3.5795059671075191, 4.579972723696434, 1.5944505826912927, -4.7963293971832899]]),self.functionspace)        arg0=Data(numarray.array([[1.7152692280060329, -1.2300464860743099, -1.9498701034859067, 4.9728542805682903, 4.6992154069303123], [4.099244493040473, -3.2801010093693614, 4.3385500210790848, 3.9730092559560486, 0.46869522504508065], [1.0737430954270835, 2.7561941043401141, -3.1438560774173729, -2.2410109059034022, 0.5213253226610215], [-3.581204447457834, -3.5795059671075191, 4.579972723696434, 1.5944505826912927, -4.7963293971832899]]),self.functionspace)
1753        arg0.setTaggedValue(1,numarray.array([[1.5404263218529257, 1.0711784897607934, 1.3858975032065395, 3.5086187684716279, 3.5381271295487942], [1.2658353172730132, 3.8143521178101363, 2.2702025613433294, 4.0907738431796439, 2.9204000015564375], [-0.68025132201919103, -2.1355924007023344, 1.7527807389108299, 2.8951187849915625, -2.6423590779591088], [-3.3862716334523713, 3.2281268959512062, 4.718779302332031, 3.8927249043916827, 1.2018653614968597]]))        arg0.setTaggedValue(1,numarray.array([[1.5404263218529257, 1.0711784897607934, 1.3858975032065395, 3.5086187684716279, 3.5381271295487942], [1.2658353172730132, 3.8143521178101363, 2.2702025613433294, 4.0907738431796439, 2.9204000015564375], [-0.68025132201919103, -2.1355924007023344, 1.7527807389108299, 2.8951187849915625, -2.6423590779591088], [-3.3862716334523713, 3.2281268959512062, 4.718779302332031, 3.8927249043916827, 1.2018653614968597]]))
1754        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1755        arg1=msk_arg1*numarray.array([[-1.9540602742577318, -2.250261958175177, -0.66735985740135284, -3.3104693257130693, -3.3799859376688701], [4.5332772234993755, -0.13777176141983016, -2.5466813485540882, -0.47845487842231549, 3.2036102098265911], [2.3628806302325565, 3.6247949499061711, -2.7520272018769365, -1.5075580583576853, 1.8859246085914814], [-0.72225105324651739, -4.8701149159205421, -0.62724187141152488, 1.0187127507998799, -0.15076291519388718]])+(1.-msk_arg1)*numarray.array([[4.3792225378955472, 1.7333370002641875, 4.3922902879732959, 4.7427198533203061, 1.3601688028530692], [4.4311772423288041, -4.9791237150142065, -1.4894702045336885, 3.9624475860056734, -0.54055470835717845], [-3.6519043550820438, 3.2492657366497379, 1.6351236094415134, -4.5258707960354938, -4.4394735215634178], [-4.3785044540498363, 3.4671872445822078, -0.21397749774029773, -0.25313877408510344, -1.2896309989864738]])        arg1=msk_arg1*numarray.array([[-1.9540602742577318, -2.250261958175177, -0.66735985740135284, -3.3104693257130693, -3.3799859376688701], [4.5332772234993755, -0.13777176141983016, -2.5466813485540882, -0.47845487842231549, 3.2036102098265911], [2.3628806302325565, 3.6247949499061711, -2.7520272018769365, -1.5075580583576853, 1.8859246085914814], [-0.72225105324651739, -4.8701149159205421, -0.62724187141152488, 1.0187127507998799, -0.15076291519388718]])+(1.-msk_arg1)*numarray.array([[4.3792225378955472, 1.7333370002641875, 4.3922902879732959, 4.7427198533203061, 1.3601688028530692], [4.4311772423288041, -4.9791237150142065, -1.4894702045336885, 3.9624475860056734, -0.54055470835717845], [-3.6519043550820438, 3.2492657366497379, 1.6351236094415134, -4.5258707960354938, -4.4394735215634178], [-4.3785044540498363, 3.4671872445822078, -0.21397749774029773, -0.25313877408510344, -1.2896309989864738]])
1756        res=add(arg0,arg1)        res=add(arg0,arg1)
1757        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1758        ref=msk_ref*numarray.array([[-0.23879104625169889, -3.4803084442494869, -2.6172299608872596, 1.662384954855221, 1.3192294692614421], [8.6325217165398485, -3.4178727707891916, 1.7918686725249966, 3.4945543775337331, 3.6723054348716717], [3.4366237256596399, 6.3809890542462853, -5.8958832792943099, -3.7485689642610875, 2.4072499312525029], [-4.3034555007043513, -8.4496208830280608, 3.9527308522849092, 2.6131633334911726, -4.9470923123771771]])+(1.-msk_ref)*numarray.array([[5.9196488597484729, 2.8045154900249809, 5.7781877911798354, 8.251338621791934, 4.8982959324018633], [5.6970125596018173, -1.1647715972040702, 0.78073235680964093, 8.0532214291853172, 2.3798452931992591], [-4.3321556771012348, 1.1136733359474036, 3.3879043483523432, -1.6307520110439313, -7.0818325995225262], [-7.7647760875022076, 6.695314140533414, 4.5048018045917333, 3.6395861303065793, -0.087765637489614079]])        ref=msk_ref*numarray.array([[-0.23879104625169889, -3.4803084442494869, -2.6172299608872596, 1.662384954855221, 1.3192294692614421], [8.6325217165398485, -3.4178727707891916, 1.7918686725249966, 3.4945543775337331, 3.6723054348716717], [3.4366237256596399, 6.3809890542462853, -5.8958832792943099, -3.7485689642610875, 2.4072499312525029], [-4.3034555007043513, -8.4496208830280608, 3.9527308522849092, 2.6131633334911726, -4.9470923123771771]])+(1.-msk_ref)*numarray.array([[5.9196488597484729, 2.8045154900249809, 5.7781877911798354, 8.251338621791934, 4.8982959324018633], [5.6970125596018173, -1.1647715972040702, 0.78073235680964093, 8.0532214291853172, 2.3798452931992591], [-4.3321556771012348, 1.1136733359474036, 3.3879043483523432, -1.6307520110439313, -7.0818325995225262], [-7.7647760875022076, 6.695314140533414, 4.5048018045917333, 3.6395861303065793, -0.087765637489614079]])
1759        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1760        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 1743  class Test_util_binary_with_tagged_data( Line 1763  class Test_util_binary_with_tagged_data(
1763     def test_add_taggedData_rank3_expandedData_rank2(self):     def test_add_taggedData_rank3_expandedData_rank2(self):
1764        arg0=Data(numarray.array([[[-1.9572743983074314, -2.6602761617350215], [0.91029556063278338, 4.7675976179607282], [1.965420705710752, -2.8964061247550377], [-4.5721264308622462, -0.32534760798207163], [2.2851753525872018, 4.9452322759710583]], [[3.3437530551727832, 2.1823932797100358], [-0.88110644412299965, 2.7739028901731366], [-2.9191167974014256, -4.6796230252555757], [-4.3594847032190822, 0.78926397151927752], [-3.1597397213754874, 1.0636752807765166]], [[-1.3664075122669384, 1.4651940557037122], [4.2894483057313799, 3.2014136326349636], [-2.1217188060176051, 4.9098728505880054], [-0.42296426121522757, -0.32938680915271235], [-2.847014838372004, -4.0938305438841773]], [[1.8457341637712581, 3.1658456555137704], [-4.6360705143634364, -2.783875223489324], [-0.33880338142721733, 2.5997700021548784], [2.391848266778636, 4.9854577725401867], [1.6985185546695298, 1.0395766903884152]]]),self.functionspace)        arg0=Data(numarray.array([[[-1.9572743983074314, -2.6602761617350215], [0.91029556063278338, 4.7675976179607282], [1.965420705710752, -2.8964061247550377], [-4.5721264308622462, -0.32534760798207163], [2.2851753525872018, 4.9452322759710583]], [[3.3437530551727832, 2.1823932797100358], [-0.88110644412299965, 2.7739028901731366], [-2.9191167974014256, -4.6796230252555757], [-4.3594847032190822, 0.78926397151927752], [-3.1597397213754874, 1.0636752807765166]], [[-1.3664075122669384, 1.4651940557037122], [4.2894483057313799, 3.2014136326349636], [-2.1217188060176051, 4.9098728505880054], [-0.42296426121522757, -0.32938680915271235], [-2.847014838372004, -4.0938305438841773]], [[1.8457341637712581, 3.1658456555137704], [-4.6360705143634364, -2.783875223489324], [-0.33880338142721733, 2.5997700021548784], [2.391848266778636, 4.9854577725401867], [1.6985185546695298, 1.0395766903884152]]]),self.functionspace)
1765        arg0.setTaggedValue(1,numarray.array([[[3.0371820608455842, 2.2856670013721825], [-2.3542352912274609, 0.90376984544323857], [-0.75818518752667519, 4.0097199175605933], [0.4357922411363413, 0.11672730595592729], [4.7178951526230044, 3.6606019365713269]], [[-3.8225293204324018, 3.2893953189012599], [2.0059947758958865, 3.5568385865105743], [0.08489686332407409, 1.932933538030821], [-2.7408504915058609, 0.55646335073841779], [-3.8030090813055564, 1.5071187087926994]], [[-4.5696055847489845, 1.3080372561446749], [-1.5594564706523872, -3.2645380721920123], [0.10559443023763926, 2.1478071516294754], [4.5514005512887579, 3.4390454360914173], [-0.30156380332224586, 1.2028684442081872]], [[-4.8474496002398517, 1.0597237661007917], [4.4517876427676057, -0.73422068297053933], [4.865782777153953, -2.6891777413812323], [4.6786618490919754, -2.9789121096602944], [-0.012766235515209168, 0.65730180320093012]]]))        arg0.setTaggedValue(1,numarray.array([[[3.0371820608455842, 2.2856670013721825], [-2.3542352912274609, 0.90376984544323857], [-0.75818518752667519, 4.0097199175605933], [0.4357922411363413, 0.11672730595592729], [4.7178951526230044, 3.6606019365713269]], [[-3.8225293204324018, 3.2893953189012599], [2.0059947758958865, 3.5568385865105743], [0.08489686332407409, 1.932933538030821], [-2.7408504915058609, 0.55646335073841779], [-3.8030090813055564, 1.5071187087926994]], [[-4.5696055847489845, 1.3080372561446749], [-1.5594564706523872, -3.2645380721920123], [0.10559443023763926, 2.1478071516294754], [4.5514005512887579, 3.4390454360914173], [-0.30156380332224586, 1.2028684442081872]], [[-4.8474496002398517, 1.0597237661007917], [4.4517876427676057, -0.73422068297053933], [4.865782777153953, -2.6891777413812323], [4.6786618490919754, -2.9789121096602944], [-0.012766235515209168, 0.65730180320093012]]]))
1766        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1767        arg1=msk_arg1*numarray.array([[4.385624185470272, 1.2936939943521697, -0.73287479855595716, -2.9894751416877821, -3.3873828442419338], [1.1338460712454523, -1.4612294904072543, 0.42764983223519071, -2.8652095196640004, 0.99623966198282332], [0.027224654768652989, -4.7107112601445724, 3.3881379080805178, 0.99158813905735776, 4.0707314709011619], [1.4689903424015549, -2.6400292184324581, 0.49213856034389192, 0.52567665814035891, -1.0903162790185239]])+(1.-msk_arg1)*numarray.array([[3.2533645063193308, 4.7324021229016502, 1.4353863205548478, 0.67721871992603067, -4.9617653619476565], [-3.6388840617866314, -2.9754930407962488, 3.6935149320489007, -3.4243894789764306, -0.85773987038326727], [3.0105051122097457, -4.0518170747685929, -0.48549539435581579, -4.0585675507536854, 0.28087052926519718], [3.5101313436180863, 4.2984118036078769, 2.4095998323537495, 3.6779527058464208, -0.15315595198178578]])        arg1=msk_arg1*numarray.array([[4.385624185470272, 1.2936939943521697, -0.73287479855595716, -2.9894751416877821, -3.3873828442419338], [1.1338460712454523, -1.4612294904072543, 0.42764983223519071, -2.8652095196640004, 0.99623966198282332], [0.027224654768652989, -4.7107112601445724, 3.3881379080805178, 0.99158813905735776, 4.0707314709011619], [1.4689903424015549, -2.6400292184324581, 0.49213856034389192, 0.52567665814035891, -1.0903162790185239]])+(1.-msk_arg1)*numarray.array([[3.2533645063193308, 4.7324021229016502, 1.4353863205548478, 0.67721871992603067, -4.9617653619476565], [-3.6388840617866314, -2.9754930407962488, 3.6935149320489007, -3.4243894789764306, -0.85773987038326727], [3.0105051122097457, -4.0518170747685929, -0.48549539435581579, -4.0585675507536854, 0.28087052926519718], [3.5101313436180863, 4.2984118036078769, 2.4095998323537495, 3.6779527058464208, -0.15315595198178578]])
1768        res=add(arg0,arg1)        res=add(arg0,arg1)
1769        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1770        ref=msk_ref*numarray.array([[[2.4283497871628406, 1.7253480237352505], [2.2039895549849531, 6.0612916123128979], [1.2325459071547948, -3.6292809233109948], [-7.5616015725500283, -3.3148227496698537], [-1.102207491654732, 1.5578494317291245]], [[4.4775991264182355, 3.3162393509554882], [-2.3423359345302539, 1.3126733997658824], [-2.4914669651662349, -4.251973193020385], [-7.2246942228830822, -2.0759455481447229], [-2.1635000593926641, 2.05991494275934]], [[-1.3391828574982854, 1.4924187104723652], [-0.4212629544131925, -1.5092976275096088], [1.2664191020629127, 8.2980107586685232], [0.5686238778421302, 0.66220132990464542], [1.223716632529158, -0.02309907298301539]], [[3.314724506172813, 4.6348359979153253], [-7.2760997327958945, -5.4239044419217821], [0.15333517891667459, 3.0919085624987703], [2.917524924918995, 5.5111344306805456], [0.60820227565100593, -0.050739588630108745]]])+(1.-msk_ref)*numarray.array([[[6.290546567164915, 5.5390315076915133], [2.3781668316741893, 5.6361719683448888], [0.67720113302817264, 5.4451062381154411], [1.113010961062372, 0.79394602588195795], [-0.24387020932465209, -1.3011634253763296]], [[-7.4614133822190336, -0.34948874288537146], [-0.96949826490036228, 0.58134554571432551], [3.7784117953729748, 5.6264484700797217], [-6.1652399704822916, -2.8679261282380129], [-4.6607489516888236, 0.64937883840943211]], [[-1.5591004725392388, 4.3185423683544206], [-5.6112735454209801, -7.3163551469606052], [-0.37990096411817653, 1.6623117572736597], [0.49283300053507251, -0.61952211466226803], [-0.020693274057048683, 1.4837389734733843]], [[-1.3373182566217654, 4.569855109718878], [8.7501994463754826, 3.5641911206373376], [7.2753826095077025, -0.27957790902748281], [8.3566145549383961, 0.69904059618612635], [-0.16592218749699494, 0.50414585121914435]]])        ref=msk_ref*numarray.array([[[2.4283497871628406, 1.7253480237352505], [2.2039895549849531, 6.0612916123128979], [1.2325459071547948, -3.6292809233109948], [-7.5616015725500283, -3.3148227496698537], [-1.102207491654732, 1.5578494317291245]], [[4.4775991264182355, 3.3162393509554882], [-2.3423359345302539, 1.3126733997658824], [-2.4914669651662349, -4.251973193020385], [-7.2246942228830822, -2.0759455481447229], [-2.1635000593926641, 2.05991494275934]], [[-1.3391828574982854, 1.4924187104723652], [-0.4212629544131925, -1.5092976275096088], [1.2664191020629127, 8.2980107586685232], [0.5686238778421302, 0.66220132990464542], [1.223716632529158, -0.02309907298301539]], [[3.314724506172813, 4.6348359979153253], [-7.2760997327958945, -5.4239044419217821], [0.15333517891667459, 3.0919085624987703], [2.917524924918995, 5.5111344306805456], [0.60820227565100593, -0.050739588630108745]]])+(1.-msk_ref)*numarray.array([[[6.290546567164915, 5.5390315076915133], [2.3781668316741893, 5.6361719683448888], [0.67720113302817264, 5.4451062381154411], [1.113010961062372, 0.79394602588195795], [-0.24387020932465209, -1.3011634253763296]], [[-7.4614133822190336, -0.34948874288537146], [-0.96949826490036228, 0.58134554571432551], [3.7784117953729748, 5.6264484700797217], [-6.1652399704822916, -2.8679261282380129], [-4.6607489516888236, 0.64937883840943211]], [[-1.5591004725392388, 4.3185423683544206], [-5.6112735454209801, -7.3163551469606052], [-0.37990096411817653, 1.6623117572736597], [0.49283300053507251, -0.61952211466226803], [-0.020693274057048683, 1.4837389734733843]], [[-1.3373182566217654, 4.569855109718878], [8.7501994463754826, 3.5641911206373376], [7.2753826095077025, -0.27957790902748281], [8.3566145549383961, 0.69904059618612635], [-0.16592218749699494, 0.50414585121914435]]])
1771        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1772        self.failUnlessEqual(res.getShape(),(4, 5, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5, 2),"wrong shape of result.")
# Line 1755  class Test_util_binary_with_tagged_data( Line 1775  class Test_util_binary_with_tagged_data(
1775     def test_add_taggedData_rank2_expandedData_rank3(self):     def test_add_taggedData_rank2_expandedData_rank3(self):
1776        arg0=Data(numarray.array([[-1.292308752846838, -3.8744426660520714, 3.3729189878151615, -3.2055544279443238, -0.12770372571958788], [-2.7437379416637797, 0.10136818867967534, 4.6672035329693902, -3.8191747425957736, -1.025591794976469], [-3.727446821620537, -0.49681034107543809, -4.8769876570928181, -0.25193828349912195, -0.55850666089597656], [-0.65632260416509425, -4.3864574290971703, -0.37400406675909537, -2.937666945863866, 3.6779950787492837]]),self.functionspace)        arg0=Data(numarray.array([[-1.292308752846838, -3.8744426660520714, 3.3729189878151615, -3.2055544279443238, -0.12770372571958788], [-2.7437379416637797, 0.10136818867967534, 4.6672035329693902, -3.8191747425957736, -1.025591794976469], [-3.727446821620537, -0.49681034107543809, -4.8769876570928181, -0.25193828349912195, -0.55850666089597656], [-0.65632260416509425, -4.3864574290971703, -0.37400406675909537, -2.937666945863866, 3.6779950787492837]]),self.functionspace)
1777        arg0.setTaggedValue(1,numarray.array([[-1.3635555303487479, 2.5979990596006353, 1.0689000562312678, 1.5389754383921819, -1.6785148163951966], [4.5101355919308794, 2.7718961118447973, 1.8661350064652238, 0.52568890498238119, 4.3425703584650641], [-3.1861283512192431, -1.5049162911768699, -4.0189136172558646, 2.349550700293138, -1.119328526051925], [-3.4803180445555517, 1.4354205043126047, -0.45086351878125441, 1.6501728918496203, -1.1857208444012199]]))        arg0.setTaggedValue(1,numarray.array([[-1.3635555303487479, 2.5979990596006353, 1.0689000562312678, 1.5389754383921819, -1.6785148163951966], [4.5101355919308794, 2.7718961118447973, 1.8661350064652238, 0.52568890498238119, 4.3425703584650641], [-3.1861283512192431, -1.5049162911768699, -4.0189136172558646, 2.349550700293138, -1.119328526051925], [-3.4803180445555517, 1.4354205043126047, -0.45086351878125441, 1.6501728918496203, -1.1857208444012199]]))
1778        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1779        arg1=msk_arg1*numarray.array([[[-4.5286766643501517, 1.4610772953667865], [1.2456218097078198, 0.094340537105392031], [-3.6745086386921755, 4.925269709580185], [-0.60141065982651032, 2.0021121785616947], [-1.9642920945247688, 0.89595637367091641]], [[-3.219629223824275, -1.7173427457003863], [-3.9267638960292972, 3.9945197620266271], [4.9426873061157224, 3.2862897024149991], [-1.2561509733292739, 2.6964273619309491], [-1.8396467768014189, 0.28929685736348798]], [[4.8401133570172625, -3.0791510910013931], [-2.3104738107821934, -3.8877612797155092], [-4.8388130385402572, 4.5860809984784119], [-1.0257231975724324, -2.8597168087791411], [2.7749746473673307, 1.6109451519882603]], [[3.8716004178264924, -4.1934098614782975], [0.26294326566585013, 3.064167424588387], [-0.13958414372954664, 1.2743132107299084], [-2.1606580079959778, -2.3972577553196919], [0.71744533313449743, -2.5213347854561494]]])+(1.-msk_arg1)*numarray.array([[[1.716359035785552, -1.3112587150238331], [0.29567049158006142, 0.064602808662549194], [4.5440096688599318, -3.9071071412184266], [4.1990240636757079, 2.7791879602144292], [-2.5649244721801159, -1.5953302683410331]], [[1.2896612169027613, -4.1659600536704406], [3.8447387638667649, -2.0058176581950704], [3.9122168198414986, 4.8121495275574127], [-0.23828614169578177, 2.3764534909317518], [4.4050571093304818, 3.7329165022495143]], [[1.8208608162572677, -2.6258822836714826], [4.6435047236112243, -1.164259854452653], [1.028943720868492, -2.8511771865484379], [-3.0286357912569963, -2.689180481808938], [-1.4778166703612197, 3.6734010876057681]], [[1.964084395792705, -1.244379172494996], [-0.53168794737986325, 2.8883247436155193], [-2.2748425890159716, 2.8815495426554616], [1.4353364480986608, 1.2649651414265097], [0.95036861659304073, -0.024667568224740144]]])        arg1=msk_arg1*numarray.array([[[-4.5286766643501517, 1.4610772953667865], [1.2456218097078198, 0.094340537105392031], [-3.6745086386921755, 4.925269709580185], [-0.60141065982651032, 2.0021121785616947], [-1.9642920945247688, 0.89595637367091641]], [[-3.219629223824275, -1.7173427457003863], [-3.9267638960292972, 3.9945197620266271], [4.9426873061157224, 3.2862897024149991], [-1.2561509733292739, 2.6964273619309491], [-1.8396467768014189, 0.28929685736348798]], [[4.8401133570172625, -3.0791510910013931], [-2.3104738107821934, -3.8877612797155092], [-4.8388130385402572, 4.5860809984784119], [-1.0257231975724324, -2.8597168087791411], [2.7749746473673307, 1.6109451519882603]], [[3.8716004178264924, -4.1934098614782975], [0.26294326566585013, 3.064167424588387], [-0.13958414372954664, 1.2743132107299084], [-2.1606580079959778, -2.3972577553196919], [0.71744533313449743, -2.5213347854561494]]])+(1.-msk_arg1)*numarray.array([[[1.716359035785552, -1.3112587150238331], [0.29567049158006142, 0.064602808662549194], [4.5440096688599318, -3.9071071412184266], [4.1990240636757079, 2.7791879602144292], [-2.5649244721801159, -1.5953302683410331]], [[1.2896612169027613, -4.1659600536704406], [3.8447387638667649, -2.0058176581950704], [3.9122168198414986, 4.8121495275574127], [-0.23828614169578177, 2.3764534909317518], [4.4050571093304818, 3.7329165022495143]], [[1.8208608162572677, -2.6258822836714826], [4.6435047236112243, -1.164259854452653], [1.028943720868492, -2.8511771865484379], [-3.0286357912569963, -2.689180481808938], [-1.4778166703612197, 3.6734010876057681]], [[1.964084395792705, -1.244379172494996], [-0.53168794737986325, 2.8883247436155193], [-2.2748425890159716, 2.8815495426554616], [1.4353364480986608, 1.2649651414265097], [0.95036861659304073, -0.024667568224740144]]])
1780        res=add(arg0,arg1)        res=add(arg0,arg1)
1781        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1782        ref=msk_ref*numarray.array([[[-5.8209854171969901, 0.16876854251994855], [-2.6288208563442517, -3.7801021289466794], [-0.30158965087701395, 8.2981886973953465], [-3.8069650877708341, -1.2034422493826291], [-2.0919958202443567, 0.76825264795132853]], [[-5.9633671654880551, -4.4610806873641664], [-3.8253957073496219, 4.0958879507063024], [9.6098908390851125, 7.9534932353843892], [-5.0753257159250476, -1.1227473806648245], [-2.8652385717778879, -0.73629493761298104]], [[1.1126665353967256, -6.80659791262193], [-2.8072841518576315, -4.3845716207909469], [-9.7158006956330745, -0.29090665861440623], [-1.2776614810715543, -3.1116550922782631], [2.2164679864713541, 1.0524384910922837]], [[3.2152778136613982, -4.8497324656433918], [-4.1235141634313202, -1.3222900045087833], [-0.51358821048864201, 0.90030914397081307], [-5.0983249538598443, -5.3349247011835583], [4.3954404118837811, 1.1566602932931342]]])+(1.-msk_ref)*numarray.array([[[0.35280350543680417, -2.6748142453725809], [2.8936695511806967, 2.6626018682631845], [5.6129097250911997, -2.8382070849871588], [5.7379995020678898, 4.318163398606611], [-4.2434392885753125, -3.2738450847362297]], [[5.7997968088336407, 0.34417553826043878], [6.6166348757115623, 0.76607845364972693], [5.7783518263067224, 6.6782845340226364], [0.28740276328659942, 2.902142395914133], [8.7476274677955459, 8.0754868607145784]], [[-1.3652675349619754, -5.8120106348907257], [3.1385884324343545, -2.6691761456295229], [-2.9899698963873726, -6.8700908038043025], [-0.67908509096385838, -0.33962978151580003], [-2.5971451964131447, 2.5540725615538431]], [[-1.5162336487628467, -4.7246972170505472], [0.90373255693274146, 4.323745247928124], [-2.725706107797226, 2.4306860238742072], [3.0855093399482811, 2.9151380332761301], [-0.23535222780817922, -1.2103884126259601]]])        ref=msk_ref*numarray.array([[[-5.8209854171969901, 0.16876854251994855], [-2.6288208563442517, -3.7801021289466794], [-0.30158965087701395, 8.2981886973953465], [-3.8069650877708341, -1.2034422493826291], [-2.0919958202443567, 0.76825264795132853]], [[-5.9633671654880551, -4.4610806873641664], [-3.8253957073496219, 4.0958879507063024], [9.6098908390851125, 7.9534932353843892], [-5.0753257159250476, -1.1227473806648245], [-2.8652385717778879, -0.73629493761298104]], [[1.1126665353967256, -6.80659791262193], [-2.8072841518576315, -4.3845716207909469], [-9.7158006956330745, -0.29090665861440623], [-1.2776614810715543, -3.1116550922782631], [2.2164679864713541, 1.0524384910922837]], [[3.2152778136613982, -4.8497324656433918], [-4.1235141634313202, -1.3222900045087833], [-0.51358821048864201, 0.90030914397081307], [-5.0983249538598443, -5.3349247011835583], [4.3954404118837811, 1.1566602932931342]]])+(1.-msk_ref)*numarray.array([[[0.35280350543680417, -2.6748142453725809], [2.8936695511806967, 2.6626018682631845], [5.6129097250911997, -2.8382070849871588], [5.7379995020678898, 4.318163398606611], [-4.2434392885753125, -3.2738450847362297]], [[5.7997968088336407, 0.34417553826043878], [6.6166348757115623, 0.76607845364972693], [5.7783518263067224, 6.6782845340226364], [0.28740276328659942, 2.902142395914133], [8.7476274677955459, 8.0754868607145784]], [[-1.3652675349619754, -5.8120106348907257], [3.1385884324343545, -2.6691761456295229], [-2.9899698963873726, -6.8700908038043025], [-0.67908509096385838, -0.33962978151580003], [-2.5971451964131447, 2.5540725615538431]], [[-1.5162336487628467, -4.7246972170505472], [0.90373255693274146, 4.323745247928124], [-2.725706107797226, 2.4306860238742072], [3.0855093399482811, 2.9151380332761301], [-0.23535222780817922, -1.2103884126259601]]])
1783        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1784        self.failUnlessEqual(res.getShape(),(4, 5, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5, 2),"wrong shape of result.")
# Line 1767  class Test_util_binary_with_tagged_data( Line 1787  class Test_util_binary_with_tagged_data(
1787     def test_add_taggedData_rank4_expandedData_rank2(self):     def test_add_taggedData_rank4_expandedData_rank2(self):
1788        arg0=Data(numarray.array([[[[-2.8453731169188967, -1.3769218476461633, 2.5379741615977913, 1.1826853429539153, 1.6943453979471403], [4.0327196635323705, -2.6902240578706618, 1.7672817994600631, 4.8234903803538387, -2.2817970895942818], [1.026360493105849, -1.5279057061225276, 0.70236228614436325, -1.2283213852818839, 3.11838762259584], [3.4645055049592894, 2.1871052252796552, 3.7417045820890618, 0.71466312396194276, -3.8819081982059824]], [[4.5619453888733421, -2.0045953533291905, -2.6045705607605618, 3.339733166371305, 0.65950554483112178], [-3.7214781461384661, -0.18874335172988843, 3.5535224549796212, 1.7457204969108027, 0.44973522511172792], [1.3329043253493023, 2.3957676082725063, 0.13532098003140014, -2.9757419228658377, -2.9181931158975081], [-2.2740256896735245, -0.88320071773755249, -0.054078139639930356, -4.5064932075206627, -4.6716474822679057]], [[-0.33217452715205198, 0.030438939185635228, -1.4391054954805274, -1.8617265865897483, 4.5106280561362038], [-4.7571305813055629, -1.1013242944806221, -2.9750985171785818, 4.7892416065169332, -2.1257305362436285], [1.6248180726214407, 1.8975284199467701, -3.8272565641530942, 1.3237786092229564, -0.74070390021447974], [-4.4449265081572733, -1.7225461243829807, -0.18543927029126461, -1.7969594551648491, -2.7823954306563659]], [[3.4442819326814682, -2.8993417704575917, 0.64088565117562979, 4.8073321035346819, -2.1711409094679599], [1.4283128690154454, -3.7189087058443748, 2.6238730296708015, 0.41533387662272148, -1.2970964093746931], [3.1073401421427604, -2.2979223292066422, 0.3216080708323874, 4.9987830863209908, 0.56663443045246975], [0.70210208652499162, 3.9336234699865269, 2.9598780085218914, 4.8764784908296139, -0.2282073451187685]], [[-1.2823896212354358, -3.2086826943019906, -3.392364187282999, -3.3824208108978482, 1.8414915648576162], [4.1940296464567179, -0.13352158333853037, -0.92992216480995182, 2.379127647439736, 1.2848452883362462], [1.2516756994566975, -2.3758159860893824, -3.5757608189501622, -1.4932709552816403, -3.3047112863486152], [-0.93326173469202889, -1.3852833316761037, 3.4855709985078427, -3.3712729967935493, 4.8543115926470577]]], [[[-4.7960920635014057, -1.4587729537203789, 3.1501427999527252, 3.3863334251313333, -2.2917807809200195], [-2.3544777076697487, -3.6476202247389433, -3.6838755773636036, 2.1297362295475883, 1.7572352123298511], [-1.8804671142626539, -2.281145533267579, 2.5515492413420935, -3.0260246657486745, -2.0363760009772927], [2.9310643170847852, -0.76319067656995365, -0.85525805288733103, -4.344562308254007, 2.6963418544322941]], [[4.2597716096071014, -2.4443366905773676, -4.1392364479651302, 1.4905590357076184, 2.8202671188652229], [1.8733444419482428, 1.1319474376114611, 0.6184305024886303, -3.2616211377581052, -4.7157454494014317], [1.6120375675402068, 0.92330409316762285, -3.4449643818826683, -3.2483332399056151, 2.0259083673117031], [-3.579095721892541, 4.2199717483174943, -2.9972779652176742, 4.732665823422721, -2.886833184868979]], [[2.7493674522614597, -4.716125639596914, 4.8817221443351926, 3.4074092325885807, -2.8714964786678143], [-0.82208435419430081, -4.3246712016204638, 1.7197313651595838, -3.6096906655149361, -0.66507009593026289], [1.614397910539056, 3.768330129719482, -4.1012317705530341, 0.64541037482037922, -3.7255413653001526], [2.3346186154199984, -0.81308479859774252, 1.1883275999647083, -2.865525041822047, -2.6967631442592896]], [[0.83687178901183579, 2.3558403369004211, -4.6587734677396009, -0.40082216116198577, 3.17004062820995], [4.9747688859410388, 1.3875396933215765, 2.3245533606260462, 2.5507725301350064, -3.1692264222355826], [0.13580445639862848, 3.6983125500655802, -4.1165847163016718, 1.8839988171290765, -3.9540137598180749], [-4.9403544796419041, -0.0020801786761666108, 0.52561612247551714, 0.95449342578446306, -0.73167955418583652]], [[-0.47166544835603297, 1.5591182610705587, -4.8848104392249638, -0.72773665115706976, -3.9774906131085763], [0.6975180014780058, 2.30708507818537, 4.4102899382347935, -4.4548560378004085, -3.8030810866293931], [-1.5589672218831407, 4.4172720651898469, -0.97773260526593653, 3.5267684923927867, 4.3154626138528638], [2.588764328843423, -3.2101855119832257, 2.7712491648661679, -3.5794922027197518, -0.42289944806608482]]], [[[-1.1391589265855337, 4.5742147394736783, -2.2374316469808253, 1.9135133911627715, 3.2741296753020812], [4.7008909341839136, -4.2811479570545483, 4.0377850442284853, 2.2522760747661339, 2.1707254143678085], [1.7242106088075602, -4.9488433009310899, 4.9868678358150458, -2.0106605509452624, -4.4573119508842218], [1.2676429595362233, 2.8854843359122908, -0.9844824980910527, 2.1497819611310485, 3.2358066239472123]], [[-1.7989009973513648, -0.41145351958334242, 3.7345310739364166, 1.2143250018156078, -0.21277651482622506], [2.8143546286685162, 1.0433998506143727, 0.040200875788375612, -2.8120108431723558, 4.6613686576458502], [3.546109174328274, 0.5150722373594121, -4.0730566462871618, -1.5041422847095975, -2.5464305824489433], [-1.0985457905882079, 3.1992840764831669, -3.0294489695114635, 4.3216711898452083, -0.054240724724284206]], [[0.13082368690128909, -1.7832547936914334, 1.0298210083330606, 2.0213553693601449, -1.208631035871548], [-3.4792075914049891, -2.358168192291481, 2.4529700194915618, 0.28658516877741658, -0.94730077198306084], [-1.1473858712200502, 0.53853641134868369, 3.4975988641231677, 0.89234667593475869, 1.5371474121880979], [-2.8859750319650743, 2.192166547053727, 0.74776913979134818, -4.0017317616717216, -1.4960525451040994]], [[3.4989552432042608, -1.4563637277961385, 4.3213044329656611, -2.2000297227126975, 3.2727219741464708], [4.0292143647967524, -3.2252947067495139, -0.58030233243022256, 4.9596905132231015, -1.9428451775580999], [2.413868074407187, 3.3907678611440222, -0.51401312728365056, -4.8762120897923005, -4.3426521799427373], [3.1536144507544712, -2.1995817743986681, 4.8583230208260311, 1.5534094102503913, 4.6089054653570614]], [[3.4264054127990278, -4.8284789925813998, 1.2660344991904147, 4.0509559808778679, -3.7032973292497129], [-1.9071368206998454, -2.695947259511672, 1.5583227891885878, 0.99277303690683638, 1.2799121185486051], [0.32437927850897452, 3.6329544663672007, 1.0059159008412886, 2.784273580863676, 3.3035037366427407], [4.3636269280637823, 1.0599972844720078, -2.8812024333333239, 1.6486994627540339, -1.938953063773444]]], [[[-2.2670683700537553, 4.7671744166103771, 4.0896157932997959, -3.9128073794556171, -4.6251192696984003], [-3.6372628682337158, -2.6928336104276207, -0.92479070899447002, 1.5723494925486072, 4.9657976501689163], [-0.96162586209275336, -3.3070528331634987, -0.39998264384422466, 1.6830399102367366, 1.3188464263664788], [1.7507615736739606, -3.7843075417135532, 0.039864488372558071, 0.31813107930437123, -1.9448556101238124]], [[-3.6216092208041264, -0.02450872620649136, 2.2555293744389528, -3.0448567133835014, 4.5753879735828278], [-2.8571374517841939, -1.1727129306756545, 1.6234528920531064, 4.9850084112823705, 4.7757159130035252], [-4.7996173190635139, 3.3400662454948424, -4.9227307531048723, 2.5455084666587471, 1.9187794094742863], [3.0334006116251526, -2.5014372844977673, -3.1298159997215746, -4.8129301467924526, 4.7571758985393622]], [[3.9973387756877603, -0.2828375011036357, -4.0978101559278386, 4.508249474486508, -1.5761400776102876], [-4.0626292066691096, -3.9683616454955217, -3.3553261202687912, -0.15604387457601288, 3.8599776213721366], [-0.60559284155949378, -1.4886670149859063, 2.1359230758812302, -3.3202837639731575, -4.7408170929686548], [-3.907931039970598, 0.70313022259722135, -4.7653297895022027, 1.4496372228581365, 1.6882274070393555]], [[3.4777122172271042, 2.538630252826982, -1.3418379394626578, -2.3809302933616818, -3.5605297269787419], [1.6983282434784028, -4.2411565638069781, -3.3381436303137146, -2.1124732596672304, 4.5482947031028367], [0.52466244167652132, -2.8612814586773014, -0.95368915227141215, 3.7633612773132814, 3.9187916726769032], [3.8337830583359143, 0.61448649892148577, -4.4742721185488934, 4.4230144074890205, 1.0286188316542599]], [[-2.1705935161417909, 4.6363264108891968, -1.8874193845783269, -4.933061031234331, -3.5776899548047836], [3.5816383883074039, -3.7968690855138085, -0.95229232340472159, 3.2737175715077456, 2.9631251795488911], [2.6780203713406001, -0.94969124503178826, 0.018995622411011936, -2.8849055949580582, 4.8136947386340161], [4.4821584486185841, 1.7084304101746657, 4.9606029015551165, -3.9190155911284874, 3.1911098730111007]]]]),self.functionspace)        arg0=Data(numarray.array([[[[-2.8453731169188967, -1.3769218476461633, 2.5379741615977913, 1.1826853429539153, 1.6943453979471403], [4.0327196635323705, -2.6902240578706618, 1.7672817994600631, 4.8234903803538387, -2.2817970895942818], [1.026360493105849, -1.5279057061225276, 0.70236228614436325, -1.2283213852818839, 3.11838762259584], [3.4645055049592894, 2.1871052252796552, 3.7417045820890618, 0.71466312396194276, -3.8819081982059824]], [[4.5619453888733421, -2.0045953533291905, -2.6045705607605618, 3.339733166371305, 0.65950554483112178], [-3.7214781461384661, -0.18874335172988843, 3.5535224549796212, 1.7457204969108027, 0.44973522511172792], [1.3329043253493023, 2.3957676082725063, 0.13532098003140014, -2.9757419228658377, -2.9181931158975081], [-2.2740256896735245, -0.88320071773755249, -0.054078139639930356, -4.5064932075206627, -4.6716474822679057]], [[-0.33217452715205198, 0.030438939185635228, -1.4391054954805274, -1.8617265865897483, 4.5106280561362038], [-4.7571305813055629, -1.1013242944806221, -2.9750985171785818, 4.7892416065169332, -2.1257305362436285], [1.6248180726214407, 1.8975284199467701, -3.8272565641530942, 1.3237786092229564, -0.74070390021447974], [-4.4449265081572733, -1.7225461243829807, -0.18543927029126461, -1.7969594551648491, -2.7823954306563659]], [[3.4442819326814682, -2.8993417704575917, 0.64088565117562979, 4.8073321035346819, -2.1711409094679599], [1.4283128690154454, -3.7189087058443748, 2.6238730296708015, 0.41533387662272148, -1.2970964093746931], [3.1073401421427604, -2.2979223292066422, 0.3216080708323874, 4.9987830863209908, 0.56663443045246975], [0.70210208652499162, 3.9336234699865269, 2.9598780085218914, 4.8764784908296139, -0.2282073451187685]], [[-1.2823896212354358, -3.2086826943019906, -3.392364187282999, -3.3824208108978482, 1.8414915648576162], [4.1940296464567179, -0.13352158333853037, -0.92992216480995182, 2.379127647439736, 1.2848452883362462], [1.2516756994566975, -2.3758159860893824, -3.5757608189501622, -1.4932709552816403, -3.3047112863486152], [-0.93326173469202889, -1.3852833316761037, 3.4855709985078427, -3.3712729967935493, 4.8543115926470577]]], [[[-4.7960920635014057, -1.4587729537203789, 3.1501427999527252, 3.3863334251313333, -2.2917807809200195], [-2.3544777076697487, -3.6476202247389433, -3.6838755773636036, 2.1297362295475883, 1.7572352123298511], [-1.8804671142626539, -2.281145533267579, 2.5515492413420935, -3.0260246657486745, -2.0363760009772927], [2.9310643170847852, -0.76319067656995365, -0.85525805288733103, -4.344562308254007, 2.6963418544322941]], [[4.2597716096071014, -2.4443366905773676, -4.1392364479651302, 1.4905590357076184, 2.8202671188652229], [1.8733444419482428, 1.1319474376114611, 0.6184305024886303, -3.2616211377581052, -4.7157454494014317], [1.6120375675402068, 0.92330409316762285, -3.4449643818826683, -3.2483332399056151, 2.0259083673117031], [-3.579095721892541, 4.2199717483174943, -2.9972779652176742, 4.732665823422721, -2.886833184868979]], [[2.7493674522614597, -4.716125639596914, 4.8817221443351926, 3.4074092325885807, -2.8714964786678143], [-0.82208435419430081, -4.3246712016204638, 1.7197313651595838, -3.6096906655149361, -0.66507009593026289], [1.614397910539056, 3.768330129719482, -4.1012317705530341, 0.64541037482037922, -3.7255413653001526], [2.3346186154199984, -0.81308479859774252, 1.1883275999647083, -2.865525041822047, -2.6967631442592896]], [[0.83687178901183579, 2.3558403369004211, -4.6587734677396009, -0.40082216116198577, 3.17004062820995], [4.9747688859410388, 1.3875396933215765, 2.3245533606260462, 2.5507725301350064, -3.1692264222355826], [0.13580445639862848, 3.6983125500655802, -4.1165847163016718, 1.8839988171290765, -3.9540137598180749], [-4.9403544796419041, -0.0020801786761666108, 0.52561612247551714, 0.95449342578446306, -0.73167955418583652]], [[-0.47166544835603297, 1.5591182610705587, -4.8848104392249638, -0.72773665115706976, -3.9774906131085763], [0.6975180014780058, 2.30708507818537, 4.4102899382347935, -4.4548560378004085, -3.8030810866293931], [-1.5589672218831407, 4.4172720651898469, -0.97773260526593653, 3.5267684923927867, 4.3154626138528638], [2.588764328843423, -3.2101855119832257, 2.7712491648661679, -3.5794922027197518, -0.42289944806608482]]], [[[-1.1391589265855337, 4.5742147394736783, -2.2374316469808253, 1.9135133911627715, 3.2741296753020812], [4.7008909341839136, -4.2811479570545483, 4.0377850442284853, 2.2522760747661339, 2.1707254143678085], [1.7242106088075602, -4.9488433009310899, 4.9868678358150458, -2.0106605509452624, -4.4573119508842218], [1.2676429595362233, 2.8854843359122908, -0.9844824980910527, 2.1497819611310485, 3.2358066239472123]], [[-1.7989009973513648, -0.41145351958334242, 3.7345310739364166, 1.2143250018156078, -0.21277651482622506], [2.8143546286685162, 1.0433998506143727, 0.040200875788375612, -2.8120108431723558, 4.6613686576458502], [3.546109174328274, 0.5150722373594121, -4.0730566462871618, -1.5041422847095975, -2.5464305824489433], [-1.0985457905882079, 3.1992840764831669, -3.0294489695114635, 4.3216711898452083, -0.054240724724284206]], [[0.13082368690128909, -1.7832547936914334, 1.0298210083330606, 2.0213553693601449, -1.208631035871548], [-3.4792075914049891, -2.358168192291481, 2.4529700194915618, 0.28658516877741658, -0.94730077198306084], [-1.1473858712200502, 0.53853641134868369, 3.4975988641231677, 0.89234667593475869, 1.5371474121880979], [-2.8859750319650743, 2.192166547053727, 0.74776913979134818, -4.0017317616717216, -1.4960525451040994]], [[3.4989552432042608, -1.4563637277961385, 4.3213044329656611, -2.2000297227126975, 3.2727219741464708], [4.0292143647967524, -3.2252947067495139, -0.58030233243022256, 4.9596905132231015, -1.9428451775580999], [2.413868074407187, 3.3907678611440222, -0.51401312728365056, -4.8762120897923005, -4.3426521799427373], [3.1536144507544712, -2.1995817743986681, 4.8583230208260311, 1.5534094102503913, 4.6089054653570614]], [[3.4264054127990278, -4.8284789925813998, 1.2660344991904147, 4.0509559808778679, -3.7032973292497129], [-1.9071368206998454, -2.695947259511672, 1.5583227891885878, 0.99277303690683638, 1.2799121185486051], [0.32437927850897452, 3.6329544663672007, 1.0059159008412886, 2.784273580863676, 3.3035037366427407], [4.3636269280637823, 1.0599972844720078, -2.8812024333333239, 1.6486994627540339, -1.938953063773444]]], [[[-2.2670683700537553, 4.7671744166103771, 4.0896157932997959, -3.9128073794556171, -4.6251192696984003], [-3.6372628682337158, -2.6928336104276207, -0.92479070899447002, 1.5723494925486072, 4.9657976501689163], [-0.96162586209275336, -3.3070528331634987, -0.39998264384422466, 1.6830399102367366, 1.3188464263664788], [1.7507615736739606, -3.7843075417135532, 0.039864488372558071, 0.31813107930437123, -1.9448556101238124]], [[-3.6216092208041264, -0.02450872620649136, 2.2555293744389528, -3.0448567133835014, 4.5753879735828278], [-2.8571374517841939, -1.1727129306756545, 1.6234528920531064, 4.9850084112823705, 4.7757159130035252], [-4.7996173190635139, 3.3400662454948424, -4.9227307531048723, 2.5455084666587471, 1.9187794094742863], [3.0334006116251526, -2.5014372844977673, -3.1298159997215746, -4.8129301467924526, 4.7571758985393622]], [[3.9973387756877603, -0.2828375011036357, -4.0978101559278386, 4.508249474486508, -1.5761400776102876], [-4.0626292066691096, -3.9683616454955217, -3.3553261202687912, -0.15604387457601288, 3.8599776213721366], [-0.60559284155949378, -1.4886670149859063, 2.1359230758812302, -3.3202837639731575, -4.7408170929686548], [-3.907931039970598, 0.70313022259722135, -4.7653297895022027, 1.4496372228581365, 1.6882274070393555]], [[3.4777122172271042, 2.538630252826982, -1.3418379394626578, -2.3809302933616818, -3.5605297269787419], [1.6983282434784028, -4.2411565638069781, -3.3381436303137146, -2.1124732596672304, 4.5482947031028367], [0.52466244167652132, -2.8612814586773014, -0.95368915227141215, 3.7633612773132814, 3.9187916726769032], [3.8337830583359143, 0.61448649892148577, -4.4742721185488934, 4.4230144074890205, 1.0286188316542599]], [[-2.1705935161417909, 4.6363264108891968, -1.8874193845783269, -4.933061031234331, -3.5776899548047836], [3.5816383883074039, -3.7968690855138085, -0.95229232340472159, 3.2737175715077456, 2.9631251795488911], [2.6780203713406001, -0.94969124503178826, 0.018995622411011936, -2.8849055949580582, 4.8136947386340161], [4.4821584486185841, 1.7084304101746657, 4.9606029015551165, -3.9190155911284874, 3.1911098730111007]]]]),self.functionspace)
1789        arg0.setTaggedValue(1,numarray.array([[[[-0.11181438844288216, -3.1641576847013839, 4.5576781634983892, -2.0860504241394273, 4.9090504271050719], [-0.66457593768691314, -3.6872113844468126, 0.97505470536009398, 4.8989186628311039, -1.6293123388061259], [-0.89745915128823661, -2.6662945922526946, 1.313425265399605, -3.785158292238334, 0.74244867695162498], [-3.9074824224369209, -1.7656231425911342, 4.6875719131621807, 0.75052642137113956, 1.015491798168668]], [[3.5966720337882361, -2.1524442618302544, -3.3400026703767072, 1.8632188385951629, -2.7936108739129937], [0.15515601230817211, 1.3498545171946219, 3.7945658620690104, 1.1613100062131174, -4.2285451191733063], [3.1923099918135769, -1.3933622905698329, 0.15710183800920063, -3.5545828127655623, -4.7528219751030516], [2.2684164104623381, -3.9403546025769733, -0.81829087752217511, -2.8683151706462198, 4.7392818054161943]], [[1.5979624459626498, -1.903842429644873, 0.20741656190621072, -3.2297837262731055, -0.028635329696563794], [4.1298224416415348, -0.9184070753179272, 0.42034430994233674, -3.1084259507949783, 0.93704455901861472], [2.5153701642146, 2.4841728038402602, -4.2140863135135778, 1.6597580806855063, 2.5006837803432989], [1.2443724125620728, 3.9225227354155994, -1.6878671647123022, 4.1601227017616242, 3.1418604276065096]], [[-1.3904575686378253, -0.57018805506858961, -4.0438934315836992, -1.9167919773049356, 2.7455663985014747], [-4.867134305662959, -0.14086341272003278, -4.6302837701521602, -0.45552673213782757, 1.0878736860585008], [-3.4961122110416532, 2.9004320387284288, -0.36494776387344352, -4.8183420802454116, -0.11683610248815057], [0.77076778188569683, 3.7821439317903849, 0.46126816988515085, -4.571879656706809, -4.6213590790598307]], [[-4.7623184808431187, 4.5583086805486737, -2.2739249038116549, -1.8254573694596665, -4.0311172640774195], [-2.894562279541212, -0.3759433788151707, -4.7014555791903359, -2.621266381000332, 0.45401046375740695], [-0.69971263554736218, -2.3117687394733233, 0.54740757193517364, -2.8629907343468264, -4.0863856389290394], [0.076804379651703947, -1.3469708776094014, -4.9241858597944743, -3.5286875260635417, -2.9634446712084586]]], [[[-0.17372513421081948, -2.3981750514924793, 4.2184175245328746, 1.556219429090544, 1.781321163512998], [-2.4883789994964056, 0.62697066566118931, 3.6663987622529035, 2.3159475511502317, -3.6517424718073608], [-2.7693381705644127, -1.7597337987165074, -3.7712783617688528, -0.51975615809827858, -0.34257273168531643], [-4.2109157369414394, 2.5905891650486126, 3.4796855610467645, 1.5198265486007854, -0.13933356867135149]], [[-3.1106809958494699, 0.74270527956689758, 2.3582370537080841, 2.2678295714826566, -0.63258279447204835], [1.1124295336911336, 2.2577991470328032, -2.3158661370816191, 3.2390643292111783, 2.0232104980668915], [-3.0632805446141029, -2.8505221241334922, 1.2744135182329988, 4.7276774850747412, -3.7144674410223888], [-2.6687538249961209, -3.6634587703684907, 0.31213660674335131, 2.123963095665296, -4.8701558920003851]], [[-3.9255842621796244, 4.0318317025189891, -4.6131237071917788, -3.1594366627209283, -2.7873364507811083], [0.26144342320231129, 2.505764822876321, 2.112752081782336, -0.45907056577054561, 1.5468888504780729], [-3.013700096029992, 0.27839253406547382, -4.1170335631008488, 4.3694308561700499, -3.9647257322918938], [1.019054330443474, -0.51264709946004849, 0.25327019671925388, 2.3133404062497931, 2.538245414676183]], [[3.7892071181269955, 2.6998695871281875, -2.0836356515020493, -3.5012044652035557, -4.9301990275040009], [-2.4301914217533604, -0.71543378376133937, 3.9632367558756538, -4.6735042303755359, -1.013953521559583], [-3.8065193305897504, -4.0658797658003767, -4.3865651052499732, 2.695418565114899, -4.6556783944806455], [-2.8978957217712864, 1.2367592469014781, 0.22976759460087504, 4.5816273851359277, 0.5594789231416577]], [[2.9464351803576392, -2.1243842852833703, 0.2913374720786237, -3.6486990800118289, 4.7606555705130784], [1.6084519848212864, 3.869050648453543, -4.9641779091935287, 0.88205946505982169, 1.4662161170337207], [3.6354228718447477, 1.4310014963969584, 3.0602794542412859, -2.0732750482050677, 4.2537611469950072], [0.62583197774822441, 2.0123401863756545, -4.4873627867696078, -4.8731283642943444, -1.2329543554530065]]], [[[-4.5851542766937143, -3.5428698198782693, 0.88994812990841776, -4.1361425093767998, 2.3488295472383269], [-0.18242883828240508, 0.087322800837581482, 1.5222886148693622, 3.2574192966192133, 3.2930555309280631], [-2.5120258737374956, 1.2482154396827516, 4.5619815916434696, 3.0705296740930628, -1.8006532580591394], [-3.4936176726332402, -1.0441281330495111, -1.5349662687069632, 1.1869231726549359, 2.8255922123200969]], [[2.2269444531227611, 4.6010289495529157, -0.31502856982408201, -1.8179650059667471, -1.2299763779654729], [2.2754015182981204, -3.9549934936588214, 2.9089790479401492, 3.3051149387875327, 3.9097922318493534], [3.7462903411569712, 4.8924935885733003, 1.3091407965048827, -3.2116049489741618, 1.299738163398608], [-4.7483108431248269, 4.0837496341390924, -0.86363505380954741, -4.2267540980295957, 2.0134349287502751]], [[3.1271888644073726, -3.54436833355114, 2.1908483813788449, -4.8894466449841953, 3.1071869325818682], [3.2962106227954706, 1.5667704140895538, -3.3986116742905228, 2.4461563030304312, -2.1411642874116099], [2.4509572810532276, -4.235540496224651, 2.9641364587230274, -1.2977187533944887, 4.3787756944527914], [2.5977243550072835, 2.6035534689639759, -1.4405220425464216, 3.0026169041443787, -2.1172705318662466]], [[1.3913312008819956, 4.3786708018032066, -1.2708868922720029, -2.0071526453555446, 3.4115265142773978], [-1.3082803231649756, 1.5597865367086472, -2.5997718741976286, -0.83006612218284559, 2.1707935533942724], [1.3261648570215145, 4.3730258797329196, 3.7855550516960275, 0.68326325074712368, -4.8280919286451702], [-1.7319610587865197, -1.678535433758459, 4.3018734854022398, 4.9843187422767627, -3.5895882265960113]], [[-4.2501924091165844, -2.9517256980505002, -4.0504144503773176, -2.027919528247125, 2.8068883088474541], [2.5364770278545326, -0.31778693125965063, 0.23358796489686995, 1.1772123385834856, -1.831963282170773], [3.4633717903994903, -1.2508375308796937, 3.9650430041974598, -2.3062826221568153, 4.2220404127977975], [3.3967885394945565, -2.2413223177821706, -1.3226467981944112, -2.1267482423351813, 0.14036218231397424]]], [[[-4.8671513454043493, -3.5973561926885491, -1.3823888723052891, -4.1752318885149053, 1.3691477407480743], [-4.830732320750589, 0.98314400983130668, 3.3464509193883369, -2.7990585956773115, -2.0444167090249312], [4.6861501190694774, -0.74949411977350611, -4.5111255370584971, -2.5386314623415931, 3.2819524238698801], [0.32970782837018398, -2.6819330730908444, -1.4744892343688898, 3.5383287159931029, -4.9087435587471724]], [[-4.8109695543341005, -0.64778179723435159, 0.91404273380590428, 2.5859918740630796, -1.9318412487361449], [3.8488767746529735, 4.6146877031969886, -2.2563008540019047, -2.552154111361852, -0.0042697392590280714], [1.1618931104701335, -3.3962646760010173, 1.86578314362988, 3.8986905559144631, 1.5591140624140003], [1.410479265635681, 0.33403723119667017, -4.9993433396004248, -4.5845567928930269, -1.7444147894101647]], [[-2.2020590196071268, -2.1757622946932011, 4.0794471183654437, -0.80780758077291459, 2.1407437678761809], [3.6322801640250368, -4.458931021590824, -1.4186575208855787, 3.542474254425759, 0.26538148407835305], [3.1329458014181366, -3.4085525030373578, -0.1575481279054225, -3.3554538590735641, 1.5843879344546252], [1.5918771567303578, -3.0241757487611496, -3.751829747241989, 0.20301003908379123, 2.1508344105625854]], [[4.1484621175443266, 4.0673891320004945, 3.7241063841237647, 0.49370397612792338, 0.33711015529796384], [3.9126543433433145, -3.6694282459128633, -1.2450640150870109, 1.0346610190174745, 4.4802774752033585], [4.1860811653885186, -2.7160967234617193, -4.9003595110927929, 1.4338796000524603, 4.2382291600810049], [3.5761041392617194, -1.6420028927519059, 1.1207610924237397, 4.0215584065806329, 1.2100967786986807]], [[-1.4614069877561198, -4.2360534613109877, 4.7179320353691114, -2.6327676825109627, -2.0619636480108907], [1.4356875929932595, 0.055345062843269233, 4.2910712443246037, -1.7426585973869479, -2.0948808048439496], [0.065911060422342516, -4.1290260910218155, -4.4705726220482731, 4.5732440110280663, 1.6179986219550226], [-1.0887389329551809, -3.5890529734382071, -2.6788511954144134, -4.9413386313463112, 0.38689748678649849]]]]))        arg0.setTaggedValue(1,numarray.array([[[[-0.11181438844288216, -3.1641576847013839, 4.5576781634983892, -2.0860504241394273, 4.9090504271050719], [-0.66457593768691314, -3.6872113844468126, 0.97505470536009398, 4.8989186628311039, -1.6293123388061259], [-0.89745915128823661, -2.6662945922526946, 1.313425265399605, -3.785158292238334, 0.74244867695162498], [-3.9074824224369209, -1.7656231425911342, 4.6875719131621807, 0.75052642137113956, 1.015491798168668]], [[3.5966720337882361, -2.1524442618302544, -3.3400026703767072, 1.8632188385951629, -2.7936108739129937], [0.15515601230817211, 1.3498545171946219, 3.7945658620690104, 1.1613100062131174, -4.2285451191733063], [3.1923099918135769, -1.3933622905698329, 0.15710183800920063, -3.5545828127655623, -4.7528219751030516], [2.2684164104623381, -3.9403546025769733, -0.81829087752217511, -2.8683151706462198, 4.7392818054161943]], [[1.5979624459626498, -1.903842429644873, 0.20741656190621072, -3.2297837262731055, -0.028635329696563794], [4.1298224416415348, -0.9184070753179272, 0.42034430994233674, -3.1084259507949783, 0.93704455901861472], [2.5153701642146, 2.4841728038402602, -4.2140863135135778, 1.6597580806855063, 2.5006837803432989], [1.2443724125620728, 3.9225227354155994, -1.6878671647123022, 4.1601227017616242, 3.1418604276065096]], [[-1.3904575686378253, -0.57018805506858961, -4.0438934315836992, -1.9167919773049356, 2.7455663985014747], [-4.867134305662959, -0.14086341272003278, -4.6302837701521602, -0.45552673213782757, 1.0878736860585008], [-3.4961122110416532, 2.9004320387284288, -0.36494776387344352, -4.8183420802454116, -0.11683610248815057], [0.77076778188569683, 3.7821439317903849, 0.46126816988515085, -4.571879656706809, -4.6213590790598307]], [[-4.7623184808431187, 4.5583086805486737, -2.2739249038116549, -1.8254573694596665, -4.0311172640774195], [-2.894562279541212, -0.3759433788151707, -4.7014555791903359, -2.621266381000332, 0.45401046375740695], [-0.69971263554736218, -2.3117687394733233, 0.54740757193517364, -2.8629907343468264, -4.0863856389290394], [0.076804379651703947, -1.3469708776094014, -4.9241858597944743, -3.5286875260635417, -2.9634446712084586]]], [[[-0.17372513421081948, -2.3981750514924793, 4.2184175245328746, 1.556219429090544, 1.781321163512998], [-2.4883789994964056, 0.62697066566118931, 3.6663987622529035, 2.3159475511502317, -3.6517424718073608], [-2.7693381705644127, -1.7597337987165074, -3.7712783617688528, -0.51975615809827858, -0.34257273168531643], [-4.2109157369414394, 2.5905891650486126, 3.4796855610467645, 1.5198265486007854, -0.13933356867135149]], [[-3.1106809958494699, 0.74270527956689758, 2.3582370537080841, 2.2678295714826566, -0.63258279447204835], [1.1124295336911336, 2.2577991470328032, -2.3158661370816191, 3.2390643292111783, 2.0232104980668915], [-3.0632805446141029, -2.8505221241334922, 1.2744135182329988, 4.7276774850747412, -3.7144674410223888], [-2.6687538249961209, -3.6634587703684907, 0.31213660674335131, 2.123963095665296, -4.8701558920003851]], [[-3.9255842621796244, 4.0318317025189891, -4.6131237071917788, -3.1594366627209283, -2.7873364507811083], [0.26144342320231129, 2.505764822876321, 2.112752081782336, -0.45907056577054561, 1.5468888504780729], [-3.013700096029992, 0.27839253406547382, -4.1170335631008488, 4.3694308561700499, -3.9647257322918938], [1.019054330443474, -0.51264709946004849, 0.25327019671925388, 2.3133404062497931, 2.538245414676183]], [[3.7892071181269955, 2.6998695871281875, -2.0836356515020493, -3.5012044652035557, -4.9301990275040009], [-2.4301914217533604, -0.71543378376133937, 3.9632367558756538, -4.6735042303755359, -1.013953521559583], [-3.8065193305897504, -4.0658797658003767, -4.3865651052499732, 2.695418565114899, -4.6556783944806455], [-2.8978957217712864, 1.2367592469014781, 0.22976759460087504, 4.5816273851359277, 0.5594789231416577]], [[2.9464351803576392, -2.1243842852833703, 0.2913374720786237, -3.6486990800118289, 4.7606555705130784], [1.6084519848212864, 3.869050648453543, -4.9641779091935287, 0.88205946505982169, 1.4662161170337207], [3.6354228718447477, 1.4310014963969584, 3.0602794542412859, -2.0732750482050677, 4.2537611469950072], [0.62583197774822441, 2.0123401863756545, -4.4873627867696078, -4.8731283642943444, -1.2329543554530065]]], [[[-4.5851542766937143, -3.5428698198782693, 0.88994812990841776, -4.1361425093767998, 2.3488295472383269], [-0.18242883828240508, 0.087322800837581482, 1.5222886148693622, 3.2574192966192133, 3.2930555309280631], [-2.5120258737374956, 1.2482154396827516, 4.5619815916434696, 3.0705296740930628, -1.8006532580591394], [-3.4936176726332402, -1.0441281330495111, -1.5349662687069632, 1.1869231726549359, 2.8255922123200969]], [[2.2269444531227611, 4.6010289495529157, -0.31502856982408201, -1.8179650059667471, -1.2299763779654729], [2.2754015182981204, -3.9549934936588214, 2.9089790479401492, 3.3051149387875327, 3.9097922318493534], [3.7462903411569712, 4.8924935885733003, 1.3091407965048827, -3.2116049489741618, 1.299738163398608], [-4.7483108431248269, 4.0837496341390924, -0.86363505380954741, -4.2267540980295957, 2.0134349287502751]], [[3.1271888644073726, -3.54436833355114, 2.1908483813788449, -4.8894466449841953, 3.1071869325818682], [3.2962106227954706, 1.5667704140895538, -3.3986116742905228, 2.4461563030304312, -2.1411642874116099], [2.4509572810532276, -4.235540496224651, 2.9641364587230274, -1.2977187533944887, 4.3787756944527914], [2.5977243550072835, 2.6035534689639759, -1.4405220425464216, 3.0026169041443787, -2.1172705318662466]], [[1.3913312008819956, 4.3786708018032066, -1.2708868922720029, -2.0071526453555446, 3.4115265142773978], [-1.3082803231649756, 1.5597865367086472, -2.5997718741976286, -0.83006612218284559, 2.1707935533942724], [1.3261648570215145, 4.3730258797329196, 3.7855550516960275, 0.68326325074712368, -4.8280919286451702], [-1.7319610587865197, -1.678535433758459, 4.3018734854022398, 4.9843187422767627, -3.5895882265960113]], [[-4.2501924091165844, -2.9517256980505002, -4.0504144503773176, -2.027919528247125, 2.8068883088474541], [2.5364770278545326, -0.31778693125965063, 0.23358796489686995, 1.1772123385834856, -1.831963282170773], [3.4633717903994903, -1.2508375308796937, 3.9650430041974598, -2.3062826221568153, 4.2220404127977975], [3.3967885394945565, -2.2413223177821706, -1.3226467981944112, -2.1267482423351813, 0.14036218231397424]]], [[[-4.8671513454043493, -3.5973561926885491, -1.3823888723052891, -4.1752318885149053, 1.3691477407480743], [-4.830732320750589, 0.98314400983130668, 3.3464509193883369, -2.7990585956773115, -2.0444167090249312], [4.6861501190694774, -0.74949411977350611, -4.5111255370584971, -2.5386314623415931, 3.2819524238698801], [0.32970782837018398, -2.6819330730908444, -1.4744892343688898, 3.5383287159931029, -4.9087435587471724]], [[-4.8109695543341005, -0.64778179723435159, 0.91404273380590428, 2.5859918740630796, -1.9318412487361449], [3.8488767746529735, 4.6146877031969886, -2.2563008540019047, -2.552154111361852, -0.0042697392590280714], [1.1618931104701335, -3.3962646760010173, 1.86578314362988, 3.8986905559144631, 1.5591140624140003], [1.410479265635681, 0.33403723119667017, -4.9993433396004248, -4.5845567928930269, -1.7444147894101647]], [[-2.2020590196071268, -2.1757622946932011, 4.0794471183654437, -0.80780758077291459, 2.1407437678761809], [3.6322801640250368, -4.458931021590824, -1.4186575208855787, 3.542474254425759, 0.26538148407835305], [3.1329458014181366, -3.4085525030373578, -0.1575481279054225, -3.3554538590735641, 1.5843879344546252], [1.5918771567303578, -3.0241757487611496, -3.751829747241989, 0.20301003908379123, 2.1508344105625854]], [[4.1484621175443266, 4.0673891320004945, 3.7241063841237647, 0.49370397612792338, 0.33711015529796384], [3.9126543433433145, -3.6694282459128633, -1.2450640150870109, 1.0346610190174745, 4.4802774752033585], [4.1860811653885186, -2.7160967234617193, -4.9003595110927929, 1.4338796000524603, 4.2382291600810049], [3.5761041392617194, -1.6420028927519059, 1.1207610924237397, 4.0215584065806329, 1.2100967786986807]], [[-1.4614069877561198, -4.2360534613109877, 4.7179320353691114, -2.6327676825109627, -2.0619636480108907], [1.4356875929932595, 0.055345062843269233, 4.2910712443246037, -1.7426585973869479, -2.0948808048439496], [0.065911060422342516, -4.1290260910218155, -4.4705726220482731, 4.5732440110280663, 1.6179986219550226], [-1.0887389329551809, -3.5890529734382071, -2.6788511954144134, -4.9413386313463112, 0.38689748678649849]]]]))
1790        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1791        arg1=msk_arg1*numarray.array([[-1.6479555830996659, -3.451483181781426, -2.144947010492404, -1.8600870456041885, -1.5065972809185202], [-3.2443636240388987, -3.4307397560499364, -4.9221917196056344, -4.69151947590729, 4.212860114388306], [-3.0661876739204583, -4.0392839887899257, 2.9206742623581849, 0.95080441840138796, 3.2608224543769477], [-3.8058017230159589, -3.159398627438863, -0.53931774515208453, 1.1161819335951151, 1.0646390947755169]])+(1.-msk_arg1)*numarray.array([[3.9546595939516624, -0.73879221046685561, 4.7285318618491559, 0.23922698904589002, -0.07199259229390087], [1.4640287048814677, 2.5224078963712131, -4.1143938614847926, -2.6883900129091662, -3.1407612243519898], [2.1354725669076551, -2.1739519340830049, -0.63427737483688329, 2.622777269073798, -0.082196248504796898], [4.1168851520794529, -4.0011032527816255, -1.8061701016094944, 2.0591611802621497, 4.6213041193811595]])        arg1=msk_arg1*numarray.array([[-1.6479555830996659, -3.451483181781426, -2.144947010492404, -1.8600870456041885, -1.5065972809185202], [-3.2443636240388987, -3.4307397560499364, -4.9221917196056344, -4.69151947590729, 4.212860114388306], [-3.0661876739204583, -4.0392839887899257, 2.9206742623581849, 0.95080441840138796, 3.2608224543769477], [-3.8058017230159589, -3.159398627438863, -0.53931774515208453, 1.1161819335951151, 1.0646390947755169]])+(1.-msk_arg1)*numarray.array([[3.9546595939516624, -0.73879221046685561, 4.7285318618491559, 0.23922698904589002, -0.07199259229390087], [1.4640287048814677, 2.5224078963712131, -4.1143938614847926, -2.6883900129091662, -3.1407612243519898], [2.1354725669076551, -2.1739519340830049, -0.63427737483688329, 2.622777269073798, -0.082196248504796898], [4.1168851520794529, -4.0011032527816255, -1.8061701016094944, 2.0591611802621497, 4.6213041193811595]])
1792        res=add(arg0,arg1)        res=add(arg0,arg1)
1793        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1794        ref=msk_ref*numarray.array([[[[-4.4933287000185622, -3.0248774307458293, 0.89001857849812538, -0.46527024014575069, 0.046389814847474398], [2.3847640804327046, -4.3381796409703277, 0.1193262163603972, 3.1755347972541728, -3.9297526726939478], [-0.62159508999381696, -3.1758612892221936, -0.9455932969553027, -2.8762769683815499, 1.4704320394961741], [1.8165499218596235, 0.53914964217998929, 2.0937489989893958, -0.93329245913772318, -5.5298637813056484]], [[1.1104622070919161, -5.4560785351106169, -6.0560537425419874, -0.11175001541012097, -2.7919776369503042], [-7.172961327919892, -3.6402265335113144, 0.10203927319819517, -1.7057626848706233, -3.0017479566696981], [-2.1185788564321237, -1.0557155735089196, -3.3161622017500259, -6.4272251046472633, -6.3696762976789341], [-5.7255088714549505, -4.3346838995189785, -3.5055613214213563, -7.9579763893020887, -8.1231306640493308]], [[-2.477121537644456, -2.1145080713067688, -3.5840525059729313, -4.0066735970821519, 2.3656810456437998], [-6.9020775917979673, -3.2462713049730261, -5.1200455276709853, 2.6442945960245292, -4.2706775467360325], [-0.52012893787096326, -0.24741859054563387, -5.9722035746454978, -0.82116840126944757, -2.8856509107068837], [-6.5898735186496769, -3.8674931348753847, -2.3303862807836686, -3.9419064656572531, -4.9273424411487703]], [[1.5841948870772797, -4.7594288160617797, -1.2192013944285587, 2.9472450579304934, -4.0312279550721488], [-0.43177417658874306, -5.5789957514485629, 0.76378598406661302, -1.444753168981467, -3.1571834549788815], [1.247253096538572, -4.1580093748108311, -1.5384789747718011, 3.1386960407168023, -1.2934526151517187], [-1.1579849590791969, 2.0735364243823384, 1.099790962917703, 3.0163914452254255, -2.088294390722957]], [[-2.7889869021539559, -4.7152799752205112, -4.8989614682015192, -4.8890180918163679, 0.33489428393909604], [2.6874323655381978, -1.6401188642570506, -2.436519445728472, 0.87253036652121585, -0.22175199258227396], [-0.25492158146182264, -3.8824132670079026, -5.0823580998686824, -2.9998682362001605, -4.811308567267135], [-2.4398590156105491, -2.8918806125946239, 1.9789737175893225, -4.8778702777120699, 3.3477143117285375]]], [[[-8.0404556875403053, -4.7031365777592775, -0.094220824086173494, 0.14196980109243462, -5.5361444049589181], [-5.5988413317086474, -6.8919838487778424, -6.9282392014025023, -1.1146273944913103, -1.4871284117090475], [-5.1248307383015526, -5.5255091573064776, -0.69281438269680518, -6.2703882897875731, -5.2807396250161913], [-0.31329930695411345, -4.0075543006088523, -4.0996216769262297, -7.5889259322929057, -0.54802176960660454]], [[0.82903185355716502, -5.875076446627304, -7.5699762040150667, -1.940180720342318, -0.61047263718471356], [-1.5573953141016936, -2.2987923184384753, -2.8123092535613061, -6.6923608938080417, -8.1464852054513681], [-1.8187021885097296, -2.5074356628823136, -6.8757041379326047, -6.6790729959555515, -1.4048313887382333], [-7.0098354779424774, 0.78923199226755791, -6.4280177212676106, 1.3019260673727846, -6.3175729409189154]], [[-2.1728242673441747, -9.6383173592025493, -0.040469575270441815, -1.5147824870170536, -7.7936881982734487], [-5.7442760737999352, -9.2468629212260982, -3.2024603544460506, -8.5318823851205714, -5.5872618155358973], [-3.3077938090665784, -1.1538615898861524, -9.0234234901586685, -4.2767813447852552, -8.6477330849057878], [-2.587573104185636, -5.7352765182033769, -3.7338641196409261, -7.7877167614276814, -7.618954863864924]], [[-3.8546476868954542, -2.335679139006869, -9.3502929436468918, -5.0923416370692758, -1.52147884769734], [0.28324941003374882, -3.3039797825857136, -2.3669661152812438, -2.1407469457722836, -7.8607458981428726], [-4.5557150195086615, -0.99320692584170978, -8.8081041922089618, -2.8075206587782136, -8.6455332357253649], [-9.6318739555491941, -4.6935996545834566, -4.1659033534317729, -3.737026050122827, -5.4231990300931265]], [[3.741194666032273, 5.7719783754588647, -0.67195032483665784, 3.4851234632312362, 0.23536950127972966], [4.9103781158663118, 6.519945192573676, 8.6231500526230995, -0.24199592341210252, 0.40977902775891284], [2.6538928925051652, 8.6301321795781529, 3.2351275091223695, 7.7396286067810927, 8.5283227282411698], [6.801624443231729, 1.0026746024050803, 6.9841092792544739, 0.63336791166855422, 3.7899606663222212]]], [[[-4.2053466005059921, 1.50802706555322, -5.3036193209012836, -1.1526742827576868, 0.20794200138162289], [1.6347032602634552, -7.3473356309750066, 0.97159737030802695, -0.81391159915432443, -0.8954622595526498], [-1.3419770651128982, -8.0150309748515483, 1.9206801618945875, -5.0768482248657207, -7.5234996248046802], [-1.798544714384235, -0.18070333800816751, -4.050670172011511, -0.91640571278940985, 0.16961895002675398]], [[-5.8381849861412904, -4.4507375083732681, -0.30475291485350908, -2.8249589869743179, -4.2520605036161507], [-1.2249293601214095, -2.995884138175553, -3.9990831130015501, -6.8512948319622815, 0.62208466885592451], [-0.49317481446165168, -3.5242117514305136, -8.1123406350770875, -5.5434262734995237, -6.5857145712388689], [-5.1378297793781336, -0.83999991230675874, -7.0687329583013891, 0.28238720105528259, -4.0935247135142099]], [[3.051497949259474, 1.1374194686667516, 3.9504952706912455, 4.9420296317183299, 1.712043226486637], [-0.55853332904680419, 0.56250607006670394, 5.3736442818497467, 3.2072594311356015, 1.9733734903751241], [1.7732883911381347, 3.4592106737068686, 6.4182731264813526, 3.8130209382929436, 4.4578216745462829], [0.034699230393110625, 5.112840809411912, 3.6684434021495331, -1.0810574993135367, 1.4246217172540856]], [[4.4497596616056487, -0.50555930939475058, 5.2721088513670491, -1.2492253043113095, 4.2235263925478588], [4.9800187831981404, -2.2744902883481259, 0.37050208597116541, 5.9104949316244895, -0.99204075915671197], [3.3646724928085749, 4.3415722795454101, 0.4367912911177374, -3.9254076713909125, -3.3918477615413494], [4.1044188691558592, -1.2487773559972801, 5.809127439227419, 2.5042138286517792, 5.5597098837584493]], [[6.6872278671759755, -1.5676565382044521, 4.5268569535673624, 7.3117784352548156, -0.44247487487276516], [1.3536856336771024, 0.56487519486527571, 4.8191452435655355, 4.2535954912837841, 4.5407345729255528], [3.5852017328859223, 6.8937769207441484, 4.2667383552182363, 6.0450960352406238, 6.5643261910196884], [7.62444938244073, 4.3208197388489555, 0.3796200210436238, 4.9095219171309816, 1.3218693906035037]]], [[[-6.0728700930697137, 0.96137269359441824, 0.28381407028383698, -7.7186091024715759, -8.4309209927143591], [-7.4430645912496747, -6.4986353334435796, -4.7305924320104289, -2.2334522304673516, 1.1599959271529574], [-4.7674275851087122, -7.1128545561794576, -4.2057843668601835, -2.1227618127792223, -2.4869552966494801], [-2.0550401493419983, -7.5901092647295121, -3.7659372346434008, -3.4876706437115876, -5.7506573331397712]], [[-6.7810078482429894, -3.1839073536453544, -0.90386925299991017, -6.204255340822364, 1.4159893461439648], [-6.0165360792230569, -4.3321115581145175, -1.5359457353857566, 1.8256097838435075, 1.6163172855646621], [-7.9590159465023769, 0.18066761805597942, -8.0821293805437353, -0.61389016078011593, -1.2406192179645767], [-0.1259980158137104, -5.6608359119366298, -6.2892146271604377, -7.9723287742313156, 1.5977772711004992]], [[3.4580210305356758, -0.82215524625572023, -4.6371279010799231, 3.9689317293344235, -2.1154578227623722], [-4.6019469518211942, -4.5076793906476063, -3.8946438654208757, -0.6953616197280974, 3.3206598762200521], [-1.1449105867115783, -2.0279847601379908, 1.5966053307291457, -3.859601509125242, -5.2801348381207394], [-4.4472487851226825, 0.16381247744513683, -5.3046475346542872, 0.91031947770605193, 1.1489096618872709]], [[4.5938941508222193, 3.654812186422097, -0.22565600586754275, -1.2647483597665667, -2.4443477933836268], [2.8145101770735179, -3.1249746302118631, -2.2219616967185996, -0.99629132607211535, 5.6644766366979518], [1.6408443752716364, -1.7450995250821864, 0.16249278132370293, 4.8795432109083965, 5.0349736062720183], [4.9499649919310293, 1.7306684325166009, -3.3580901849537783, 5.5391963410841356, 2.144800765249375]], [[-1.105954421366274, 5.7009655056647137, -0.82278028980281004, -3.8684219364588142, -2.5130508600292667], [4.6462774830829208, -2.7322299907382916, 0.1123467713707953, 4.3383566662832624, 4.027764274324408], [3.742659466116117, 0.11494784974372863, 1.0836347171865288, -1.8202665001825413, 5.878333833409533], [5.546797543394101, 2.7730695049501826, 6.0252419963306334, -2.8543764963529705, 4.2557489677866176]]]])+(1.-msk_ref)*numarray.array([[[[3.8428452055087803, 0.79050190925027852, 8.5123377574500516, 1.8686091698122351, 8.8637100210567343], [3.2900836562647493, 0.26744820950484982, 4.9297142993117564, 8.8535782567827663, 2.3253472551455365], [3.0572004426634258, 1.2883650016989678, 5.2680848593512675, 0.16950130171332844, 4.6971082709032874], [0.047177171514741545, 2.1890364513605283, 8.6422315071138431, 4.705186015322802, 4.9701513921203304]], [[2.8578798233213805, -2.89123647229711, -4.0787948808435628, 1.1244266281283073, -3.5324030843798493], [-0.58363619815868351, 0.61106230672776629, 3.0557736516021548, 0.4225177957462618, -4.9673373296401619], [2.4535177813467213, -2.1321545010366885, -0.58169037245765498, -4.2933750232324179, -5.4916141855699072], [1.5296241999954825, -4.679146813043829, -1.5570830879890307, -3.6071073811130754, 4.0004895949493386]], [[6.3264943078118057, 2.8246894322042828, 4.9359484237553666, 1.4987481355760504, 4.6998965321525921], [8.8583543034906906, 3.8101247865312287, 5.1488761717914926, 1.6201059110541776, 5.6655764208677706], [7.2439020260637559, 7.212704665689416, 0.5144455483355781, 6.3882899425346622, 7.2292156421924547], [5.9729042744112286, 8.6510545972647552, 3.0406646971368536, 8.8886545636107801, 7.8703922894556655]], [[-1.1512305795919353, -0.33096106602269959, -3.8046664425378092, -1.6775649882590455, 2.9847933875473647], [-4.627907316617069, 0.098363576325857238, -4.3910567811062702, -0.21629974309193756, 1.3271006751043908], [-3.2568852219957631, 3.1396590277743188, -0.12572077482755351, -4.5791150911995215, 0.12239088655773944], [1.0099947709315868, 4.0213709208362749, 0.70049515893104086, -4.3326526676609189, -4.3821320900139407]], [[-4.8343110731370196, 4.4863160882547728, -2.3459174961055558, -1.8974499617535674, -4.1031098563713204], [-2.9665548718351129, -0.44793597110907157, -4.7734481714842367, -2.6932589732942329, 0.38201787146350608], [-0.77170522784126305, -2.3837613317672242, 0.47541497964127277, -2.9349833266407273, -4.1583782312229403], [0.0048117873578030768, -1.4189634699033022, -4.9961784520883752, -3.6006801183574426, -3.0354372635023594]]], [[[1.2903035706706483, -0.93414634661101159, 5.6824462294143423, 3.0202481339720118, 3.2453498683944657], [-1.0243502946149379, 2.0909993705426571, 5.1304274671343713, 3.7799762560316994, -2.187713766925893], [-1.3053094656829449, -0.29570509383503962, -2.307249656887385, 0.94427254678318917, 1.1214559731961513], [-2.7468870320599716, 4.0546178699300803, 4.9437142659282323, 2.9838552534822531, 1.3246951362101163]], [[-0.58827309947825679, 3.2651131759381107, 4.8806449500792972, 4.7902374678538697, 1.8898251018991647], [3.6348374300623467, 4.7802070434040163, 0.20654175928959395, 5.7614722255823914, 4.5456183944381046], [-0.54087264824288983, -0.32811422776227905, 3.7968214146042119, 7.2500853814459543, -1.1920595446511757], [-0.14634592862490781, -1.1410508739972776, 2.8345445031145644, 4.6463709920365091, -2.347747995629172]], [[-8.039978123664417, -0.082562158965803434, -8.7275175686765714, -7.2738305242057208, -6.9017303122659008], [-3.8529504382824813, -1.6086290386084716, -2.0016417797024566, -4.5734644272553382, -2.5675050110067197], [-7.1280939575147846, -3.8360013274193188, -8.2314274245856414, 0.25503699468525731, -8.0791195937766869], [-3.0953395310413185, -4.6270409609448411, -3.8611236647655387, -1.8010534552349995, -1.5761484468086095]], [[1.1008171052178293, 0.011479574219021238, -4.7720256644112151, -6.1895944781127223, -7.6185890404131671], [-5.1185814346625271, -3.4038237966705056, 1.2748467429664876, -7.3618942432847021, -3.7023435344687492], [-6.4949093434989162, -6.7542697787095429, -7.0749551181591395, 0.0070285522057327299, -7.3440684073898117], [-5.5862857346804526, -1.4516307660076881, -2.4586224183082912, 1.8932373722267615, -2.1289110897675085]], [[-0.19432604399435061, -5.2651455096353601, -2.8494237522733661, -6.7894603043638186, 1.6198943461610886], [-1.5323092395307034, 0.72828942410155317, -8.1049391335455176, -2.2587017592921681, -1.6745451073182691], [0.49466164749275787, -1.7097597279550314, -0.080481770110703899, -5.2140362725570579, 1.1129999226430174], [-2.5149292466037654, -1.1284210379763353, -7.6281240111215975, -8.0138895886463342, -4.3737155798049958]]], [[[-2.4496817097860593, -1.4073972529706142, 3.0254206968160728, -2.0006699424691448, 4.484302114145982], [1.95304372862525, 2.2227953677452366, 3.6577611817770173, 5.3928918635268683, 5.4285280978357182], [-0.37655330682984056, 3.3836880065904067, 6.6974541585511247, 5.2060022410007178, 0.33481930884851563], [-1.3581451057255851, 1.0913444338581439, 0.6005062982006919, 3.3223957395625909, 4.961064779227752]], [[0.052992519039756214, 2.4270770154699108, -2.4889805039070869, -3.9919169400497521, -3.4039283120484778], [0.10144958421511552, -6.1289454277418258, 0.73502711385714425, 1.1311630047045278, 1.7358402977663485], [1.5723384070739663, 2.7185416544902954, -0.86481113757812222, -5.3855568830571663, -0.87421377068439687], [-6.9222627772078322, 1.9097977000560875, -3.0375869878925523, -6.4007060321126001, -0.16051700533272983]], [[2.4929114895704894, -4.1786457083880233, 1.5565710065419616, -5.5237240198210786, 2.4729095577449849], [2.6619332479585873, 0.93249303925267046, -4.0328890491274061, 1.8118789281935479, -2.7754416622484932], [1.8166799062163443, -4.8698178710615343, 2.3298590838861442, -1.931996128231372, 3.7444983196159081], [1.9634469801704002, 1.9692760941270926, -2.0747994173833049, 2.3683395293074954, -2.7515479067031299]], [[4.0141084699557936, 7.0014480708770046, 1.3518903768017951, 0.61562462371825344, 6.0343037833511959], [1.3144969459088225, 4.1825638057824452, 0.023005394876169483, 1.7927111468909525, 4.7935708224680704], [3.9489421260953126, 6.9958031488067176, 6.4083323207698255, 3.3060405198209217, -2.2053146595713722], [0.89081621028727831, 0.94424183531533901, 6.9246507544760378, 7.6070960113505608, -0.96681095752221324]], [[-4.3323886576213813, -3.0339219465552971, -4.1326106988821145, -2.1101157767519219, 2.7246920603426572], [2.4542807793497357, -0.39998317976444753, 0.15139171639207305, 1.0950160900786887, -1.9141595306755699], [3.3811755418946934, -1.3330337793844906, 3.8828467556926629, -2.3884788706616122, 4.1398441642930006], [3.3145922909897596, -2.3235185662869675, -1.4048430466992081, -2.2089444908399782, 0.058165933809177339]]], [[[-0.75026619332489641, 0.51952895939090382, 2.7344962797741639, -0.058346736435452407, 5.4860328928275273], [-0.71384716867113607, 5.1000291619107596, 7.4633360714677899, 1.3178265564021414, 2.0724684430545217], [8.8030352711489304, 3.3673910323059468, -0.39424038497904412, 1.5782536897378598, 7.398837575949333], [4.4465929804496369, 1.4349520789886085, 2.6423959177105631, 7.6552138680725559, -0.79185840666771945]], [[-8.8120728071157259, -4.6488850500159771, -3.0870605189757212, -1.4151113787185459, -5.9329445015177704], [-0.15222647812865198, 0.61358445041536314, -6.2574041067835307, -6.5532573641434775, -4.0053729920406536], [-2.8392101423114919, -7.3973679287826428, -2.1353201091517455, -0.10241269686716237, -2.4419891903676252], [-2.5906239871459444, -3.6670660215849553, -9.0004465923820511, -8.5856600456746524, -5.7455180421917902]], [[-4.0082291212166208, -3.9819323963026956, 2.2732770167559493, -2.613977682382409, 0.3345736662666865], [1.8261100624155424, -6.2651011232003189, -3.2248276224950732, 1.7363041528162646, -1.5407886175311414], [1.3267756998086422, -5.2147226046468518, -1.9637182295149169, -5.161623960683059, -0.2217821671548692], [-0.21429294487913664, -4.8303458503706445, -5.5579998488514839, -1.6031600625257032, 0.34466430895309097]], [[6.2076232978064763, 6.1265503122626441, 5.7832675643859144, 2.5528651563900731, 2.3962713355601135], [5.9718155236054642, -1.6102670656507136, 0.81409716517513875, 3.0938221992796242, 6.5394386554655082], [6.2452423456506683, -0.65693554319956959, -2.8411983308306432, 3.49304078031461, 6.2973903403431546], [5.6352653195238691, 0.41715828751024375, 3.1799222726858893, 6.0807195868427826, 3.2692579589608304]], [[3.1598971316250397, 0.38525065807017178, 9.3392361547502709, 1.9885364368701968, 2.5593404713702688], [6.056991712374419, 4.6766491822244287, 8.9123753637057632, 2.8786455219942115, 2.5264233145372099], [4.687215179803502, 0.49227802835934398, 0.15073149733288638, 9.1945481304092258, 6.2393027413361821], [3.5325651864259786, 1.0322511459429524, 1.9424529239667461, -0.32003451196515176, 5.008201606167658]]]])        ref=msk_ref*numarray.array([[[[-4.4933287000185622, -3.0248774307458293, 0.89001857849812538, -0.46527024014575069, 0.046389814847474398], [2.3847640804327046, -4.3381796409703277, 0.1193262163603972, 3.1755347972541728, -3.9297526726939478], [-0.62159508999381696, -3.1758612892221936, -0.9455932969553027, -2.8762769683815499, 1.4704320394961741], [1.8165499218596235, 0.53914964217998929, 2.0937489989893958, -0.93329245913772318, -5.5298637813056484]], [[1.1104622070919161, -5.4560785351106169, -6.0560537425419874, -0.11175001541012097, -2.7919776369503042], [-7.172961327919892, -3.6402265335113144, 0.10203927319819517, -1.7057626848706233, -3.0017479566696981], [-2.1185788564321237, -1.0557155735089196, -3.3161622017500259, -6.4272251046472633, -6.3696762976789341], [-5.7255088714549505, -4.3346838995189785, -3.5055613214213563, -7.9579763893020887, -8.1231306640493308]], [[-2.477121537644456, -2.1145080713067688, -3.5840525059729313, -4.0066735970821519, 2.3656810456437998], [-6.9020775917979673, -3.2462713049730261, -5.1200455276709853, 2.6442945960245292, -4.2706775467360325], [-0.52012893787096326, -0.24741859054563387, -5.9722035746454978, -0.82116840126944757, -2.8856509107068837], [-6.5898735186496769, -3.8674931348753847, -2.3303862807836686, -3.9419064656572531, -4.9273424411487703]], [[1.5841948870772797, -4.7594288160617797, -1.2192013944285587, 2.9472450579304934, -4.0312279550721488], [-0.43177417658874306, -5.5789957514485629, 0.76378598406661302, -1.444753168981467, -3.1571834549788815], [1.247253096538572, -4.1580093748108311, -1.5384789747718011, 3.1386960407168023, -1.2934526151517187], [-1.1579849590791969, 2.0735364243823384, 1.099790962917703, 3.0163914452254255, -2.088294390722957]], [[-2.7889869021539559, -4.7152799752205112, -4.8989614682015192, -4.8890180918163679, 0.33489428393909604], [2.6874323655381978, -1.6401188642570506, -2.436519445728472, 0.87253036652121585, -0.22175199258227396], [-0.25492158146182264, -3.8824132670079026, -5.0823580998686824, -2.9998682362001605, -4.811308567267135], [-2.4398590156105491, -2.8918806125946239, 1.9789737175893225, -4.8778702777120699, 3.3477143117285375]]], [[[-8.0404556875403053, -4.7031365777592775, -0.094220824086173494, 0.14196980109243462, -5.5361444049589181], [-5.5988413317086474, -6.8919838487778424, -6.9282392014025023, -1.1146273944913103, -1.4871284117090475], [-5.1248307383015526, -5.5255091573064776, -0.69281438269680518, -6.2703882897875731, -5.2807396250161913], [-0.31329930695411345, -4.0075543006088523, -4.0996216769262297, -7.5889259322929057, -0.54802176960660454]], [[0.82903185355716502, -5.875076446627304, -7.5699762040150667, -1.940180720342318, -0.61047263718471356], [-1.5573953141016936, -2.2987923184384753, -2.8123092535613061, -6.6923608938080417, -8.1464852054513681], [-1.8187021885097296, -2.5074356628823136, -6.8757041379326047, -6.6790729959555515, -1.4048313887382333], [-7.0098354779424774, 0.78923199226755791, -6.4280177212676106, 1.3019260673727846, -6.3175729409189154]], [[-2.1728242673441747, -9.6383173592025493, -0.040469575270441815, -1.5147824870170536, -7.7936881982734487], [-5.7442760737999352, -9.2468629212260982, -3.2024603544460506, -8.5318823851205714, -5.5872618155358973], [-3.3077938090665784, -1.1538615898861524, -9.0234234901586685, -4.2767813447852552, -8.6477330849057878], [-2.587573104185636, -5.7352765182033769, -3.7338641196409261, -7.7877167614276814, -7.618954863864924]], [[-3.8546476868954542, -2.335679139006869, -9.3502929436468918, -5.0923416370692758, -1.52147884769734], [0.28324941003374882, -3.3039797825857136, -2.3669661152812438, -2.1407469457722836, -7.8607458981428726], [-4.5557150195086615, -0.99320692584170978, -8.8081041922089618, -2.8075206587782136, -8.6455332357253649], [-9.6318739555491941, -4.6935996545834566, -4.1659033534317729, -3.737026050122827, -5.4231990300931265]], [[3.741194666032273, 5.7719783754588647, -0.67195032483665784, 3.4851234632312362, 0.23536950127972966], [4.9103781158663118, 6.519945192573676, 8.6231500526230995, -0.24199592341210252, 0.40977902775891284], [2.6538928925051652, 8.6301321795781529, 3.2351275091223695, 7.7396286067810927, 8.5283227282411698], [6.801624443231729, 1.0026746024050803, 6.9841092792544739, 0.63336791166855422, 3.7899606663222212]]], [[[-4.2053466005059921, 1.50802706555322, -5.3036193209012836, -1.1526742827576868, 0.20794200138162289], [1.6347032602634552, -7.3473356309750066, 0.97159737030802695, -0.81391159915432443, -0.8954622595526498], [-1.3419770651128982, -8.0150309748515483, 1.9206801618945875, -5.0768482248657207, -7.5234996248046802], [-1.798544714384235, -0.18070333800816751, -4.050670172011511, -0.91640571278940985, 0.16961895002675398]], [[-5.8381849861412904, -4.4507375083732681, -0.30475291485350908, -2.8249589869743179, -4.2520605036161507], [-1.2249293601214095, -2.995884138175553, -3.9990831130015501, -6.8512948319622815, 0.62208466885592451], [-0.49317481446165168, -3.5242117514305136, -8.1123406350770875, -5.5434262734995237, -6.5857145712388689], [-5.1378297793781336, -0.83999991230675874, -7.0687329583013891, 0.28238720105528259, -4.0935247135142099]], [[3.051497949259474, 1.1374194686667516, 3.9504952706912455, 4.9420296317183299, 1.712043226486637], [-0.55853332904680419, 0.56250607006670394, 5.3736442818497467, 3.2072594311356015, 1.9733734903751241], [1.7732883911381347, 3.4592106737068686, 6.4182731264813526, 3.8130209382929436, 4.4578216745462829], [0.034699230393110625, 5.112840809411912, 3.6684434021495331, -1.0810574993135367, 1.4246217172540856]], [[4.4497596616056487, -0.50555930939475058, 5.2721088513670491, -1.2492253043113095, 4.2235263925478588], [4.9800187831981404, -2.2744902883481259, 0.37050208597116541, 5.9104949316244895, -0.99204075915671197], [3.3646724928085749, 4.3415722795454101, 0.4367912911177374, -3.9254076713909125, -3.3918477615413494], [4.1044188691558592, -1.2487773559972801, 5.809127439227419, 2.5042138286517792, 5.5597098837584493]], [[6.6872278671759755, -1.5676565382044521, 4.5268569535673624, 7.3117784352548156, -0.44247487487276516], [1.3536856336771024, 0.56487519486527571, 4.8191452435655355, 4.2535954912837841, 4.5407345729255528], [3.5852017328859223, 6.8937769207441484, 4.2667383552182363, 6.0450960352406238, 6.5643261910196884], [7.62444938244073, 4.3208197388489555, 0.3796200210436238, 4.9095219171309816, 1.3218693906035037]]], [[[-6.0728700930697137, 0.96137269359441824, 0.28381407028383698, -7.7186091024715759, -8.4309209927143591], [-7.4430645912496747, -6.4986353334435796, -4.7305924320104289, -2.2334522304673516, 1.1599959271529574], [-4.7674275851087122, -7.1128545561794576, -4.2057843668601835, -2.1227618127792223, -2.4869552966494801], [-2.0550401493419983, -7.5901092647295121, -3.7659372346434008, -3.4876706437115876, -5.7506573331397712]], [[-6.7810078482429894, -3.1839073536453544, -0.90386925299991017, -6.204255340822364, 1.4159893461439648], [-6.0165360792230569, -4.3321115581145175, -1.5359457353857566, 1.8256097838435075, 1.6163172855646621], [-7.9590159465023769, 0.18066761805597942, -8.0821293805437353, -0.61389016078011593, -1.2406192179645767], [-0.1259980158137104, -5.6608359119366298, -6.2892146271604377, -7.9723287742313156, 1.5977772711004992]], [[3.4580210305356758, -0.82215524625572023, -4.6371279010799231, 3.9689317293344235, -2.1154578227623722], [-4.6019469518211942, -4.5076793906476063, -3.8946438654208757, -0.6953616197280974, 3.3206598762200521], [-1.1449105867115783, -2.0279847601379908, 1.5966053307291457, -3.859601509125242, -5.2801348381207394], [-4.4472487851226825, 0.16381247744513683, -5.3046475346542872, 0.91031947770605193, 1.1489096618872709]], [[4.5938941508222193, 3.654812186422097, -0.22565600586754275, -1.2647483597665667, -2.4443477933836268], [2.8145101770735179, -3.1249746302118631, -2.2219616967185996, -0.99629132607211535, 5.6644766366979518], [1.6408443752716364, -1.7450995250821864, 0.16249278132370293, 4.8795432109083965, 5.0349736062720183], [4.9499649919310293, 1.7306684325166009, -3.3580901849537783, 5.5391963410841356, 2.144800765249375]], [[-1.105954421366274, 5.7009655056647137, -0.82278028980281004, -3.8684219364588142, -2.5130508600292667], [4.6462774830829208, -2.7322299907382916, 0.1123467713707953, 4.3383566662832624, 4.027764274324408], [3.742659466116117, 0.11494784974372863, 1.0836347171865288, -1.8202665001825413, 5.878333833409533], [5.546797543394101, 2.7730695049501826, 6.0252419963306334, -2.8543764963529705, 4.2557489677866176]]]])+(1.-msk_ref)*numarray.array([[[[3.8428452055087803, 0.79050190925027852, 8.5123377574500516, 1.8686091698122351, 8.8637100210567343], [3.2900836562647493, 0.26744820950484982, 4.9297142993117564, 8.8535782567827663, 2.3253472551455365], [3.0572004426634258, 1.2883650016989678, 5.2680848593512675, 0.16950130171332844, 4.6971082709032874], [0.047177171514741545, 2.1890364513605283, 8.6422315071138431, 4.705186015322802, 4.9701513921203304]], [[2.8578798233213805, -2.89123647229711, -4.0787948808435628, 1.1244266281283073, -3.5324030843798493], [-0.58363619815868351, 0.61106230672776629, 3.0557736516021548, 0.4225177957462618, -4.9673373296401619], [2.4535177813467213, -2.1321545010366885, -0.58169037245765498, -4.2933750232324179, -5.4916141855699072], [1.5296241999954825, -4.679146813043829, -1.5570830879890307, -3.6071073811130754, 4.0004895949493386]], [[6.3264943078118057, 2.8246894322042828, 4.9359484237553666, 1.4987481355760504, 4.6998965321525921], [8.8583543034906906, 3.8101247865312287, 5.1488761717914926, 1.6201059110541776, 5.6655764208677706], [7.2439020260637559, 7.212704665689416, 0.5144455483355781, 6.3882899425346622, 7.2292156421924547], [5.9729042744112286, 8.6510545972647552, 3.0406646971368536, 8.8886545636107801, 7.8703922894556655]], [[-1.1512305795919353, -0.33096106602269959, -3.8046664425378092, -1.6775649882590455, 2.9847933875473647], [-4.627907316617069, 0.098363576325857238, -4.3910567811062702, -0.21629974309193756, 1.3271006751043908], [-3.2568852219957631, 3.1396590277743188, -0.12572077482755351, -4.5791150911995215, 0.12239088655773944], [1.0099947709315868, 4.0213709208362749, 0.70049515893104086, -4.3326526676609189, -4.3821320900139407]], [[-4.8343110731370196, 4.4863160882547728, -2.3459174961055558, -1.8974499617535674, -4.1031098563713204], [-2.9665548718351129, -0.44793597110907157, -4.7734481714842367, -2.6932589732942329, 0.38201787146350608], [-0.77170522784126305, -2.3837613317672242, 0.47541497964127277, -2.9349833266407273, -4.1583782312229403], [0.0048117873578030768, -1.4189634699033022, -4.9961784520883752, -3.6006801183574426, -3.0354372635023594]]], [[[1.2903035706706483, -0.93414634661101159, 5.6824462294143423, 3.0202481339720118, 3.2453498683944657], [-1.0243502946149379, 2.0909993705426571, 5.1304274671343713, 3.7799762560316994, -2.187713766925893], [-1.3053094656829449, -0.29570509383503962, -2.307249656887385, 0.94427254678318917, 1.1214559731961513], [-2.7468870320599716, 4.0546178699300803, 4.9437142659282323, 2.9838552534822531, 1.3246951362101163]], [[-0.58827309947825679, 3.2651131759381107, 4.8806449500792972, 4.7902374678538697, 1.8898251018991647], [3.6348374300623467, 4.7802070434040163, 0.20654175928959395, 5.7614722255823914, 4.5456183944381046], [-0.54087264824288983, -0.32811422776227905, 3.7968214146042119, 7.2500853814459543, -1.1920595446511757], [-0.14634592862490781, -1.1410508739972776, 2.8345445031145644, 4.6463709920365091, -2.347747995629172]], [[-8.039978123664417, -0.082562158965803434, -8.7275175686765714, -7.2738305242057208, -6.9017303122659008], [-3.8529504382824813, -1.6086290386084716, -2.0016417797024566, -4.5734644272553382, -2.5675050110067197], [-7.1280939575147846, -3.8360013274193188, -8.2314274245856414, 0.25503699468525731, -8.0791195937766869], [-3.0953395310413185, -4.6270409609448411, -3.8611236647655387, -1.8010534552349995, -1.5761484468086095]], [[1.1008171052178293, 0.011479574219021238, -4.7720256644112151, -6.1895944781127223, -7.6185890404131671], [-5.1185814346625271, -3.4038237966705056, 1.2748467429664876, -7.3618942432847021, -3.7023435344687492], [-6.4949093434989162, -6.7542697787095429, -7.0749551181591395, 0.0070285522057327299, -7.3440684073898117], [-5.5862857346804526, -1.4516307660076881, -2.4586224183082912, 1.8932373722267615, -2.1289110897675085]], [[-0.19432604399435061, -5.2651455096353601, -2.8494237522733661, -6.7894603043638186, 1.6198943461610886], [-1.5323092395307034, 0.72828942410155317, -8.1049391335455176, -2.2587017592921681, -1.6745451073182691], [0.49466164749275787, -1.7097597279550314, -0.080481770110703899, -5.2140362725570579, 1.1129999226430174], [-2.5149292466037654, -1.1284210379763353, -7.6281240111215975, -8.0138895886463342, -4.3737155798049958]]], [[[-2.4496817097860593, -1.4073972529706142, 3.0254206968160728, -2.0006699424691448, 4.484302114145982], [1.95304372862525, 2.2227953677452366, 3.6577611817770173, 5.3928918635268683, 5.4285280978357182], [-0.37655330682984056, 3.3836880065904067, 6.6974541585511247, 5.2060022410007178, 0.33481930884851563], [-1.3581451057255851, 1.0913444338581439, 0.6005062982006919, 3.3223957395625909, 4.961064779227752]], [[0.052992519039756214, 2.4270770154699108, -2.4889805039070869, -3.9919169400497521, -3.4039283120484778], [0.10144958421511552, -6.1289454277418258, 0.73502711385714425, 1.1311630047045278, 1.7358402977663485], [1.5723384070739663, 2.7185416544902954, -0.86481113757812222, -5.3855568830571663, -0.87421377068439687], [-6.9222627772078322, 1.9097977000560875, -3.0375869878925523, -6.4007060321126001, -0.16051700533272983]], [[2.4929114895704894, -4.1786457083880233, 1.5565710065419616, -5.5237240198210786, 2.4729095577449849], [2.6619332479585873, 0.93249303925267046, -4.0328890491274061, 1.8118789281935479, -2.7754416622484932], [1.8166799062163443, -4.8698178710615343, 2.3298590838861442, -1.931996128231372, 3.7444983196159081], [1.9634469801704002, 1.9692760941270926, -2.0747994173833049, 2.3683395293074954, -2.7515479067031299]], [[4.0141084699557936, 7.0014480708770046, 1.3518903768017951, 0.61562462371825344, 6.0343037833511959], [1.3144969459088225, 4.1825638057824452, 0.023005394876169483, 1.7927111468909525, 4.7935708224680704], [3.9489421260953126, 6.9958031488067176, 6.4083323207698255, 3.3060405198209217, -2.2053146595713722], [0.89081621028727831, 0.94424183531533901, 6.9246507544760378, 7.6070960113505608, -0.96681095752221324]], [[-4.3323886576213813, -3.0339219465552971, -4.1326106988821145, -2.1101157767519219, 2.7246920603426572], [2.4542807793497357, -0.39998317976444753, 0.15139171639207305, 1.0950160900786887, -1.9141595306755699], [3.3811755418946934, -1.3330337793844906, 3.8828467556926629, -2.3884788706616122, 4.1398441642930006], [3.3145922909897596, -2.3235185662869675, -1.4048430466992081, -2.2089444908399782, 0.058165933809177339]]], [[[-0.75026619332489641, 0.51952895939090382, 2.7344962797741639, -0.058346736435452407, 5.4860328928275273], [-0.71384716867113607, 5.1000291619107596, 7.4633360714677899, 1.3178265564021414, 2.0724684430545217], [8.8030352711489304, 3.3673910323059468, -0.39424038497904412, 1.5782536897378598, 7.398837575949333], [4.4465929804496369, 1.4349520789886085, 2.6423959177105631, 7.6552138680725559, -0.79185840666771945]], [[-8.8120728071157259, -4.6488850500159771, -3.0870605189757212, -1.4151113787185459, -5.9329445015177704], [-0.15222647812865198, 0.61358445041536314, -6.2574041067835307, -6.5532573641434775, -4.0053729920406536], [-2.8392101423114919, -7.3973679287826428, -2.1353201091517455, -0.10241269686716237, -2.4419891903676252], [-2.5906239871459444, -3.6670660215849553, -9.0004465923820511, -8.5856600456746524, -5.7455180421917902]], [[-4.0082291212166208, -3.9819323963026956, 2.2732770167559493, -2.613977682382409, 0.3345736662666865], [1.8261100624155424, -6.2651011232003189, -3.2248276224950732, 1.7363041528162646, -1.5407886175311414], [1.3267756998086422, -5.2147226046468518, -1.9637182295149169, -5.161623960683059, -0.2217821671548692], [-0.21429294487913664, -4.8303458503706445, -5.5579998488514839, -1.6031600625257032, 0.34466430895309097]], [[6.2076232978064763, 6.1265503122626441, 5.7832675643859144, 2.5528651563900731, 2.3962713355601135], [5.9718155236054642, -1.6102670656507136, 0.81409716517513875, 3.0938221992796242, 6.5394386554655082], [6.2452423456506683, -0.65693554319956959, -2.8411983308306432, 3.49304078031461, 6.2973903403431546], [5.6352653195238691, 0.41715828751024375, 3.1799222726858893, 6.0807195868427826, 3.2692579589608304]], [[3.1598971316250397, 0.38525065807017178, 9.3392361547502709, 1.9885364368701968, 2.5593404713702688], [6.056991712374419, 4.6766491822244287, 8.9123753637057632, 2.8786455219942115, 2.5264233145372099], [4.687215179803502, 0.49227802835934398, 0.15073149733288638, 9.1945481304092258, 6.2393027413361821], [3.5325651864259786, 1.0322511459429524, 1.9424529239667461, -0.32003451196515176, 5.008201606167658]]]])
1795        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1796        self.failUnlessEqual(res.getShape(),(4, 5, 4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5, 4, 5),"wrong shape of result.")
# Line 1779  class Test_util_binary_with_tagged_data( Line 1799  class Test_util_binary_with_tagged_data(
1799     def test_add_taggedData_rank2_expandedData_rank4(self):     def test_add_taggedData_rank2_expandedData_rank4(self):
1800        arg0=Data(numarray.array([[-0.74112341263355752, 4.4570737177717472, -0.88303727267573073, 2.8505542896924441, 0.24751543531618214], [-2.6500972506044498, 2.4407738740277267, 4.3753631908684376, 3.7569205686737703, 4.5481173063520224], [-4.0784831637890857, 0.12967500959919853, -1.5653433867654334, 4.6082361472963562, -1.8004067104610377], [-3.8569701658538613, 1.1922059673662719, -1.2551253063998704, 3.8940832175052016, 3.5241677497340245]]),self.functionspace)        arg0=Data(numarray.array([[-0.74112341263355752, 4.4570737177717472, -0.88303727267573073, 2.8505542896924441, 0.24751543531618214], [-2.6500972506044498, 2.4407738740277267, 4.3753631908684376, 3.7569205686737703, 4.5481173063520224], [-4.0784831637890857, 0.12967500959919853, -1.5653433867654334, 4.6082361472963562, -1.8004067104610377], [-3.8569701658538613, 1.1922059673662719, -1.2551253063998704, 3.8940832175052016, 3.5241677497340245]]),self.functionspace)
1801        arg0.setTaggedValue(1,numarray.array([[0.24430032160695525, 2.1679490108070789, 1.7212508033844296, 0.77438379900937804, -0.70594019599319413], [1.1794100359587336, 2.7579012098420019, -0.6383941233429633, -3.4917277700608098, 2.4850097552824923], [2.9392779476530864, -2.412190846158786, -2.3897537165538574, -2.9652763510334825, -3.8640799254421276], [-4.000448153280117, -3.9481857962286249, 2.7131157791816465, 2.9296600274136564, -3.6275769658500421]]))        arg0.setTaggedValue(1,numarray.array([[0.24430032160695525, 2.1679490108070789, 1.7212508033844296, 0.77438379900937804, -0.70594019599319413], [1.1794100359587336, 2.7579012098420019, -0.6383941233429633, -3.4917277700608098, 2.4850097552824923], [2.9392779476530864, -2.412190846158786, -2.3897537165538574, -2.9652763510334825, -3.8640799254421276], [-4.000448153280117, -3.9481857962286249, 2.7131157791816465, 2.9296600274136564, -3.6275769658500421]]))
1802        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1803        arg1=msk_arg1*numarray.array([[[[-4.8987584143724643, 2.2429532432381274, -1.3822780961502747, 3.9652299519226002, -0.36524937009713287], [2.6299867353180009, -0.51448824488480405, 4.6886307698708727, 2.2403696573895449, 0.4695696041371562], [-1.4401464007987954, 2.6033592474139864, 1.8280349806372893, 4.8939182754301864, -4.0500971045793417], [0.46675401885550727, -2.3505119021880194, 0.12955280803773395, 1.7234329923915563, -2.0621721054517494]], [[-4.4098592949296229, 3.5796256144360825, 0.46428661941529725, 4.4156960938433425, -2.9802460244514863], [-1.6430548025362492, -0.5069668336706199, 3.833444617848242, -4.3102580404362545, -2.687207481731221], [4.4655031766440043, -3.9673958400210974, 0.63828662756889365, -0.92069573588461928, -4.2337379006227094], [-0.72202955725754592, 3.3723320328533308, -3.5124490618761515, -3.7738014376670801, 1.0336594284951106]], [[2.4209711849880371, 0.58181128005009342, -1.691110444858166, -1.977504587493828, 2.2586604769042351], [-1.1257165249205361, -3.6878029288363354, 1.7559691976888328, 1.7383240214862363, 0.42229444618616796], [-2.884830254802301, -4.8637649156338831, -4.2620501085101186, 2.6514472504809259, 3.2352785513562807], [0.26783133064026554, -3.7958388107390806, -3.3760435279304648, 1.6810754314991607, 3.967596363848191]], [[1.137990009176538, 0.35632368258145242, -4.8618113314883473, 3.1671677602452775, 0.30008402557649738], [0.93520891407146678, 3.5051177860142086, 1.0094387990980378, -3.2578681315560134, 2.7093072079004141], [2.68283903480551, 4.4206955316471568, 1.0162995771424912, 3.4505247265868437, -0.97292258927282482], [-1.4193367757343633, -0.29631524465268644, 4.9717699607707448, 3.3933085712824163, 2.5297074954922527]], [[-4.1214969839661801, -1.6830293834027765, -3.5915008019374781, -3.3358395371612315, 0.7067060449824929], [-2.9173918431765067, 3.2488504880217928, -1.7808669140173405, -2.6851690135115103, 3.4538161030015591], [-0.36143309547219005, 1.4532854856470765, 0.17848588361167561, 4.86459129024216, 4.3082283829388874], [-1.8596000060319398, -1.2165057631365417, 2.6745137673760304, -3.3014892146675709, -1.2801003297305655]]], [[[0.38981768199009359, 0.60493430105969637, 4.7779376687565076, 0.26223536189238761, 2.6284402790791734], [-3.1328830270979733, -1.9837094776323907, -1.0999653487522587, 1.1648684754046617, 0.19104363317376638], [-1.2192213782789239, -2.8973620898636754, -0.64912056886304637, -3.768157207776095, -4.269598004480609], [-3.3884748233488704, -0.95563211814461191, -2.5900921809392119, 1.3354851237458654, 1.2044404227821737]], [[-3.237198006915043, -1.8124121662359007, -2.5618530745710197, -2.4521066861930549, -0.90224734789165151], [4.2106409564431946, 4.3636335814954599, 4.350644352213159, -1.8594010422137708, 0.13580512559590296], [0.9785115080525717, 2.8737869075705991, 3.3498281041967566, -4.4839167716260508, -2.5681669918665695], [3.2522124267608419, -2.4043454366250741, -4.2385799108711462, 2.0833487012044651, -3.3400887175941349]], [[-3.3154373367624701, 3.5171109302496486, 1.2201210694650575, 2.6342214143758298, -0.47211508895067311], [1.6173948046051105, -2.0686691717652828, -2.1883623360032054, -4.0026930824183999, -2.9397646045417991], [2.8316557761682475, -4.2470353439639421, 4.7212025140594189, 1.150200247548324, 1.6289608928238657], [1.842221331277317, -2.5845140371168904, 1.9732883226243221, 4.7149636149717544, -2.8023621614983285]], [[1.6614801565533552, 3.4227826531262462, 3.1453194321537072, -4.2018368045042234, 0.65289335206474775], [-3.0962995897811707, 0.64179306841823447, -1.3335229088076339, 0.14351294273393655, 0.86123306231586838], [0.57042884320435228, 3.4962727279527623, -2.7913744475081836, 4.5115466145187568, 0.11327219459246063], [4.4423766209878348, 3.9204759597480354, 0.48704424971596882, 2.2473472837318207, -3.662313874704437]], [[-1.7303686417259145, 3.4602568787999317, -3.272055917156973, 2.0845661809173937, -3.5051089465295018], [-0.93947484290832239, 1.1671708359722981, 2.2882641967876127, -4.9393028944455031, -1.9162912894788295], [-3.6031503184894476, -3.9071625852147998, 2.3748711369129847, 4.8432421297916086, 4.3927204605815451], [3.8777156257751528, 2.7132938250275442, -1.7338022448192127, -0.95295300427313556, -0.5429582775577888]]], [[[-2.4921838838802355, 0.18388022486033506, 3.3184566774327742, -3.7880639532289075, 2.267318720862864], [-3.2594897175351178, 4.8081179103995666, -3.5135300879455045, -3.6869807118759268, 3.969392210039512], [-3.880680424388574, 4.2757124948109233, -2.5693084664075205, 4.7487279233664239, 3.2302500826960721], [-1.3590997698990579, 3.9420894119969621, 2.2367154367858202, -1.2637103660515936, 1.5343196698472452]], [[4.1522980846451372, 0.66636188412523545, 4.5082489127808341, -4.9385416106750446, 1.7417870340465846], [-2.8710033380814881, 0.27505014061073663, -1.1329506510683185, 3.4945290376149423, 4.5241440730938933], [-1.5351375308174839, 2.4072580952601985, 1.8186476178996323, -3.5640399618248022, 0.84791141406375736], [1.4323759474120834, -3.8526617877675315, -2.1989044292417246, 2.7452014370410733, -2.6986145057027877]], [[-3.6427572137564601, 3.6693920415139001, 3.2843944618016181, 1.1029835704455992, 3.2995695479993792], [1.6720766582995132, 4.0230713141107692, 1.7972454246606775, -4.3082380753510119, -2.3201463783116028], [0.89099098658345088, -1.5597053952228945, -4.9149805364287271, 0.49508491070637728, -4.5277973463667678], [-4.7154260937947488, -0.84439370765100286, -2.2745377786345866, 4.5739609475591418, 2.6053964805490732]], [[-2.5285034086346556, -1.1259798191962234, -3.3019061514505053, -4.5616696034380633, 3.8898342726522959], [3.0661010840670428, -4.6039827560157187, -3.6009243083773503, 2.2178865997899235, -0.92363413132874683], [2.6993409826408987, -4.6102900908435984, -1.118492548445873, 2.4850839705624139, -4.0428283361633124], [-2.1843673826833343, -0.23983503993997246, -0.64711042374145755, -2.9677424980862455, -4.3528819359873374]], [[2.0622952691276151, 0.43363059266277837, -1.7161116680543245, 3.5888493556512042, 1.2084393189528857], [0.30683392845392987, 4.6970913286697566, -3.6230266311110793, 0.89507863301219714, -1.1859066301912735], [-0.17583208634932745, 3.6090778511875961, 1.6158055572818615, 3.6107142658385154, -3.3119581357296868], [2.1016604804389969, -1.0831586211519308, 1.8638902358912768, -3.0206579213661255, 4.999334654939025]]], [[[0.92467103661062122, -2.2602132222963958, 4.1860390235845983, 3.4413259899408484, -4.3184664878383492], [-2.6199065523874032, -1.7642275066074453, 1.3378016944343676, 4.4532766291977008, 1.9023928625146436], [3.3587752129357522, 3.5220831290545824, 4.808742291541579, -1.9628994770253083, 4.8039950362436521], [4.7859217287205507, -4.3409126749440885, 0.10502858341006593, 1.1959235087473141, 4.6810364147897001]], [[-2.6939658089337692, 2.6729037549406396, -4.6143258537695271, -3.977512407216782, 2.7912587318754722], [0.92436258554894923, 2.0582570542256375, -2.6639171217929105, -0.33228881160067747, 4.5191492108098981], [-4.961766693088915, 2.7690601991581545, 0.88505991798418027, -0.10394395049339167, 4.4093196236829861], [3.544799451867549, -3.3369704330959102, -1.2680901722431361, -0.3189038798361139, 1.5846660128571504]], [[2.1228106780994267, 3.4014702064830562, -1.9446995557474689, 1.6148965709037508, -3.5310259860216875], [2.8634915787147284, 4.9455629220931883, 4.2313519109371089, 2.779694432795119, -2.5186275329224528], [-4.4444507118584218, -1.1873716956711187, 2.3798143014161957, 4.2532537903495502, -4.3785843952464178], [1.8176824522308666, 2.2288600795556288, -2.3249847358780396, -4.1856714927872574, 0.50966775345435344]], [[-0.66613819179985256, 3.1112699107624469, -3.2820259735297155, -0.61893070863133026, -4.9801834338107067], [-3.2863981276951315, 2.8801632677397286, -4.8891527589357322, -2.943295477216993, -3.9369619445126744], [1.1802917021870796, -0.3222417232911754, -3.1937599031957076, 3.2456663002197637, -4.4240808399450779], [4.0817089773693489, 4.0142215798112151, -0.83494564338428212, -2.7057309749009937, -4.9419488201423043]], [[-0.9109475169590473, -2.2394416290188413, -4.3057908130587732, 2.8657960665056663, 1.0366476449929749], [-3.6097032132446305, -1.1103022267468141, -4.9174756721656623, -0.96802413009168919, 2.3021418057967677], [0.33326877480960615, -4.9293217527767617, -3.2451319778387933, 3.6297850871082762, 0.70321244931799942], [-4.4547259899131939, -3.1690588083598259, 4.1186138263748511, -1.8674679598350141, -0.25823821798027335]]]])+(1.-msk_arg1)*numarray.array([[[[-4.8151539115109667, -4.7840432481013, 3.1422454089619229, -0.51688923852950008, 2.4376897474554653], [3.5645882278621759, -3.344107353110235, 2.418445828437692, 1.0787087918091132, 3.4680900960290852], [-2.9973906803981376, -4.6616535003615311, 3.912103387107738, 3.8157623779342416, 2.5531922302811534], [-0.63315384831731691, -3.4294126167483885, -3.4056344733877086, 4.3447112575636151, -0.01782033187181753]], [[4.45640780979803, 1.9007032290067762, -4.8592353702516897, 2.4916768736949271, -0.51060864840086495], [-0.71564429138531338, -4.8006752136362607, 1.5376819980397149, 3.2799338528734232, 2.031561111253648], [-2.616859857583973, -1.3952936392646578, -2.4181942643446952, -4.1942707966922255, -1.8536638126699865], [-1.402495720331193, -4.084119864771897, 1.2438709264046386, 4.7442413982676932, -1.8157097276913134]], [[4.3736078682657382, 2.8116244753342023, 4.9539588820623628, -3.9264345065311024, 4.7014331736451389], [0.41645844419273104, -1.1850843217934126, 4.280917401836092, 3.0690497924684212, 3.2136944497910438], [3.8509638386361047, -4.9729076762382842, 2.8937988014917915, 1.6358229388285981, 4.1550401973642614], [3.5394471633082443, -1.1988832620878953, 0.38418604673654677, -4.7268412299978602, 2.4355731498318907]], [[-2.4394862464752807, 3.9384837090565519, -0.5983186642072722, -3.4800616773419337, -1.5238238133649551], [-4.8630362896808439, -0.65682801106031885, 1.5118646061885856, -0.62497916202868353, 4.5916609766256773], [-0.078589909087679821, -4.1535581119184126, 3.8291344137095304, -4.7474528436044565, -2.9478652456332401], [-3.6314167520231102, -2.2312265076829574, 3.9335021128386707, -0.43663822289795906, 1.3105802797658281]], [[1.8218998866124378, 2.2104509154125171, 2.4201172067512164, 4.0407835711415032, -1.5096693302630215], [3.1700890273088298, -2.8707275006665069, 1.5190858268797598, -4.0042287767445099, 0.97624131167870853], [2.8354460542668587, -3.9379976324048238, -0.56514813671614572, -1.9315322736665621, 1.9588011506540095], [-3.1697006802629701, -1.6845847130761182, -3.8737054651308078, -3.649003861755411, -3.0899213710298601]]], [[[1.2197384826563802, -2.0491872372738582, 3.9985683666638341, 4.7908553761220816, 0.24438923581347449], [-3.4136569667473724, -2.6994275759239561, -3.1088624798594031, 2.3301611863279348, 1.0441780212093708], [4.4663446516348113, 1.0423663494154036, 4.3286343234161819, 3.4218438374623386, 4.723192091075628], [-0.035054115371893957, -2.1981296471447074, -1.1156020775240902, -2.3642656312796251, -2.8085537579687814]], [[-3.2176442545204678, -1.931428305527775, 0.32995748638636613, -3.5622610904980534, 3.7513804273925615], [-0.8187701886531018, -1.8834356614205428, 0.42259313091593054, -2.0249064180100804, -0.59139921900838299], [-4.1862438164267726, 2.507477303318872, -0.71212610255080833, -2.9933005226564724, 2.0923823369534542], [-3.6179836218731722, 2.3088629809283399, 0.9092322211087307, 4.6645987121545218, -1.6663629686430683]], [[2.4086974022270615, -3.7894324007070912, -0.83339578285664473, 2.8686449254996491, 3.4843869626803272], [-2.2877322070640318, -1.5604087631864374, -0.64215169631561686, -3.5355843954012425, -3.7628021803585154], [4.9080612634963945, 0.53409362925317083, 4.9671042865792856, 2.4988092757516247, -4.1897837976182162], [-0.067187618217998235, -2.9155665726546309, 0.38142748675172999, 4.3651638600175122, 2.5335216965172691]], [[0.9159611842089852, -4.8813186962996156, 3.4997504006474749, -4.7280360660576921, 0.92492537563725818], [-2.7946539568572071, 1.1567157799286187, -3.2929292207454663, -0.94663451311435853, 1.4031176834216232], [3.9956324721255516, -0.11848184194438804, -3.2283199903631496, 4.8214659095126375, -1.5186558855754395], [-2.0060863661765449, -2.8715795224336871, 2.7091416936239376, 1.3879096359043643, 3.8074506943711128]], [[3.12108572287352, 4.9780281613362209, 4.9493932555982862, -2.8396465026184172, 0.60316431030996576], [-2.2394359485652848, -0.76589663192976687, -3.7049905148087237, 1.1408029043136807, 1.9706205812000102], [-1.5317757085945405, -0.55834268396411613, -3.4206041296809864, -0.79317856422088351, -0.93852909566261822], [-3.5085192880934537, 3.2644186785559768, -3.1418299513917614, -2.7116658147784012, -0.29893283469028908]]], [[[3.4271340642924315, -2.1031167518358949, 4.8072066578333779, -0.44347577581038333, -3.0220961260517321], [-2.4632821500241664, -0.8681969637233875, 0.078868811340907286, -0.099519185438427193, 1.6584595787332566], [-3.7080559511337485, 3.9454630072378531, 2.6911765836969339, -4.5602572381228201, 2.983726470888719], [2.1888574949042656, 2.8837822077994169, 1.0764086341509769, 0.10371615144342172, -1.9084957015861317]], [[-4.3322886833148688, 0.035702405782406466, 3.1211735225123043, 3.5821845756172301, -2.5267014969593662], [-2.4221018342173695, -1.786090693746992, -4.9356998238339269, -2.6720132381530037, 1.3683760270339], [-2.7759377323093961, -0.51174031556872634, 2.2240665257254211, 1.9315483643882905, 1.6653062980026236], [4.2386528853522147, 4.3293106850702454, -3.2281748018657561, 2.3503091173413404, -2.5797209178670144]], [[-0.17241539926090077, 2.4750037474748821, 2.3600730723480243, -3.6409051739687093, 1.7662359543702628], [-4.3050391635976668, -4.9407389463119014, -2.6428592913029969, -2.3174656085081158, 2.9282516543845629], [0.47135812515508047, 1.8994536503203925, -4.3763368629831669, -1.8735494883811055, 2.3014231295850704], [0.53899552738032153, 1.8122244805788608, 2.9792774564611735, -1.785837447194869, -1.6755354681741852]], [[-1.7286574045781955, -0.060955594047173101, 1.8387535671511381, 3.1002741656258941, -2.7900590022397354], [2.3332229178182908, 1.5102375199954965, -4.1802086944966197, -1.7857730063616306, 1.0163803356913146], [-1.4589921906053305, 2.9298030273976465, -2.5382207693452075, 4.9139353206605207, 3.3900949355532202], [4.9647969277715589, 3.6605814419471798, 1.5031119197114586, 0.30070096256741419, 4.2179068001291444]], [[2.1195828504569878, -3.8175930651024768, 1.2626740338427735, 4.0040094676637903, -2.0953471685801937], [-0.69730825324805679, -3.1150218742089986, -0.9047462748606776, -1.5646758758584065, 0.39043129247481545], [0.45810056466164717, -4.5395311051337472, 2.1294567533131428, 0.77477502392206077, -1.0379740302699245], [-0.10774280842805695, 1.8150210003063982, 4.8636103128300139, -3.9805658984255099, -4.6817559853099757]]], [[[4.8189286498756125, 4.6539280123769071, 2.1827135543721345, 4.8177359282192622, 3.2452409672631397], [4.929573361605188, -3.2601682414349709, 0.1065888114808331, 3.2220976507720671, 1.5207416563307543], [-2.8858340134043003, -3.3232162934997822, -0.15309031474354562, -0.97260305862541063, 1.1476083809006878], [-1.9590572029800022, -3.3481405730911415, 0.033905115059976509, -3.9592282883515995, 2.409347796324476]], [[0.91728304712576847, 2.3212040490241526, -0.89557995394763346, -1.3265861269410752, 1.1609120418921712], [-3.5334683173939818, 0.52008748699674978, -4.1841918924459822, 2.7206208197001338, -1.7139430972444094], [-2.8991463496749983, 1.0925935463708445, -0.22665846209024387, -4.2557273841613714, -0.74692307783705836], [-4.831737233060851, -2.5647692473975567, 0.74097070321286118, 4.4405470482099911, 0.59241202344125643]], [[4.3598317694051154, 1.0576530146983654, -3.8429492441377269, -1.4653086987321307, -4.4852028854240569], [1.8098930840180492, -2.7932150040085713, -1.8150242497188431, -0.073804256928288403, 4.2542292274578326], [1.8561088010229003, 3.3315749116504421, 1.1389064074734403, -4.829974323615728, -1.2379769009781327], [4.7238087140135114, -3.9970044582922526, 4.8609821331758258, 0.46415657997018744, 0.73158387712537909]], [[-0.10638593806069352, 3.2228396105016053, 0.042729813526209526, -1.32650768493881, 4.5668833442933234], [-0.025281382887941461, -4.146003948606511, -2.3188177139529342, 2.822626741207289, 0.41580238851907314], [-0.41662585839634936, 0.81602572430981368, -1.9034998636466547, -1.8932617256403352, -0.55757311298531231], [-1.3198844384025166, -4.5797097843318388, 1.0006437826059011, -2.1155150906350606, 3.2480865498890328]], [[0.60577236549443914, -2.1743522438168705, -4.7636841586355851, -4.0576224036208419, -0.98714022602314522], [1.8049033881416943, 0.55326078409166435, -4.7708405240623435, -3.3814814526263004, 3.1243445049491374], [0.91732588139342486, 2.021784089360839, -4.5620828509313371, 1.5011570525158566, 1.7317247409062988], [-4.3560200387034183, 2.4138681432625049, 2.2556325201648004, -4.6616791811634863, 3.6929734310937548]]]])        arg1=msk_arg1*numarray.array([[[[-4.8987584143724643, 2.2429532432381274, -1.3822780961502747, 3.9652299519226002, -0.36524937009713287], [2.6299867353180009, -0.51448824488480405, 4.6886307698708727, 2.2403696573895449, 0.4695696041371562], [-1.4401464007987954, 2.6033592474139864, 1.8280349806372893, 4.8939182754301864, -4.0500971045793417], [0.46675401885550727, -2.3505119021880194, 0.12955280803773395, 1.7234329923915563, -2.0621721054517494]], [[-4.4098592949296229, 3.5796256144360825, 0.46428661941529725, 4.4156960938433425, -2.9802460244514863], [-1.6430548025362492, -0.5069668336706199, 3.833444617848242, -4.3102580404362545, -2.687207481731221], [4.4655031766440043, -3.9673958400210974, 0.63828662756889365, -0.92069573588461928, -4.2337379006227094], [-0.72202955725754592, 3.3723320328533308, -3.5124490618761515, -3.7738014376670801, 1.0336594284951106]], [[2.4209711849880371, 0.58181128005009342, -1.691110444858166, -1.977504587493828, 2.2586604769042351], [-1.1257165249205361, -3.6878029288363354, 1.7559691976888328, 1.7383240214862363, 0.42229444618616796], [-2.884830254802301, -4.8637649156338831, -4.2620501085101186, 2.6514472504809259, 3.2352785513562807], [0.26783133064026554, -3.7958388107390806, -3.3760435279304648, 1.6810754314991607, 3.967596363848191]], [[1.137990009176538, 0.35632368258145242, -4.8618113314883473, 3.1671677602452775, 0.30008402557649738], [0.93520891407146678, 3.5051177860142086, 1.0094387990980378, -3.2578681315560134, 2.7093072079004141], [2.68283903480551, 4.4206955316471568, 1.0162995771424912, 3.4505247265868437, -0.97292258927282482], [-1.4193367757343633, -0.29631524465268644, 4.9717699607707448, 3.3933085712824163, 2.5297074954922527]], [[-4.1214969839661801, -1.6830293834027765, -3.5915008019374781, -3.3358395371612315, 0.7067060449824929], [-2.9173918431765067, 3.2488504880217928, -1.7808669140173405, -2.6851690135115103, 3.4538161030015591], [-0.36143309547219005, 1.4532854856470765, 0.17848588361167561, 4.86459129024216, 4.3082283829388874], [-1.8596000060319398, -1.2165057631365417, 2.6745137673760304, -3.3014892146675709, -1.2801003297305655]]], [[[0.38981768199009359, 0.60493430105969637, 4.7779376687565076, 0.26223536189238761, 2.6284402790791734], [-3.1328830270979733, -1.9837094776323907, -1.0999653487522587, 1.1648684754046617, 0.19104363317376638], [-1.2192213782789239, -2.8973620898636754, -0.64912056886304637, -3.768157207776095, -4.269598004480609], [-3.3884748233488704, -0.95563211814461191, -2.5900921809392119, 1.3354851237458654, 1.2044404227821737]], [[-3.237198006915043, -1.8124121662359007, -2.5618530745710197, -2.4521066861930549, -0.90224734789165151], [4.2106409564431946, 4.3636335814954599, 4.350644352213159, -1.8594010422137708, 0.13580512559590296], [0.9785115080525717, 2.8737869075705991, 3.3498281041967566, -4.4839167716260508, -2.5681669918665695], [3.2522124267608419, -2.4043454366250741, -4.2385799108711462, 2.0833487012044651, -3.3400887175941349]], [[-3.3154373367624701, 3.5171109302496486, 1.2201210694650575, 2.6342214143758298, -0.47211508895067311], [1.6173948046051105, -2.0686691717652828, -2.1883623360032054, -4.0026930824183999, -2.9397646045417991], [2.8316557761682475, -4.2470353439639421, 4.7212025140594189, 1.150200247548324, 1.6289608928238657], [1.842221331277317, -2.5845140371168904, 1.9732883226243221, 4.7149636149717544, -2.8023621614983285]], [[1.6614801565533552, 3.4227826531262462, 3.1453194321537072, -4.2018368045042234, 0.65289335206474775], [-3.0962995897811707, 0.64179306841823447, -1.3335229088076339, 0.14351294273393655, 0.86123306231586838], [0.57042884320435228, 3.4962727279527623, -2.7913744475081836, 4.5115466145187568, 0.11327219459246063], [4.4423766209878348, 3.9204759597480354, 0.48704424971596882, 2.2473472837318207, -3.662313874704437]], [[-1.7303686417259145, 3.4602568787999317, -3.272055917156973, 2.0845661809173937, -3.5051089465295018], [-0.93947484290832239, 1.1671708359722981, 2.2882641967876127, -4.9393028944455031, -1.9162912894788295], [-3.6031503184894476, -3.9071625852147998, 2.3748711369129847, 4.8432421297916086, 4.3927204605815451], [3.8777156257751528, 2.7132938250275442, -1.7338022448192127, -0.95295300427313556, -0.5429582775577888]]], [[[-2.4921838838802355, 0.18388022486033506, 3.3184566774327742, -3.7880639532289075, 2.267318720862864], [-3.2594897175351178, 4.8081179103995666, -3.5135300879455045, -3.6869807118759268, 3.969392210039512], [-3.880680424388574, 4.2757124948109233, -2.5693084664075205, 4.7487279233664239, 3.2302500826960721], [-1.3590997698990579, 3.9420894119969621, 2.2367154367858202, -1.2637103660515936, 1.5343196698472452]], [[4.1522980846451372, 0.66636188412523545, 4.5082489127808341, -4.9385416106750446, 1.7417870340465846], [-2.8710033380814881, 0.27505014061073663, -1.1329506510683185, 3.4945290376149423, 4.5241440730938933], [-1.5351375308174839, 2.4072580952601985, 1.8186476178996323, -3.5640399618248022, 0.84791141406375736], [1.4323759474120834, -3.8526617877675315, -2.1989044292417246, 2.7452014370410733, -2.6986145057027877]], [[-3.6427572137564601, 3.6693920415139001, 3.2843944618016181, 1.1029835704455992, 3.2995695479993792], [1.6720766582995132, 4.0230713141107692, 1.7972454246606775, -4.3082380753510119, -2.3201463783116028], [0.89099098658345088, -1.5597053952228945, -4.9149805364287271, 0.49508491070637728, -4.5277973463667678], [-4.7154260937947488, -0.84439370765100286, -2.2745377786345866, 4.5739609475591418, 2.6053964805490732]], [[-2.5285034086346556, -1.1259798191962234, -3.3019061514505053, -4.5616696034380633, 3.8898342726522959], [3.0661010840670428, -4.6039827560157187, -3.6009243083773503, 2.2178865997899235, -0.92363413132874683], [2.6993409826408987, -4.6102900908435984, -1.118492548445873, 2.4850839705624139, -4.0428283361633124], [-2.1843673826833343, -0.23983503993997246, -0.64711042374145755, -2.9677424980862455, -4.3528819359873374]], [[2.0622952691276151, 0.43363059266277837, -1.7161116680543245, 3.5888493556512042, 1.2084393189528857], [0.30683392845392987, 4.6970913286697566, -3.6230266311110793, 0.89507863301219714, -1.1859066301912735], [-0.17583208634932745, 3.6090778511875961, 1.6158055572818615, 3.6107142658385154, -3.3119581357296868], [2.1016604804389969, -1.0831586211519308, 1.8638902358912768, -3.0206579213661255, 4.999334654939025]]], [[[0.92467103661062122, -2.2602132222963958, 4.1860390235845983, 3.4413259899408484, -4.3184664878383492], [-2.6199065523874032, -1.7642275066074453, 1.3378016944343676, 4.4532766291977008, 1.9023928625146436], [3.3587752129357522, 3.5220831290545824, 4.808742291541579, -1.9628994770253083, 4.8039950362436521], [4.7859217287205507, -4.3409126749440885, 0.10502858341006593, 1.1959235087473141, 4.6810364147897001]], [[-2.6939658089337692, 2.6729037549406396, -4.6143258537695271, -3.977512407216782, 2.7912587318754722], [0.92436258554894923, 2.0582570542256375, -2.6639171217929105, -0.33228881160067747, 4.5191492108098981], [-4.961766693088915, 2.7690601991581545, 0.88505991798418027, -0.10394395049339167, 4.4093196236829861], [3.544799451867549, -3.3369704330959102, -1.2680901722431361, -0.3189038798361139, 1.5846660128571504]], [[2.1228106780994267, 3.4014702064830562, -1.9446995557474689, 1.6148965709037508, -3.5310259860216875], [2.8634915787147284, 4.9455629220931883, 4.2313519109371089, 2.779694432795119, -2.5186275329224528], [-4.4444507118584218, -1.1873716956711187, 2.3798143014161957, 4.2532537903495502, -4.3785843952464178], [1.8176824522308666, 2.2288600795556288, -2.3249847358780396, -4.1856714927872574, 0.50966775345435344]], [[-0.66613819179985256, 3.1112699107624469, -3.2820259735297155, -0.61893070863133026, -4.9801834338107067], [-3.2863981276951315, 2.8801632677397286, -4.8891527589357322, -2.943295477216993, -3.9369619445126744], [1.1802917021870796, -0.3222417232911754, -3.1937599031957076, 3.2456663002197637, -4.4240808399450779], [4.0817089773693489, 4.0142215798112151, -0.83494564338428212, -2.7057309749009937, -4.9419488201423043]], [[-0.9109475169590473, -2.2394416290188413, -4.3057908130587732, 2.8657960665056663, 1.0366476449929749], [-3.6097032132446305, -1.1103022267468141, -4.9174756721656623, -0.96802413009168919, 2.3021418057967677], [0.33326877480960615, -4.9293217527767617, -3.2451319778387933, 3.6297850871082762, 0.70321244931799942], [-4.4547259899131939, -3.1690588083598259, 4.1186138263748511, -1.8674679598350141, -0.25823821798027335]]]])+(1.-msk_arg1)*numarray.array([[[[-4.8151539115109667, -4.7840432481013, 3.1422454089619229, -0.51688923852950008, 2.4376897474554653], [3.5645882278621759, -3.344107353110235, 2.418445828437692, 1.0787087918091132, 3.4680900960290852], [-2.9973906803981376, -4.6616535003615311, 3.912103387107738, 3.8157623779342416, 2.5531922302811534], [-0.63315384831731691, -3.4294126167483885, -3.4056344733877086, 4.3447112575636151, -0.01782033187181753]], [[4.45640780979803, 1.9007032290067762, -4.8592353702516897, 2.4916768736949271, -0.51060864840086495], [-0.71564429138531338, -4.8006752136362607, 1.5376819980397149, 3.2799338528734232, 2.031561111253648], [-2.616859857583973, -1.3952936392646578, -2.4181942643446952, -4.1942707966922255, -1.8536638126699865], [-1.402495720331193, -4.084119864771897, 1.2438709264046386, 4.7442413982676932, -1.8157097276913134]], [[4.3736078682657382, 2.8116244753342023, 4.9539588820623628, -3.9264345065311024, 4.7014331736451389], [0.41645844419273104, -1.1850843217934126, 4.280917401836092, 3.0690497924684212, 3.2136944497910438], [3.8509638386361047, -4.9729076762382842, 2.8937988014917915, 1.6358229388285981, 4.1550401973642614], [3.5394471633082443, -1.1988832620878953, 0.38418604673654677, -4.7268412299978602, 2.4355731498318907]], [[-2.4394862464752807, 3.9384837090565519, -0.5983186642072722, -3.4800616773419337, -1.5238238133649551], [-4.8630362896808439, -0.65682801106031885, 1.5118646061885856, -0.62497916202868353, 4.5916609766256773], [-0.078589909087679821, -4.1535581119184126, 3.8291344137095304, -4.7474528436044565, -2.9478652456332401], [-3.6314167520231102, -2.2312265076829574, 3.9335021128386707, -0.43663822289795906, 1.3105802797658281]], [[1.8218998866124378, 2.2104509154125171, 2.4201172067512164, 4.0407835711415032, -1.5096693302630215], [3.1700890273088298, -2.8707275006665069, 1.5190858268797598, -4.0042287767445099, 0.97624131167870853], [2.8354460542668587, -3.9379976324048238, -0.56514813671614572, -1.9315322736665621, 1.9588011506540095], [-3.1697006802629701, -1.6845847130761182, -3.8737054651308078, -3.649003861755411, -3.0899213710298601]]], [[[1.2197384826563802, -2.0491872372738582, 3.9985683666638341, 4.7908553761220816, 0.24438923581347449], [-3.4136569667473724, -2.6994275759239561, -3.1088624798594031, 2.3301611863279348, 1.0441780212093708], [4.4663446516348113, 1.0423663494154036, 4.3286343234161819, 3.4218438374623386, 4.723192091075628], [-0.035054115371893957, -2.1981296471447074, -1.1156020775240902, -2.3642656312796251, -2.8085537579687814]], [[-3.2176442545204678, -1.931428305527775, 0.32995748638636613, -3.5622610904980534, 3.7513804273925615], [-0.8187701886531018, -1.8834356614205428, 0.42259313091593054, -2.0249064180100804, -0.59139921900838299], [-4.1862438164267726, 2.507477303318872, -0.71212610255080833, -2.9933005226564724, 2.0923823369534542], [-3.6179836218731722, 2.3088629809283399, 0.9092322211087307, 4.6645987121545218, -1.6663629686430683]], [[2.4086974022270615, -3.7894324007070912, -0.83339578285664473, 2.8686449254996491, 3.4843869626803272], [-2.2877322070640318, -1.5604087631864374, -0.64215169631561686, -3.5355843954012425, -3.7628021803585154], [4.9080612634963945, 0.53409362925317083, 4.9671042865792856, 2.4988092757516247, -4.1897837976182162], [-0.067187618217998235, -2.9155665726546309, 0.38142748675172999, 4.3651638600175122, 2.5335216965172691]], [[0.9159611842089852, -4.8813186962996156, 3.4997504006474749, -4.7280360660576921, 0.92492537563725818], [-2.7946539568572071, 1.1567157799286187, -3.2929292207454663, -0.94663451311435853, 1.4031176834216232], [3.9956324721255516, -0.11848184194438804, -3.2283199903631496, 4.8214659095126375, -1.5186558855754395], [-2.0060863661765449, -2.8715795224336871, 2.7091416936239376, 1.3879096359043643, 3.8074506943711128]], [[3.12108572287352, 4.9780281613362209, 4.9493932555982862, -2.8396465026184172, 0.60316431030996576], [-2.2394359485652848, -0.76589663192976687, -3.7049905148087237, 1.1408029043136807, 1.9706205812000102], [-1.5317757085945405, -0.55834268396411613, -3.4206041296809864, -0.79317856422088351, -0.93852909566261822], [-3.5085192880934537, 3.2644186785559768, -3.1418299513917614, -2.7116658147784012, -0.29893283469028908]]], [[[3.4271340642924315, -2.1031167518358949, 4.8072066578333779, -0.44347577581038333, -3.0220961260517321], [-2.4632821500241664, -0.8681969637233875, 0.078868811340907286, -0.099519185438427193, 1.6584595787332566], [-3.7080559511337485, 3.9454630072378531, 2.6911765836969339, -4.5602572381228201, 2.983726470888719], [2.1888574949042656, 2.8837822077994169, 1.0764086341509769, 0.10371615144342172, -1.9084957015861317]], [[-4.3322886833148688, 0.035702405782406466, 3.1211735225123043, 3.5821845756172301, -2.5267014969593662], [-2.4221018342173695, -1.786090693746992, -4.9356998238339269, -2.6720132381530037, 1.3683760270339], [-2.7759377323093961, -0.51174031556872634, 2.2240665257254211, 1.9315483643882905, 1.6653062980026236], [4.2386528853522147, 4.3293106850702454, -3.2281748018657561, 2.3503091173413404, -2.5797209178670144]], [[-0.17241539926090077, 2.4750037474748821, 2.3600730723480243, -3.6409051739687093, 1.7662359543702628], [-4.3050391635976668, -4.9407389463119014, -2.6428592913029969, -2.3174656085081158, 2.9282516543845629], [0.47135812515508047, 1.8994536503203925, -4.3763368629831669, -1.8735494883811055, 2.3014231295850704], [0.53899552738032153, 1.8122244805788608, 2.9792774564611735, -1.785837447194869, -1.6755354681741852]], [[-1.7286574045781955, -0.060955594047173101, 1.8387535671511381, 3.1002741656258941, -2.7900590022397354], [2.3332229178182908, 1.5102375199954965, -4.1802086944966197, -1.7857730063616306, 1.0163803356913146], [-1.4589921906053305, 2.9298030273976465, -2.5382207693452075, 4.9139353206605207, 3.3900949355532202], [4.9647969277715589, 3.6605814419471798, 1.5031119197114586, 0.30070096256741419, 4.2179068001291444]], [[2.1195828504569878, -3.8175930651024768, 1.2626740338427735, 4.0040094676637903, -2.0953471685801937], [-0.69730825324805679, -3.1150218742089986, -0.9047462748606776, -1.5646758758584065, 0.39043129247481545], [0.45810056466164717, -4.5395311051337472, 2.1294567533131428, 0.77477502392206077, -1.0379740302699245], [-0.10774280842805695, 1.8150210003063982, 4.8636103128300139, -3.9805658984255099, -4.6817559853099757]]], [[[4.8189286498756125, 4.6539280123769071, 2.1827135543721345, 4.8177359282192622, 3.2452409672631397], [4.929573361605188, -3.2601682414349709, 0.1065888114808331, 3.2220976507720671, 1.5207416563307543], [-2.8858340134043003, -3.3232162934997822, -0.15309031474354562, -0.97260305862541063, 1.1476083809006878], [-1.9590572029800022, -3.3481405730911415, 0.033905115059976509, -3.9592282883515995, 2.409347796324476]], [[0.91728304712576847, 2.3212040490241526, -0.89557995394763346, -1.3265861269410752, 1.1609120418921712], [-3.5334683173939818, 0.52008748699674978, -4.1841918924459822, 2.7206208197001338, -1.7139430972444094], [-2.8991463496749983, 1.0925935463708445, -0.22665846209024387, -4.2557273841613714, -0.74692307783705836], [-4.831737233060851, -2.5647692473975567, 0.74097070321286118, 4.4405470482099911, 0.59241202344125643]], [[4.3598317694051154, 1.0576530146983654, -3.8429492441377269, -1.4653086987321307, -4.4852028854240569], [1.8098930840180492, -2.7932150040085713, -1.8150242497188431, -0.073804256928288403, 4.2542292274578326], [1.8561088010229003, 3.3315749116504421, 1.1389064074734403, -4.829974323615728, -1.2379769009781327], [4.7238087140135114, -3.9970044582922526, 4.8609821331758258, 0.46415657997018744, 0.73158387712537909]], [[-0.10638593806069352, 3.2228396105016053, 0.042729813526209526, -1.32650768493881, 4.5668833442933234], [-0.025281382887941461, -4.146003948606511, -2.3188177139529342, 2.822626741207289, 0.41580238851907314], [-0.41662585839634936, 0.81602572430981368, -1.9034998636466547, -1.8932617256403352, -0.55757311298531231], [-1.3198844384025166, -4.5797097843318388, 1.0006437826059011, -2.1155150906350606, 3.2480865498890328]], [[0.60577236549443914, -2.1743522438168705, -4.7636841586355851, -4.0576224036208419, -0.98714022602314522], [1.8049033881416943, 0.55326078409166435, -4.7708405240623435, -3.3814814526263004, 3.1243445049491374], [0.91732588139342486, 2.021784089360839, -4.5620828509313371, 1.5011570525158566, 1.7317247409062988], [-4.3560200387034183, 2.4138681432625049, 2.2556325201648004, -4.6616791811634863, 3.6929734310937548]]]])
1804        res=add(arg0,arg1)        res=add(arg0,arg1)
1805        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1806        ref=msk_ref*numarray.array([[[[-5.6398818270060218, 1.5018298306045699, -2.1234015087838323, 3.2241065392890427, -1.1063727827306904], [1.8888633226844433, -1.2556116575183616, 3.9475073572373152, 1.4992462447559873, -0.27155380849640132], [-2.1812698134323529, 1.8622358347804289, 1.0869115680037318, 4.1527948627966289, -4.7912205172128992], [-0.27436939377805025, -3.0916353148215769, -0.61157060459582357, 0.98230957975799882, -2.803295518085307]], [[0.047214422842124293, 8.0366993322078297, 4.9213603371870445, 8.8727698116150897, 1.4768276933202609], [2.814018915235498, 3.9501068841011273, 8.2905183356199892, 0.14681567733549272, 1.7698662360405262], [8.9225768944157515, 0.48967787775064986, 5.0953603453406409, 3.5363779818871279, 0.22333581714903783], [3.7350441605142013, 7.829405750625078, 0.94462465589559574, 0.68327228010466712, 5.4907331462668578]], [[1.5379339123123064, -0.30122599262563732, -2.5741477175338967, -2.8605418601695587, 1.3756232042285044], [-2.0087537975962668, -4.5708402015120662, 0.87293192501310202, 0.85528674881050559, -0.46074282648956277], [-3.7678675274780318, -5.7468021883096139, -5.1450873811858493, 1.7684099778051952, 2.35224127868055], [-0.61520594203546519, -4.6788760834148118, -4.2590808006061955, 0.79803815882342999, 3.0845590911724603]], [[3.9885442988689821, 3.2068779722738965, -2.0112570417959033, 6.0177220499377215, 3.1506383152689414], [3.7857632037639108, 6.3556720757066527, 3.8599930887904819, -0.40731384186356934, 5.5598614975928582], [5.5333933244979541, 7.2712498213396008, 3.8668538668349353, 6.3010790162792878, 1.8776317004196192], [1.4312175139580807, 2.5542390450397576, 7.8223242504631889, 6.2438628609748603, 5.3802617851846968]], [[-3.873981548649998, -1.4355139480865944, -3.343985366621296, -3.0883241018450494, 0.95422148029867504], [-2.6698764078603245, 3.4963659233379749, -1.5333514787011584, -2.4376535781953281, 3.7013315383177412], [-0.1139176601560079, 1.7008009209632586, 0.42600131892785775, 5.1121067255583421, 4.5557438182550696], [-1.6120845707157576, -0.96899032782035954, 2.9220292026922126, -3.0539737793513888, -1.0325848944143834]]], [[[-2.2602795686143562, -2.0451629495447534, 2.1278404181520578, -2.3878618887120622, -0.021656971525276347], [-5.7829802777024231, -4.6338067282368405, -3.7500625993567085, -1.4852287751997881, -2.4590536174306834], [-3.8693186288833736, -5.5474593404681247, -3.2992178194674961, -6.4182544583805452, -6.9196952550850588], [-6.0385720739533202, -3.6057293687490617, -5.2401894315436621, -1.3146121268585844, -1.4456568278222761]], [[-0.79642413288731628, 0.62836170779182599, -0.12107920054329302, -0.011332812165328221, 1.5385265261360752], [6.6514148304709213, 6.8044074555231866, 6.7914182262408858, 0.58137283181395594, 2.5765789996236297], [3.4192853820802984, 5.3145607815983258, 5.7906019782244833, -2.0431428975983241, -0.12739311783884277], [5.6929863007885686, 0.036428437402652669, -1.7978060368434194, 4.5241225752321919, -0.89931484356640823]], [[1.0599258541059675, 7.8924741211180862, 5.5954842603334951, 7.0095846052442674, 3.9032481019177645], [5.9927579954735481, 2.3066940191031549, 2.1870008548652322, 0.37267010845003767, 1.4355985863266385], [7.2070189670366851, 0.1283278469044955, 9.0965657049278565, 5.5255634384167616, 6.0043240836923033], [6.2175845221457546, 1.7908491537515472, 6.3486515134927597, 9.090326805840192, 1.5730010293701091]], [[5.4184007252271256, 7.1797032218000165, 6.9022400008274776, -0.44491623583045303, 4.4098139207385181], [0.66062097889259963, 4.3987136370920048, 2.4233976598661364, 3.9004335114077069, 4.6181536309896387], [4.3273494118781226, 7.2531932966265327, 0.96554612116558669, 8.2684671831925272, 3.870192763266231], [8.1992971896616051, 7.6773965284218058, 4.2439648183897392, 6.004267852405591, 0.0946066939693333]], [[2.8177486646261078, 8.0083741851519541, 1.2760613891950494, 6.632683487269416, 1.0430083598225206], [3.6086424634437, 5.7152881423243205, 6.8363815031396351, -0.3911855880934807, 2.6318260168731928], [0.94496698786257483, 0.64095472113722263, 6.9229884432650071, 9.391359436143631, 8.9408377669335675], [8.4258329321271752, 7.2614111313795666, 2.8143150615328096, 3.5951643020788868, 4.0051590287942336]]], [[[-6.5706670476693212, -3.8946029389287506, -0.76002648635631154, -7.8665471170179933, -1.8111644429262217], [-7.3379728813242036, 0.72963474661048089, -7.5920132517345902, -7.7654638756650129, -0.10909095374957367], [-7.9591635881776597, 0.1972293310218376, -6.6477916301966058, 0.6702447595773382, -0.84823308109301365], [-5.4375829336881436, -0.13639375179212365, -1.8417677270032655, -5.3421935298406797, -2.5441634939418405]], [[4.2819730942443357, 0.79603689372443398, 4.6379239223800326, -4.8088666010758461, 1.8714620436457832], [-2.7413283284822896, 0.40472515020993516, -1.00327564146912, 3.6242040472141408, 4.6538190826930919], [-1.4054625212182854, 2.536933104859397, 1.9483226274988308, -3.4343649522256037, 0.97758642366295589], [1.5620509570112819, -3.722986778168333, -2.069229419642526, 2.8748764466402719, -2.5689394961035892]], [[-5.2081006005218935, 2.1040486547484667, 1.7190510750361847, -0.46235981631983414, 1.7342261612339458], [0.10673327153407985, 2.4577279273453358, 0.23190203789524411, -5.8735814621164453, -3.8854897650770361], [-0.6743524001819825, -3.1250487819883279, -6.4803239231941605, -1.0702584760590561, -6.0931407331322012], [-6.2807694805601821, -2.4097370944164362, -3.83988116540002, 3.0086175607937085, 1.0400530937836399]], [[2.0797327386617006, 3.4822563281001329, 1.306329995845851, 0.046566543858292953, 8.4980704199486521], [7.6743372313633991, 0.0042533912806375085, 1.0073118389190059, 6.8261227470862798, 3.6846020159676094], [7.3075771299372549, -0.0020539435472421985, 3.4897435988504832, 7.0933201178587701, 0.56540781113304384], [2.4238687646130219, 4.3684011073563838, 3.9611257235548987, 1.6404936492101108, 0.25535421130901881]], [[0.26188855866657734, -1.3667761177982594, -3.5165183785153622, 1.7884426451901665, -0.59196739150815203], [-1.4935727820071079, 2.8966846182087189, -5.4234333415721174, -0.90532807744884058, -2.9863133406523112], [-1.9762387968103652, 1.8086711407265583, -0.18460115317917625, 1.8103075553774777, -5.1123648461907241], [0.30125376997795916, -2.8835653316129686, 0.063483525430239052, -4.8210646318271628, 3.1989279444779872]]], [[[-2.9322991292432401, -6.1171833881502575, 0.32906885773073702, -0.41564417591301295, -8.175436653692211], [-6.4768767182412645, -5.6211976724613066, -2.5191684714194937, 0.59630646334383952, -1.9545773033392178], [-0.49819495291810911, -0.33488703679927889, 0.95177212568771763, -5.8198696428791692, 0.94702487038979077], [0.92895156286668934, -8.1978828407979503, -3.7519415824437954, -2.6610466571065472, 0.8240662489358388]], [[-1.5017598415674973, 3.8651097223069115, -3.4221198864032552, -2.7853064398505101, 3.9834646992417442], [2.1165685529152212, 3.2504630215919095, -1.4717111544266386, 0.85991715576559447, 5.71135517817617], [-3.7695607257226431, 3.9612661665244264, 2.0772658853504522, 1.0882620168728803, 5.6015255910492581], [4.7370054192338209, -2.1447644657296383, -0.075884204876864203, 0.87330208753015803, 2.7768719802234223]], [[0.86768537169955628, 2.1463449000831858, -3.1998248621473393, 0.35977126450388042, -4.7861512924215575], [1.608366272314858, 3.6904376156933179, 2.9762266045372385, 1.5245691263952486, -3.7737528393223232], [-5.6995760182582922, -2.4424970020709891, 1.1246889950163252, 2.9981284839496798, -5.6337097016462883], [0.56255714583099614, 0.9737347731557584, -3.58011004227791, -5.4407967991871278, -0.74545755294551697]], [[3.227945025705349, 7.0053531282676484, 0.61205724397548611, 3.2751525088738713, -1.0861002163055051], [0.60768508981007008, 6.7742464852449302, -0.99506954143053061, 0.95078774028820856, -0.042878727007472861], [5.0743749196922812, 3.5718414942140262, 0.70032331430949402, 7.1397495177249652, -0.52999762243987636], [7.9757921948745505, 7.9083047973164167, 3.0591375741209195, 1.1883522426042079, -1.0478656026371027]], [[2.6132202327749772, 1.2847261207151832, -0.78162306332474873, 6.3899638162396908, 4.5608153947269994], [-0.085535463510606036, 2.4138655229872104, -1.3933079224316378, 2.5561436196423353, 5.8263095555307922], [3.8574365245436306, -1.4051540030427372, 0.27903577189523121, 7.1539528368423007, 4.2273801990520239], [-0.93055824017916944, 0.35510894137419857, 7.6427815761088755, 1.6566997898990103, 3.2659295317537511]]]])+(1.-msk_ref)*numarray.array([[[[-4.5708535899040115, -4.5397429264943447, 3.3865457305688782, -0.27258891692254483, 2.6819900690624205], [3.8088885494691311, -3.0998070315032797, 2.6627461500446472, 1.3230091134160684, 3.7123904176360405], [-2.7530903587911824, -4.4173531787545759, 4.1564037087146932, 4.0600626995411968, 2.7974925518881086], [-0.38885352671036166, -3.1851122951414332, -3.1613341517807534, 4.5890115791705703, 0.22647998973513772]], [[6.6243568206051089, 4.0686522398138552, -2.6912863594446108, 4.659625884502006, 1.657340362406214], [1.4523047194217655, -2.6327262028291818, 3.7056310088467939, 5.4478828636805021, 4.1995101220607269], [-0.44891084677689408, 0.77265537154242114, -0.25024525353761629, -2.0263217858851466, 0.31428519813709244], [0.76545329047588595, -1.9161708539648181, 3.4118199372117175, 6.9121904090747721, 0.35223928311576547]], [[6.0948586716501678, 4.5328752787186319, 6.6752096854467924, -2.2051837031466728, 6.4226839770295685], [2.1377092475771606, 0.53616648159101699, 6.0021682052205216, 4.7903005958528508, 4.9349452531754734], [5.5722146420205343, -3.2516568728538546, 4.6150496048762211, 3.3570737422130277, 5.876291000748691], [5.2606979666926739, 0.52236754129653429, 2.1054368501209764, -3.0055904266134306, 4.1568239532163203]], [[-1.6651024474659026, 4.7128675080659299, 0.17606513480210584, -2.7056778783325557, -0.74944001435557706], [-4.0886524906714659, 0.11755578794905919, 2.2862484051979637, 0.14940463698069451, 5.3660447756350553], [0.69579388992169822, -3.3791743129090346, 4.6035182127189085, -3.9730690445950785, -2.1734814466238621], [-2.8570329530137322, -1.4568427086735793, 4.7078859118480487, 0.33774557611141898, 2.0849640787752062]], [[1.1159596906192437, 1.504510719419323, 1.7141770107580223, 3.3348433751483091, -2.2156095262562157], [2.4641488313156357, -3.5766676966597011, 0.81314563088656566, -4.7101689727377041, 0.2703011156855144], [2.1295058582736646, -4.6439378283980179, -1.2710883327093399, -2.6374724696597562, 1.2528609546608154], [-3.8756408762561643, -2.3905249090693124, -4.579645661124002, -4.3549440577486056, -3.7958615670230542]]], [[[2.3991485186151138, -0.86977720131512459, 5.1779784026225677, 5.9702654120808152, 1.4237992717722081], [-2.2342469307886388, -1.5200175399652225, -1.9294524439006695, 3.5095712222866684, 2.2235880571681044], [5.6457546875935449, 2.2217763853741372, 5.5080443593749155, 4.6012538734210722, 5.9026021270343616], [1.1443559205868397, -1.0187196111859738, 0.063807958434643375, -1.1848555953208915, -1.6291437220100478]], [[-0.45974304467846583, 0.82647290431422693, 3.0878586962283681, -0.80435988065605146, 6.5092816372345634], [1.9391310211889001, 0.87446554842145918, 3.1804943407579325, 0.73299479183192151, 2.1665019908336189], [-1.4283426065847706, 5.2653785131608739, 2.0457751072911936, -0.23539931281447046, 4.8502835467954561], [-0.86008241203117031, 5.0667641907703418, 3.6671334309507326, 7.4224999219965238, 1.0915382411989336]], [[1.7703032788840982, -4.4278265240500545, -1.471789906199608, 2.2302508021566858, 2.8459928393373639], [-2.9261263304069951, -2.1988028865294007, -1.2805458196585802, -4.1739785187442058, -4.4011963037014787], [4.2696671401534312, -0.10430049408979247, 4.3287101632363223, 1.8604151524086614, -4.8281779209611795], [-0.70558174156096154, -3.5539606959975942, -0.25696663659123331, 3.7267697366745489, 1.8951275731743058]], [[-2.5757665858518246, -8.3730464663604245, 0.0080226305866650804, -8.2197638361185028, -2.5668023944235516], [-6.2863817269180169, -2.3350119901321911, -6.7846569908062762, -4.4383622831751683, -2.0886100866391866], [0.50390470206474181, -3.6102096120051979, -6.7200477604239595, 1.3297381394518277, -5.0103836556362493], [-5.4978141362373547, -6.3633072924944969, -0.78258607643687217, -2.1038181341564455, 0.31572292431030302]], [[5.6060954781560124, 7.4630379166187133, 7.4344030108807786, -0.35463674733592487, 3.0881740655924581], [0.24557380671720752, 1.7191131233527255, -1.2199807595262313, 3.625812659596173, 4.4556303364825025], [0.95323404668795186, 1.9266670713183762, -0.93559437439849402, 1.6918311910616088, 1.5464806596198741], [-1.0235095328109614, 5.7494284338384691, -0.65682019610926901, -0.22665605949590883, 2.1860769205922033]]], [[[6.3664120119455179, 0.8361611958171915, 7.7464846054864642, 2.495802171842703, -0.082818178398645692], [0.47599579762891997, 2.0710809839296989, 3.0181467589939937, 2.8397587622146592, 4.5977375263863429], [-0.76877800348066216, 6.8847409548909395, 5.6304545313500203, -1.6209792904697338, 5.9230044185418054], [5.128135442557352, 5.8230601554525032, 4.0156865818040632, 3.0429940990965081, 1.0307822460669547]], [[-6.7444795294736544, -2.3764884403763795, 0.7089826763535183, 1.1699937294584442, -4.9388923431181517], [-4.834292680376155, -4.1982815399057785, -7.3478906699927133, -5.0842040843117893, -1.0438148191248859], [-5.1881285784681825, -2.9239311617275123, -0.18812432043336491, -0.48064248177049551, -0.74688454815616234], [1.8264620391934288, 1.9171198389114594, -5.6403656480245417, -0.06188172881744558, -4.9919117640258008]], [[-2.5621691158147581, 0.085250030921024678, -0.029680644205833051, -6.0306588905225667, -0.62351776218359456], [-6.6947928801515246, -7.3304926628657583, -5.0326130078568543, -4.7072193250619732, 0.53849793783070554], [-1.9183955913987769, -0.49030006623346489, -6.7660905795370248, -4.2633032049349628, -0.088330586968786928], [-1.8507581891735359, -0.57752923597499661, 0.5895237399073161, -4.1755911637487264, -4.0652891847280426]], [[-4.6939337556116776, -3.0262319450806556, -1.1265227838823444, 0.13499781459241156, -5.7553353532732174], [-0.6320534332151917, -1.455038831037986, -7.1454850455301022, -4.7510493573951127, -1.9488960153421679], [-4.4242685416388134, -0.035473323635835996, -5.5034971203786895, 1.9486589696270382, 0.42481858451973764], [1.9995205767380764, 0.6953050909136973, -1.4621644313220239, -2.6645753884660683, 1.2526304490956619]], [[-1.7444970749851398, -7.6816729905446044, -2.6014058915993541, 0.13992954222166265, -5.9594270940223213], [-4.5613881786901844, -6.9791017996511258, -4.7688262003028052, -5.4287558013005341, -3.4736486329673122], [-3.4059793607804805, -8.403611030575874, -1.7346231721289849, -3.0893049015200669, -4.9020539557120522], [-3.9718227338701846, -2.0490589251357294, 0.99953038738788624, -7.8446458238676371, -8.5458359107521034]]], [[[0.81848049659549549, 0.65347985909679007, -1.8177345989079825, 0.81728777493914517, -0.75520718601697734], [0.92912520832507095, -7.2606163947150879, -3.8938593417992839, -0.77835050250804994, -2.4797064969493627], [-6.8862821666844169, -7.3236644467798993, -4.1535384680236627, -4.9730512119055277, -2.8528397723794292], [-5.9595053562601192, -7.3485887263712586, -3.9665430382201405, -7.9596764416317161, -1.591100356955641]], [[-3.0309027491028564, -1.6269817472044723, -4.8437657501762583, -5.2747719231697001, -2.7872737543364536], [-7.4816541136226071, -3.4280983092318751, -8.1323776886746071, -1.2275649765284911, -5.6621288934730343], [-6.8473321459036232, -2.8555922498577804, -4.1748442583188687, -8.2039131803899963, -4.6951088740656832], [-8.7799230292894759, -6.5129550436261816, -3.2072150930157637, 0.49236125198136627, -3.3557737727873684]], [[7.0729475485867619, 3.7707687938800118, -1.1298334649560804, 1.2478070804495158, -1.7720871062424104], [4.5230088631996956, -0.080099224826924775, 0.89809152946280335, 2.6393115222533581, 6.9673450066394791], [4.5692245802045468, 6.0446906908320885, 3.8520221866550868, -2.1168585444340815, 1.4751388782035137], [7.4369244931951579, -1.2838886791106061, 7.5740979123574723, 3.1772723591518339, 3.4446996563070256]], [[2.8232740893529629, 6.1524996379152617, 2.9723898409398659, 1.6031523424748464, 7.4965433717069798], [2.9043786445257149, -1.2163439211928546, 0.61084231346072215, 5.7522867686209453, 3.3454624159327295], [2.513034169017307, 3.7456857517234701, 1.0261601637670017, 1.0363983017733212, 2.3720869144283441], [1.6097755890111398, -1.6500497569181825, 3.9303038100195575, 0.81414493677859578, 6.1777465773026892]], [[-3.0218046003556029, -5.8019292096669126, -8.3912611244856272, -7.685199369470884, -4.6147171918731873], [-1.8226735777083478, -3.0743161817583777, -8.3984174899123865, -7.0090584184763429, -0.50323246090090468], [-2.7102510844566172, -1.6057928764892031, -8.1896598167813792, -2.1264199133341855, -1.8958522249437433], [-7.9835970045534603, -1.2137088225875372, -1.3719444456852417, -8.2892561470135284, 0.065396465243712676]]]])        ref=msk_ref*numarray.array([[[[-5.6398818270060218, 1.5018298306045699, -2.1234015087838323, 3.2241065392890427, -1.1063727827306904], [1.8888633226844433, -1.2556116575183616, 3.9475073572373152, 1.4992462447559873, -0.27155380849640132], [-2.1812698134323529, 1.8622358347804289, 1.0869115680037318, 4.1527948627966289, -4.7912205172128992], [-0.27436939377805025, -3.0916353148215769, -0.61157060459582357, 0.98230957975799882, -2.803295518085307]], [[0.047214422842124293, 8.0366993322078297, 4.9213603371870445, 8.8727698116150897, 1.4768276933202609], [2.814018915235498, 3.9501068841011273, 8.2905183356199892, 0.14681567733549272, 1.7698662360405262], [8.9225768944157515, 0.48967787775064986, 5.0953603453406409, 3.5363779818871279, 0.22333581714903783], [3.7350441605142013, 7.829405750625078, 0.94462465589559574, 0.68327228010466712, 5.4907331462668578]], [[1.5379339123123064, -0.30122599262563732, -2.5741477175338967, -2.8605418601695587, 1.3756232042285044], [-2.0087537975962668, -4.5708402015120662, 0.87293192501310202, 0.85528674881050559, -0.46074282648956277], [-3.7678675274780318, -5.7468021883096139, -5.1450873811858493, 1.7684099778051952, 2.35224127868055], [-0.61520594203546519, -4.6788760834148118, -4.2590808006061955, 0.79803815882342999, 3.0845590911724603]], [[3.9885442988689821, 3.2068779722738965, -2.0112570417959033, 6.0177220499377215, 3.1506383152689414], [3.7857632037639108, 6.3556720757066527, 3.8599930887904819, -0.40731384186356934, 5.5598614975928582], [5.5333933244979541, 7.2712498213396008, 3.8668538668349353, 6.3010790162792878, 1.8776317004196192], [1.4312175139580807, 2.5542390450397576, 7.8223242504631889, 6.2438628609748603, 5.3802617851846968]], [[-3.873981548649998, -1.4355139480865944, -3.343985366621296, -3.0883241018450494, 0.95422148029867504], [-2.6698764078603245, 3.4963659233379749, -1.5333514787011584, -2.4376535781953281, 3.7013315383177412], [-0.1139176601560079, 1.7008009209632586, 0.42600131892785775, 5.1121067255583421, 4.5557438182550696], [-1.6120845707157576, -0.96899032782035954, 2.9220292026922126, -3.0539737793513888, -1.0325848944143834]]], [[[-2.2602795686143562, -2.0451629495447534, 2.1278404181520578, -2.3878618887120622, -0.021656971525276347], [-5.7829802777024231, -4.6338067282368405, -3.7500625993567085, -1.4852287751997881, -2.4590536174306834], [-3.8693186288833736, -5.5474593404681247, -3.2992178194674961, -6.4182544583805452, -6.9196952550850588], [-6.0385720739533202, -3.6057293687490617, -5.2401894315436621, -1.3146121268585844, -1.4456568278222761]], [[-0.79642413288731628, 0.62836170779182599, -0.12107920054329302, -0.011332812165328221, 1.5385265261360752], [6.6514148304709213, 6.8044074555231866, 6.7914182262408858, 0.58137283181395594, 2.5765789996236297], [3.4192853820802984, 5.3145607815983258, 5.7906019782244833, -2.0431428975983241, -0.12739311783884277], [5.6929863007885686, 0.036428437402652669, -1.7978060368434194, 4.5241225752321919, -0.89931484356640823]], [[1.0599258541059675, 7.8924741211180862, 5.5954842603334951, 7.0095846052442674, 3.9032481019177645], [5.9927579954735481, 2.3066940191031549, 2.1870008548652322, 0.37267010845003767, 1.4355985863266385], [7.2070189670366851, 0.1283278469044955, 9.0965657049278565, 5.5255634384167616, 6.0043240836923033], [6.2175845221457546, 1.7908491537515472, 6.3486515134927597, 9.090326805840192, 1.5730010293701091]], [[5.4184007252271256, 7.1797032218000165, 6.9022400008274776, -0.44491623583045303, 4.4098139207385181], [0.66062097889259963, 4.3987136370920048, 2.4233976598661364, 3.9004335114077069, 4.6181536309896387], [4.3273494118781226, 7.2531932966265327, 0.96554612116558669, 8.2684671831925272, 3.870192763266231], [8.1992971896616051, 7.6773965284218058, 4.2439648183897392, 6.004267852405591, 0.0946066939693333]], [[2.8177486646261078, 8.0083741851519541, 1.2760613891950494, 6.632683487269416, 1.0430083598225206], [3.6086424634437, 5.7152881423243205, 6.8363815031396351, -0.3911855880934807, 2.6318260168731928], [0.94496698786257483, 0.64095472113722263, 6.9229884432650071, 9.391359436143631, 8.9408377669335675], [8.4258329321271752, 7.2614111313795666, 2.8143150615328096, 3.5951643020788868, 4.0051590287942336]]], [[[-6.5706670476693212, -3.8946029389287506, -0.76002648635631154, -7.8665471170179933, -1.8111644429262217], [-7.3379728813242036, 0.72963474661048089, -7.5920132517345902, -7.7654638756650129, -0.10909095374957367], [-7.9591635881776597, 0.1972293310218376, -6.6477916301966058, 0.6702447595773382, -0.84823308109301365], [-5.4375829336881436, -0.13639375179212365, -1.8417677270032655, -5.3421935298406797, -2.5441634939418405]], [[4.2819730942443357, 0.79603689372443398, 4.6379239223800326, -4.8088666010758461, 1.8714620436457832], [-2.7413283284822896, 0.40472515020993516, -1.00327564146912, 3.6242040472141408, 4.6538190826930919], [-1.4054625212182854, 2.536933104859397, 1.9483226274988308, -3.4343649522256037, 0.97758642366295589], [1.5620509570112819, -3.722986778168333, -2.069229419642526, 2.8748764466402719, -2.5689394961035892]], [[-5.2081006005218935, 2.1040486547484667, 1.7190510750361847, -0.46235981631983414, 1.7342261612339458], [0.10673327153407985, 2.4577279273453358, 0.23190203789524411, -5.8735814621164453, -3.8854897650770361], [-0.6743524001819825, -3.1250487819883279, -6.4803239231941605, -1.0702584760590561, -6.0931407331322012], [-6.2807694805601821, -2.4097370944164362, -3.83988116540002, 3.0086175607937085, 1.0400530937836399]], [[2.0797327386617006, 3.4822563281001329, 1.306329995845851, 0.046566543858292953, 8.4980704199486521], [7.6743372313633991, 0.0042533912806375085, 1.0073118389190059, 6.8261227470862798, 3.6846020159676094], [7.3075771299372549, -0.0020539435472421985, 3.4897435988504832, 7.0933201178587701, 0.56540781113304384], [2.4238687646130219, 4.3684011073563838, 3.9611257235548987, 1.6404936492101108, 0.25535421130901881]], [[0.26188855866657734, -1.3667761177982594, -3.5165183785153622, 1.7884426451901665, -0.59196739150815203], [-1.4935727820071079, 2.8966846182087189, -5.4234333415721174, -0.90532807744884058, -2.9863133406523112], [-1.9762387968103652, 1.8086711407265583, -0.18460115317917625, 1.8103075553774777, -5.1123648461907241], [0.30125376997795916, -2.8835653316129686, 0.063483525430239052, -4.8210646318271628, 3.1989279444779872]]], [[[-2.9322991292432401, -6.1171833881502575, 0.32906885773073702, -0.41564417591301295, -8.175436653692211], [-6.4768767182412645, -5.6211976724613066, -2.5191684714194937, 0.59630646334383952, -1.9545773033392178], [-0.49819495291810911, -0.33488703679927889, 0.95177212568771763, -5.8198696428791692, 0.94702487038979077], [0.92895156286668934, -8.1978828407979503, -3.7519415824437954, -2.6610466571065472, 0.8240662489358388]], [[-1.5017598415674973, 3.8651097223069115, -3.4221198864032552, -2.7853064398505101, 3.9834646992417442], [2.1165685529152212, 3.2504630215919095, -1.4717111544266386, 0.85991715576559447, 5.71135517817617], [-3.7695607257226431, 3.9612661665244264, 2.0772658853504522, 1.0882620168728803, 5.6015255910492581], [4.7370054192338209, -2.1447644657296383, -0.075884204876864203, 0.87330208753015803, 2.7768719802234223]], [[0.86768537169955628, 2.1463449000831858, -3.1998248621473393, 0.35977126450388042, -4.7861512924215575], [1.608366272314858, 3.6904376156933179, 2.9762266045372385, 1.5245691263952486, -3.7737528393223232], [-5.6995760182582922, -2.4424970020709891, 1.1246889950163252, 2.9981284839496798, -5.6337097016462883], [0.56255714583099614, 0.9737347731557584, -3.58011004227791, -5.4407967991871278, -0.74545755294551697]], [[3.227945025705349, 7.0053531282676484, 0.61205724397548611, 3.2751525088738713, -1.0861002163055051], [0.60768508981007008, 6.7742464852449302, -0.99506954143053061, 0.95078774028820856, -0.042878727007472861], [5.0743749196922812, 3.5718414942140262, 0.70032331430949402, 7.1397495177249652, -0.52999762243987636], [7.9757921948745505, 7.9083047973164167, 3.0591375741209195, 1.1883522426042079, -1.0478656026371027]], [[2.6132202327749772, 1.2847261207151832, -0.78162306332474873, 6.3899638162396908, 4.5608153947269994], [-0.085535463510606036, 2.4138655229872104, -1.3933079224316378, 2.5561436196423353, 5.8263095555307922], [3.8574365245436306, -1.4051540030427372, 0.27903577189523121, 7.1539528368423007, 4.2273801990520239], [-0.93055824017916944, 0.35510894137419857, 7.6427815761088755, 1.6566997898990103, 3.2659295317537511]]]])+(1.-msk_ref)*numarray.array([[[[-4.5708535899040115, -4.5397429264943447, 3.3865457305688782, -0.27258891692254483, 2.6819900690624205], [3.8088885494691311, -3.0998070315032797, 2.6627461500446472, 1.3230091134160684, 3.7123904176360405], [-2.7530903587911824, -4.4173531787545759, 4.1564037087146932, 4.0600626995411968, 2.7974925518881086], [-0.38885352671036166, -3.1851122951414332, -3.1613341517807534, 4.5890115791705703, 0.22647998973513772]], [[6.6243568206051089, 4.0686522398138552, -2.6912863594446108, 4.659625884502006, 1.657340362406214], [1.4523047194217655, -2.6327262028291818, 3.7056310088467939, 5.4478828636805021, 4.1995101220607269], [-0.44891084677689408, 0.77265537154242114, -0.25024525353761629, -2.0263217858851466, 0.31428519813709244], [0.76545329047588595, -1.9161708539648181, 3.4118199372117175, 6.9121904090747721, 0.35223928311576547]], [[6.0948586716501678, 4.5328752787186319, 6.6752096854467924, -2.2051837031466728, 6.4226839770295685], [2.1377092475771606, 0.53616648159101699, 6.0021682052205216, 4.7903005958528508, 4.9349452531754734], [5.5722146420205343, -3.2516568728538546, 4.6150496048762211, 3.3570737422130277, 5.876291000748691], [5.2606979666926739, 0.52236754129653429, 2.1054368501209764, -3.0055904266134306, 4.1568239532163203]], [[-1.6651024474659026, 4.7128675080659299, 0.17606513480210584, -2.7056778783325557, -0.74944001435557706], [-4.0886524906714659, 0.11755578794905919, 2.2862484051979637, 0.14940463698069451, 5.3660447756350553], [0.69579388992169822, -3.3791743129090346, 4.6035182127189085, -3.9730690445950785, -2.1734814466238621], [-2.8570329530137322, -1.4568427086735793, 4.7078859118480487, 0.33774557611141898, 2.0849640787752062]], [[1.1159596906192437, 1.504510719419323, 1.7141770107580223, 3.3348433751483091, -2.2156095262562157], [2.4641488313156357, -3.5766676966597011, 0.81314563088656566, -4.7101689727377041, 0.2703011156855144], [2.1295058582736646, -4.6439378283980179, -1.2710883327093399, -2.6374724696597562, 1.2528609546608154], [-3.8756408762561643, -2.3905249090693124, -4.579645661124002, -4.3549440577486056, -3.7958615670230542]]], [[[2.3991485186151138, -0.86977720131512459, 5.1779784026225677, 5.9702654120808152, 1.4237992717722081], [-2.2342469307886388, -1.5200175399652225, -1.9294524439006695, 3.5095712222866684, 2.2235880571681044], [5.6457546875935449, 2.2217763853741372, 5.5080443593749155, 4.6012538734210722, 5.9026021270343616], [1.1443559205868397, -1.0187196111859738, 0.063807958434643375, -1.1848555953208915, -1.6291437220100478]], [[-0.45974304467846583, 0.82647290431422693, 3.0878586962283681, -0.80435988065605146, 6.5092816372345634], [1.9391310211889001, 0.87446554842145918, 3.1804943407579325, 0.73299479183192151, 2.1665019908336189], [-1.4283426065847706, 5.2653785131608739, 2.0457751072911936, -0.23539931281447046, 4.8502835467954561], [-0.86008241203117031, 5.0667641907703418, 3.6671334309507326, 7.4224999219965238, 1.0915382411989336]], [[1.7703032788840982, -4.4278265240500545, -1.471789906199608, 2.2302508021566858, 2.8459928393373639], [-2.9261263304069951, -2.1988028865294007, -1.2805458196585802, -4.1739785187442058, -4.4011963037014787], [4.2696671401534312, -0.10430049408979247, 4.3287101632363223, 1.8604151524086614, -4.8281779209611795], [-0.70558174156096154, -3.5539606959975942, -0.25696663659123331, 3.7267697366745489, 1.8951275731743058]], [[-2.5757665858518246, -8.3730464663604245, 0.0080226305866650804, -8.2197638361185028, -2.5668023944235516], [-6.2863817269180169, -2.3350119901321911, -6.7846569908062762, -4.4383622831751683, -2.0886100866391866], [0.50390470206474181, -3.6102096120051979, -6.7200477604239595, 1.3297381394518277, -5.0103836556362493], [-5.4978141362373547, -6.3633072924944969, -0.78258607643687217, -2.1038181341564455, 0.31572292431030302]], [[5.6060954781560124, 7.4630379166187133, 7.4344030108807786, -0.35463674733592487, 3.0881740655924581], [0.24557380671720752, 1.7191131233527255, -1.2199807595262313, 3.625812659596173, 4.4556303364825025], [0.95323404668795186, 1.9266670713183762, -0.93559437439849402, 1.6918311910616088, 1.5464806596198741], [-1.0235095328109614, 5.7494284338384691, -0.65682019610926901, -0.22665605949590883, 2.1860769205922033]]], [[[6.3664120119455179, 0.8361611958171915, 7.7464846054864642, 2.495802171842703, -0.082818178398645692], [0.47599579762891997, 2.0710809839296989, 3.0181467589939937, 2.8397587622146592, 4.5977375263863429], [-0.76877800348066216, 6.8847409548909395, 5.6304545313500203, -1.6209792904697338, 5.9230044185418054], [5.128135442557352, 5.8230601554525032, 4.0156865818040632, 3.0429940990965081, 1.0307822460669547]], [[-6.7444795294736544, -2.3764884403763795, 0.7089826763535183, 1.1699937294584442, -4.9388923431181517], [-4.834292680376155, -4.1982815399057785, -7.3478906699927133, -5.0842040843117893, -1.0438148191248859], [-5.1881285784681825, -2.9239311617275123, -0.18812432043336491, -0.48064248177049551, -0.74688454815616234], [1.8264620391934288, 1.9171198389114594, -5.6403656480245417, -0.06188172881744558, -4.9919117640258008]], [[-2.5621691158147581, 0.085250030921024678, -0.029680644205833051, -6.0306588905225667, -0.62351776218359456], [-6.6947928801515246, -7.3304926628657583, -5.0326130078568543, -4.7072193250619732, 0.53849793783070554], [-1.9183955913987769, -0.49030006623346489, -6.7660905795370248, -4.2633032049349628, -0.088330586968786928], [-1.8507581891735359, -0.57752923597499661, 0.5895237399073161, -4.1755911637487264, -4.0652891847280426]], [[-4.6939337556116776, -3.0262319450806556, -1.1265227838823444, 0.13499781459241156, -5.7553353532732174], [-0.6320534332151917, -1.455038831037986, -7.1454850455301022, -4.7510493573951127, -1.9488960153421679], [-4.4242685416388134, -0.035473323635835996, -5.5034971203786895, 1.9486589696270382, 0.42481858451973764], [1.9995205767380764, 0.6953050909136973, -1.4621644313220239, -2.6645753884660683, 1.2526304490956619]], [[-1.7444970749851398, -7.6816729905446044, -2.6014058915993541, 0.13992954222166265, -5.9594270940223213], [-4.5613881786901844, -6.9791017996511258, -4.7688262003028052, -5.4287558013005341, -3.4736486329673122], [-3.4059793607804805, -8.403611030575874, -1.7346231721289849, -3.0893049015200669, -4.9020539557120522], [-3.9718227338701846, -2.0490589251357294, 0.99953038738788624, -7.8446458238676371, -8.5458359107521034]]], [[[0.81848049659549549, 0.65347985909679007, -1.8177345989079825, 0.81728777493914517, -0.75520718601697734], [0.92912520832507095, -7.2606163947150879, -3.8938593417992839, -0.77835050250804994, -2.4797064969493627], [-6.8862821666844169, -7.3236644467798993, -4.1535384680236627, -4.9730512119055277, -2.8528397723794292], [-5.9595053562601192, -7.3485887263712586, -3.9665430382201405, -7.9596764416317161, -1.591100356955641]], [[-3.0309027491028564, -1.6269817472044723, -4.8437657501762583, -5.2747719231697001, -2.7872737543364536], [-7.4816541136226071, -3.4280983092318751, -8.1323776886746071, -1.2275649765284911, -5.6621288934730343], [-6.8473321459036232, -2.8555922498577804, -4.1748442583188687, -8.2039131803899963, -4.6951088740656832], [-8.7799230292894759, -6.5129550436261816, -3.2072150930157637, 0.49236125198136627, -3.3557737727873684]], [[7.0729475485867619, 3.7707687938800118, -1.1298334649560804, 1.2478070804495158, -1.7720871062424104], [4.5230088631996956, -0.080099224826924775, 0.89809152946280335, 2.6393115222533581, 6.9673450066394791], [4.5692245802045468, 6.0446906908320885, 3.8520221866550868, -2.1168585444340815, 1.4751388782035137], [7.4369244931951579, -1.2838886791106061, 7.5740979123574723, 3.1772723591518339, 3.4446996563070256]], [[2.8232740893529629, 6.1524996379152617, 2.9723898409398659, 1.6031523424748464, 7.4965433717069798], [2.9043786445257149, -1.2163439211928546, 0.61084231346072215, 5.7522867686209453, 3.3454624159327295], [2.513034169017307, 3.7456857517234701, 1.0261601637670017, 1.0363983017733212, 2.3720869144283441], [1.6097755890111398, -1.6500497569181825, 3.9303038100195575, 0.81414493677859578, 6.1777465773026892]], [[-3.0218046003556029, -5.8019292096669126, -8.3912611244856272, -7.685199369470884, -4.6147171918731873], [-1.8226735777083478, -3.0743161817583777, -8.3984174899123865, -7.0090584184763429, -0.50323246090090468], [-2.7102510844566172, -1.6057928764892031, -8.1896598167813792, -2.1264199133341855, -1.8958522249437433], [-7.9835970045534603, -1.2137088225875372, -1.3719444456852417, -8.2892561470135284, 0.065396465243712676]]]])
1807        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1808        self.failUnlessEqual(res.getShape(),(4, 5, 4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5, 4, 5),"wrong shape of result.")
# Line 1791  class Test_util_binary_with_tagged_data( Line 1811  class Test_util_binary_with_tagged_data(
1811     def test_add_taggedData_rank3_expandedData_rank3(self):     def test_add_taggedData_rank3_expandedData_rank3(self):
1812        arg0=Data(numarray.array([[[-3.5366215376384789, -0.87657382560807484], [-0.91028342424723263, -0.9543795462185809]], [[2.194705907866398, -4.383627016676849], [-4.1883877690527038, 4.5027855861727932]], [[-4.6624561771372717, -0.5117978271352257], [-4.9144328246439626, -2.3766106853928628]], [[2.3370756476179899, 3.4406910501222718], [2.6486332195450712, 4.6992721619091693]], [[1.9687347679312772, -0.34148415969255375], [-3.4097069063188656, -4.4325962126527196]], [[-3.0169151460640755, 4.9991374977163474], [-1.6602495660048766, -3.0832657437353737]]]),self.functionspace)        arg0=Data(numarray.array([[[-3.5366215376384789, -0.87657382560807484], [-0.91028342424723263, -0.9543795462185809]], [[2.194705907866398, -4.383627016676849], [-4.1883877690527038, 4.5027855861727932]], [[-4.6624561771372717, -0.5117978271352257], [-4.9144328246439626, -2.3766106853928628]], [[2.3370756476179899, 3.4406910501222718], [2.6486332195450712, 4.6992721619091693]], [[1.9687347679312772, -0.34148415969255375], [-3.4097069063188656, -4.4325962126527196]], [[-3.0169151460640755, 4.9991374977163474], [-1.6602495660048766, -3.0832657437353737]]]),self.functionspace)
1813        arg0.setTaggedValue(1,numarray.array([[[-1.6591429151271764, 1.8747868070373466], [4.8906177334178746, 0.74868704273668918]], [[3.2284254632835463, -3.5653766660226429], [2.785786770264103, -4.8007672361179559]], [[-2.5216286422758536, 1.5935847946054613], [-4.0636213688616243, 0.18898419343187278]], [[-0.74106598286501679, 2.5521392891190784], [-0.47789829779800375, 1.6320525729826763]], [[-4.8274148936246677, -4.2062308975995606], [-1.8056339848656853, 1.1006282876805926]], [[1.512415303478063, 1.7256065963156964], [0.76003108752973247, -4.1438108598628425]]]))        arg0.setTaggedValue(1,numarray.array([[[-1.6591429151271764, 1.8747868070373466], [4.8906177334178746, 0.74868704273668918]], [[3.2284254632835463, -3.5653766660226429], [2.785786770264103, -4.8007672361179559]], [[-2.5216286422758536, 1.5935847946054613], [-4.0636213688616243, 0.18898419343187278]], [[-0.74106598286501679, 2.5521392891190784], [-0.47789829779800375, 1.6320525729826763]], [[-4.8274148936246677, -4.2062308975995606], [-1.8056339848656853, 1.1006282876805926]], [[1.512415303478063, 1.7256065963156964], [0.76003108752973247, -4.1438108598628425]]]))
1814        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1815        arg1=msk_arg1*numarray.array([[[4.5111163736252298, 3.7422364397638894], [-0.39262841928601233, 2.5492968009157941]], [[-3.0985469770492138, 2.3228249434121828], [-2.2026578129944041, 3.2409486208395535]], [[4.855804037651982, 2.6596138062212829], [-3.5557767838067358, -0.07582298730528958]], [[0.95723306223472449, -0.26175880511753125], [-0.52505227165164392, 4.5838356596990053]], [[0.30460737080776479, 1.724589878373334], [4.6732376208211122, 0.031699360034588508]], [[0.78470920981721903, -0.39436842574886466], [3.939183787115395, 1.781769696678559]]])+(1.-msk_arg1)*numarray.array([[[2.8849737434899083, 1.5820217626922943], [3.7704695832349806, -1.2565065674346867]], [[2.0964655582430076, 3.714393523191406], [-4.1238766830058937, 4.4382997698210982]], [[-3.0640979062230222, -1.8543107719303951], [0.79982280345512535, -2.7170200827365623]], [[0.1185730476235225, -3.8752409072609728], [4.5257005725077466, 1.1647726240588039]], [[1.0251106668311669, 0.49750058860254054], [1.5126216072593301, 2.9312782385381064]], [[3.2856367229241155, 0.92799414802590086], [0.18354951948469012, 0.8483134766937912]]])        arg1=msk_arg1*numarray.array([[[4.5111163736252298, 3.7422364397638894], [-0.39262841928601233, 2.5492968009157941]], [[-3.0985469770492138, 2.3228249434121828], [-2.2026578129944041, 3.2409486208395535]], [[4.855804037651982, 2.6596138062212829], [-3.5557767838067358, -0.07582298730528958]], [[0.95723306223472449, -0.26175880511753125], [-0.52505227165164392, 4.5838356596990053]], [[0.30460737080776479, 1.724589878373334], [4.6732376208211122, 0.031699360034588508]], [[0.78470920981721903, -0.39436842574886466], [3.939183787115395, 1.781769696678559]]])+(1.-msk_arg1)*numarray.array([[[2.8849737434899083, 1.5820217626922943], [3.7704695832349806, -1.2565065674346867]], [[2.0964655582430076, 3.714393523191406], [-4.1238766830058937, 4.4382997698210982]], [[-3.0640979062230222, -1.8543107719303951], [0.79982280345512535, -2.7170200827365623]], [[0.1185730476235225, -3.8752409072609728], [4.5257005725077466, 1.1647726240588039]], [[1.0251106668311669, 0.49750058860254054], [1.5126216072593301, 2.9312782385381064]], [[3.2856367229241155, 0.92799414802590086], [0.18354951948469012, 0.8483134766937912]]])
1816        res=add(arg0,arg1)        res=add(arg0,arg1)
1817        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1818        ref=msk_ref*numarray.array([[[0.97449483598675091, 2.8656626141558146], [-1.302911843533245, 1.5949172546972132]], [[-0.90384106918281581, -2.0608020732646661], [-6.3910455820471075, 7.7437342070123467]], [[0.19334786051471031, 2.1478159790860571], [-8.4702096084506984, -2.4524336726981524]], [[3.2943087098527144, 3.1789322450047406], [2.1235809478934273, 9.2831078216081746]], [[2.273342138739042, 1.3831057186807802], [1.2635307145022465, -4.4008968526181311]], [[-2.2322059362468565, 4.6047690719674828], [2.2789342211105184, -1.3014960470568147]]])+(1.-msk_ref)*numarray.array([[[1.2258308283627319, 3.4568085697296409], [8.6610873166528553, -0.50781952469799752]], [[5.3248910215265539, 0.14901685716876312], [-1.3380899127417907, -0.36246746629685767]], [[-5.5857265484988758, -0.26072597732493374], [-3.2637985654064989, -2.5280358893046895]], [[-0.62249293524149429, -1.3231016181418944], [4.0478022747097429, 2.7968251970414801]], [[-3.8023042267935008, -3.7087303089970201], [-0.29301237760635512, 4.031906526218699]], [[4.7980520264021784, 2.6536007443415972], [0.94358060701442259, -3.2954973831690513]]])        ref=msk_ref*numarray.array([[[0.97449483598675091, 2.8656626141558146], [-1.302911843533245, 1.5949172546972132]], [[-0.90384106918281581, -2.0608020732646661], [-6.3910455820471075, 7.7437342070123467]], [[0.19334786051471031, 2.1478159790860571], [-8.4702096084506984, -2.4524336726981524]], [[3.2943087098527144, 3.1789322450047406], [2.1235809478934273, 9.2831078216081746]], [[2.273342138739042, 1.3831057186807802], [1.2635307145022465, -4.4008968526181311]], [[-2.2322059362468565, 4.6047690719674828], [2.2789342211105184, -1.3014960470568147]]])+(1.-msk_ref)*numarray.array([[[1.2258308283627319, 3.4568085697296409], [8.6610873166528553, -0.50781952469799752]], [[5.3248910215265539, 0.14901685716876312], [-1.3380899127417907, -0.36246746629685767]], [[-5.5857265484988758, -0.26072597732493374], [-3.2637985654064989, -2.5280358893046895]], [[-0.62249293524149429, -1.3231016181418944], [4.0478022747097429, 2.7968251970414801]], [[-3.8023042267935008, -3.7087303089970201], [-0.29301237760635512, 4.031906526218699]], [[4.7980520264021784, 2.6536007443415972], [0.94358060701442259, -3.2954973831690513]]])
1819        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1820        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 1803  class Test_util_binary_with_tagged_data( Line 1823  class Test_util_binary_with_tagged_data(
1823     def test_add_taggedData_rank4_expandedData_rank3(self):     def test_add_taggedData_rank4_expandedData_rank3(self):
1824        arg0=Data(numarray.array([[[[-0.63609458537595209, 2.480748262990236], [-4.2454079723817104, -1.4864949712886997]], [[-4.7929954874955349, -2.5045317854548133], [-4.994304858245342, 3.2263784457864766]]], [[[-3.2936719177626639, -2.547936060440529], [3.9464964093868531, 4.110156776942727]], [[-3.1214643056226254, 3.1269759562378443], [-0.38587890861028207, -1.7758146079059589]]], [[[3.330632978125692, 1.8480115931558494], [1.4115591071111702, -4.3383945913941835]], [[0.54171255340880098, -4.9806290105749031], [4.8081699929565342, 1.1677320246925325]]], [[[-2.4844416326592644, -1.9707988008139719], [4.0974282539380606, 0.16765848606775524]], [[-2.3114363795515667, -0.93916355668753138], [-4.3668067084947264, 3.7503191496489166]]], [[[0.45615887019402646, -4.4339798412414302], [-2.9169127898478378, -0.47689771192415886]], [[-1.7829283429030829, 0.4174494682016725], [0.63275808396453392, -3.8008029631717708]]], [[[-1.9696648331986144, 1.0824628852155724], [4.4535143093875256, -2.1117071270965515]], [[-3.3424503551310369, 3.2745920282994394], [-2.4724249771701934, 2.0040890581743245]]]]),self.functionspace)        arg0=Data(numarray.array([[[[-0.63609458537595209, 2.480748262990236], [-4.2454079723817104, -1.4864949712886997]], [[-4.7929954874955349, -2.5045317854548133], [-4.994304858245342, 3.2263784457864766]]], [[[-3.2936719177626639, -2.547936060440529], [3.9464964093868531, 4.110156776942727]], [[-3.1214643056226254, 3.1269759562378443], [-0.38587890861028207, -1.7758146079059589]]], [[[3.330632978125692, 1.8480115931558494], [1.4115591071111702, -4.3383945913941835]], [[0.54171255340880098, -4.9806290105749031], [4.8081699929565342, 1.1677320246925325]]], [[[-2.4844416326592644, -1.9707988008139719], [4.0974282539380606, 0.16765848606775524]], [[-2.3114363795515667, -0.93916355668753138], [-4.3668067084947264, 3.7503191496489166]]], [[[0.45615887019402646, -4.4339798412414302], [-2.9169127898478378, -0.47689771192415886]], [[-1.7829283429030829, 0.4174494682016725], [0.63275808396453392, -3.8008029631717708]]], [[[-1.9696648331986144, 1.0824628852155724], [4.4535143093875256, -2.1117071270965515]], [[-3.3424503551310369, 3.2745920282994394], [-2.4724249771701934, 2.0040890581743245]]]]),self.functionspace)
1825        arg0.setTaggedValue(1,numarray.array([[[[1.9921810555682526, -4.4510776666285654], [2.7341912602247103, 4.5356363757656091]], [[1.6163810970618231, -4.4623181003005286], [0.98141943412660915, -1.9367936970876221]]], [[[-0.72682729155326165, 3.1102933387903438], [2.7296531527265522, -3.4298733188090069]], [[3.3812880114293282, -1.7730686592089295], [3.8194232315026717, 3.4373600219622631]]], [[[3.1051696721306943, -0.72454079320514175], [1.5525483208672384, 2.0875484280707344]], [[-0.31901950787364708, -4.8087709054293528], [2.3766564449121468, -1.8079915073936936]]], [[[0.089398244490675793, 3.0681562960441138], [4.5639636032006532, 1.8876102325993998]], [[-0.95713646777606343, 1.0497589929661997], [-1.7738630608017578, 4.928585859223837]]], [[[-2.7694813502728621, 3.639616293040401], [-4.7523506653578904, -1.0478851715653392]], [[-0.74604983839501138, 0.71802108254232611], [-4.8444997831830836, 2.3461995456564946]]], [[[4.4189771772074256, -4.7198633633961142], [-1.5907246931427421, 3.2940423413887654]], [[0.95859506055155386, 2.3360466121945924], [-3.735655239708132, -3.3186606667827565]]]]))        arg0.setTaggedValue(1,numarray.array([[[[1.9921810555682526, -4.4510776666285654], [2.7341912602247103, 4.5356363757656091]], [[1.6163810970618231, -4.4623181003005286], [0.98141943412660915, -1.9367936970876221]]], [[[-0.72682729155326165, 3.1102933387903438], [2.7296531527265522, -3.4298733188090069]], [[3.3812880114293282, -1.7730686592089295], [3.8194232315026717, 3.4373600219622631]]], [[[3.1051696721306943, -0.72454079320514175], [1.5525483208672384, 2.0875484280707344]], [[-0.31901950787364708, -4.8087709054293528], [2.3766564449121468, -1.8079915073936936]]], [[[0.089398244490675793, 3.0681562960441138], [4.5639636032006532, 1.8876102325993998]], [[-0.95713646777606343, 1.0497589929661997], [-1.7738630608017578, 4.928585859223837]]], [[[-2.7694813502728621, 3.639616293040401], [-4.7523506653578904, -1.0478851715653392]], [[-0.74604983839501138, 0.71802108254232611], [-4.8444997831830836, 2.3461995456564946]]], [[[4.4189771772074256, -4.7198633633961142], [-1.5907246931427421, 3.2940423413887654]], [[0.95859506055155386, 2.3360466121945924], [-3.735655239708132, -3.3186606667827565]]]]))
1826        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1827        arg1=msk_arg1*numarray.array([[[1.078205085033713, 3.7265403965648005], [0.27787531123201425, -0.12231342766964559]], [[2.4466555120078937, -1.5615431032090497], [4.9274625442671969, -4.857558668900638]], [[-4.6019650732902937, 0.29331148471286372], [3.2334776696931549, -3.661813192136357]], [[0.60346613844020069, -1.3838235317405188], [0.75834605211669981, -0.022284470133672407]], [[4.1115259595971505, 4.1366044987205726], [-4.1632748345480399, -3.9797021330367377]], [[4.7919238193040279, 1.3363747278629203], [-1.5122536594890637, -2.6031668407293305]]])+(1.-msk_arg1)*numarray.array([[[0.24936001602697289, -2.7672421002550687], [-1.7408057992630512, 3.9483693655902776]], [[-3.2009187599937317, -4.6309440213886948], [2.9821973941485282, -1.2266694754626783]], [[-0.87486385136857603, -2.2824567270115539], [1.0546369950082628, 3.6714071418963563]], [[-2.3742774376015308, -0.63464644290987504], [4.8816181734361415, 0.60099138945840291]], [[-1.162500143504742, -0.60769345952199672], [-4.4059707479663963, -3.9118329483642955]], [[2.58783686844769, 4.3578741206845599], [3.4273846918878199, 4.0878691682187469]]])        arg1=msk_arg1*numarray.array([[[1.078205085033713, 3.7265403965648005], [0.27787531123201425, -0.12231342766964559]], [[2.4466555120078937, -1.5615431032090497], [4.9274625442671969, -4.857558668900638]], [[-4.6019650732902937, 0.29331148471286372], [3.2334776696931549, -3.661813192136357]], [[0.60346613844020069, -1.3838235317405188], [0.75834605211669981, -0.022284470133672407]], [[4.1115259595971505, 4.1366044987205726], [-4.1632748345480399, -3.9797021330367377]], [[4.7919238193040279, 1.3363747278629203], [-1.5122536594890637, -2.6031668407293305]]])+(1.-msk_arg1)*numarray.array([[[0.24936001602697289, -2.7672421002550687], [-1.7408057992630512, 3.9483693655902776]], [[-3.2009187599937317, -4.6309440213886948], [2.9821973941485282, -1.2266694754626783]], [[-0.87486385136857603, -2.2824567270115539], [1.0546369950082628, 3.6714071418963563]], [[-2.3742774376015308, -0.63464644290987504], [4.8816181734361415, 0.60099138945840291]], [[-1.162500143504742, -0.60769345952199672], [-4.4059707479663963, -3.9118329483642955]], [[2.58783686844769, 4.3578741206845599], [3.4273846918878199, 4.0878691682187469]]])
1828        res=add(arg0,arg1)        res=add(arg0,arg1)
1829        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1830        ref=msk_ref*numarray.array([[[[0.44211049965776095, 3.558953348023949], [-0.5188675758169099, 2.2400454252761008]], [[-4.5151201762635207, -2.226656474222799], [-5.1166182859149876, 3.104065018116831]]], [[[-0.84701640575477022, -0.10128054843263534], [2.3849533061778034, 2.5486136737336773]], [[1.8059982386445714, 8.0544385005050412], [-5.2434375775109201, -6.6333732768065969]]], [[[-1.2713320951646017, -2.7539534801344443], [1.7048705918240339, -4.0450831066813198]], [[3.7751902231019558, -1.7471513408817483], [1.1463568008201772, -2.4940811674438246]]], [[[-1.8809754942190637, -1.3673326623737712], [2.7136047221975419, -1.2161650456727635]], [[-1.5530903274348669, -0.18081750457083157], [-4.3890911786283988, 3.7280346795152441]]], [[[4.567684829791177, -0.32245388164427968], [1.2196917088727348, 3.6597067867964137]], [[-5.9462031774511228, -3.7458253663463674], [-3.3469440490722038, -7.7805050962085085]]], [[[2.8222589861054135, 5.8743867045196003], [5.7898890372504459, -0.77533239923363118]], [[-4.8547040146201006, 1.7623383688103758], [-5.0755918178995234, -0.59907778255500599]]]])+(1.-msk_ref)*numarray.array([[[[2.2415410715952255, -4.2017176506015925], [-0.033050840030358408, 1.7683942755105404]], [[-0.12442470220122814, -6.2031238995635798], [4.9297887997168868, 2.0115756685026556]]], [[[-3.9277460515469933, -0.090625421203387901], [-1.9012908686621426, -8.0608173401977012]], [[6.3634854055778565, 1.2091287349395987], [2.5927537560399934, 2.2106905464995847]]], [[[2.2303058207621183, -1.5994046445737178], [-0.72990840614431551, -0.19490829894081951]], [[0.73561748713461572, -3.75413391042109], [6.0480635868085031, 1.8634156345026627]]], [[[-2.284879193110855, 0.69387885844258301], [3.9293171602907782, 1.2529637896895247]], [[3.924481705660078, 5.9313771664023411], [-1.1728716713433549, 5.5295772486822399]]], [[[-3.9319814937776041, 2.4771161495356591], [-5.3600441248798871, -1.6555786310873359]], [[-5.1520205863614077, -3.6879496654240702], [-8.7563327315473796, -1.5656334027078009]]], [[[7.0068140456551156, -2.1320264949484242], [2.7671494275418178, 7.6519164620733253]], [[4.3859797524393738, 5.7634313040824123], [0.35221392851061495, 0.7692085014359904]]]])        ref=msk_ref*numarray.array([[[[0.44211049965776095, 3.558953348023949], [-0.5188675758169099, 2.2400454252761008]], [[-4.5151201762635207, -2.226656474222799], [-5.1166182859149876, 3.104065018116831]]], [[[-0.84701640575477022, -0.10128054843263534], [2.3849533061778034, 2.5486136737336773]], [[1.8059982386445714, 8.0544385005050412], [-5.2434375775109201, -6.6333732768065969]]], [[[-1.2713320951646017, -2.7539534801344443], [1.7048705918240339, -4.0450831066813198]], [[3.7751902231019558, -1.7471513408817483], [1.1463568008201772, -2.4940811674438246]]], [[[-1.8809754942190637, -1.3673326623737712], [2.7136047221975419, -1.2161650456727635]], [[-1.5530903274348669, -0.18081750457083157], [-4.3890911786283988, 3.7280346795152441]]], [[[4.567684829791177, -0.32245388164427968], [1.2196917088727348, 3.6597067867964137]], [[-5.9462031774511228, -3.7458253663463674], [-3.3469440490722038, -7.7805050962085085]]], [[[2.8222589861054135, 5.8743867045196003], [5.7898890372504459, -0.77533239923363118]], [[-4.8547040146201006, 1.7623383688103758], [-5.0755918178995234, -0.59907778255500599]]]])+(1.-msk_ref)*numarray.array([[[[2.2415410715952255, -4.2017176506015925], [-0.033050840030358408, 1.7683942755105404]], [[-0.12442470220122814, -6.2031238995635798], [4.9297887997168868, 2.0115756685026556]]], [[[-3.9277460515469933, -0.090625421203387901], [-1.9012908686621426, -8.0608173401977012]], [[6.3634854055778565, 1.2091287349395987], [2.5927537560399934, 2.2106905464995847]]], [[[2.2303058207621183, -1.5994046445737178], [-0.72990840614431551, -0.19490829894081951]], [[0.73561748713461572, -3.75413391042109], [6.0480635868085031, 1.8634156345026627]]], [[[-2.284879193110855, 0.69387885844258301], [3.9293171602907782, 1.2529637896895247]], [[3.924481705660078, 5.9313771664023411], [-1.1728716713433549, 5.5295772486822399]]], [[[-3.9319814937776041, 2.4771161495356591], [-5.3600441248798871, -1.6555786310873359]], [[-5.1520205863614077, -3.6879496654240702], [-8.7563327315473796, -1.5656334027078009]]], [[[7.0068140456551156, -2.1320264949484242], [2.7671494275418178, 7.6519164620733253]], [[4.3859797524393738, 5.7634313040824123], [0.35221392851061495, 0.7692085014359904]]]])
1831        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1832        self.failUnlessEqual(res.getShape(),(6, 2, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2, 2),"wrong shape of result.")
# Line 1815  class Test_util_binary_with_tagged_data( Line 1835  class Test_util_binary_with_tagged_data(
1835     def test_add_taggedData_rank3_expandedData_rank4(self):     def test_add_taggedData_rank3_expandedData_rank4(self):
1836        arg0=Data(numarray.array([[[-2.9932100313381351, -3.9299488014713315], [0.80302753291778739, 4.4624939073648697]], [[-3.8701494275764361, -1.0390085610333566], [1.0535317870836582, 3.8523491694856808]], [[-4.5933419996957179, 1.9995560484288477], [-0.82140823709374278, 3.3555671609653412]], [[0.41019664287365387, 3.68715610210036], [4.3098294459340973, 1.344431286222485]], [[-0.67216132215912072, 1.7485159813758653], [3.487891386820321, -2.8949623948348235]], [[4.6182746476648173, 4.2373171448618585], [0.9627728620750311, -4.7981359877235752]]]),self.functionspace)        arg0=Data(numarray.array([[[-2.9932100313381351, -3.9299488014713315], [0.80302753291778739, 4.4624939073648697]], [[-3.8701494275764361, -1.0390085610333566], [1.0535317870836582, 3.8523491694856808]], [[-4.5933419996957179, 1.9995560484288477], [-0.82140823709374278, 3.3555671609653412]], [[0.41019664287365387, 3.68715610210036], [4.3098294459340973, 1.344431286222485]], [[-0.67216132215912072, 1.7485159813758653], [3.487891386820321, -2.8949623948348235]], [[4.6182746476648173, 4.2373171448618585], [0.9627728620750311, -4.7981359877235752]]]),self.functionspace)
1837        arg0.setTaggedValue(1,numarray.array([[[-1.5065581645794346, 3.0086067913059686], [2.5907773685297384, 1.5627499742313722]], [[-3.7131064860851981, -4.7328908719455773], [2.3629843244402586, 0.64912369061626229]], [[0.6960285746573156, 0.42469375550022725], [3.9895405536367878, 2.8391137511110331]], [[4.2576043184095234, -2.4785841075287554], [-0.21592979968948622, 2.1421152117554243]], [[2.8081331502225613, -4.9822366227478589], [3.9019105498270417, 2.7766457454285636]], [[3.5133372614748843, -0.18662624267342753], [-2.3466833812843833, -3.4118420487701409]]]))        arg0.setTaggedValue(1,numarray.array([[[-1.5065581645794346, 3.0086067913059686], [2.5907773685297384, 1.5627499742313722]], [[-3.7131064860851981, -4.7328908719455773], [2.3629843244402586, 0.64912369061626229]], [[0.6960285746573156, 0.42469375550022725], [3.9895405536367878, 2.8391137511110331]], [[4.2576043184095234, -2.4785841075287554], [-0.21592979968948622, 2.1421152117554243]], [[2.8081331502225613, -4.9822366227478589], [3.9019105498270417, 2.7766457454285636]], [[3.5133372614748843, -0.18662624267342753], [-2.3466833812843833, -3.4118420487701409]]]))
1838        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1839        arg1=msk_arg1*numarray.array([[[[0.14976845486167978, -3.9105845236244621], [-4.2163708955035641, 4.2433718783469683]], [[-1.775917994961568, 3.0380990668225412], [-0.15204624138368406, -2.1164807883878534]]], [[[4.7736406695952347, -1.8205518703021051], [-3.3298132448409823, 2.8747810729748462]], [[-3.4314015066781458, 1.2318624787962493], [-0.68687061965578522, -0.21883215593371297]]], [[[3.2694888126069337, 3.7644412412637873], [2.8850094979348251, 2.351310196748666]], [[-4.6312230303913005, -4.3114778612961713], [-1.5181127152101159, -3.2388236178867]]], [[[2.2777827683493204, 1.496831874194287], [4.7109403806168046, -2.2662569779035415]], [[-4.3247627565800739, 4.4640487409576703], [-3.1950250952949846, -3.6691304517842127]]], [[[4.2946486416300438, 4.5222549199892157], [-3.3203492490952224, -3.9406252966880748]], [[4.1421258508076093, 2.0459682479739074], [-0.11058438442597307, 2.9239283480200937]]], [[[1.1894544762341361, 4.9340749549953884], [3.4890909110457642, 3.320621786956]], [[3.8519950183176128, -2.6356471294389894], [-2.4783809973344431, 2.793673052211556]]]])+(1.-msk_arg1)*numarray.array([[[[0.031493556734688788, -4.4104393491251601], [-1.2455268714668621, -2.0522985324555867]], [[-2.3089662826814061, -2.3874209473761656], [2.3257337453528404, 2.3362073309429512]]], [[[3.1775061781959604, 1.0298314402341635], [3.8001348012057772, 2.4682353648101261]], [[-4.8917930750611882, 2.2869642278294489], [-2.1959949493048168, -0.007679600705712275]]], [[[0.73816404689801907, 1.0716690575507357], [-1.1943927965840242, -4.1937995834503274]], [[-1.676720527869028, 0.065480277403517917], [-0.50791709099001814, 0.090150400352261073]]], [[[-3.6634273302581475, -4.4981963169071832], [-2.6280845734275751, -4.3843200995987299]], [[-3.6795029170901206, 1.6328902133136838], [-4.9646740091048986, 3.0537125762445942]]], [[[-2.5582663072157419, -0.83868668717645445], [-2.0357184398107764, 0.24051220329086131]], [[-4.7234513149084449, 2.4892611305526291], [3.2507949742106952, 2.0565049815571026]]], [[[0.021041400646297781, -3.7668596667186014], [-0.31724441392620939, 3.461639815216957]], [[3.0986715675738488, -1.5409678064966039], [4.2847045712940517, -0.35944457795346096]]]])        arg1=msk_arg1*numarray.array([[[[0.14976845486167978, -3.9105845236244621], [-4.2163708955035641, 4.2433718783469683]], [[-1.775917994961568, 3.0380990668225412], [-0.15204624138368406, -2.1164807883878534]]], [[[4.7736406695952347, -1.8205518703021051], [-3.3298132448409823, 2.8747810729748462]], [[-3.4314015066781458, 1.2318624787962493], [-0.68687061965578522, -0.21883215593371297]]], [[[3.2694888126069337, 3.7644412412637873], [2.8850094979348251, 2.351310196748666]], [[-4.6312230303913005, -4.3114778612961713], [-1.5181127152101159, -3.2388236178867]]], [[[2.2777827683493204, 1.496831874194287], [4.7109403806168046, -2.2662569779035415]], [[-4.3247627565800739, 4.4640487409576703], [-3.1950250952949846, -3.6691304517842127]]], [[[4.2946486416300438, 4.5222549199892157], [-3.3203492490952224, -3.9406252966880748]], [[4.1421258508076093, 2.0459682479739074], [-0.11058438442597307, 2.9239283480200937]]], [[[1.1894544762341361, 4.9340749549953884], [3.4890909110457642, 3.320621786956]], [[3.8519950183176128, -2.6356471294389894], [-2.4783809973344431, 2.793673052211556]]]])+(1.-msk_arg1)*numarray.array([[[[0.031493556734688788, -4.4104393491251601], [-1.2455268714668621, -2.0522985324555867]], [[-2.3089662826814061, -2.3874209473761656], [2.3257337453528404, 2.3362073309429512]]], [[[3.1775061781959604, 1.0298314402341635], [3.8001348012057772, 2.4682353648101261]], [[-4.8917930750611882, 2.2869642278294489], [-2.1959949493048168, -0.007679600705712275]]], [[[0.73816404689801907, 1.0716690575507357], [-1.1943927965840242, -4.1937995834503274]], [[-1.676720527869028, 0.065480277403517917], [-0.50791709099001814, 0.090150400352261073]]], [[[-3.6634273302581475, -4.4981963169071832], [-2.6280845734275751, -4.3843200995987299]], [[-3.6795029170901206, 1.6328902133136838], [-4.9646740091048986, 3.0537125762445942]]], [[[-2.5582663072157419, -0.83868668717645445], [-2.0357184398107764, 0.24051220329086131]], [[-4.7234513149084449, 2.4892611305526291], [3.2507949742106952, 2.0565049815571026]]], [[[0.021041400646297781, -3.7668596667186014], [-0.31724441392620939, 3.461639815216957]], [[3.0986715675738488, -1.5409678064966039], [4.2847045712940517, -0.35944457795346096]]]])
1840        res=add(arg0,arg1)        res=add(arg0,arg1)
1841        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1842        ref=msk_ref*numarray.array([[[[-2.8434415764764553, -6.9037945549625972], [-8.1463196969748957, 0.31342307687563675]], [[-0.9728904620437806, 3.8411265997403286], [4.3104476659811857, 2.3460131189770164]]], [[[0.9034912420187986, -5.6907012978785412], [-4.3688218058743384, 1.8357725119414896]], [[-2.3778697195944876, 2.2853942658799076], [3.1654785498298956, 3.6335170135519679]]], [[[-1.3238531870887842, -0.82890075843193056], [4.8845655463636728, 4.3508662451775137]], [[-5.4526312674850432, -5.1328860983899141], [1.8374544457552253, 0.11674354307864121]]], [[[2.6879794112229742, 1.9070285170679409], [8.3980964827171647, 1.4208991241968185]], [[-0.014933310645976583, 8.7738781868917677], [-1.8505938090724996, -2.3246991655617277]]], [[[3.6224873194709231, 3.850093597830095], [-1.5718332677193572, -2.1921093153122095]], [[7.6300172376279303, 5.5338596347942284], [-3.0055467792607966, 0.028965953185270177]]], [[[5.8077291238989535, 9.5523496026602057], [7.7264080559076227, 7.5579389318178585]], [[4.8147678803926439, -1.6728742673639583], [-7.2765169850580182, -2.0044629355120192]]]])+(1.-msk_ref)*numarray.array([[[[-1.4750646078447458, -5.9169975137045947], [1.7630799198391065, 0.95630825885038195]], [[0.28181108584833225, 0.20335642115357278], [3.8884837195842126, 3.8989573051743234]]], [[[-0.53560030788923774, -2.6832750458510346], [-0.93275607073980016, -2.2646555071354513]], [[-2.5288087506209296, 4.6499485522697075], [-1.5468712586885545, 0.64144408991055002]]], [[[1.4341926215553347, 1.7676976322080513], [-0.76969904108379694, -3.7691058279501002]], [[2.3128200257677598, 4.0550208310403058], [2.331196660121015, 2.9292641514632942]]], [[[0.59417698815137587, -0.24059199849765989], [-5.1066686809563304, -6.8629042071274853]], [[-3.8954327167796068, 1.4169604136241976], [-2.8225587973494743, 5.1958277880000185]]], [[[0.24986684300681938, 1.9694464630461068], [-7.0179550625586353, -4.7417244194569976]], [[-0.82154076508140328, 6.3911716803796708], [6.0274407196392588, 4.8331507269856662]]], [[[3.5343786621211821, -0.25352240524371705], [-0.50387065659963692, 3.2750135725435294]], [[0.75198818628946551, -3.8876511877809872], [0.87286252252391083, -3.7712866267236018]]]])        ref=msk_ref*numarray.array([[[[-2.8434415764764553, -6.9037945549625972], [-8.1463196969748957, 0.31342307687563675]], [[-0.9728904620437806, 3.8411265997403286], [4.3104476659811857, 2.3460131189770164]]], [[[0.9034912420187986, -5.6907012978785412], [-4.3688218058743384, 1.8357725119414896]], [[-2.3778697195944876, 2.2853942658799076], [3.1654785498298956, 3.6335170135519679]]], [[[-1.3238531870887842, -0.82890075843193056], [4.8845655463636728, 4.3508662451775137]], [[-5.4526312674850432, -5.1328860983899141], [1.8374544457552253, 0.11674354307864121]]], [[[2.6879794112229742, 1.9070285170679409], [8.3980964827171647, 1.4208991241968185]], [[-0.014933310645976583, 8.7738781868917677], [-1.8505938090724996, -2.3246991655617277]]], [[[3.6224873194709231, 3.850093597830095], [-1.5718332677193572, -2.1921093153122095]], [[7.6300172376279303, 5.5338596347942284], [-3.0055467792607966, 0.028965953185270177]]], [[[5.8077291238989535, 9.5523496026602057], [7.7264080559076227, 7.5579389318178585]], [[4.8147678803926439, -1.6728742673639583], [-7.2765169850580182, -2.0044629355120192]]]])+(1.-msk_ref)*numarray.array([[[[-1.4750646078447458, -5.9169975137045947], [1.7630799198391065, 0.95630825885038195]], [[0.28181108584833225, 0.20335642115357278], [3.8884837195842126, 3.8989573051743234]]], [[[-0.53560030788923774, -2.6832750458510346], [-0.93275607073980016, -2.2646555071354513]], [[-2.5288087506209296, 4.6499485522697075], [-1.5468712586885545, 0.64144408991055002]]], [[[1.4341926215553347, 1.7676976322080513], [-0.76969904108379694, -3.7691058279501002]], [[2.3128200257677598, 4.0550208310403058], [2.331196660121015, 2.9292641514632942]]], [[[0.59417698815137587, -0.24059199849765989], [-5.1066686809563304, -6.8629042071274853]], [[-3.8954327167796068, 1.4169604136241976], [-2.8225587973494743, 5.1958277880000185]]], [[[0.24986684300681938, 1.9694464630461068], [-7.0179550625586353, -4.7417244194569976]], [[-0.82154076508140328, 6.3911716803796708], [6.0274407196392588, 4.8331507269856662]]], [[[3.5343786621211821, -0.25352240524371705], [-0.50387065659963692, 3.2750135725435294]], [[0.75198818628946551, -3.8876511877809872], [0.87286252252391083, -3.7712866267236018]]]])
1843        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1844        self.failUnlessEqual(res.getShape(),(6, 2, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2, 2),"wrong shape of result.")
# Line 1827  class Test_util_binary_with_tagged_data( Line 1847  class Test_util_binary_with_tagged_data(
1847     def test_add_taggedData_rank4_expandedData_rank4(self):     def test_add_taggedData_rank4_expandedData_rank4(self):
1848        arg0=Data(numarray.array([[[[-3.1882989949875196, 3.4764655373314035, -0.52410331768423379, 0.084870422903886578], [0.67684057012726484, -4.0133480769140988, 1.0000048927471621, 4.059251583313829], [0.44664185308595172, -2.8683961753172782, 0.41991712466300957, 4.9777778135944502]], [[-0.95634951092515408, -3.9487674353751001, 4.3375139230542779, 2.1903749794147886], [-4.9012522547127704, 3.1258558175762285, 1.1469790215532738, -0.28027316006829839], [-2.2942128261028372, -0.639892127117351, 3.8221597971488279, -0.593054064090067]]], [[[0.28941579794273409, -2.7951996017699052, 4.6072963228987049, 2.7746831502499703], [-4.2000951401374467, 4.3248302561684238, 0.65946614903959144, -3.6352701460660852], [2.5504508807891293, -0.60820694231281003, -1.0544671773350767, -4.0347877222700799]], [[-4.3852226364817195, -2.7300940219015271, 0.22444350637987309, 4.2257268674036599], [-2.4379246900979492, 1.1946395075665963, -1.031307424229774, 1.2022690751075302], [-1.5433268004844134, 3.9733792463464468, 0.26880631368968011, 0.70748077081158378]]], [[[-3.1493370546248567, 1.7840299669664201, 3.1801805331680004, 1.679707636997203], [4.0064658685501744, -0.21522012948273073, -4.318057364297653, -1.933182216976479], [2.2168405135240405, -4.7525129822674419, 2.9037500546695991, -1.6041286839114068]], [[3.4720372149509107, -1.7028024449750498, 4.0738019462901836, 0.77317789687082339], [0.11962564225424988, -2.7604429967251787, -1.6074757218046765, -0.5665123432834438], [1.875981833510032, 3.0282738572932075, -1.9281656881704667, -0.21582250908807765]]]]),self.functionspace)        arg0=Data(numarray.array([[[[-3.1882989949875196, 3.4764655373314035, -0.52410331768423379, 0.084870422903886578], [0.67684057012726484, -4.0133480769140988, 1.0000048927471621, 4.059251583313829], [0.44664185308595172, -2.8683961753172782, 0.41991712466300957, 4.9777778135944502]], [[-0.95634951092515408, -3.9487674353751001, 4.3375139230542779, 2.1903749794147886], [-4.9012522547127704, 3.1258558175762285, 1.1469790215532738, -0.28027316006829839], [-2.2942128261028372, -0.639892127117351, 3.8221597971488279, -0.593054064090067]]], [[[0.28941579794273409, -2.7951996017699052, 4.6072963228987049, 2.7746831502499703], [-4.2000951401374467, 4.3248302561684238, 0.65946614903959144, -3.6352701460660852], [2.5504508807891293, -0.60820694231281003, -1.0544671773350767, -4.0347877222700799]], [[-4.3852226364817195, -2.7300940219015271, 0.22444350637987309, 4.2257268674036599], [-2.4379246900979492, 1.1946395075665963, -1.031307424229774, 1.2022690751075302], [-1.5433268004844134, 3.9733792463464468, 0.26880631368968011, 0.70748077081158378]]], [[[-3.1493370546248567, 1.7840299669664201, 3.1801805331680004, 1.679707636997203], [4.0064658685501744, -0.21522012948273073, -4.318057364297653, -1.933182216976479], [2.2168405135240405, -4.7525129822674419, 2.9037500546695991, -1.6041286839114068]], [[3.4720372149509107, -1.7028024449750498, 4.0738019462901836, 0.77317789687082339], [0.11962564225424988, -2.7604429967251787, -1.6074757218046765, -0.5665123432834438], [1.875981833510032, 3.0282738572932075, -1.9281656881704667, -0.21582250908807765]]]]),self.functionspace)
1849        arg0.setTaggedValue(1,numarray.array([[[[-4.0007452320326262, 4.8346411710322457, -1.6338307302084543, 1.8969542019980281], [-1.0826331367497977, -2.7143982955397181, -4.5735475479823915, 1.8207138044117412], [1.107184335518081, 2.1533677183826105, -4.6591012181943912, -3.0793034328651547]], [[-4.4170849508253793, 3.8786542006541715, -3.1845514987420898, 4.5340702537689488], [2.6620881971254242, 0.48609445410638052, 2.3033600004780039, 1.0325207917428987], [-3.2895553606801977, 0.59662473945081196, 2.3421560813555971, 3.5201576731307824]]], [[[-1.241358279288777, -1.0093554160364624, 4.8714590327326732, 4.9958462694484584], [2.2979207971552675, -2.5297882888281853, 4.1250319420485706, 1.7472165231605219], [0.08074901188993433, -3.6132344475152101, -3.8304882832772669, 1.531029790414598]], [[2.5816874548452384, -4.8692132142380018, 4.8163710432392488, -3.8820776945165236], [4.5383945873735172, -0.15140611363552381, -0.059409040304379879, 0.28116115882506509], [-0.68232354631439041, 3.1177132006546273, -2.8934819859556402, -3.8322556226116458]]], [[[-3.164595452548562, 3.944329464656434, 1.1078172099085002, 2.9034994594661212], [0.46372034272722651, -4.3707285871433683, -1.8101877050897732, 0.84197420842482451], [-4.8824998102213026, -1.6689232308292459, -4.8994668566373187, 2.0560699784779466]], [[0.59640074242049756, 4.5296135076520834, 2.1297280684952478, 1.3459109085228], [4.4640298888854648, -4.6643557928163073, -2.0181607567003637, -3.3004158938698094], [4.7223037369407361, -0.66969591134413697, -0.97252195241518979, -1.0610743143325352]]]]))        arg0.setTaggedValue(1,numarray.array([[[[-4.0007452320326262, 4.8346411710322457, -1.6338307302084543, 1.8969542019980281], [-1.0826331367497977, -2.7143982955397181, -4.5735475479823915, 1.8207138044117412], [1.107184335518081, 2.1533677183826105, -4.6591012181943912, -3.0793034328651547]], [[-4.4170849508253793, 3.8786542006541715, -3.1845514987420898, 4.5340702537689488], [2.6620881971254242, 0.48609445410638052, 2.3033600004780039, 1.0325207917428987], [-3.2895553606801977, 0.59662473945081196, 2.3421560813555971, 3.5201576731307824]]], [[[-1.241358279288777, -1.0093554160364624, 4.8714590327326732, 4.9958462694484584], [2.2979207971552675, -2.5297882888281853, 4.1250319420485706, 1.7472165231605219], [0.08074901188993433, -3.6132344475152101, -3.8304882832772669, 1.531029790414598]], [[2.5816874548452384, -4.8692132142380018, 4.8163710432392488, -3.8820776945165236], [4.5383945873735172, -0.15140611363552381, -0.059409040304379879, 0.28116115882506509], [-0.68232354631439041, 3.1177132006546273, -2.8934819859556402, -3.8322556226116458]]], [[[-3.164595452548562, 3.944329464656434, 1.1078172099085002, 2.9034994594661212], [0.46372034272722651, -4.3707285871433683, -1.8101877050897732, 0.84197420842482451], [-4.8824998102213026, -1.6689232308292459, -4.8994668566373187, 2.0560699784779466]], [[0.59640074242049756, 4.5296135076520834, 2.1297280684952478, 1.3459109085228], [4.4640298888854648, -4.6643557928163073, -2.0181607567003637, -3.3004158938698094], [4.7223037369407361, -0.66969591134413697, -0.97252195241518979, -1.0610743143325352]]]]))
1850        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1851        arg1=msk_arg1*numarray.array([[[[4.7016124473478644, 4.3866987850879386, 3.1331279285272355, -3.3629923283529073], [2.7504192246096206, -0.98773827997372532, -0.47393397682935579, -4.8006990851249576], [0.6475986586159479, -1.1294144486082458, 1.4410698577789915, -3.9410584475984392]], [[0.31470081524245863, -3.4663239567189774, -1.7324879728336819, 3.2868868898640038], [-2.7679474335143128, -2.7376271338314817, 1.8377745617103241, -2.6140785662381827], [-0.30565072203201638, 1.9596355313149383, 2.7203471864421118, 0.56704438035103077]]], [[[0.69470746374813785, -1.4216504438586863, -0.088051709347767293, 3.7266952466417855], [2.3585285741145938, -2.0454743235507964, 1.3397934854227591, -4.9541273487096937], [2.2629519350832794, 2.5126249949344039, 0.25490888082530461, 3.6303104717110806]], [[-2.1245329572542824, 1.2160185686172653, 0.50713151117417166, -1.141954395854258], [3.3915217437219898, 1.6255798383966535, 4.6237607852066773, -2.4794498718728142], [1.147793382058663, -3.9683286326701284, 0.31901180834133935, -1.1315132412432694]]], [[[1.3314971663872406, -4.5112261209922426, 0.79295678503389233, 1.9405732505907132], [1.5582536576998951, 3.9407649322392864, 1.0531718101958436, -0.98910730899310728], [4.3147969492492635, -0.23916574786535705, -4.2313354864239301, 4.552240954228262]], [[-3.4156996431407274, 2.5702000633616215, 0.79034567643909348, -2.2391113688275488], [-1.3228025910367656, -2.9403111233295176, -0.62131929236776262, -3.0081203035018711], [0.89179287661205819, -4.0999921158063559, -2.2849271268616143, -2.8586749667621314]]]])+(1.-msk_arg1)*numarray.array([[[[-3.4797862407210269, -3.8310657995375075, 0.65562496032647832, 1.8856861397480484], [0.083724025915107525, 1.295583486012295, -3.9031603678765157, 4.3623395924353439], [4.1347681072225591, 3.8087222441627393, 4.5570894786995435, -3.0511615033378217]], [[-2.6124538118626548, 4.9679855583943819, -2.2224939215662887, -2.7436546855541577], [-2.8302862454628483, 0.38669044462061919, 2.2646532459198276, -3.1697017930853799], [0.79595721000526432, 2.6025681953911128, 0.57160391581212799, 4.4898247996997149]]], [[[2.4945356310240143, -4.7933317337798398, -4.7329727500225305, -1.6653895296072596], [2.1341497163387144, 0.62506824576621511, -0.88623158822230952, -2.5656652115678833], [-1.7143863272838997, -1.0070450786174101, 3.0471102017957765, 0.072742604050000992]], [[-3.9233344270525814, 2.5084153016190562, -3.1375881197247457, -2.0964797863109839], [2.0633986841647181, -1.5135933178748138, -1.4229122070890785, -4.8878426461996831], [-3.5653681987400865, -1.4181705000530886, -3.6670771793994303, 4.1529921931198501]]], [[[1.3915278282097345, 4.0529067912413339, 3.3382960399576049, 0.52818544397820055], [1.7536550285057571, 3.9576537670607586, -1.7197443515725985, 0.794237258278498], [-1.2002735697246401, -3.8774232482163073, -2.533413806342677, -3.5090074309630426]], [[1.5882721178079739, 0.23409920534266249, 4.1732418231507822, -3.6687190857098217], [1.3446684823435939, 1.1930431753538588, -4.7663607415565092, 4.6310252226422719], [-0.2950125462376274, 1.9002476314273942, 0.82573743758085349, -1.770609622314133]]]])        arg1=msk_arg1*numarray.array([[[[4.7016124473478644, 4.3866987850879386, 3.1331279285272355, -3.3629923283529073], [2.7504192246096206, -0.98773827997372532, -0.47393397682935579, -4.8006990851249576], [0.6475986586159479, -1.1294144486082458, 1.4410698577789915, -3.9410584475984392]], [[0.31470081524245863, -3.4663239567189774, -1.7324879728336819, 3.2868868898640038], [-2.7679474335143128, -2.7376271338314817, 1.8377745617103241, -2.6140785662381827], [-0.30565072203201638, 1.9596355313149383, 2.7203471864421118, 0.56704438035103077]]], [[[0.69470746374813785, -1.4216504438586863, -0.088051709347767293, 3.7266952466417855], [2.3585285741145938, -2.0454743235507964, 1.3397934854227591, -4.9541273487096937], [2.2629519350832794, 2.5126249949344039, 0.25490888082530461, 3.6303104717110806]], [[-2.1245329572542824, 1.2160185686172653, 0.50713151117417166, -1.141954395854258], [3.3915217437219898, 1.6255798383966535, 4.6237607852066773, -2.4794498718728142], [1.147793382058663, -3.9683286326701284, 0.31901180834133935, -1.1315132412432694]]], [[[1.3314971663872406, -4.5112261209922426, 0.79295678503389233, 1.9405732505907132], [1.5582536576998951, 3.9407649322392864, 1.0531718101958436, -0.98910730899310728], [4.3147969492492635, -0.23916574786535705, -4.2313354864239301, 4.552240954228262]], [[-3.4156996431407274, 2.5702000633616215, 0.79034567643909348, -2.2391113688275488], [-1.3228025910367656, -2.9403111233295176, -0.62131929236776262, -3.0081203035018711], [0.89179287661205819, -4.0999921158063559, -2.2849271268616143, -2.8586749667621314]]]])+(1.-msk_arg1)*numarray.array([[[[-3.4797862407210269, -3.8310657995375075, 0.65562496032647832, 1.8856861397480484], [0.083724025915107525, 1.295583486012295, -3.9031603678765157, 4.3623395924353439], [4.1347681072225591, 3.8087222441627393, 4.5570894786995435, -3.0511615033378217]], [[-2.6124538118626548, 4.9679855583943819, -2.2224939215662887, -2.7436546855541577], [-2.8302862454628483, 0.38669044462061919, 2.2646532459198276, -3.1697017930853799], [0.79595721000526432, 2.6025681953911128, 0.57160391581212799, 4.4898247996997149]]], [[[2.4945356310240143, -4.7933317337798398, -4.7329727500225305, -1.6653895296072596], [2.1341497163387144, 0.62506824576621511, -0.88623158822230952, -2.5656652115678833], [-1.7143863272838997, -1.0070450786174101, 3.0471102017957765, 0.072742604050000992]], [[-3.9233344270525814, 2.5084153016190562, -3.1375881197247457, -2.0964797863109839], [2.0633986841647181, -1.5135933178748138, -1.4229122070890785, -4.8878426461996831], [-3.5653681987400865, -1.4181705000530886, -3.6670771793994303, 4.1529921931198501]]], [[[1.3915278282097345, 4.0529067912413339, 3.3382960399576049, 0.52818544397820055], [1.7536550285057571, 3.9576537670607586, -1.7197443515725985, 0.794237258278498], [-1.2002735697246401, -3.8774232482163073, -2.533413806342677, -3.5090074309630426]], [[1.5882721178079739, 0.23409920534266249, 4.1732418231507822, -3.6687190857098217], [1.3446684823435939, 1.1930431753538588, -4.7663607415565092, 4.6310252226422719], [-0.2950125462376274, 1.9002476314273942, 0.82573743758085349, -1.770609622314133]]]])
1852        res=add(arg0,arg1)        res=add(arg0,arg1)
1853        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
1854        ref=msk_ref*numarray.array([[[[1.5133134523603449, 7.8631643224193422, 2.6090246108430017, -3.2781219054490207], [3.4272597947368855, -5.0010863568878241, 0.5260709159178063, -0.74144750181112862], [1.0942405117018996, -3.997810623925524, 1.8609869824420011, 1.036719365996011]], [[-0.64164869568269545, -7.4150913920940775, 2.6050259502205959, 5.4772618692787924], [-7.6691996882270832, 0.38822868374474684, 2.9847535832635979, -2.8943517263064811], [-2.5998635481348535, 1.3197434041975873, 6.5425069835909397, -0.026009683739036227]]], [[[0.98412326169087194, -4.2168500456285916, 4.5192446135509377, 6.5013783968917558], [-1.8415665660228528, 2.2793559326176274, 1.9992596344623506, -8.5893974947757794], [4.8134028158724087, 1.9044180526215939, -0.79955829650977206, -0.4044772505589993]], [[-6.5097555937360019, -1.5140754532842617, 0.73157501755404475, 3.0837724715494019], [0.95359705362404057, 2.8202193459632499, 3.5924533609769034, -1.277180796765284], [-0.3955334184257504, 0.0050506136763184273, 0.58781812203101946, -0.42403247043168557]]], [[[-1.8178398882376161, -2.7271961540258225, 3.9731373182018928, 3.6202808875879162], [5.5647195262500695, 3.7255448027565556, -3.2648855541018094, -2.9222895259695862], [6.531637462773304, -4.9916787301327989, -1.327585431754331, 2.9481122703168552]], [[0.056337571810183285, 0.8673976183865717, 4.864147622729277, -1.4659334719567254], [-1.2031769487825157, -5.7007541200546967, -2.2287950141724391, -3.5746326467853149], [2.7677747101220902, -1.0717182585131484, -4.2130928150320806, -3.074497475850209]]]])+(1.-msk_ref)*numarray.array([[[[-7.4805314727536532, 1.0035753714947382, -0.97820576988197594, 3.7826403417460766], [-0.99890911083469014, -1.4188148095274231, -8.4767079158589063, 6.1830533968470851], [5.2419524427406401, 5.9620899625453498, -0.10201173949484765, -6.1304649362029764]], [[-7.0295387626880341, 8.8466397590485535, -5.4070454203083784, 1.7904155682147911], [-0.16819804833742413, 0.87278489872699971, 4.5680132463978316, -2.1371810013424812], [-2.4935981506749334, 3.1991929348419248, 2.913759997167725, 8.0099824728304974]]], [[[1.2531773517352374, -5.8026871498163022, 0.13848628271014274, 3.3304567398411988], [4.432070513493982, -1.9047200430619702, 3.2388003538262611, -0.8184486884073614], [-1.6336373153939654, -4.6202795261326202, -0.78337808148149035, 1.603772394464599]], [[-1.341646972207343, -2.3607979126189456, 1.6787829235145031, -5.9785574808275079], [6.6017932715382353, -1.6649994315103376, -1.4823212473934584, -4.606681487374618], [-4.2476917450544764, 1.6995427006015387, -6.5605591653550706, 0.32073657050820437]]], [[[-1.7730676243388275, 7.9972362558977679, 4.4461132498661051, 3.4316849034443218], [2.2173753712329836, -0.41307482008260976, -3.5299320566623718, 1.6362114667033225], [-6.0827733799459427, -5.5463464790455532, -7.4328806629799953, -1.452937452485096]], [[2.1846728602284715, 4.7637127129947459, 6.3029698916460299, -2.3228081771870217], [5.8086983712290587, -3.4713126174624485, -6.7845214982568729, 1.3306093287724625], [4.4272911907031087, 1.2305517200832572, -0.1467845148343363, -2.8316839366466682]]]])        ref=msk_ref*numarray.array([[[[1.5133134523603449, 7.8631643224193422, 2.6090246108430017, -3.2781219054490207], [3.4272597947368855, -5.0010863568878241, 0.5260709159178063, -0.74144750181112862], [1.0942405117018996, -3.997810623925524, 1.8609869824420011, 1.036719365996011]], [[-0.64164869568269545, -7.4150913920940775, 2.6050259502205959, 5.4772618692787924], [-7.6691996882270832, 0.38822868374474684, 2.9847535832635979, -2.8943517263064811], [-2.5998635481348535, 1.3197434041975873, 6.5425069835909397, -0.026009683739036227]]], [[[0.98412326169087194, -4.2168500456285916, 4.5192446135509377, 6.5013783968917558], [-1.8415665660228528, 2.2793559326176274, 1.9992596344623506, -8.5893974947757794], [4.8134028158724087, 1.9044180526215939, -0.79955829650977206, -0.4044772505589993]], [[-6.5097555937360019, -1.5140754532842617, 0.73157501755404475, 3.0837724715494019], [0.95359705362404057, 2.8202193459632499, 3.5924533609769034, -1.277180796765284], [-0.3955334184257504, 0.0050506136763184273, 0.58781812203101946, -0.42403247043168557]]], [[[-1.8178398882376161, -2.7271961540258225, 3.9731373182018928, 3.6202808875879162], [5.5647195262500695, 3.7255448027565556, -3.2648855541018094, -2.9222895259695862], [6.531637462773304, -4.9916787301327989, -1.327585431754331, 2.9481122703168552]], [[0.056337571810183285, 0.8673976183865717, 4.864147622729277, -1.4659334719567254], [-1.2031769487825157, -5.7007541200546967, -2.2287950141724391, -3.5746326467853149], [2.7677747101220902, -1.0717182585131484, -4.2130928150320806, -3.074497475850209]]]])+(1.-msk_ref)*numarray.array([[[[-7.4805314727536532, 1.0035753714947382, -0.97820576988197594, 3.7826403417460766], [-0.99890911083469014, -1.4188148095274231, -8.4767079158589063, 6.1830533968470851], [5.2419524427406401, 5.9620899625453498, -0.10201173949484765, -6.1304649362029764]], [[-7.0295387626880341, 8.8466397590485535, -5.4070454203083784, 1.7904155682147911], [-0.16819804833742413, 0.87278489872699971, 4.5680132463978316, -2.1371810013424812], [-2.4935981506749334, 3.1991929348419248, 2.913759997167725, 8.0099824728304974]]], [[[1.2531773517352374, -5.8026871498163022, 0.13848628271014274, 3.3304567398411988], [4.432070513493982, -1.9047200430619702, 3.2388003538262611, -0.8184486884073614], [-1.6336373153939654, -4.6202795261326202, -0.78337808148149035, 1.603772394464599]], [[-1.341646972207343, -2.3607979126189456, 1.6787829235145031, -5.9785574808275079], [6.6017932715382353, -1.6649994315103376, -1.4823212473934584, -4.606681487374618], [-4.2476917450544764, 1.6995427006015387, -6.5605591653550706, 0.32073657050820437]]], [[[-1.7730676243388275, 7.9972362558977679, 4.4461132498661051, 3.4316849034443218], [2.2173753712329836, -0.41307482008260976, -3.5299320566623718, 1.6362114667033225], [-6.0827733799459427, -5.5463464790455532, -7.4328806629799953, -1.452937452485096]], [[2.1846728602284715, 4.7637127129947459, 6.3029698916460299, -2.3228081771870217], [5.8086983712290587, -3.4713126174624485, -6.7845214982568729, 1.3306093287724625], [4.4272911907031087, 1.2305517200832572, -0.1467845148343363, -2.8316839366466682]]]])
1855        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
1856        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 2162  class Test_util_binary_with_tagged_data( Line 2182  class Test_util_binary_with_tagged_data(
2182        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2183     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2184     def test_add_expandedData_rank0_taggedData_rank0(self):     def test_add_expandedData_rank0_taggedData_rank0(self):
2185        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2186        arg0=msk_arg0*(-1.03310837896)+(1.-msk_arg0)*(-2.93083787521)        arg0=msk_arg0*(-1.03310837896)+(1.-msk_arg0)*(-2.93083787521)
2187        arg1=Data(0.120844245544,self.functionspace)        arg1=Data(0.120844245544,self.functionspace)
2188        arg1.setTaggedValue(1,-0.391532244649)        arg1.setTaggedValue(1,-0.391532244649)
2189        res=add(arg0,arg1)        res=add(arg0,arg1)
2190        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2191        ref=msk_ref*(-0.912264133412)+(1.-msk_ref)*(-3.32237011986)        ref=msk_ref*(-0.912264133412)+(1.-msk_ref)*(-3.32237011986)
2192        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2193        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
2194        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2195     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2196     def test_add_expandedData_rank1_taggedData_rank0(self):     def test_add_expandedData_rank1_taggedData_rank0(self):
2197        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2198        arg0=msk_arg0*numarray.array([-2.6863588999045405, 4.9630572611730148])+(1.-msk_arg0)*numarray.array([-0.88329213528492012, 3.8993768471950236])        arg0=msk_arg0*numarray.array([-2.6863588999045405, 4.9630572611730148])+(1.-msk_arg0)*numarray.array([-0.88329213528492012, 3.8993768471950236])
2199        arg1=Data(-3.40541093487,self.functionspace)        arg1=Data(-3.40541093487,self.functionspace)
2200        arg1.setTaggedValue(1,2.66611032331)        arg1.setTaggedValue(1,2.66611032331)
2201        res=add(arg0,arg1)        res=add(arg0,arg1)
2202        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2203        ref=msk_ref*numarray.array([-6.0917698347751879, 1.5576463263023674])+(1.-msk_ref)*numarray.array([1.782818188020264, 6.5654871705002078])        ref=msk_ref*numarray.array([-6.0917698347751879, 1.5576463263023674])+(1.-msk_ref)*numarray.array([1.782818188020264, 6.5654871705002078])
2204        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2205        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
2206        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2207     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2208     def test_add_expandedData_rank0_taggedData_rank1(self):     def test_add_expandedData_rank0_taggedData_rank1(self):
2209        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2210        arg0=msk_arg0*(1.52905500568)+(1.-msk_arg0)*(-3.96550203639)        arg0=msk_arg0*(1.52905500568)+(1.-msk_arg0)*(-3.96550203639)
2211        arg1=Data(numarray.array([1.2862368863353568, -1.7557746048521015]),self.functionspace)        arg1=Data(numarray.array([1.2862368863353568, -1.7557746048521015]),self.functionspace)
2212        arg1.setTaggedValue(1,numarray.array([-4.3504544426870373, 2.4233497178021768]))        arg1.setTaggedValue(1,numarray.array([-4.3504544426870373, 2.4233497178021768]))
2213        res=add(arg0,arg1)        res=add(arg0,arg1)
2214        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2215        ref=msk_ref*numarray.array([2.8152918920128522, -0.22671959917460605])+(1.-msk_ref)*numarray.array([-8.3159564790796363, -1.5421523185904218])        ref=msk_ref*numarray.array([2.8152918920128522, -0.22671959917460605])+(1.-msk_ref)*numarray.array([-8.3159564790796363, -1.5421523185904218])
2216        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2217        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
2218        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2219     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2220     def test_add_expandedData_rank2_taggedData_rank0(self):     def test_add_expandedData_rank2_taggedData_rank0(self):
2221        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2222        arg0=msk_arg0*numarray.array([[1.6256104815347472, -2.9235188039259477, 0.21620249307174433, 1.9974537411954074, -3.2462036490675708], [-2.1140221895885047, -3.3905390725020101, -0.42627454536187059, -2.9726806778896844, -1.7375617012980662], [0.053785412676125688, -1.1850080670938223, 4.7588762046718198, -0.22337076342027729, 0.33074012175291134], [-4.6487893900070425, -3.8511410886131268, -0.95585743535831291, -2.3490810913011648, -0.28704001598254436]])+(1.-msk_arg0)*numarray.array([[1.0023624249594123, 2.7616485043039942, 0.38371415391669128, 1.8683030187052658, -0.36842273187492047], [-3.1981717002743135, 4.8380590093032652, -2.9757356388040979, -1.7708280309257685, 2.2882972651094402], [-3.9113818365243134, -2.7999509654337573, -1.0381017496035461, -2.1632185090919211, -1.6072730248860765], [-3.5924815270847867, 1.4881985447425903, 4.9692386523054051, -4.222288118672207, -1.9156307017794849]])        arg0=msk_arg0*numarray.array([[1.6256104815347472, -2.9235188039259477, 0.21620249307174433, 1.9974537411954074, -3.2462036490675708], [-2.1140221895885047, -3.3905390725020101, -0.42627454536187059, -2.9726806778896844, -1.7375617012980662], [0.053785412676125688, -1.1850080670938223, 4.7588762046718198, -0.22337076342027729, 0.33074012175291134], [-4.6487893900070425, -3.8511410886131268, -0.95585743535831291, -2.3490810913011648, -0.28704001598254436]])+(1.-msk_arg0)*numarray.array([[1.0023624249594123, 2.7616485043039942, 0.38371415391669128, 1.8683030187052658, -0.36842273187492047], [-3.1981717002743135, 4.8380590093032652, -2.9757356388040979, -1.7708280309257685, 2.2882972651094402], [-3.9113818365243134, -2.7999509654337573, -1.0381017496035461, -2.1632185090919211, -1.6072730248860765], [-3.5924815270847867, 1.4881985447425903, 4.9692386523054051, -4.222288118672207, -1.9156307017794849]])
2223        arg1=Data(-0.567419588516,self.functionspace)        arg1=Data(-0.567419588516,self.functionspace)
2224        arg1.setTaggedValue(1,-2.64634400894)        arg1.setTaggedValue(1,-2.64634400894)
2225        res=add(arg0,arg1)        res=add(arg0,arg1)
2226        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2227        ref=msk_ref*numarray.array([[1.0581908930182529, -3.490938392442442, -0.35121709544474999, 1.4300341526789131, -3.8136232375840651], [-2.6814417781049991, -3.9579586610185045, -0.99369413387836492, -3.5401002664061787, -2.3049812898145605], [-0.51363417584036863, -1.7524276556103167, 4.1914566161553255, -0.79079035193677161, -0.23667946676358298], [-5.2162089785235368, -4.4185606771296211, -1.5232770238748072, -2.9165006798176591, -0.85445960449903868]])+(1.-msk_ref)*numarray.array([[-1.6439815839819114, 0.11530449536267051, -2.2626298550246324, -0.77804099023605788, -3.0147667408162442], [-5.8445157092156368, 2.1917150003619414, -5.6220796477454211, -4.4171720398670917, -0.35804674383188351], [-6.5577258454656366, -5.446294974375081, -3.6844457585448698, -4.8095625180332444, -4.2536170338273998], [-6.2388255360261109, -1.1581454641987334, 2.3228946433640814, -6.8686321276135303, -4.5619747107208086]])        ref=msk_ref*numarray.array([[1.0581908930182529, -3.490938392442442, -0.35121709544474999, 1.4300341526789131, -3.8136232375840651], [-2.6814417781049991, -3.9579586610185045, -0.99369413387836492, -3.5401002664061787, -2.3049812898145605], [-0.51363417584036863, -1.7524276556103167, 4.1914566161553255, -0.79079035193677161, -0.23667946676358298], [-5.2162089785235368, -4.4185606771296211, -1.5232770238748072, -2.9165006798176591, -0.85445960449903868]])+(1.-msk_ref)*numarray.array([[-1.6439815839819114, 0.11530449536267051, -2.2626298550246324, -0.77804099023605788, -3.0147667408162442], [-5.8445157092156368, 2.1917150003619414, -5.6220796477454211, -4.4171720398670917, -0.35804674383188351], [-6.5577258454656366, -5.446294974375081, -3.6844457585448698, -4.8095625180332444, -4.2536170338273998], [-6.2388255360261109, -1.1581454641987334, 2.3228946433640814, -6.8686321276135303, -4.5619747107208086]])
2228        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2229        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
2230        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2231     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2232     def test_add_expandedData_rank0_taggedData_rank2(self):     def test_add_expandedData_rank0_taggedData_rank2(self):
2233        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2234        arg0=msk_arg0*(2.25530005985)+(1.-msk_arg0)*(0.260364533937)        arg0=msk_arg0*(2.25530005985)+(1.-msk_arg0)*(0.260364533937)
2235        arg1=Data(numarray.array([[2.2221110093974463, -4.8333605107744857, -4.213763389359146, 0.74530624128267675, -4.7513184284685561], [-2.6880675710807211, -0.14241466245488699, 4.7047466702758882, 4.135352165681752, 4.2902757789149888], [0.11942449760890383, 1.9417985659870398, -3.6438217833105657, -1.9214574833433531, 3.4027811767243605], [-1.6256674207202026, -1.6102214687394389, -1.0400849774244278, -3.416787503474751, -4.5365567885014553]]),self.functionspace)        arg1=Data(numarray.array([[2.2221110093974463, -4.8333605107744857, -4.213763389359146, 0.74530624128267675, -4.7513184284685561], [-2.6880675710807211, -0.14241466245488699, 4.7047466702758882, 4.135352165681752, 4.2902757789149888], [0.11942449760890383, 1.9417985659870398, -3.6438217833105657, -1.9214574833433531, 3.4027811767243605], [-1.6256674207202026, -1.6102214687394389, -1.0400849774244278, -3.416787503474751, -4.5365567885014553]]),self.functionspace)
2236        arg1.setTaggedValue(1,numarray.array([[2.03570438591189, -0.07846466697830845, 1.5499293042981392, -0.66835066713275548, -2.9781622034789135], [1.8454121349776811, 0.23611426434365956, -2.3073401743423627, 4.4022233313202861, -3.253219365136033], [3.9587062511467224, 4.2785747897493351, -2.4791579136433484, 0.75134804994817639, -3.2899266572867703], [1.5691846682016388, 3.6625379305781927, -1.0611881461477357, -2.4621201794868597, 0.99038606273015173]]))        arg1.setTaggedValue(1,numarray.array([[2.03570438591189, -0.07846466697830845, 1.5499293042981392, -0.66835066713275548, -2.9781622034789135], [1.8454121349776811, 0.23611426434365956, -2.3073401743423627, 4.4022233313202861, -3.253219365136033], [3.9587062511467224, 4.2785747897493351, -2.4791579136433484, 0.75134804994817639, -3.2899266572867703], [1.5691846682016388, 3.6625379305781927, -1.0611881461477357, -2.4621201794868597, 0.99038606273015173]]))
2237        res=add(arg0,arg1)        res=add(arg0,arg1)
2238        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2239        ref=msk_ref*numarray.array([[4.477411069245397, -2.578060450926535, -1.9584633295111953, 3.0006063011306274, -2.4960183686206054], [-0.43276751123277046, 2.1128853973930637, 6.9600467301238389, 6.3906522255297027, 6.5455758387629395], [2.3747245574568545, 4.1970986258349905, -1.388521723462615, 0.33384257650459759, 5.6580812365723112], [0.62963263912774803, 0.64507859110851173, 1.2152150824235228, -1.1614874436268003, -2.2812567286535046]])+(1.-msk_ref)*numarray.array([[2.2960689198491497, 0.18189986695895133, 1.810293838235399, -0.4079861331954957, -2.7177976695416537], [2.1057766689149409, 0.49647879828091934, -2.0469756404051029, 4.6625878652575459, -2.9928548311987733], [4.2190707850839821, 4.5389393236865949, -2.2187933797060886, 1.0117125838854362, -3.0295621233495105], [1.8295492021388986, 3.9229024645154524, -0.80082361221047593, -2.2017556455495999, 1.2507505966674115]])        ref=msk_ref*numarray.array([[4.477411069245397, -2.578060450926535, -1.9584633295111953, 3.0006063011306274, -2.4960183686206054], [-0.43276751123277046, 2.1128853973930637, 6.9600467301238389, 6.3906522255297027, 6.5455758387629395], [2.3747245574568545, 4.1970986258349905, -1.388521723462615, 0.33384257650459759, 5.6580812365723112], [0.62963263912774803, 0.64507859110851173, 1.2152150824235228, -1.1614874436268003, -2.2812567286535046]])+(1.-msk_ref)*numarray.array([[2.2960689198491497, 0.18189986695895133, 1.810293838235399, -0.4079861331954957, -2.7177976695416537], [2.1057766689149409, 0.49647879828091934, -2.0469756404051029, 4.6625878652575459, -2.9928548311987733], [4.2190707850839821, 4.5389393236865949, -2.2187933797060886, 1.0117125838854362, -3.0295621233495105], [1.8295492021388986, 3.9229024645154524, -0.80082361221047593, -2.2017556455495999, 1.2507505966674115]])
2240        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2241        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
2242        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2243     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2244     def test_add_expandedData_rank3_taggedData_rank0(self):     def test_add_expandedData_rank3_taggedData_rank0(self):
2245        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2246        arg0=msk_arg0*numarray.array([[[1.4455488816981257, -3.475534335963224], [-1.6744218759875116, -2.9992169164822235]], [[3.8190704987080188, 4.2794651266593302], [-4.4043846921148742, -4.0792186017022578]], [[1.3814790384611833, 4.4212331204590729], [-3.4653504679637273, -2.6952444924391559]], [[4.0028823708844179, 4.6436955758038927], [4.4939170705109621, -0.14874629976667109]], [[4.6475316050696325, -3.328007687706668], [-2.3346323371397149, 3.7500529373659912]], [[-1.4820245446724356, 2.8211260449202511], [4.9221457857943953, -1.1156915753499574]]])+(1.-msk_arg0)*numarray.array([[[-0.7516280051953359, 0.85749911688086122], [-2.4414764352819796, 2.5904453878673595]], [[-4.4515947556725601, 1.2957637058366469], [-4.7135805933566015, -1.1783891026342994]], [[-4.46380875220086, -1.6783508537600245], [3.2419781927587756, 2.3952648079872372]], [[-2.0522300103219084, 0.2840824406465785], [-1.3481639541945301, -1.1744646492155928]], [[-2.3854869597007222, -4.339236104507358], [-2.4751678901400673, 1.2903873198066949]], [[0.67712428309516959, 2.8020427601812816], [-3.5907352678976601, 3.5596561349349507]]])        arg0=msk_arg0*numarray.array([[[1.4455488816981257, -3.475534335963224], [-1.6744218759875116, -2.9992169164822235]], [[3.8190704987080188, 4.2794651266593302], [-4.4043846921148742, -4.0792186017022578]], [[1.3814790384611833, 4.4212331204590729], [-3.4653504679637273, -2.6952444924391559]], [[4.0028823708844179, 4.6436955758038927], [4.4939170705109621, -0.14874629976667109]], [[4.6475316050696325, -3.328007687706668], [-2.3346323371397149, 3.7500529373659912]], [[-1.4820245446724356, 2.8211260449202511], [4.9221457857943953, -1.1156915753499574]]])+(1.-msk_arg0)*numarray.array([[[-0.7516280051953359, 0.85749911688086122], [-2.4414764352819796, 2.5904453878673595]], [[-4.4515947556725601, 1.2957637058366469], [-4.7135805933566015, -1.1783891026342994]], [[-4.46380875220086, -1.6783508537600245], [3.2419781927587756, 2.3952648079872372]], [[-2.0522300103219084, 0.2840824406465785], [-1.3481639541945301, -1.1744646492155928]], [[-2.3854869597007222, -4.339236104507358], [-2.4751678901400673, 1.2903873198066949]], [[0.67712428309516959, 2.8020427601812816], [-3.5907352678976601, 3.5596561349349507]]])
2247        arg1=Data(-0.51697865056,self.functionspace)        arg1=Data(-0.51697865056,self.functionspace)
2248        arg1.setTaggedValue(1,4.33547276491)        arg1.setTaggedValue(1,4.33547276491)
2249        res=add(arg0,arg1)        res=add(arg0,arg1)
2250        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2251        ref=msk_ref*numarray.array([[[0.9285702311384938, -3.9925129865228559], [-2.1914005265471435, -3.5161955670418554]], [[3.302091848148387, 3.7624864760996983], [-4.921363342674506, -4.5961972522618897]], [[0.86450038790155137, 3.904254469899441], [-3.9823291185233591, -3.2122231429987878]], [[3.485903720324786, 4.1267169252442608], [3.9769384199513302, -0.66572495032630297]], [[4.1305529545100006, -3.8449863382662999], [-2.8516109876993467, 3.2330742868063593]], [[-1.9990031952320675, 2.3041473943606192], [4.4051671352347634, -1.6326702259095893]]])+(1.-msk_ref)*numarray.array([[[3.5838447597168273, 5.1929718817930244], [1.8939963296301836, 6.9259181527795226]], [[-0.11612199076039698, 5.6312364707488101], [-0.37810782844443835, 3.1570836622778637]], [[-0.12833598728869688, 2.6571219111521387], [7.5774509576709388, 6.7307375728994003]], [[2.2832427545902547, 4.6195552055587417], [2.9873088107176331, 3.1610081156965704]], [[1.9499858052114409, -0.0037633395951948145], [1.8603048747720958, 5.625860084718858]], [[5.0125970480073327, 7.1375155250934448], [0.74473749701450309, 7.8951288998471139]]])        ref=msk_ref*numarray.array([[[0.9285702311384938, -3.9925129865228559], [-2.1914005265471435, -3.5161955670418554]], [[3.302091848148387, 3.7624864760996983], [-4.921363342674506, -4.5961972522618897]], [[0.86450038790155137, 3.904254469899441], [-3.9823291185233591, -3.2122231429987878]], [[3.485903720324786, 4.1267169252442608], [3.9769384199513302, -0.66572495032630297]], [[4.1305529545100006, -3.8449863382662999], [-2.8516109876993467, 3.2330742868063593]], [[-1.9990031952320675, 2.3041473943606192], [4.4051671352347634, -1.6326702259095893]]])+(1.-msk_ref)*numarray.array([[[3.5838447597168273, 5.1929718817930244], [1.8939963296301836, 6.9259181527795226]], [[-0.11612199076039698, 5.6312364707488101], [-0.37810782844443835, 3.1570836622778637]], [[-0.12833598728869688, 2.6571219111521387], [7.5774509576709388, 6.7307375728994003]], [[2.2832427545902547, 4.6195552055587417], [2.9873088107176331, 3.1610081156965704]], [[1.9499858052114409, -0.0037633395951948145], [1.8603048747720958, 5.625860084718858]], [[5.0125970480073327, 7.1375155250934448], [0.74473749701450309, 7.8951288998471139]]])
2252        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2253        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
2254        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2255     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2256     def test_add_expandedData_rank0_taggedData_rank3(self):     def test_add_expandedData_rank0_taggedData_rank3(self):
2257        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2258        arg0=msk_arg0*(4.53300787649)+(1.-msk_arg0)*(2.05672563735)        arg0=msk_arg0*(4.53300787649)+(1.-msk_arg0)*(2.05672563735)
2259        arg1=Data(numarray.array([[[-4.56543486099498, 0.076638825374032216], [-4.9942474289112946, 1.3042730725004272]], [[1.4128350362090547, -1.6072426411467946], [2.5701487647376915, -4.6037804132692264]], [[2.096757592101822, -2.9897051896814575], [2.3754905397963064, -4.4856927168673515]], [[2.8101237422128724, 2.7181405801047234], [4.6013084553104751, -0.68740928151271241]], [[-4.0947914521126147, 1.7235660725025026], [-3.9525637074760542, 2.5881275326356876]], [[2.4843690542052776, 1.1756760994197464], [-4.4446947427603645, 1.4771194106622616]]]),self.functionspace)        arg1=Data(numarray.array([[[-4.56543486099498, 0.076638825374032216], [-4.9942474289112946, 1.3042730725004272]], [[1.4128350362090547, -1.6072426411467946], [2.5701487647376915, -4.6037804132692264]], [[2.096757592101822, -2.9897051896814575], [2.3754905397963064, -4.4856927168673515]], [[2.8101237422128724, 2.7181405801047234], [4.6013084553104751, -0.68740928151271241]], [[-4.0947914521126147, 1.7235660725025026], [-3.9525637074760542, 2.5881275326356876]], [[2.4843690542052776, 1.1756760994197464], [-4.4446947427603645, 1.4771194106622616]]]),self.functionspace)
2260        arg1.setTaggedValue(1,numarray.array([[[4.3728175820463893, -0.72145871656354199], [1.4830537172248537, -4.1968052861232108]], [[0.56539308282251888, -1.4639662272118237], [3.3960837362704623, 4.3730277067841232]], [[-1.0268171425480466, -4.0333679206382822], [3.7123751158570713, 4.0860610966091286]], [[-3.6808624175195392, -4.4760721512098129], [-4.0372699622881614, 1.8267713568007151]], [[-3.745550144712305, 2.9933606420108969], [2.7183664496024829, -0.35459854013334002]], [[4.1576451507173893, -2.0337676324101093], [2.4121538448464586, 2.3836298919565628]]]))        arg1.setTaggedValue(1,numarray.array([[[4.3728175820463893, -0.72145871656354199], [1.4830537172248537, -4.1968052861232108]], [[0.56539308282251888, -1.4639662272118237], [3.3960837362704623, 4.3730277067841232]], [[-1.0268171425480466, -4.0333679206382822], [3.7123751158570713, 4.0860610966091286]], [[-3.6808624175195392, -4.4760721512098129], [-4.0372699622881614, 1.8267713568007151]], [[-3.745550144712305, 2.9933606420108969], [2.7183664496024829, -0.35459854013334002]], [[4.1576451507173893, -2.0337676324101093], [2.4121538448464586, 2.3836298919565628]]]))
2261        res=add(arg0,arg1)        res=add(arg0,arg1)
2262        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2263        ref=msk_ref*numarray.array([[[-0.032426984504539291, 4.6096467018644729], [-0.4612395524208539, 5.8372809489908679]], [[5.9458429126994954, 2.9257652353436461], [7.1031566412281322, -0.0707725367787857]], [[6.6297654685922627, 1.5433026868089832], [6.9084984162867471, 0.047315159623089187]], [[7.3431316187033131, 7.251148456595164], [9.1343163318009157, 3.8455985949777283]], [[0.43821642437782593, 6.2565739489929433], [0.58044416901438645, 7.1211354091261283]], [[7.0173769306957183, 5.7086839759101871], [0.08831313373007621, 6.0101272871527023]]])+(1.-msk_ref)*numarray.array([[[6.4295432193992035, 1.3352669207892722], [3.5397793545776679, -2.1400796487703966]], [[2.6221187201753331, 0.59275941014099054], [5.4528093736232766, 6.4297533441369374]], [[1.0299084948047676, -1.976642283285468], [5.7691007532098855, 6.1427867339619429]], [[-1.624136780166725, -2.4193465138569987], [-1.9805443249353472, 3.8834969941535293]], [[-1.6888245073594907, 5.0500862793637111], [4.7750920869552971, 1.7021270972194742]], [[6.2143707880702035, 0.022958004942704946], [4.4688794821992728, 4.440355529309377]]])        ref=msk_ref*numarray.array([[[-0.032426984504539291, 4.6096467018644729], [-0.4612395524208539, 5.8372809489908679]], [[5.9458429126994954, 2.9257652353436461], [7.1031566412281322, -0.0707725367787857]], [[6.6297654685922627, 1.5433026868089832], [6.9084984162867471, 0.047315159623089187]], [[7.3431316187033131, 7.251148456595164], [9.1343163318009157, 3.8455985949777283]], [[0.43821642437782593, 6.2565739489929433], [0.58044416901438645, 7.1211354091261283]], [[7.0173769306957183, 5.7086839759101871], [0.08831313373007621, 6.0101272871527023]]])+(1.-msk_ref)*numarray.array([[[6.4295432193992035, 1.3352669207892722], [3.5397793545776679, -2.1400796487703966]], [[2.6221187201753331, 0.59275941014099054], [5.4528093736232766, 6.4297533441369374]], [[1.0299084948047676, -1.976642283285468], [5.7691007532098855, 6.1427867339619429]], [[-1.624136780166725, -2.4193465138569987], [-1.9805443249353472, 3.8834969941535293]], [[-1.6888245073594907, 5.0500862793637111], [4.7750920869552971, 1.7021270972194742]], [[6.2143707880702035, 0.022958004942704946], [4.4688794821992728, 4.440355529309377]]])
2264        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2265        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
2266        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2267     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2268     def test_add_expandedData_rank4_taggedData_rank0(self):     def test_add_expandedData_rank4_taggedData_rank0(self):
2269        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2270        arg0=msk_arg0*numarray.array([[[[4.395522234676406, -1.5411213651190234, 3.9310037858134699, 0.16347833612470986], [-4.4595640413029844, 0.083979262502337448, 2.6771227944717868, -3.5879274772884484], [4.5442594574854169, 3.8510628156958546, -3.5655725461725285, 2.5059227689590537]], [[3.5925813245356082, -3.870927298917163, 0.92444303840825093, 4.2553299877365802], [4.3552553355641361, -4.1680392849832817, 0.22179855803738402, 1.7824670348318561], [4.4086429487940944, 0.75464544082847773, 2.1252117039911402, -4.1513499624209436]]], [[[2.7508057136384965, -1.6800371152578633, -3.5946684685806671, 0.27105762348952123], [-0.73728930160639283, -1.3737728293760556, -4.5593927827745127, 1.5426275375096381], [4.8479831795973904, -4.6947585522166788, 2.3617286036686309, -1.0581222024467896]], [[3.0717964529012036, 0.977940852402571, -2.2718650506824343, -2.8978722585772489], [-4.256350954659859, 0.70686120352209336, 3.1442675178842396, -2.9302586617343995], [0.76019876416163079, -1.587486188323747, 1.4015363971158141, 0.0033963959330218785]]], [[[3.2814049367706524, -0.92829509496893525, -3.87845453014278, 0.85038421187770119], [-2.550657968405857, 1.1095126624004141, 2.1769686365802476, 2.4166271397591039], [-2.6036002664465805, -0.44750261883912312, -2.3782459944675738, 4.1353876564040579]], [[1.6853059737364706, -1.2448978452464732, -2.3855127090111283, -1.6645668852209985], [-3.0097688982299076, -0.013124824965880855, 3.6453020665325884, -3.1583501618234697], [2.0922717347603879, 4.4067541673189172, -2.0622129701363399, 3.4056721858505838]]]])+(1.-msk_arg0)*numarray.array([[[[-0.037860333764891507, -0.97757553607426217, -0.44367688494349711, -1.9451891190671109], [3.8033711298118238, -3.3683033920785532, -3.7446349734101139, 2.2837730911137815], [0.97832524709648983, 2.8102420196228826, -3.366977295946405, 4.863959353965793]], [[4.2870505686195415, -0.8968199973223987, -0.54652409155807735, -1.9537664357713682], [-2.0494089555419901, 0.36406941989197072, -1.1519829984508609, 2.7066422516916999], [1.7908724038515675, 4.4185528781382715, 0.35029381403248205, 3.306000622993249]]], [[[-3.3911221416963966, -2.9250913866338655, -0.72990692119846212, -3.2637428244555435], [-1.7563628123139807, 2.4958991792951091, -0.14438371845722564, -3.6734159241479536], [4.9802744229738103, 1.778802027636849, 1.270791974923327, 0.083817622692087923]], [[4.3400798962991995, 3.0922314884618594, 0.66442731803325028, -1.8180874750577027], [2.8385686831636301, 4.0576129499345299, 4.7087122014804379, 1.8670981655510648], [4.1192752036661542, 0.73281018196898895, -2.2913936866157556, -0.26673583225501574]]], [[[-3.9062729022237219, -3.0231316444693155, 3.8362608234570192, -2.2655971996431337], [-4.9970635383055297, -0.17454295719386792, 2.2882492695955499, -4.7310422539406796], [-2.9436812973578053, 1.8967674184025851, 4.2294649562328317, -3.5130733750907939]], [[2.9925284734700419, -2.2917915928973653, 2.6929089865387645, -3.5691691752033403], [-4.7141837000704401, -3.5781438408120292, -2.1103188974435128, 3.8873351510520298], [4.7429217377491, -2.516777252147171, -2.8444797942229605, -3.7387777035655221]]]])        arg0=msk_arg0*numarray.array([[[[4.395522234676406, -1.5411213651190234, 3.9310037858134699, 0.16347833612470986], [-4.4595640413029844, 0.083979262502337448, 2.6771227944717868, -3.5879274772884484], [4.5442594574854169, 3.8510628156958546, -3.5655725461725285, 2.5059227689590537]], [[3.5925813245356082, -3.870927298917163, 0.92444303840825093, 4.2553299877365802], [4.3552553355641361, -4.1680392849832817, 0.22179855803738402, 1.7824670348318561], [4.4086429487940944, 0.75464544082847773, 2.1252117039911402, -4.1513499624209436]]], [[[2.7508057136384965, -1.6800371152578633, -3.5946684685806671, 0.27105762348952123], [-0.73728930160639283, -1.3737728293760556, -4.5593927827745127, 1.5426275375096381], [4.8479831795973904, -4.6947585522166788, 2.3617286036686309, -1.0581222024467896]], [[3.0717964529012036, 0.977940852402571, -2.2718650506824343, -2.8978722585772489], [-4.256350954659859, 0.70686120352209336, 3.1442675178842396, -2.9302586617343995], [0.76019876416163079, -1.587486188323747, 1.4015363971158141, 0.0033963959330218785]]], [[[3.2814049367706524, -0.92829509496893525, -3.87845453014278, 0.85038421187770119], [-2.550657968405857, 1.1095126624004141, 2.1769686365802476, 2.4166271397591039], [-2.6036002664465805, -0.44750261883912312, -2.3782459944675738, 4.1353876564040579]], [[1.6853059737364706, -1.2448978452464732, -2.3855127090111283, -1.6645668852209985], [-3.0097688982299076, -0.013124824965880855, 3.6453020665325884, -3.1583501618234697], [2.0922717347603879, 4.4067541673189172, -2.0622129701363399, 3.4056721858505838]]]])+(1.-msk_arg0)*numarray.array([[[[-0.037860333764891507, -0.97757553607426217, -0.44367688494349711, -1.9451891190671109], [3.8033711298118238, -3.3683033920785532, -3.7446349734101139, 2.2837730911137815], [0.97832524709648983, 2.8102420196228826, -3.366977295946405, 4.863959353965793]], [[4.2870505686195415, -0.8968199973223987, -0.54652409155807735, -1.9537664357713682], [-2.0494089555419901, 0.36406941989197072, -1.1519829984508609, 2.7066422516916999], [1.7908724038515675, 4.4185528781382715, 0.35029381403248205, 3.306000622993249]]], [[[-3.3911221416963966, -2.9250913866338655, -0.72990692119846212, -3.2637428244555435], [-1.7563628123139807, 2.4958991792951091, -0.14438371845722564, -3.6734159241479536], [4.9802744229738103, 1.778802027636849, 1.270791974923327, 0.083817622692087923]], [[4.3400798962991995, 3.0922314884618594, 0.66442731803325028, -1.8180874750577027], [2.8385686831636301, 4.0576129499345299, 4.7087122014804379, 1.8670981655510648], [4.1192752036661542, 0.73281018196898895, -2.2913936866157556, -0.26673583225501574]]], [[[-3.9062729022237219, -3.0231316444693155, 3.8362608234570192, -2.2655971996431337], [-4.9970635383055297, -0.17454295719386792, 2.2882492695955499, -4.7310422539406796], [-2.9436812973578053, 1.8967674184025851, 4.2294649562328317, -3.5130733750907939]], [[2.9925284734700419, -2.2917915928973653, 2.6929089865387645, -3.5691691752033403], [-4.7141837000704401, -3.5781438408120292, -2.1103188974435128, 3.8873351510520298], [4.7429217377491, -2.516777252147171, -2.8444797942229605, -3.7387777035655221]]]])
2271        arg1=Data(-1.62915985788,self.functionspace)        arg1=Data(-1.62915985788,self.functionspace)
2272        arg1.setTaggedValue(1,-2.00719359615)        arg1.setTaggedValue(1,-2.00719359615)
2273        res=add(arg0,arg1)        res=add(arg0,arg1)
2274        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2275        ref=msk_ref*numarray.array([[[[2.7663623768011285, -3.1702812229943009, 2.3018439279381924, -1.4656815217505677], [-6.0887238991782624, -1.5451805953729401, 1.0479629365965093, -5.2170873351637255], [2.9150995996101394, 2.2219029578205771, -5.194732404047806, 0.87676291108377624]], [[1.9634214666603307, -5.500087156792441, -0.70471681946702658, 2.6261701298613027], [2.7260954776888586, -5.7971991428585596, -1.4073612998378935, 0.15330717695657858], [2.7794830909188168, -0.87451441704679977, 0.49605184611586273, -5.7805098202962206]]], [[[1.121645855763219, -3.3091969731331408, -5.2238283264559442, -1.3581022343857563], [-2.3664491594816703, -3.0029326872513331, -6.1885526406497906, -0.086532320365639404], [3.2188233217221129, -6.3239184100919559, 0.7325687457933534, -2.6872820603220671]], [[1.4426365950259261, -0.6512190054727065, -3.9010249085577118, -4.527032116452526], [-5.8855108125351361, -0.92229865435318414, 1.5151076600089621, -4.559418519609677], [-0.86896109371364672, -3.2166460461990245, -0.22762346075946338, -1.6257634619422556]]], [[[1.6522450788953749, -2.5574549528442128, -5.507614388018057, -0.77877564599757632], [-4.1798178262811341, -0.51964719547486338, 0.54780877870497013, 0.78746728188382642], [-4.2327601243218584, -2.0766624767144006, -4.0074058523428508, 2.5062277985287804]], [[0.056146115861193113, -2.8740577031217507, -4.0146725668864054, -3.293726743096276], [-4.6389287561051855, -1.6422846828411584, 2.0161422086573109, -4.7875100196987468], [0.46311187688511035, 2.7775943094436397, -3.6913728280116174, 1.7765123279753063]]]])+(1.-msk_ref)*numarray.array([[[[-2.0450539299180943, -2.984769132227465, -2.4508704810966999, -3.9523827152203137], [1.796177533658621, -5.375496988231756, -5.7518285695633171, 0.27657949496057865], [-1.028868349056713, 0.80304842346967975, -5.3741708920996079, 2.8567657578125902]], [[2.2798569724663387, -2.9040135934756015, -2.5537176877112802, -3.960960031924571], [-4.0566025516951925, -1.6431241762612321, -3.1591765946040637, 0.69944865553849711], [-0.21632119230163527, 2.4113592819850687, -1.6568997821207208, 1.2988070268400462]]], [[[-5.3983157378495994, -4.9322849827870687, -2.7371005173516649, -5.2709364206087468], [-3.7635564084671835, 0.48870558314190626, -2.1515773146104284, -5.6806095203011564], [2.9730808268206075, -0.22839156851635378, -0.73640162122987585, -1.9233759734611149]], [[2.3328863001459967, 1.0850378923086565, -1.3427662781199525, -3.8252810712109055], [0.83137508701042728, 2.0504193537813271, 2.7015186053272351, -0.14009543060213803], [2.1120816075129514, -1.2743834141842139, -4.298587282768958, -2.2739294284082185]]], [[[-5.9134664983769252, -5.0303252406225187, 1.8290672273038164, -4.272790795796336], [-7.004257134458733, -2.1817365533470707, 0.28105567344234705, -6.7382358500938828], [-4.9508748935110081, -0.11042617775061769, 2.2222713600796289, -5.5202669712439967]], [[0.98533487731683911, -4.2989851890505681, 0.68571539038556173, -5.5763627713565427], [-6.7213772962236433, -5.585337436965232, -4.1175124935967151, 1.8801415548988269], [2.7357281415958972, -4.5239708483003742, -4.8516733903761633, -5.7459712997187253]]]])        ref=msk_ref*numarray.array([[[[2.7663623768011285, -3.1702812229943009, 2.3018439279381924, -1.4656815217505677], [-6.0887238991782624, -1.5451805953729401, 1.0479629365965093, -5.2170873351637255], [2.9150995996101394, 2.2219029578205771, -5.194732404047806, 0.87676291108377624]], [[1.9634214666603307, -5.500087156792441, -0.70471681946702658, 2.6261701298613027], [2.7260954776888586, -5.7971991428585596, -1.4073612998378935, 0.15330717695657858], [2.7794830909188168, -0.87451441704679977, 0.49605184611586273, -5.7805098202962206]]], [[[1.121645855763219, -3.3091969731331408, -5.2238283264559442, -1.3581022343857563], [-2.3664491594816703, -3.0029326872513331, -6.1885526406497906, -0.086532320365639404], [3.2188233217221129, -6.3239184100919559, 0.7325687457933534, -2.6872820603220671]], [[1.4426365950259261, -0.6512190054727065, -3.9010249085577118, -4.527032116452526], [-5.8855108125351361, -0.92229865435318414, 1.5151076600089621, -4.559418519609677], [-0.86896109371364672, -3.2166460461990245, -0.22762346075946338, -1.6257634619422556]]], [[[1.6522450788953749, -2.5574549528442128, -5.507614388018057, -0.77877564599757632], [-4.1798178262811341, -0.51964719547486338, 0.54780877870497013, 0.78746728188382642], [-4.2327601243218584, -2.0766624767144006, -4.0074058523428508, 2.5062277985287804]], [[0.056146115861193113, -2.8740577031217507, -4.0146725668864054, -3.293726743096276], [-4.6389287561051855, -1.6422846828411584, 2.0161422086573109, -4.7875100196987468], [0.46311187688511035, 2.7775943094436397, -3.6913728280116174, 1.7765123279753063]]]])+(1.-msk_ref)*numarray.array([[[[-2.0450539299180943, -2.984769132227465, -2.4508704810966999, -3.9523827152203137], [1.796177533658621, -5.375496988231756, -5.7518285695633171, 0.27657949496057865], [-1.028868349056713, 0.80304842346967975, -5.3741708920996079, 2.8567657578125902]], [[2.2798569724663387, -2.9040135934756015, -2.5537176877112802, -3.960960031924571], [-4.0566025516951925, -1.6431241762612321, -3.1591765946040637, 0.69944865553849711], [-0.21632119230163527, 2.4113592819850687, -1.6568997821207208, 1.2988070268400462]]], [[[-5.3983157378495994, -4.9322849827870687, -2.7371005173516649, -5.2709364206087468], [-3.7635564084671835, 0.48870558314190626, -2.1515773146104284, -5.6806095203011564], [2.9730808268206075, -0.22839156851635378, -0.73640162122987585, -1.9233759734611149]], [[2.3328863001459967, 1.0850378923086565, -1.3427662781199525, -3.8252810712109055], [0.83137508701042728, 2.0504193537813271, 2.7015186053272351, -0.14009543060213803], [2.1120816075129514, -1.2743834141842139, -4.298587282768958, -2.2739294284082185]]], [[[-5.9134664983769252, -5.0303252406225187, 1.8290672273038164, -4.272790795796336], [-7.004257134458733, -2.1817365533470707, 0.28105567344234705, -6.7382358500938828], [-4.9508748935110081, -0.11042617775061769, 2.2222713600796289, -5.5202669712439967]], [[0.98533487731683911, -4.2989851890505681, 0.68571539038556173, -5.5763627713565427], [-6.7213772962236433, -5.585337436965232, -4.1175124935967151, 1.8801415548988269], [2.7357281415958972, -4.5239708483003742, -4.8516733903761633, -5.7459712997187253]]]])
2276        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2277        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
2278        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2279     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2280     def test_add_expandedData_rank0_taggedData_rank4(self):     def test_add_expandedData_rank0_taggedData_rank4(self):
2281        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2282        arg0=msk_arg0*(-3.93028872427)+(1.-msk_arg0)*(3.09900093253)        arg0=msk_arg0*(-3.93028872427)+(1.-msk_arg0)*(3.09900093253)
2283        arg1=Data(numarray.array([[[[4.3127811025296019, -0.10155446089171871, -3.4578171106651023, 2.3517024759474019], [2.9209120387303633, -4.2033964881827766, -4.9079595647978271, 1.0109400256709256], [2.0380763518354348, 3.3211869545377901, 2.3508932018741397, -2.9487667482350743]], [[3.7743837312001247, -0.12741475963736448, -0.64289798604236381, -3.1541329933029081], [3.6053402077881795, -1.1232399885754099, 2.6382189842057047, -2.769767957322701], [0.30560606386865174, 2.7818441591549909, -1.6417152075359551, 3.4235680402194557]]], [[[-2.3958889437833006, -0.71851095539702836, 2.9712027545175399, 1.1672964885009707], [4.7815885275992276, 4.1028131517777116, 1.0089885247931187, 4.1868392879539194], [1.9896322525160439, 0.76240718797174445, 2.7497728774693817, 1.9011590586154785]], [[0.52983922979397935, -0.63956327075534602, -2.7300727717011561, -3.4194279448860652], [-2.6032768807289699, -1.222810986634737, 0.12961417631010974, 0.60994665843122053], [-2.2161430557896455, -0.96474990350576384, -3.8181298761718274, -2.3426678549015834]]], [[[1.7283748731355173, 4.2092537835668864, 0.57260832195764078, 0.75853885981269631], [0.047488901748035772, -3.3956381688920101, 3.3517083380288231, 3.8500249672908424], [-0.7132723739740392, 2.1012365360957608, -3.5788744390503711, 1.8813608663921286]], [[0.43980883476294164, -3.8554793287168296, 0.86408373458031651, -1.1870156079804426], [1.291440012244375, 2.3447252139119605, 2.2604319605161729, 2.704498446799759], [1.9568589677769666, 3.3548569084606399, -1.1784642469136464, -4.0346302388252999]]]]),self.functionspace)        arg1=Data(numarray.array([[[[4.3127811025296019, -0.10155446089171871, -3.4578171106651023, 2.3517024759474019], [2.9209120387303633, -4.2033964881827766, -4.9079595647978271, 1.0109400256709256], [2.0380763518354348, 3.3211869545377901, 2.3508932018741397, -2.9487667482350743]], [[3.7743837312001247, -0.12741475963736448, -0.64289798604236381, -3.1541329933029081], [3.6053402077881795, -1.1232399885754099, 2.6382189842057047, -2.769767957322701], [0.30560606386865174, 2.7818441591549909, -1.6417152075359551, 3.4235680402194557]]], [[[-2.3958889437833006, -0.71851095539702836, 2.9712027545175399, 1.1672964885009707], [4.7815885275992276, 4.1028131517777116, 1.0089885247931187, 4.1868392879539194], [1.9896322525160439, 0.76240718797174445, 2.7497728774693817, 1.9011590586154785]], [[0.52983922979397935, -0.63956327075534602, -2.7300727717011561, -3.4194279448860652], [-2.6032768807289699, -1.222810986634737, 0.12961417631010974, 0.60994665843122053], [-2.2161430557896455, -0.96474990350576384, -3.8181298761718274, -2.3426678549015834]]], [[[1.7283748731355173, 4.2092537835668864, 0.57260832195764078, 0.75853885981269631], [0.047488901748035772, -3.3956381688920101, 3.3517083380288231, 3.8500249672908424], [-0.7132723739740392, 2.1012365360957608, -3.5788744390503711, 1.8813608663921286]], [[0.43980883476294164, -3.8554793287168296, 0.86408373458031651, -1.1870156079804426], [1.291440012244375, 2.3447252139119605, 2.2604319605161729, 2.704498446799759], [1.9568589677769666, 3.3548569084606399, -1.1784642469136464, -4.0346302388252999]]]]),self.functionspace)
2284        arg1.setTaggedValue(1,numarray.array([[[[-3.5824299096394396, 4.770622729685325, -4.3495273272845827, -1.001009169746665], [2.9927050758906857, -2.0810297884783049, -1.3678171061343738, 0.68505409474760803], [-3.874170852213179, 3.0569534291015632, 2.107344650573272, 4.4730409197417647]], [[4.7015714515154343, -3.8455671836122738, -4.4376395438876521, -2.1728348740524748], [-4.3294966917501201, -4.8535412942829446, -3.382632406457593, 2.8199721605646282], [-1.7422365833400932, 2.0906709769628318, -2.5133293987442142, -0.80157574911275731]]], [[[-1.698847105492959, -0.90269846708629053, -0.8634206021403017, -0.24692181363768917], [1.164675816633995, 1.1038137680725573, -4.0105813269990085, -4.177715990019502], [2.3927633924465352, 4.7174527862139666, 4.6457359047970197, -3.1239333695232885]], [[-2.3723718039367139, 3.3936371307263453, 2.8347482938211774, 4.336737972015241], [-3.659276254345869, 4.7526470280250077, 2.5620881506084388, 4.344505496823901], [-4.5176000833069017, -0.65039594483805718, 0.4609329603195107, -4.4874188349202768]]], [[[-1.596026145040649, -2.5420426352828009, 1.6974129010644434, 3.5720027147231299], [-0.57946190641011697, 2.5044165720077647, 3.5691622177693709, -3.4611889070063961], [2.0261331486754095, -0.33089921117282017, 3.3398238940943372, 4.8259577826208471]], [[-0.16867840526908573, 2.0737055427957918, -4.3206732347317214, -2.9175445396356059], [4.2130184260665899, -3.3249638066989471, 3.118303476625, 2.4425580343830076], [-4.9501285480564414, 4.5950148526787231, -0.75266399967726727, 0.92281912557892287]]]]))        arg1.setTaggedValue(1,numarray.array([[[[-3.5824299096394396, 4.770622729685325, -4.3495273272845827, -1.001009169746665], [2.9927050758906857, -2.0810297884783049, -1.3678171061343738, 0.68505409474760803], [-3.874170852213179, 3.0569534291015632, 2.107344650573272, 4.4730409197417647]], [[4.7015714515154343, -3.8455671836122738, -4.4376395438876521, -2.1728348740524748], [-4.3294966917501201, -4.8535412942829446, -3.382632406457593, 2.8199721605646282], [-1.7422365833400932, 2.0906709769628318, -2.5133293987442142, -0.80157574911275731]]], [[[-1.698847105492959, -0.90269846708629053, -0.8634206021403017, -0.24692181363768917], [1.164675816633995, 1.1038137680725573, -4.0105813269990085, -4.177715990019502], [2.3927633924465352, 4.7174527862139666, 4.6457359047970197, -3.1239333695232885]], [[-2.3723718039367139, 3.3936371307263453, 2.8347482938211774, 4.336737972015241], [-3.659276254345869, 4.7526470280250077, 2.5620881506084388, 4.344505496823901], [-4.5176000833069017, -0.65039594483805718, 0.4609329603195107, -4.4874188349202768]]], [[[-1.596026145040649, -2.5420426352828009, 1.6974129010644434, 3.5720027147231299], [-0.57946190641011697, 2.5044165720077647, 3.5691622177693709, -3.4611889070063961], [2.0261331486754095, -0.33089921117282017, 3.3398238940943372, 4.8259577826208471]], [[-0.16867840526908573, 2.0737055427957918, -4.3206732347317214, -2.9175445396356059], [4.2130184260665899, -3.3249638066989471, 3.118303476625, 2.4425580343830076], [-4.9501285480564414, 4.5950148526787231, -0.75266399967726727, 0.92281912557892287]]]]))
2285        res=add(arg0,arg1)        res=add(arg0,arg1)
2286        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2287        ref=msk_ref*numarray.array([[[[0.382492378254641, -4.0318431851666796, -7.3881058349400632, -1.578586248327559], [-1.0093766855445976, -8.1336852124577383, -8.8382482890727871, -2.9193486986040353], [-1.8922123724395261, -0.60910176973717078, -1.5793955224008212, -6.8790554725100357]], [[-0.15590499307483618, -4.0577034839123254, -4.5731867103173247, -7.084421717577869], [-0.32494851648678136, -5.0535287128503708, -1.2920697400692562, -6.7000566815976619], [-3.6246826604063092, -1.14844456511997, -5.572003931810916, -0.50672068405550519]]], [[[-6.3261776680582615, -4.6487996796719893, -0.959085969757421, -2.7629922357739902], [0.85129980332426669, 0.17252442750275065, -2.9213001994818422, 0.25655056367895845], [-1.940656471758917, -3.1678815363032164, -1.1805158468055792, -2.0291296656594824]], [[-3.4004494944809815, -4.5698519950303069, -6.660361495976117, -7.3497166691610261], [-6.5335656050039308, -5.1530997109096983, -3.8006745479648512, -3.3203420658437404], [-6.1464317800646064, -4.8950386277807247, -7.7484186004467883, -6.2729565791765438]]], [[[-2.2019138511394436, 0.2789650592919255, -3.3576804023173201, -3.1717498644622646], [-3.8827998225269251, -7.3259268931669705, -0.57858038624613783, -0.080263756984118473], [-4.6435610982490001, -1.8290521881792001, -7.509163163325332, -2.0489278578828323]], [[-3.4904798895120193, -7.7857680529917905, -3.0662049896946444, -5.1173043322554035], [-2.6388487120305859, -1.5855635103630004, -1.669856763758788, -1.2257902774752019], [-1.9734297564979943, -0.57543181581432101, -5.1087529711886077, -7.9649189631002608]]]])+(1.-msk_ref)*numarray.array([[[[-0.48342897710659383, 7.8696236622181708, -1.2505263947517369, 2.0979917627861808], [6.0917060084235315, 1.0179711440545409, 1.731183826398472, 3.7840550272804538], [-0.77516991968033322, 6.155954361634409, 5.2063455831061178, 7.5720418522746105]], [[7.8005723840482801, -0.74656625107942798, -1.3386386113548063, 0.92616605848037103], [-1.2304957592172743, -1.7545403617500988, -0.28363147392474719, 5.918973093097474], [1.3567643491927526, 5.1896719094956776, 0.58567153378863157, 2.2974251834200885]]], [[[1.4001538270398868, 2.1963024654465553, 2.2355803303925441, 2.8520791188951566], [4.2636767491668408, 4.2028147006054031, -0.91158039446616268, -1.0787150574866562], [5.4917643249793811, 7.8164537187468124, 7.7447368373298655, -0.024932436990442675]], [[0.72662912859613193, 6.4926380632591911, 5.9337492263540232, 7.4357389045480868], [-0.5602753218130232, 7.8516479605578535, 5.6610890831412846, 7.4435064293567468], [-1.4185991507740559, 2.4486049876947886, 3.5599338928523565, -1.388417902387431]]], [[[1.5029747874921968, 0.55695829725004486, 4.7964138335972892, 6.6710036472559757], [2.5195390261227288, 5.6034175045406105, 6.6681631503022167, -0.36218797447355033], [5.1251340812082553, 2.7681017213600256, 6.438824826627183, 7.9249587151536929]], [[2.9303225272637601, 5.1727064753286376, -1.2216723021988756, 0.18145639289723992], [7.3120193585994357, -0.22596287416610128, 6.2173044091578458, 5.5415589669158534], [-1.8511276155235956, 7.6940157852115689, 2.3463369328555785, 4.0218200581117687]]]])        ref=msk_ref*numarray.array([[[[0.382492378254641, -4.0318431851666796, -7.3881058349400632, -1.578586248327559], [-1.0093766855445976, -8.1336852124577383, -8.8382482890727871, -2.9193486986040353], [-1.8922123724395261, -0.60910176973717078, -1.5793955224008212, -6.8790554725100357]], [[-0.15590499307483618, -4.0577034839123254, -4.5731867103173247, -7.084421717577869], [-0.32494851648678136, -5.0535287128503708, -1.2920697400692562, -6.7000566815976619], [-3.6246826604063092, -1.14844456511997, -5.572003931810916, -0.50672068405550519]]], [[[-6.3261776680582615, -4.6487996796719893, -0.959085969757421, -2.7629922357739902], [0.85129980332426669, 0.17252442750275065, -2.9213001994818422, 0.25655056367895845], [-1.940656471758917, -3.1678815363032164, -1.1805158468055792, -2.0291296656594824]], [[-3.4004494944809815, -4.5698519950303069, -6.660361495976117, -7.3497166691610261], [-6.5335656050039308, -5.1530997109096983, -3.8006745479648512, -3.3203420658437404], [-6.1464317800646064, -4.8950386277807247, -7.7484186004467883, -6.2729565791765438]]], [[[-2.2019138511394436, 0.2789650592919255, -3.3576804023173201, -3.1717498644622646], [-3.8827998225269251, -7.3259268931669705, -0.57858038624613783, -0.080263756984118473], [-4.6435610982490001, -1.8290521881792001, -7.509163163325332, -2.0489278578828323]], [[-3.4904798895120193, -7.7857680529917905, -3.0662049896946444, -5.1173043322554035], [-2.6388487120305859, -1.5855635103630004, -1.669856763758788, -1.2257902774752019], [-1.9734297564979943, -0.57543181581432101, -5.1087529711886077, -7.9649189631002608]]]])+(1.-msk_ref)*numarray.array([[[[-0.48342897710659383, 7.8696236622181708, -1.2505263947517369, 2.0979917627861808], [6.0917060084235315, 1.0179711440545409, 1.731183826398472, 3.7840550272804538], [-0.77516991968033322, 6.155954361634409, 5.2063455831061178, 7.5720418522746105]], [[7.8005723840482801, -0.74656625107942798, -1.3386386113548063, 0.92616605848037103], [-1.2304957592172743, -1.7545403617500988, -0.28363147392474719, 5.918973093097474], [1.3567643491927526, 5.1896719094956776, 0.58567153378863157, 2.2974251834200885]]], [[[1.4001538270398868, 2.1963024654465553, 2.2355803303925441, 2.8520791188951566], [4.2636767491668408, 4.2028147006054031, -0.91158039446616268, -1.0787150574866562], [5.4917643249793811, 7.8164537187468124, 7.7447368373298655, -0.024932436990442675]], [[0.72662912859613193, 6.4926380632591911, 5.9337492263540232, 7.4357389045480868], [-0.5602753218130232, 7.8516479605578535, 5.6610890831412846, 7.4435064293567468], [-1.4185991507740559, 2.4486049876947886, 3.5599338928523565, -1.388417902387431]]], [[[1.5029747874921968, 0.55695829725004486, 4.7964138335972892, 6.6710036472559757], [2.5195390261227288, 5.6034175045406105, 6.6681631503022167, -0.36218797447355033], [5.1251340812082553, 2.7681017213600256, 6.438824826627183, 7.9249587151536929]], [[2.9303225272637601, 5.1727064753286376, -1.2216723021988756, 0.18145639289723992], [7.3120193585994357, -0.22596287416610128, 6.2173044091578458, 5.5415589669158534], [-1.8511276155235956, 7.6940157852115689, 2.3463369328555785, 4.0218200581117687]]]])
2288        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2289        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
2290        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2291     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2292     def test_add_expandedData_rank1_taggedData_rank1(self):     def test_add_expandedData_rank1_taggedData_rank1(self):
2293        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2294        arg0=msk_arg0*numarray.array([-1.0410575391234236, -3.331045867520376])+(1.-msk_arg0)*numarray.array([-0.3794690876147051, 2.666825705859055])        arg0=msk_arg0*numarray.array([-1.0410575391234236, -3.331045867520376])+(1.-msk_arg0)*numarray.array([-0.3794690876147051, 2.666825705859055])
2295        arg1=Data(numarray.array([0.42928089727924057, 4.758730005445134]),self.functionspace)        arg1=Data(numarray.array([0.42928089727924057, 4.758730005445134]),self.functionspace)
2296        arg1.setTaggedValue(1,numarray.array([-1.3045058461746084, 3.5351665112205879]))        arg1.setTaggedValue(1,numarray.array([-1.3045058461746084, 3.5351665112205879]))
2297        res=add(arg0,arg1)        res=add(arg0,arg1)
2298        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2299        ref=msk_ref*numarray.array([-0.61177664184418301, 1.427684137924758])+(1.-msk_ref)*numarray.array([-1.6839749337893135, 6.2019922170796429])        ref=msk_ref*numarray.array([-0.61177664184418301, 1.427684137924758])+(1.-msk_ref)*numarray.array([-1.6839749337893135, 6.2019922170796429])
2300        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2301        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
2302        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2303     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2304     def test_add_expandedData_rank2_taggedData_rank1(self):     def test_add_expandedData_rank2_taggedData_rank1(self):
2305        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2306        arg0=msk_arg0*numarray.array([[3.3167163886292563, 0.80220589462029679], [3.7936044125504385, 3.6967180360685852]])+(1.-msk_arg0)*numarray.array([[-0.61830141321506105, 3.4770456714018003], [0.94074927701285116, -3.9794408708450426]])        arg0=msk_arg0*numarray.array([[3.3167163886292563, 0.80220589462029679], [3.7936044125504385, 3.6967180360685852]])+(1.-msk_arg0)*numarray.array([[-0.61830141321506105, 3.4770456714018003], [0.94074927701285116, -3.9794408708450426]])
2307        arg1=Data(numarray.array([-4.122512178036021, 1.1682492872913883]),self.functionspace)        arg1=Data(numarray.array([-4.122512178036021, 1.1682492872913883]),self.functionspace)
2308        arg1.setTaggedValue(1,numarray.array([2.1241406777978522, 2.5771248188771168]))        arg1.setTaggedValue(1,numarray.array([2.1241406777978522, 2.5771248188771168]))
2309        res=add(arg0,arg1)        res=add(arg0,arg1)
2310        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2311        ref=msk_ref*numarray.array([[-0.80579578940676466, -3.3203062834157242], [4.9618536998418268, 4.8649673233599735]])+(1.-msk_ref)*numarray.array([[1.5058392645827912, 5.6011863491996525], [3.5178740958899679, -1.4023160519679259]])        ref=msk_ref*numarray.array([[-0.80579578940676466, -3.3203062834157242], [4.9618536998418268, 4.8649673233599735]])+(1.-msk_ref)*numarray.array([[1.5058392645827912, 5.6011863491996525], [3.5178740958899679, -1.4023160519679259]])
2312        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2313        self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")
2314        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2315     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2316     def test_add_expandedData_rank1_taggedData_rank2(self):     def test_add_expandedData_rank1_taggedData_rank2(self):
2317        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2318        arg0=msk_arg0*numarray.array([-0.83967991813927867, 0.2866205895566889])+(1.-msk_arg0)*numarray.array([-0.37092096724653523, 3.22327741643217])        arg0=msk_arg0*numarray.array([-0.83967991813927867, 0.2866205895566889])+(1.-msk_arg0)*numarray.array([-0.37092096724653523, 3.22327741643217])
2319        arg1=Data(numarray.array([[0.31110836836404943, 0.2385499419251067], [-4.6361778215385279, 4.8146099374044802]]),self.functionspace)        arg1=Data(numarray.array([[0.31110836836404943, 0.2385499419251067], [-4.6361778215385279, 4.8146099374044802]]),self.functionspace)
2320        arg1.setTaggedValue(1,numarray.array([[-0.76066195228209033, 3.2157856367414404], [2.0997065131235972, -4.925574679508065]]))        arg1.setTaggedValue(1,numarray.array([[-0.76066195228209033, 3.2157856367414404], [2.0997065131235972, -4.925574679508065]]))
2321        res=add(arg0,arg1)        res=add(arg0,arg1)
2322        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2323        ref=msk_ref*numarray.array([[-0.52857154977522924, -0.60112997621417197], [-4.349557231981839, 5.1012305269611691]])+(1.-msk_ref)*numarray.array([[-1.1315829195286256, 2.8448646694949051], [5.3229839295557673, -1.702297263075895]])        ref=msk_ref*numarray.array([[-0.52857154977522924, -0.60112997621417197], [-4.349557231981839, 5.1012305269611691]])+(1.-msk_ref)*numarray.array([[-1.1315829195286256, 2.8448646694949051], [5.3229839295557673, -1.702297263075895]])
2324        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2325        self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")
2326        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2327     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2328     def test_add_expandedData_rank3_taggedData_rank1(self):     def test_add_expandedData_rank3_taggedData_rank1(self):
2329        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2330        arg0=msk_arg0*numarray.array([[[-3.99065244546399, 4.5287945872972575, 0.84950297198067215, -1.2459403520591694, -4.2551339846757505], [2.3638929291791086, -4.7926009293458502, -1.8457124334674235, -4.0445985822151664, 1.5193450237914563], [-3.3618912209745586, 0.30143127524349023, 2.0620569510617601, -1.1870981884163245, 3.4246312742995126], [-0.036069041366188159, -3.850949840949637, 0.72821308615508418, -3.8842358526686924, 3.6554740125827863]], [[2.3169302939892127, 1.7018299855646157, 4.5525409443054414, -2.3565757709675363, 0.39121192210425271], [1.5924616849647846, -0.29169469920753066, 0.94409629576089849, 4.6257610457176916, -3.3924537712452416], [0.34975735340173753, -4.6684455097863955, 1.6388349595179239, -1.9456151700756585, 1.6754191229096609], [-4.1097056052093635, -0.37073263448030414, 4.3911714931491481, 1.5584073296024776, -4.7804127099686786]]])+(1.-msk_arg0)*numarray.array([[[-1.1157816011410757, -2.1525717979916559, 3.0949233193538497, 0.27232528655099753, -4.0428264275389854], [0.43465062692482626, -4.209596577642297, -0.33575082901917153, -2.3666371211140547, -4.3255963229696262], [-0.89234280150637968, -2.4095301608132846, -3.9523587703394814, 1.32130509214341, 0.46076675232831654], [4.3232791325750313, 4.4374983588269181, -0.77506156399851989, 4.7211903316920161, 3.2580191513469998]], [[2.8341438310255249, 3.3150521506813231, -1.1451548397084355, 1.5867110775201034, -1.4836713781181743], [-3.3187668912265442, -3.6354817009927185, 3.8155084446820062, -3.3249023757750895, 3.9054006579294089], [-1.1634254972181912, 1.3219233172637681, 0.035906752092814465, 4.4121434546132363, -4.8327986799249745], [1.7133359878352996, 3.0543676882482611, -4.7081469872642643, 3.5661360221280685, -2.5427666434860861]]])        arg0=msk_arg0*numarray.array([[[-3.99065244546399, 4.5287945872972575, 0.84950297198067215, -1.2459403520591694, -4.2551339846757505], [2.3638929291791086, -4.7926009293458502, -1.8457124334674235, -4.0445985822151664, 1.5193450237914563], [-3.3618912209745586, 0.30143127524349023, 2.0620569510617601, -1.1870981884163245, 3.4246312742995126], [-0.036069041366188159, -3.850949840949637, 0.72821308615508418, -3.8842358526686924, 3.6554740125827863]], [[2.3169302939892127, 1.7018299855646157, 4.5525409443054414, -2.3565757709675363, 0.39121192210425271], [1.5924616849647846, -0.29169469920753066, 0.94409629576089849, 4.6257610457176916, -3.3924537712452416], [0.34975735340173753, -4.6684455097863955, 1.6388349595179239, -1.9456151700756585, 1.6754191229096609], [-4.1097056052093635, -0.37073263448030414, 4.3911714931491481, 1.5584073296024776, -4.7804127099686786]]])+(1.-msk_arg0)*numarray.array([[[-1.1157816011410757, -2.1525717979916559, 3.0949233193538497, 0.27232528655099753, -4.0428264275389854], [0.43465062692482626, -4.209596577642297, -0.33575082901917153, -2.3666371211140547, -4.3255963229696262], [-0.89234280150637968, -2.4095301608132846, -3.9523587703394814, 1.32130509214341, 0.46076675232831654], [4.3232791325750313, 4.4374983588269181, -0.77506156399851989, 4.7211903316920161, 3.2580191513469998]], [[2.8341438310255249, 3.3150521506813231, -1.1451548397084355, 1.5867110775201034, -1.4836713781181743], [-3.3187668912265442, -3.6354817009927185, 3.8155084446820062, -3.3249023757750895, 3.9054006579294089], [-1.1634254972181912, 1.3219233172637681, 0.035906752092814465, 4.4121434546132363, -4.8327986799249745], [1.7133359878352996, 3.0543676882482611, -4.7081469872642643, 3.5661360221280685, -2.5427666434860861]]])
2331        arg1=Data(numarray.array([1.088897267081629, -1.1064393167021844]),self.functionspace)        arg1=Data(numarray.array([1.088897267081629, -1.1064393167021844]),self.functionspace)
2332        arg1.setTaggedValue(1,numarray.array([-2.2434595382877189, -4.485425571768352]))        arg1.setTaggedValue(1,numarray.array([-2.2434595382877189, -4.485425571768352]))
2333        res=add(arg0,arg1)        res=add(arg0,arg1)
2334        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2335        ref=msk_ref*numarray.array([[[-2.901755178382361, 5.6176918543788865, 1.9384002390623012, -0.15704308497754038, -3.1662367175941215], [3.4527901962607377, -3.7037036622642212, -0.75681516638579449, -2.9557013151335374, 2.6082422908730853], [-2.2729939538929296, 1.3903285423251193, 3.1509542181433892, -0.09820092133469549, 4.5135285413811417], [1.0528282257154409, -2.762052573868008, 1.8171103532367132, -2.7953385855870634, 4.7443712796644153]], [[1.2104909772870283, 0.5953906688624313, 3.446101627603257, -3.4630150876697208, -0.71522739459793172], [0.48602236826260015, -1.3981340159097151, -0.16234302094128594, 3.5193217290155072, -4.498893087947426], [-0.7566819633004469, -5.7748848264885799, 0.53239564281573948, -3.052054486777843, 0.56897980620747646], [-5.2161449219115479, -1.4771719511824886, 3.2847321764469637, 0.4519680129002932, -5.886852026670863]]])+(1.-msk_ref)*numarray.array([[[-3.3592411394287947, -4.3960313362793748, 0.85146378106613074, -1.9711342517367214, -6.2862859658267043], [-1.8088089113628927, -6.4530561159300159, -2.5792103673068905, -4.6100966594017736, -6.5690558612573451], [-3.1358023397940986, -4.6529896991010036, -6.1958183086272003, -0.92215444614430897, -1.7826927859594024], [2.0798195942873123, 2.1940388205391992, -3.0185211022862388, 2.4777307934042971, 1.0145596130592809]], [[-1.6512817407428271, -1.1703734210870289, -5.630580411476787, -2.8987144942482486, -5.9690969498865263], [-7.8041924629948962, -8.1209072727610696, -0.66991712708634577, -7.810327947543442, -0.58002491383894306], [-5.6488510689865432, -3.1635022545045839, -4.4495188196755375, -0.073282117155115678, -9.3182242516933265], [-2.7720895839330524, -1.4310578835200909, -9.1935725590326172, -0.91928954964028353, -7.028192215254438]]])        ref=msk_ref*numarray.array([[[-2.901755178382361, 5.6176918543788865, 1.9384002390623012, -0.15704308497754038, -3.1662367175941215], [3.4527901962607377, -3.7037036622642212, -0.75681516638579449, -2.9557013151335374, 2.6082422908730853], [-2.2729939538929296, 1.3903285423251193, 3.1509542181433892, -0.09820092133469549, 4.5135285413811417], [1.0528282257154409, -2.762052573868008, 1.8171103532367132, -2.7953385855870634, 4.7443712796644153]], [[1.2104909772870283, 0.5953906688624313, 3.446101627603257, -3.4630150876697208, -0.71522739459793172], [0.48602236826260015, -1.3981340159097151, -0.16234302094128594, 3.5193217290155072, -4.498893087947426], [-0.7566819633004469, -5.7748848264885799, 0.53239564281573948, -3.052054486777843, 0.56897980620747646], [-5.2161449219115479, -1.4771719511824886, 3.2847321764469637, 0.4519680129002932, -5.886852026670863]]])+(1.-msk_ref)*numarray.array([[[-3.3592411394287947, -4.3960313362793748, 0.85146378106613074, -1.9711342517367214, -6.2862859658267043], [-1.8088089113628927, -6.4530561159300159, -2.5792103673068905, -4.6100966594017736, -6.5690558612573451], [-3.1358023397940986, -4.6529896991010036, -6.1958183086272003, -0.92215444614430897, -1.7826927859594024], [2.0798195942873123, 2.1940388205391992, -3.0185211022862388, 2.4777307934042971, 1.0145596130592809]], [[-1.6512817407428271, -1.1703734210870289, -5.630580411476787, -2.8987144942482486, -5.9690969498865263], [-7.8041924629948962, -8.1209072727610696, -0.66991712708634577, -7.810327947543442, -0.58002491383894306], [-5.6488510689865432, -3.1635022545045839, -4.4495188196755375, -0.073282117155115678, -9.3182242516933265], [-2.7720895839330524, -1.4310578835200909, -9.1935725590326172, -0.91928954964028353, -7.028192215254438]]])
2336        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2337        self.failUnlessEqual(res.getShape(),(2, 4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2, 4, 5),"wrong shape of result.")
2338        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2339     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2340     def test_add_expandedData_rank1_taggedData_rank3(self):     def test_add_expandedData_rank1_taggedData_rank3(self):
2341        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2342        arg0=msk_arg0*numarray.array([-1.0184033152008967, -4.1483684669613874])+(1.-msk_arg0)*numarray.array([1.9299690922628399, -2.7484200026515202])        arg0=msk_arg0*numarray.array([-1.0184033152008967, -4.1483684669613874])+(1.-msk_arg0)*numarray.array([1.9299690922628399, -2.7484200026515202])
2343        arg1=Data(numarray.array([[[4.3489667107889964, 1.5961657831929088, 2.060679745743097, 4.401958843100692, 1.3898798248220245], [4.9593093728281588, -3.4301007901880896, 3.0065562822757546, 3.8678693934058632, 2.268405853507498], [4.1121178608317948, 1.5935258052674914, 0.83614430149616403, 2.272611808834486, 0.30256659592620849], [3.0006411824739097, -3.9576746901283943, 1.240275618130867, -0.81049383694915811, 3.106319295724429]], [[-2.7211873153578181, -0.49009670588727339, 4.8486031701796239, 1.7129616682914666, 1.6417422264662314], [3.8085784143135033, -1.5240634904252195, -0.59267600547633048, 0.6254131688277873, 4.3008609866318395], [-1.4419303243936166, 2.5607811050835867, -1.4278037124214737, 0.47706775146184377, 3.1969132578611372], [-2.8225845311843321, -4.2741322642576751, -0.66449354830051188, 1.3003273329367921, 2.9850018354956029]]]),self.functionspace)        arg1=Data(numarray.array([[[4.3489667107889964, 1.5961657831929088, 2.060679745743097, 4.401958843100692, 1.3898798248220245], [4.9593093728281588, -3.4301007901880896, 3.0065562822757546, 3.8678693934058632, 2.268405853507498], [4.1121178608317948, 1.5935258052674914, 0.83614430149616403, 2.272611808834486, 0.30256659592620849], [3.0006411824739097, -3.9576746901283943, 1.240275618130867, -0.81049383694915811, 3.106319295724429]], [[-2.7211873153578181, -0.49009670588727339, 4.8486031701796239, 1.7129616682914666, 1.6417422264662314], [3.8085784143135033, -1.5240634904252195, -0.59267600547633048, 0.6254131688277873, 4.3008609866318395], [-1.4419303243936166, 2.5607811050835867, -1.4278037124214737, 0.47706775146184377, 3.1969132578611372], [-2.8225845311843321, -4.2741322642576751, -0.66449354830051188, 1.3003273329367921, 2.9850018354956029]]]),self.functionspace)
2344        arg1.setTaggedValue(1,numarray.array([[[-1.8380707992869039, 1.3546172738767579, 1.1806358536182318, -3.3801029404844005, 1.2617743898891369], [3.1529436506073907, -0.072935685867147271, 1.0866887009672919, -2.4122976590480349, 0.21865238038402435], [-1.4124873929292647, 0.27804232473625046, -0.68866452003827572, 3.0663688501875956, -0.92601278072153104], [4.6151492632279894, -0.48084725225516767, -3.1388198026937264, -0.5127319044221581, -3.5368202891325873]], [[1.6560194925907243, 2.5084274105298014, -1.4617830076143115, -4.736419857824794, -3.4134595740745666], [3.4601017919651866, 2.6339553054039575, -0.90021327037614096, -4.2084352915621173, 0.37671806134449515], [3.0465879943068686, 3.5940492438467952, 0.25989560810618872, 0.38485349568651905, 1.464444241105733], [-1.4575288314467127, -4.6242100930873473, 2.8591653337676339, 0.85821332496390923, -1.8327078089277227]]]))        arg1.setTaggedValue(1,numarray.array([[[-1.8380707992869039, 1.3546172738767579, 1.1806358536182318, -3.3801029404844005, 1.2617743898891369], [3.1529436506073907, -0.072935685867147271, 1.0866887009672919, -2.4122976590480349, 0.21865238038402435], [-1.4124873929292647, 0.27804232473625046, -0.68866452003827572, 3.0663688501875956, -0.92601278072153104], [4.6151492632279894, -0.48084725225516767, -3.1388198026937264, -0.5127319044221581, -3.5368202891325873]], [[1.6560194925907243, 2.5084274105298014, -1.4617830076143115, -4.736419857824794, -3.4134595740745666], [3.4601017919651866, 2.6339553054039575, -0.90021327037614096, -4.2084352915621173, 0.37671806134449515], [3.0465879943068686, 3.5940492438467952, 0.25989560810618872, 0.38485349568651905, 1.464444241105733], [-1.4575288314467127, -4.6242100930873473, 2.8591653337676339, 0.85821332496390923, -1.8327078089277227]]]))
2345        res=add(arg0,arg1)        res=add(arg0,arg1)
2346        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2347        ref=msk_ref*numarray.array([[[3.3305633955880998, 0.57776246799201214, 1.0422764305422003, 3.3835555278997953, 0.37147650962112788], [3.9409060576272621, -4.4485041053889862, 1.9881529670748579, 2.8494660782049666, 1.2500025383066014], [3.0937145456308981, 0.57512249006659477, -0.18225901370473263, 1.2542084936335893, -0.71583671927468817], [1.982237867273013, -4.976078005329291, 0.22187230292997029, -1.8288971521500548, 2.0879159805235323]], [[-6.8695557823192051, -4.6384651728486608, 0.70023470321823655, -2.4354067986699208, -2.506626240495156], [-0.33979005264788409, -5.6724319573866069, -4.7410444724377179, -3.5229552981336001, 0.15249251967045208], [-5.5902987913550035, -1.5875873618778007, -5.5761721793828611, -3.6713007154995436, -0.95145520910025017], [-6.9709529981457194, -8.4225007312190634, -4.8128620152618993, -2.8480411340245952, -1.1633666314657845]]])+(1.-msk_ref)*numarray.array([[[0.091898292975935991, 3.2845863661395978, 3.1106049458810716, -1.4501338482215607, 3.1917434821519768], [5.0829127428702305, 1.8570334063956926, 3.0166577932301317, -0.48232856678519509, 2.1486214726468642], [0.51748169933357513, 2.2080114169990903, 1.2413045722245641, 4.9963379424504355, 1.0039563115413088], [6.5451183554908292, 1.4491218400076722, -1.2088507104308865, 1.4172371878406818, -1.6068511968697474]], [[-1.0924005100607959, -0.23999259212171875, -4.2102030102658317, -7.4848398604763142, -6.1618795767260863], [0.71168178931366644, -0.1144646972475627, -3.6486332730276612, -6.9568552942136375, -2.3717019413070251], [0.29816799165534835, 0.84562924119527505, -2.4885243945453315, -2.3635665069650011, -1.2839757615457872], [-4.2059488340982334, -7.3726300957388675, 0.11074533111611373, -1.890206677687611, -4.5811278115792433]]])        ref=msk_ref*numarray.array([[[3.3305633955880998, 0.57776246799201214, 1.0422764305422003, 3.3835555278997953, 0.37147650962112788], [3.9409060576272621, -4.4485041053889862, 1.9881529670748579, 2.8494660782049666, 1.2500025383066014], [3.0937145456308981, 0.57512249006659477, -0.18225901370473263, 1.2542084936335893, -0.71583671927468817], [1.982237867273013, -4.976078005329291, 0.22187230292997029, -1.8288971521500548, 2.0879159805235323]], [[-6.8695557823192051, -4.6384651728486608, 0.70023470321823655, -2.4354067986699208, -2.506626240495156], [-0.33979005264788409, -5.6724319573866069, -4.7410444724377179, -3.5229552981336001, 0.15249251967045208], [-5.5902987913550035, -1.5875873618778007, -5.5761721793828611, -3.6713007154995436, -0.95145520910025017], [-6.9709529981457194, -8.4225007312190634, -4.8128620152618993, -2.8480411340245952, -1.1633666314657845]]])+(1.-msk_ref)*numarray.array([[[0.091898292975935991, 3.2845863661395978, 3.1106049458810716, -1.4501338482215607, 3.1917434821519768], [5.0829127428702305, 1.8570334063956926, 3.0166577932301317, -0.48232856678519509, 2.1486214726468642], [0.51748169933357513, 2.2080114169990903, 1.2413045722245641, 4.9963379424504355, 1.0039563115413088], [6.5451183554908292, 1.4491218400076722, -1.2088507104308865, 1.4172371878406818, -1.6068511968697474]], [[-1.0924005100607959, -0.23999259212171875, -4.2102030102658317, -7.4848398604763142, -6.1618795767260863], [0.71168178931366644, -0.1144646972475627, -3.6486332730276612, -6.9568552942136375, -2.3717019413070251], [0.29816799165534835, 0.84562924119527505, -2.4885243945453315, -2.3635665069650011, -1.2839757615457872], [-4.2059488340982334, -7.3726300957388675, 0.11074533111611373, -1.890206677687611, -4.5811278115792433]]])
2348        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2349        self.failUnlessEqual(res.getShape(),(2, 4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2, 4, 5),"wrong shape of result.")
2350        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2351     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2352     def test_add_expandedData_rank4_taggedData_rank1(self):     def test_add_expandedData_rank4_taggedData_rank1(self):
2353        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2354        arg0=msk_arg0*numarray.array([[[[4.4028121744871598, 1.3767512913839575], [3.2615742705880688, -3.923685932026685]], [[3.0094501920633903, 4.3746171480876956], [4.6652502970530012, 0.72934164136752333]], [[2.283762851402714, -3.2743367116515678], [0.18625821161667666, -0.12805718039061809]], [[-4.6629196853158348, -0.29041226193974268], [-2.1487915025283479, -4.3001856761609805]], [[-3.6175771260549516, -0.36120616825212437], [2.5745831183114269, -1.8126226646482269]], [[-4.1492986064096247, -3.1976567442383574], [-1.882253190512241, -0.21091573590112134]]], [[[-3.2539691864441087, 2.4764130656895764], [-2.7457412880218115, -1.5115044494603094]], [[-3.7883814481315072, -4.9605509439294861], [3.9915309073435861, -0.39683412651900163]], [[1.9180230358794699, 1.8819829414519518], [-0.69061370842021663, -0.82344947234648469]], [[0.39623050365398171, 4.4425964893941376], [-4.7023489536813372, 1.081008220758636]], [[4.3091975050759661, 3.240324653284933], [-0.30902302409891558, -4.0236419241303842]], [[-0.45224007930318866, -2.3299128695273863], [-1.1208328569638946, -3.1139295322817917]]]])+(1.-msk_arg0)*numarray.array([[[[4.4501298553897115, 1.7329216221215731], [1.1688747677173978, 3.2549129788094682]], [[-4.6927156282552227, -4.9225357018980738], [2.2698658709631054, 1.801534887246615]], [[2.7196504552489644, -3.8186755621522139], [1.3437709818409047, 2.0226601694466595]], [[0.24396879049310449, -2.216950255271668], [4.2423824310808289, -4.9368476122696503]], [[3.5619326265280229, -1.2292443598184501], [-2.8205389959819338, 2.8461464289932348]], [[-2.8788832308220424, -2.0979493508659139], [3.2716602184341834, 2.524449218334464]]], [[[0.052125419550101526, 4.4585852683440148], [4.3317419353099282, 4.87872315353491]], [[4.3763304968331695, -4.3372518135095994], [-3.3223610909126409, -4.9813854536342994]], [[3.9876534369430559, 2.2510845523012151], [3.0915821800846501, 2.2326133722059014]], [[3.741725630125659, -4.71244937894327], [1.1034550128306417, -0.74561557893288999]], [[3.0967144547224752, -0.8406996444050483], [-1.7604275505741143, -0.11132574464436296]], [[-4.7955950859093752, 3.429423886694078], [-3.1749923548499961, -3.1759193495150315]]]])        arg0=msk_arg0*numarray.array([[[[4.4028121744871598, 1.3767512913839575], [3.2615742705880688, -3.923685932026685]], [[3.0094501920633903, 4.3746171480876956], [4.6652502970530012, 0.72934164136752333]], [[2.283762851402714, -3.2743367116515678], [0.18625821161667666, -0.12805718039061809]], [[-4.6629196853158348, -0.29041226193974268], [-2.1487915025283479, -4.3001856761609805]], [[-3.6175771260549516, -0.36120616825212437], [2.5745831183114269, -1.8126226646482269]], [[-4.1492986064096247, -3.1976567442383574], [-1.882253190512241, -0.21091573590112134]]], [[[-3.2539691864441087, 2.4764130656895764], [-2.7457412880218115, -1.5115044494603094]], [[-3.7883814481315072, -4.9605509439294861], [3.9915309073435861, -0.39683412651900163]], [[1.9180230358794699, 1.8819829414519518], [-0.69061370842021663, -0.82344947234648469]], [[0.39623050365398171, 4.4425964893941376], [-4.7023489536813372, 1.081008220758636]], [[4.3091975050759661, 3.240324653284933], [-0.30902302409891558, -4.0236419241303842]], [[-0.45224007930318866, -2.3299128695273863], [-1.1208328569638946, -3.1139295322817917]]]])+(1.-msk_arg0)*numarray.array([[[[4.4501298553897115, 1.7329216221215731], [1.1688747677173978, 3.2549129788094682]], [[-4.6927156282552227, -4.9225357018980738], [2.2698658709631054, 1.801534887246615]], [[2.7196504552489644, -3.8186755621522139], [1.3437709818409047, 2.0226601694466595]], [[0.24396879049310449, -2.216950255271668], [4.2423824310808289, -4.9368476122696503]], [[3.5619326265280229, -1.2292443598184501], [-2.8205389959819338, 2.8461464289932348]], [[-2.8788832308220424, -2.0979493508659139], [3.2716602184341834, 2.524449218334464]]], [[[0.052125419550101526, 4.4585852683440148], [4.3317419353099282, 4.87872315353491]], [[4.3763304968331695, -4.3372518135095994], [-3.3223610909126409, -4.9813854536342994]], [[3.9876534369430559, 2.2510845523012151], [3.0915821800846501, 2.2326133722059014]], [[3.741725630125659, -4.71244937894327], [1.1034550128306417, -0.74561557893288999]], [[3.0967144547224752, -0.8406996444050483], [-1.7604275505741143, -0.11132574464436296]], [[-4.7955950859093752, 3.429423886694078], [-3.1749923548499961, -3.1759193495150315]]]])
2355        arg1=Data(numarray.array([2.4004882387839999, -3.7729080801544921]),self.functionspace)        arg1=Data(numarray.array([2.4004882387839999, -3.7729080801544921]),self.functionspace)
2356        arg1.setTaggedValue(1,numarray.array([0.38079940897662112, 1.1272774667548449]))        arg1.setTaggedValue(1,numarray.array([0.38079940897662112, 1.1272774667548449]))
2357        res=add(arg0,arg1)        res=add(arg0,arg1)
2358        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2359        ref=msk_ref*numarray.array([[[[6.8033004132711596, 3.7772395301679573], [5.6620625093720687, -1.5231976932426852]], [[5.4099384308473901, 6.7751053868716955], [7.0657385358370011, 3.1298298801515232]], [[4.6842510901867138, -0.87384847286756795], [2.5867464504006765, 2.2724310583933818]], [[-2.2624314465318349, 2.1100759768442572], [0.25169673625565192, -1.8996974373769806]], [[-1.2170888872709518, 2.0392820705318755], [4.9750713570954268, 0.58786557413577301]], [[-1.7488103676256248, -0.79716850545435758], [0.51823504827175881, 2.1895725028828785]]], [[[-7.0268772665986008, -1.2964950144649157], [-6.5186493681763036, -5.2844125296148015]], [[-7.5612895282859993, -8.7334590240839773], [0.21862282718909398, -4.1697422066734937]], [[-1.8548850442750222, -1.8909251387025403], [-4.4635217885747087, -4.5963575525009768]], [[-3.3766775765005104, 0.66968840923964557], [-8.4752570338358293, -2.6918998593958561]], [[0.53628942492147402, -0.53258342686955906], [-4.0819311042534077, -7.7965500042848763]], [[-4.2251481594576807, -6.1028209496818784], [-4.8937409371183866, -6.8868376124362838]]]])+(1.-msk_ref)*numarray.array([[[[4.8309292643663326, 2.1137210310981942], [1.549674176694019, 3.6357123877860893]], [[-4.3119162192786016, -4.5417362929214526], [2.6506652799397266, 2.1823342962232362]], [[3.1004498642255856, -3.4378761531755928], [1.7245703908175258, 2.4034595784232806]], [[0.62476819946972562, -1.8361508462950469], [4.62318184005745, -4.5560482032930292]], [[3.942732035504644, -0.84844495084182903], [-2.4397395870053127, 3.2269458379698559]], [[-2.4980838218454213, -1.7171499418892928], [3.6524596274108045, 2.9052486273110851]]], [[[1.1794028863049464, 5.5858627350988597], [5.4590194020647731, 6.0060006202897549]], [[5.5036079635880144, -3.2099743467547546], [-2.195083624157796, -3.8541079868794546]], [[5.1149309036979007, 3.3783620190560599], [4.218859646839495, 3.3598908389607463]], [[4.8690030968805038, -3.5851719121884251], [2.2307324795854866, 0.38166188782195487]], [[4.2239919214773201, 0.28657782234979656], [-0.6331500838192694, 1.0159517221104819]], [[-3.6683176191545304, 4.5567013534489229], [-2.0477148880951512, -2.0486418827601867]]]])        ref=msk_ref*numarray.array([[[[6.8033004132711596, 3.7772395301679573], [5.6620625093720687, -1.5231976932426852]], [[5.4099384308473901, 6.7751053868716955], [7.0657385358370011, 3.1298298801515232]], [[4.6842510901867138, -0.87384847286756795], [2.5867464504006765, 2.2724310583933818]], [[-2.2624314465318349, 2.1100759768442572], [0.25169673625565192, -1.8996974373769806]], [[-1.2170888872709518, 2.0392820705318755], [4.9750713570954268, 0.58786557413577301]], [[-1.7488103676256248, -0.79716850545435758], [0.51823504827175881, 2.1895725028828785]]], [[[-7.0268772665986008, -1.2964950144649157], [-6.5186493681763036, -5.2844125296148015]], [[-7.5612895282859993, -8.7334590240839773], [0.21862282718909398, -4.1697422066734937]], [[-1.8548850442750222, -1.8909251387025403], [-4.4635217885747087, -4.5963575525009768]], [[-3.3766775765005104, 0.66968840923964557], [-8.4752570338358293, -2.6918998593958561]], [[0.53628942492147402, -0.53258342686955906], [-4.0819311042534077, -7.7965500042848763]], [[-4.2251481594576807, -6.1028209496818784], [-4.8937409371183866, -6.8868376124362838]]]])+(1.-msk_ref)*numarray.array([[[[4.8309292643663326, 2.1137210310981942], [1.549674176694019, 3.6357123877860893]], [[-4.3119162192786016, -4.5417362929214526], [2.6506652799397266, 2.1823342962232362]], [[3.1004498642255856, -3.4378761531755928], [1.7245703908175258, 2.4034595784232806]], [[0.62476819946972562, -1.8361508462950469], [4.62318184005745, -4.5560482032930292]], [[3.942732035504644, -0.84844495084182903], [-2.4397395870053127, 3.2269458379698559]], [[-2.4980838218454213, -1.7171499418892928], [3.6524596274108045, 2.9052486273110851]]], [[[1.1794028863049464, 5.5858627350988597], [5.4590194020647731, 6.0060006202897549]], [[5.5036079635880144, -3.2099743467547546], [-2.195083624157796, -3.8541079868794546]], [[5.1149309036979007, 3.3783620190560599], [4.218859646839495, 3.3598908389607463]], [[4.8690030968805038, -3.5851719121884251], [2.2307324795854866, 0.38166188782195487]], [[4.2239919214773201, 0.28657782234979656], [-0.6331500838192694, 1.0159517221104819]], [[-3.6683176191545304, 4.5567013534489229], [-2.0477148880951512, -2.0486418827601867]]]])
2360        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2361        self.failUnlessEqual(res.getShape(),(2, 6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2, 6, 2, 2),"wrong shape of result.")
2362        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2363     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2364     def test_add_expandedData_rank1_taggedData_rank4(self):     def test_add_expandedData_rank1_taggedData_rank4(self):
2365        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2366        arg0=msk_arg0*numarray.array([2.5072336337562859, -1.2995129371198813])+(1.-msk_arg0)*numarray.array([3.0244624424179829, 0.8222041566251086])        arg0=msk_arg0*numarray.array([2.5072336337562859, -1.2995129371198813])+(1.-msk_arg0)*numarray.array([3.0244624424179829, 0.8222041566251086])
2367        arg1=Data(numarray.array([[[[-0.35384507668011711, 4.3608478565538284], [-1.4687253434879652, 3.6087088935082452]], [[2.9640349310604197, -2.7209641495559733], [-2.5908653316368868, -3.1889708791186622]], [[-1.0261499447302991, -1.147660482373174], [-4.6955285550039951, 4.4983120403150743]], [[-4.3826845731168653, 0.39879053453016766], [4.6580918685063395, -1.2651119246067513]], [[0.43120275170272304, -1.1027118281017225], [1.8506258620108902, -4.6777954755151558]], [[-3.8072349919722748, 1.905392710002813], [-2.2024976870376154, -4.4160298347200317]]], [[[-4.5345848819584091, -3.0005988056225341], [-4.1884764578983793, 1.2458475117299379]], [[-3.5130676716687437, 1.0616629437871072], [-0.44729162807114253, -0.1422821309437623]], [[4.6230794046886725, 1.5988027813748094], [4.5820752446646882, 0.11398297385752798]], [[4.5547027319741797, -3.7185805178484319], [-1.178486787689188, 1.8693045971991307]], [[-2.259739507569102, 4.6960827241976908], [-0.68014600215124066, -0.410592669167408]], [[3.1031760681718126, 1.480326616509771], [0.21508426975644479, -3.5980921614719841]]]]),self.functionspace)        arg1=Data(numarray.array([[[[-0.35384507668011711, 4.3608478565538284], [-1.4687253434879652, 3.6087088935082452]], [[2.9640349310604197, -2.7209641495559733], [-2.5908653316368868, -3.1889708791186622]], [[-1.0261499447302991, -1.147660482373174], [-4.6955285550039951, 4.4983120403150743]], [[-4.3826845731168653, 0.39879053453016766], [4.6580918685063395, -1.2651119246067513]], [[0.43120275170272304, -1.1027118281017225], [1.8506258620108902, -4.6777954755151558]], [[-3.8072349919722748, 1.905392710002813], [-2.2024976870376154, -4.4160298347200317]]], [[[-4.5345848819584091, -3.0005988056225341], [-4.1884764578983793, 1.2458475117299379]], [[-3.5130676716687437, 1.0616629437871072], [-0.44729162807114253, -0.1422821309437623]], [[4.6230794046886725, 1.5988027813748094], [4.5820752446646882, 0.11398297385752798]], [[4.5547027319741797, -3.7185805178484319], [-1.178486787689188, 1.8693045971991307]], [[-2.259739507569102, 4.6960827241976908], [-0.68014600215124066, -0.410592669167408]], [[3.1031760681718126, 1.480326616509771], [0.21508426975644479, -3.5980921614719841]]]]),self.functionspace)
2368        arg1.setTaggedValue(1,numarray.array([[[[4.7895622387398813, -0.2420708104103646], [-0.054050551924066603, -0.50655792829281232]], [[-2.5596238557476561, 0.52006096593708229], [-4.8401822507525711, -3.6198094127359925]], [[-4.5402403253346684, -0.84725435696941354], [3.9789562182915734, -3.8400182528664075]], [[0.14596427291378333, -2.5404050655257282], [0.95074380685449889, 0.6643096101380479]], [[-4.4134743409914501, -3.1799108448696369], [4.6858517067056802, -4.0838467295077194]], [[0.61190357294512143, -1.2333327151867723], [0.57544240972291227, 0.65950992417586729]]], [[[-0.85980654172505844, 2.4873158818327337], [-1.1174027973254019, -4.0384346933315207]], [[1.0319284641614139, 2.4768908141885904], [2.654549075681274, -3.0174615761248824]], [[-1.4222054120704639, 4.0220971389464246], [-2.5213958643053602, -0.089707758402040483]], [[-0.66303398625183263, -1.4612713372127608], [-3.3721414977507367, 4.6665353157188818]], [[1.8950639074516662, -4.7270897881628047], [1.9827938195584451, -3.7197752212419868]], [[-4.0402753149803878, 2.3707296789305365], [2.1539973402882948, -3.8848505361585985]]]]))        arg1.setTaggedValue(1,numarray.array([[[[4.7895622387398813, -0.2420708104103646], [-0.054050551924066603, -0.50655792829281232]], [[-2.5596238557476561, 0.52006096593708229], [-4.8401822507525711, -3.6198094127359925]], [[-4.5402403253346684, -0.84725435696941354], [3.9789562182915734, -3.8400182528664075]], [[0.14596427291378333, -2.5404050655257282], [0.95074380685449889, 0.6643096101380479]], [[-4.4134743409914501, -3.1799108448696369], [4.6858517067056802, -4.0838467295077194]], [[0.61190357294512143, -1.2333327151867723], [0.57544240972291227, 0.65950992417586729]]], [[[-0.85980654172505844, 2.4873158818327337], [-1.1174027973254019, -4.0384346933315207]], [[1.0319284641614139, 2.4768908141885904], [2.654549075681274, -3.0174615761248824]], [[-1.4222054120704639, 4.0220971389464246], [-2.5213958643053602, -0.089707758402040483]], [[-0.66303398625183263, -1.4612713372127608], [-3.3721414977507367, 4.6665353157188818]], [[1.8950639074516662, -4.7270897881628047], [1.9827938195584451, -3.7197752212419868]], [[-4.0402753149803878, 2.3707296789305365], [2.1539973402882948, -3.8848505361585985]]]]))
2369        res=add(arg0,arg1)        res=add(arg0,arg1)
2370        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2371        ref=msk_ref*numarray.array([[[[2.1533885570761688, 6.8680814903101144], [1.0385082902683207, 6.1159425272645311]], [[5.4712685648167056, -0.21373051579968738], [-0.083631697880600875, -0.68173724536237623]], [[1.4810836890259869, 1.359573151383112], [-2.1882949212477092, 7.0055456740713602]], [[-1.8754509393605794, 2.9060241682864536], [7.1653255022626254, 1.2421217091495347]], [[2.938436385459009, 1.4045218056545634], [4.3578594957671761, -2.1705618417588699]], [[-1.3000013582159888, 4.4126263437590989], [0.30473594671867055, -1.9087962009637458]]], [[[-5.8340978190782904, -4.3001117427424154], [-5.4879893950182606, -0.053665425389943344]], [[-4.8125806087886254, -0.23784999333277401], [-1.7468045651910238, -1.4417950680636435]], [[3.3235664675687913, 0.29928984425492811], [3.2825623075448069, -1.1855299632623533]], [[3.2551897948542985, -5.0180934549683132], [-2.4779997248090693, 0.56979166007924942]], [[-3.5592524446889833, 3.3965697870778095], [-1.9796589392711219, -1.7101056062872892]], [[1.8036631310519313, 0.18081367938988979], [-1.0844286673634365, -4.8976050985918658]]]])+(1.-msk_ref)*numarray.array([[[[7.8140246811578642, 2.7823916320076183], [2.9704118904939163, 2.5179045141251706]], [[0.46483858667032685, 3.5445234083550652], [-1.8157198083345882, -0.59534697031800965]], [[-1.5157778829166855, 2.1772080854485694], [7.0034186607095563, -0.81555581044842462]], [[3.1704267153317662, 0.4840573768922547], [3.9752062492724818, 3.6887720525560308]], [[-1.3890118985734672, -0.15544840245165403], [7.7103141491236631, -1.0593842870897365]], [[3.6363660153631043, 1.7911297272312106], [3.5999048521408952, 3.6839723665938502]]], [[[-0.037602385099949842, 3.3095200384578423], [-0.29519864070029334, -3.2162305367064121]], [[1.8541326207865225, 3.299094970813699], [3.4767532323063826, -2.1952574194997738]], [[-0.60000125544535532, 4.8443012955715332], [-1.6991917076802516, 0.73249639822306811]], [[0.15917017037327597, -0.63906718058765222], [-2.5499373411256281, 5.4887394723439904]], [[2.7172680640767748, -3.9048856315376961], [2.8049979761835537, -2.8975710646168782]], [[-3.2180711583552792, 3.1929338355556451], [2.9762014969134034, -3.0626463795334899]]]])        ref=msk_ref*numarray.array([[[[2.1533885570761688, 6.8680814903101144], [1.0385082902683207, 6.1159425272645311]], [[5.4712685648167056, -0.21373051579968738], [-0.083631697880600875, -0.68173724536237623]], [[1.4810836890259869, 1.359573151383112], [-2.1882949212477092, 7.0055456740713602]], [[-1.8754509393605794, 2.9060241682864536], [7.1653255022626254, 1.2421217091495347]], [[2.938436385459009, 1.4045218056545634], [4.3578594957671761, -2.1705618417588699]], [[-1.3000013582159888, 4.4126263437590989], [0.30473594671867055, -1.9087962009637458]]], [[[-5.8340978190782904, -4.3001117427424154], [-5.4879893950182606, -0.053665425389943344]], [[-4.8125806087886254, -0.23784999333277401], [-1.7468045651910238, -1.4417950680636435]], [[3.3235664675687913, 0.29928984425492811], [3.2825623075448069, -1.1855299632623533]], [[3.2551897948542985, -5.0180934549683132], [-2.4779997248090693, 0.56979166007924942]], [[-3.5592524446889833, 3.3965697870778095], [-1.9796589392711219, -1.7101056062872892]], [[1.8036631310519313, 0.18081367938988979], [-1.0844286673634365, -4.8976050985918658]]]])+(1.-msk_ref)*numarray.array([[[[7.8140246811578642, 2.7823916320076183], [2.9704118904939163, 2.5179045141251706]], [[0.46483858667032685, 3.5445234083550652], [-1.8157198083345882, -0.59534697031800965]], [[-1.5157778829166855, 2.1772080854485694], [7.0034186607095563, -0.81555581044842462]], [[3.1704267153317662, 0.4840573768922547], [3.9752062492724818, 3.6887720525560308]], [[-1.3890118985734672, -0.15544840245165403], [7.7103141491236631, -1.0593842870897365]], [[3.6363660153631043, 1.7911297272312106], [3.5999048521408952, 3.6839723665938502]]], [[[-0.037602385099949842, 3.3095200384578423], [-0.29519864070029334, -3.2162305367064121]], [[1.8541326207865225, 3.299094970813699], [3.4767532323063826, -2.1952574194997738]], [[-0.60000125544535532, 4.8443012955715332], [-1.6991917076802516, 0.73249639822306811]], [[0.15917017037327597, -0.63906718058765222], [-2.5499373411256281, 5.4887394723439904]], [[2.7172680640767748, -3.9048856315376961], [2.8049979761835537, -2.8975710646168782]], [[-3.2180711583552792, 3.1929338355556451], [2.9762014969134034, -3.0626463795334899]]]])
2372        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2373        self.failUnlessEqual(res.getShape(),(2, 6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2, 6, 2, 2),"wrong shape of result.")
2374        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2375     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2376     def test_add_expandedData_rank2_taggedData_rank2(self):     def test_add_expandedData_rank2_taggedData_rank2(self):
2377        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2378        arg0=msk_arg0*numarray.array([[-4.9629381076847645, -2.2132798380663177, -2.8050626975764157, -4.4777657363702303, 3.1842063573527977], [0.32992856545779858, -4.6630008390136055, 3.0658827063339, -1.2562022498604208, 2.1893183637896874], [-1.9094812396811256, 2.0718145116712474, 4.6349421088973646, 1.4252004179188056, -4.3031659807178455], [2.1435256826064508, -4.9445614854064015, 0.8383728917338642, 3.3768159635372434, -2.6269835105817743]])+(1.-msk_arg0)*numarray.array([[2.2935266788490027, 1.6688759966191551, -3.2608557755245693, -0.54413550033858016, -3.1127602277701616], [0.87365623163840578, -3.2063393636849691, -1.0779121510883174, -4.6002492506100809, 3.990645961252298], [1.0493750538573217, -3.7926887589342693, 0.96422986054455961, -3.7256307265681379, 1.1675897096512369], [-1.2771043401305562, -3.7199475609776309, 4.1065134046001575, 2.3681503949346396, 4.149803202791789]])        arg0=msk_arg0*numarray.array([[-4.9629381076847645, -2.2132798380663177, -2.8050626975764157, -4.4777657363702303, 3.1842063573527977], [0.32992856545779858, -4.6630008390136055, 3.0658827063339, -1.2562022498604208, 2.1893183637896874], [-1.9094812396811256, 2.0718145116712474, 4.6349421088973646, 1.4252004179188056, -4.3031659807178455], [2.1435256826064508, -4.9445614854064015, 0.8383728917338642, 3.3768159635372434, -2.6269835105817743]])+(1.-msk_arg0)*numarray.array([[2.2935266788490027, 1.6688759966191551, -3.2608557755245693, -0.54413550033858016, -3.1127602277701616], [0.87365623163840578, -3.2063393636849691, -1.0779121510883174, -4.6002492506100809, 3.990645961252298], [1.0493750538573217, -3.7926887589342693, 0.96422986054455961, -3.7256307265681379, 1.1675897096512369], [-1.2771043401305562, -3.7199475609776309, 4.1065134046001575, 2.3681503949346396, 4.149803202791789]])
2379        arg1=Data(numarray.array([[-1.8204712813602066, 0.86952520510824804, 2.0657828823358706, -1.7663269739223155, 4.3934818214626432], [-2.0924908187621885, 3.0361396500589475, 4.1181590987953225, 3.9254535619299293, 0.60017231691637729], [-2.9837755585939596, 4.4401668281437718, 2.0919163868961563, -0.77033871678633759, 4.707609420997894], [-4.5494553114335936, -3.6833871080734548, 3.4935998817163707, 4.9238688260132086, -2.6091207765451072]]),self.functionspace)        arg1=Data(numarray.array([[-1.8204712813602066, 0.86952520510824804, 2.0657828823358706, -1.7663269739223155, 4.3934818214626432], [-2.0924908187621885, 3.0361396500589475, 4.1181590987953225, 3.9254535619299293, 0.60017231691637729], [-2.9837755585939596, 4.4401668281437718, 2.0919163868961563, -0.77033871678633759, 4.707609420997894], [-4.5494553114335936, -3.6833871080734548, 3.4935998817163707, 4.9238688260132086, -2.6091207765451072]]),self.functionspace)
2380        arg1.setTaggedValue(1,numarray.array([[-3.7691849897693688, 1.0305916512297753, -1.1903962430803681, -0.35381682460994046, -0.3433954020894161], [-2.5513899220293301, -3.0982160638303213, -2.647414475705113, -0.42347186749222754, -4.7747959763620873], [0.11151688830670192, -4.0122627738782732, -1.0837715484010344, -1.444273261368072, -2.4190300214304372], [4.8034078540272613, 4.350477216659046, -3.8846221355563957, 3.1105154642371069, -0.53630813990282444]]))        arg1.setTaggedValue(1,numarray.array([[-3.7691849897693688, 1.0305916512297753, -1.1903962430803681, -0.35381682460994046, -0.3433954020894161], [-2.5513899220293301, -3.0982160638303213, -2.647414475705113, -0.42347186749222754, -4.7747959763620873], [0.11151688830670192, -4.0122627738782732, -1.0837715484010344, -1.444273261368072, -2.4190300214304372], [4.8034078540272613, 4.350477216659046, -3.8846221355563957, 3.1105154642371069, -0.53630813990282444]]))
2381        res=add(arg0,arg1)        res=add(arg0,arg1)
2382        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2383        ref=msk_ref*numarray.array([[-6.7834093890449711, -1.3437546329580696, -0.73927981524054509, -6.2440927102925459, 7.5776881788154409], [-1.7625622533043899, -1.626861188954658, 7.1840418051292225, 2.6692513120695085, 2.7894906807060647], [-4.8932567982750852, 6.5119813398150193, 6.7268584957935209, 0.654861701132468, 0.40444344028004853], [-2.4059296288271428, -8.6279485934798572, 4.3319727734502349, 8.3006847895504521, -5.2361042871268815]])+(1.-msk_ref)*numarray.array([[-1.475658310920366, 2.6994676478489303, -4.4512520186049374, -0.89795232494852062, -3.4561556298595777], [-1.6777336903909243, -6.3045554275152904, -3.7253266267934304, -5.0237211181023085, -0.78415001510978932], [1.1608919421640236, -7.8049515328125425, -0.11954168785647479, -5.1699039879362099, -1.2514403117792003], [3.5263035138967052, 0.63052965568141506, 0.22189126904376177, 5.4786658591717465, 3.6134950628889646]])        ref=msk_ref*numarray.array([[-6.7834093890449711, -1.3437546329580696, -0.73927981524054509, -6.2440927102925459, 7.5776881788154409], [-1.7625622533043899, -1.626861188954658, 7.1840418051292225, 2.6692513120695085, 2.7894906807060647], [-4.8932567982750852, 6.5119813398150193, 6.7268584957935209, 0.654861701132468, 0.40444344028004853], [-2.4059296288271428, -8.6279485934798572, 4.3319727734502349, 8.3006847895504521, -5.2361042871268815]])+(1.-msk_ref)*numarray.array([[-1.475658310920366, 2.6994676478489303, -4.4512520186049374, -0.89795232494852062, -3.4561556298595777], [-1.6777336903909243, -6.3045554275152904, -3.7253266267934304, -5.0237211181023085, -0.78415001510978932], [1.1608919421640236, -7.8049515328125425, -0.11954168785647479, -5.1699039879362099, -1.2514403117792003], [3.5263035138967052, 0.63052965568141506, 0.22189126904376177, 5.4786658591717465, 3.6134950628889646]])
2384        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2385        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
2386        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2387     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2388     def test_add_expandedData_rank3_taggedData_rank2(self):     def test_add_expandedData_rank3_taggedData_rank2(self):
2389        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2390        arg0=msk_arg0*numarray.array([[[-2.6869218552544893, 1.7206536050243324], [0.77576757568758126, -0.49507246355923407], [-2.4444859765935689, 2.5554699599338342], [3.3457890148829659, 4.0491839423104654], [4.0455950165163497, -4.7138229515510801]], [[-0.25400516291720265, 0.83138799889296155], [4.3515450059852547, 0.81814475389207786], [3.9787060277049964, 4.039671343229351], [4.2218974348324334, 4.0433228148436573], [0.88350441645183686, -2.102839883814581]], [[4.749656668291637, 1.5938523812612315], [2.954947037404664, 1.7276957658074545], [4.9989467649210617, 1.4426319662140568], [4.22983474461412, 4.1193851417076175], [0.25560559753131606, 0.051427995619573785]], [[-3.4089776147361519, 1.7869326324430546], [-1.459145193044705, -2.5894903128173175], [-2.0078942696940216, -2.3942914980850913], [-4.7814920878184299, 0.41158936205559993], [4.9997515650315716, 0.56479061120152352]]])+(1.-msk_arg0)*numarray.array([[[4.8021862651006497, 0.16756070751485197], [-2.9635451568680757, -2.0620037868817063], [0.37936305828705574, -1.2699766688629985], [-4.9598264938814154, -2.5424056842050371], [-0.13653471451437937, 4.898833607524729]], [[2.3237430592991881, -3.9778504019072902], [2.2585750581871764, 4.8789668783731841], [4.134246032983949, -0.84142146550774921], [-4.5243303404487261, -1.141223966885959], [-3.0524904742530836, 0.66763581175503184]], [[1.5037736689492363, -4.182738126688097], [-0.86678306130146687, 3.7795972856461653], [-4.4077698475821432, -3.06056129897611], [3.3761740406970127, 2.3437086487472722], [0.29001894582273291, 4.1110808509126819]], [[0.39430423006656223, -1.6006485945225659], [1.3265776304465051, 4.0461318312242227], [1.4436907806061612, 0.34219972296528312], [3.7342893844208493, -0.040015271964114696], [-4.7808362056870166, 2.136942309860558]]])        arg0=msk_arg0*numarray.array([[[-2.6869218552544893, 1.7206536050243324], [0.77576757568758126, -0.49507246355923407], [-2.4444859765935689, 2.5554699599338342], [3.3457890148829659, 4.0491839423104654], [4.0455950165163497, -4.7138229515510801]], [[-0.25400516291720265, 0.83138799889296155], [4.3515450059852547, 0.81814475389207786], [3.9787060277049964, 4.039671343229351], [4.2218974348324334, 4.0433228148436573], [0.88350441645183686, -2.102839883814581]], [[4.749656668291637, 1.5938523812612315], [2.954947037404664, 1.7276957658074545], [4.9989467649210617, 1.4426319662140568], [4.22983474461412, 4.1193851417076175], [0.25560559753131606, 0.051427995619573785]], [[-3.4089776147361519, 1.7869326324430546], [-1.459145193044705, -2.5894903128173175], [-2.0078942696940216, -2.3942914980850913], [-4.7814920878184299, 0.41158936205559993], [4.9997515650315716, 0.56479061120152352]]])+(1.-msk_arg0)*numarray.array([[[4.8021862651006497, 0.16756070751485197], [-2.9635451568680757, -2.0620037868817063], [0.37936305828705574, -1.2699766688629985], [-4.9598264938814154, -2.5424056842050371], [-0.13653471451437937, 4.898833607524729]], [[2.3237430592991881, -3.9778504019072902], [2.2585750581871764, 4.8789668783731841], [4.134246032983949, -0.84142146550774921], [-4.5243303404487261, -1.141223966885959], [-3.0524904742530836, 0.66763581175503184]], [[1.5037736689492363, -4.182738126688097], [-0.86678306130146687, 3.7795972856461653], [-4.4077698475821432, -3.06056129897611], [3.3761740406970127, 2.3437086487472722], [0.29001894582273291, 4.1110808509126819]], [[0.39430423006656223, -1.6006485945225659], [1.3265776304465051, 4.0461318312242227], [1.4436907806061612, 0.34219972296528312], [3.7342893844208493, -0.040015271964114696], [-4.7808362056870166, 2.136942309860558]]])
2391        arg1=Data(numarray.array([[-1.8720181194773335, 3.7173734991843261, -4.7035331082660079, 4.8435700512545434, 2.9759714511868305], [2.632502371443274, -3.7155838698790777, 0.32451184200957162, -2.1997647635776021, -2.4365135513057714], [2.0428560017618285, 2.0180019638016198, -0.72524324757309078, 3.1204738796152913, -0.71517452136748982], [-3.862644440164924, 4.238763132636695, 0.60642760692004316, 4.99599898821997, 1.0203739068933544]]),self.functionspace)        arg1=Data(numarray.array([[-1.8720181194773335, 3.7173734991843261, -4.7035331082660079, 4.8435700512545434, 2.9759714511868305], [2.632502371443274, -3.7155838698790777, 0.32451184200957162, -2.1997647635776021, -2.4365135513057714], [2.0428560017618285, 2.0180019638016198, -0.72524324757309078, 3.1204738796152913, -0.71517452136748982], [-3.862644440164924, 4.238763132636695, 0.60642760692004316, 4.99599898821997, 1.0203739068933544]]),self.functionspace)
2392        arg1.setTaggedValue(1,numarray.array([[-4.6373849457231708, 0.10382224296168641, -3.124041613807699, 4.9480622872177253, -4.4237690578505777], [0.51687198893290986, 1.1598880546789436, -0.89816607702374096, 3.3041722410823962, -4.350893117760438], [-0.32431206344344066, 3.257394204362198, 4.2198878888820648, 3.4957843800427462, -0.99648392162283628], [3.8036984159700982, 4.8152478039646969, 1.41485066429866, -1.3505088487703212, 1.3461959957769212]]))        arg1.setTaggedValue(1,numarray.array([[-4.6373849457231708, 0.10382224296168641, -3.124041613807699, 4.9480622872177253, -4.4237690578505777], [0.51687198893290986, 1.1598880546789436, -0.89816607702374096, 3.3041722410823962, -4.350893117760438], [-0.32431206344344066, 3.257394204362198, 4.2198878888820648, 3.4957843800427462, -0.99648392162283628], [3.8036984159700982, 4.8152478039646969, 1.41485066429866, -1.3505088487703212, 1.3461959957769212]]))
2393        res=add(arg0,arg1)        res=add(arg0,arg1)
2394        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2395        ref=msk_ref*numarray.array([[[-4.5589399747318229, -0.15136451445300114], [4.4931410748719074, 3.2223010356250921], [-7.1480190848595768, -2.1480631483321737], [8.1893590661375093, 8.8927539935650088], [7.0215664677031802, -1.7378515003642496]], [[2.3784972085260714, 3.4638903703362356], [0.63596113610617699, -2.8974391159869999], [4.303217869714568, 4.3641831852389226], [2.0221326712548313, 1.8435580512660552], [-1.5530091348539345, -4.5393534351203524]], [[6.7925126700534655, 3.63670838302306], [4.9729490012062838, 3.7456977296090743], [4.2737035173479709, 0.71738871864096598], [7.3503086242294113, 7.2398590213229088], [-0.45956892383617376, -0.66374652574791604]], [[-7.2716220549010764, -2.0757118077218695], [2.77961793959199, 1.6492728198193776], [-1.4014666627739785, -1.7878638911650482], [0.21450690040154008, 5.4075883502755699], [6.020125471924926, 1.5851645180948779]]])+(1.-msk_ref)*numarray.array([[[0.16480131937747888, -4.4698242382083189], [-2.8597229139063893, -1.9581815439200199], [-2.7446785555206432, -4.3940182826706975], [-0.011764206663690047, 2.4056566030126882], [-4.5603037723649571, 0.47506454967415124]], [[2.840615048232098, -3.4609784129743804], [3.41846311286612, 6.0388549330521277], [3.236079955960208, -1.7395875425314902], [-1.2201580993663299, 2.1629482741964372], [-7.4033835920135216, -3.6832573060054061]], [[1.1794616055057956, -4.5070501901315376], [2.3906111430607311, 7.0369914900083632], [-0.1878819587000784, 1.1593265899059548], [6.8719584207397588, 5.8394930287900184], [-0.70646497580010337, 3.1145969292898457]], [[4.1980026460366604, 2.2030498214475323], [6.141825434411202, 8.8613796351889196], [2.8585414449048212, 1.7570503872639431], [2.3837805356505282, -1.3905241207344359], [-3.4346402099100954, 3.4831383056374792]]])        ref=msk_ref*numarray.array([[[-4.5589399747318229, -0.15136451445300114], [4.4931410748719074, 3.2223010356250921], [-7.1480190848595768, -2.1480631483321737], [8.1893590661375093, 8.8927539935650088], [7.0215664677031802, -1.7378515003642496]], [[2.3784972085260714, 3.4638903703362356], [0.63596113610617699, -2.8974391159869999], [4.303217869714568, 4.3641831852389226], [2.0221326712548313, 1.8435580512660552], [-1.5530091348539345, -4.5393534351203524]], [[6.7925126700534655, 3.63670838302306], [4.9729490012062838, 3.7456977296090743], [4.2737035173479709, 0.71738871864096598], [7.3503086242294113, 7.2398590213229088], [-0.45956892383617376, -0.66374652574791604]], [[-7.2716220549010764, -2.0757118077218695], [2.77961793959199, 1.6492728198193776], [-1.4014666627739785, -1.7878638911650482], [0.21450690040154008, 5.4075883502755699], [6.020125471924926, 1.5851645180948779]]])+(1.-msk_ref)*numarray.array([[[0.16480131937747888, -4.4698242382083189], [-2.8597229139063893, -1.9581815439200199], [-2.7446785555206432, -4.3940182826706975], [-0.011764206663690047, 2.4056566030126882], [-4.5603037723649571, 0.47506454967415124]], [[2.840615048232098, -3.4609784129743804], [3.41846311286612, 6.0388549330521277], [3.236079955960208, -1.7395875425314902], [-1.2201580993663299, 2.1629482741964372], [-7.4033835920135216, -3.6832573060054061]], [[1.1794616055057956, -4.5070501901315376], [2.3906111430607311, 7.0369914900083632], [-0.1878819587000784, 1.1593265899059548], [6.8719584207397588, 5.8394930287900184], [-0.70646497580010337, 3.1145969292898457]], [[4.1980026460366604, 2.2030498214475323], [6.141825434411202, 8.8613796351889196], [2.8585414449048212, 1.7570503872639431], [2.3837805356505282, -1.3905241207344359], [-3.4346402099100954, 3.4831383056374792]]])
2396        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2397        self.failUnlessEqual(res.getShape(),(4, 5, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5, 2),"wrong shape of result.")
2398        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2399     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2400     def test_add_expandedData_rank2_taggedData_rank3(self):     def test_add_expandedData_rank2_taggedData_rank3(self):
2401        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2402        arg0=msk_arg0*numarray.array([[2.048571496817738, -0.96912358375502272, -1.4555698611774845, 1.6917496717826488, -2.4925929639033773], [-4.1594937216279302, -2.4130986388742679, 1.7127308421864491, 2.3175498448540939, 4.3326947653077781], [2.1132241670893208, -3.7368685482881481, 2.9388359525797805, 3.661871464008513, 3.1422587906101036], [1.3440891088744342, -0.58223548108637146, 4.2591750011038236, 3.9561393051385618, 1.767247721980242]])+(1.-msk_arg0)*numarray.array([[3.2577947057659102, 1.2113435665168986, 2.381481189514842, -1.8077550231114103, -4.8745719414956268], [-4.1266446490290267, -0.18048442504426365, -4.2926128975008844, -1.7602625897015223, 3.1263221016395608], [3.2138054046171529, -1.1804610335119445, 3.2680504987526113, -3.848651574355598, 4.015991682725323], [4.6672152426898865, 4.6985531159295295, 4.8028438074737316, 3.8001654419717994, 3.3419679206162449]])        arg0=msk_arg0*numarray.array([[2.048571496817738, -0.96912358375502272, -1.4555698611774845, 1.6917496717826488, -2.4925929639033773], [-4.1594937216279302, -2.4130986388742679, 1.7127308421864491, 2.3175498448540939, 4.3326947653077781], [2.1132241670893208, -3.7368685482881481, 2.9388359525797805, 3.661871464008513, 3.1422587906101036], [1.3440891088744342, -0.58223548108637146, 4.2591750011038236, 3.9561393051385618, 1.767247721980242]])+(1.-msk_arg0)*numarray.array([[3.2577947057659102, 1.2113435665168986, 2.381481189514842, -1.8077550231114103, -4.8745719414956268], [-4.1266446490290267, -0.18048442504426365, -4.2926128975008844, -1.7602625897015223, 3.1263221016395608], [3.2138054046171529, -1.1804610335119445, 3.2680504987526113, -3.848651574355598, 4.015991682725323], [4.6672152426898865, 4.6985531159295295, 4.8028438074737316, 3.8001654419717994, 3.3419679206162449]])
2403        arg1=Data(numarray.array([[[1.4625900051699485, 4.3744039376295536], [-1.2576419182636123, 3.3592136197615829], [3.9787857845115404, 3.5399787841496728], [2.9385703662291984, 0.12717319096350543], [-3.1412363059542692, -1.326603468002908]], [[-0.11268937973316628, -0.83997730481518218], [-4.9863279172552204, -2.0522295990850523], [-0.011113808221771215, -1.5430629621190608], [0.7261140227234586, 1.7377677390767019], [0.28407353877037167, -4.9760212024859758]], [[0.83631413282757094, 1.1442783042498856], [4.6873103326958532, 4.3388002517502393], [-0.96490972503824857, 2.5371322395783196], [3.9031823290491641, -3.1618510991201054], [3.677875074719573, -1.0351400381800504]], [[4.9032484455121921, -4.2979139543921141], [0.19986262572796853, 0.80623272255505718], [4.2001715463782894, -4.557960165751652], [4.0726143847294551, 3.5293630968779048], [-0.85615447752899865, 4.7447088788057528]]]),self.functionspace)        arg1=Data(numarray.array([[[1.4625900051699485, 4.3744039376295536], [-1.2576419182636123, 3.3592136197615829], [3.9787857845115404, 3.5399787841496728], [2.9385703662291984, 0.12717319096350543], [-3.1412363059542692, -1.326603468002908]], [[-0.11268937973316628, -0.83997730481518218], [-4.9863279172552204, -2.0522295990850523], [-0.011113808221771215, -1.5430629621190608], [0.7261140227234586, 1.7377677390767019], [0.28407353877037167, -4.9760212024859758]], [[0.83631413282757094, 1.1442783042498856], [4.6873103326958532, 4.3388002517502393], [-0.96490972503824857, 2.5371322395783196], [3.9031823290491641, -3.1618510991201054], [3.677875074719573, -1.0351400381800504]], [[4.9032484455121921, -4.2979139543921141], [0.19986262572796853, 0.80623272255505718], [4.2001715463782894, -4.557960165751652], [4.0726143847294551, 3.5293630968779048], [-0.85615447752899865, 4.7447088788057528]]]),self.functionspace)
2404        arg1.setTaggedValue(1,numarray.array([[[-0.44405652077088931, 1.6649719324284709], [-4.8405560592815302, 3.6276460596241229], [4.7006126472204048, 1.9818643760823633], [0.0072529099584528467, 1.3396327343660799], [-4.8794963463462073, 1.6227978721087659]], [[1.120337185074459, -0.0053273686712262958], [-4.5669076972424714, 3.7727976179679121], [-1.2141061573565972, -1.7688734224425948], [-4.0110715082175572, 3.8407090222703264], [-0.43676922447108346, 0.63551884787757107]], [[3.2664209413771133, 4.2877873993037134], [1.2933725555880136, 0.96002554194654444], [2.1985851707951278, -0.84612847077399778], [1.4506215065850911, 4.9398006882921202], [1.2332057616515604, 2.9405519224393659]], [[-4.6357022742801899, -2.843795892312726], [-2.7099583315081732, 1.7734227448480189], [-0.48671963900979076, -4.3039029428989046], [1.2220716879391187, -3.1294852607347377], [1.6020553050541251, -1.2831002580420559]]]))        arg1.setTaggedValue(1,numarray.array([[[-0.44405652077088931, 1.6649719324284709], [-4.8405560592815302, 3.6276460596241229], [4.7006126472204048, 1.9818643760823633], [0.0072529099584528467, 1.3396327343660799], [-4.8794963463462073, 1.6227978721087659]], [[1.120337185074459, -0.0053273686712262958], [-4.5669076972424714, 3.7727976179679121], [-1.2141061573565972, -1.7688734224425948], [-4.0110715082175572, 3.8407090222703264], [-0.43676922447108346, 0.63551884787757107]], [[3.2664209413771133, 4.2877873993037134], [1.2933725555880136, 0.96002554194654444], [2.1985851707951278, -0.84612847077399778], [1.4506215065850911, 4.9398006882921202], [1.2332057616515604, 2.9405519224393659]], [[-4.6357022742801899, -2.843795892312726], [-2.7099583315081732, 1.7734227448480189], [-0.48671963900979076, -4.3039029428989046], [1.2220716879391187, -3.1294852607347377], [1.6020553050541251, -1.2831002580420559]]]))
2405        res=add(arg0,arg1)        res=add(arg0,arg1)
2406        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2407        ref=msk_ref*numarray.array([[[3.5111615019876865, 6.4229754344472916], [-2.226765502018635, 2.3900900360065602], [2.5232159233340559, 2.0844089229721883], [4.6303200380118472, 1.8189228627461542], [-5.633829269857646, -3.8191964319062852]], [[-4.2721831013610965, -4.9994710264431124], [-7.3994265561294883, -4.4653282379593202], [1.7016170339646779, 0.16966788006738831], [3.0436638675775525, 4.0553175839307958], [4.6167683040781498, -0.64332643717819771]], [[2.9495382999168918, 3.2575024713392065], [0.9504417844077051, 0.60193170346209124], [1.9739262275415319, 5.4759681921581], [7.5650537930576771, 0.50002036488840762], [6.8201338653296766, 2.1071187524300532]], [[6.2473375543866263, -2.9538248455176799], [-0.38237285535840293, 0.22399724146868571], [8.459346547482113, -0.29878516464782834], [8.028753689868017, 7.4855024020164667], [0.9110932444512434, 6.5119566007859948]]])+(1.-msk_ref)*numarray.array([[[2.8137381849950209, 4.9227666381943811], [-3.6292124927646316, 4.8389896261410215], [7.0820938367352468, 4.3633455655972053], [-1.8005021131529575, -0.46812228874533046], [-9.7540682878418341, -3.2517740693868609]], [[-3.0063074639545677, -4.131972017700253], [-4.747392122286735, 3.5923131929236485], [-5.5067190548574816, -6.0614863199434792], [-5.7713340979190795, 2.0804464325688041], [2.6895528771684774, 3.7618409495171319]], [[6.4802263459942662, 7.5015928039208664], [0.11291152207606903, -0.2204354915654001], [5.4666356695477392, 2.4219220279786136], [-2.3980300677705069, 1.0911491139365221], [5.2491974443768834, 6.9565436051646889]], [[0.03151296840969664, 1.8234193503771605], [1.9885947844213563, 6.4719758607775484], [4.3161241684639409, 0.498940864574827], [5.0222371299109181, 0.67068018123706175], [4.94402322567037, 2.0588676625741891]]])        ref=msk_ref*numarray.array([[[3.5111615019876865, 6.4229754344472916], [-2.226765502018635, 2.3900900360065602], [2.5232159233340559, 2.0844089229721883], [4.6303200380118472, 1.8189228627461542], [-5.633829269857646, -3.8191964319062852]], [[-4.2721831013610965, -4.9994710264431124], [-7.3994265561294883, -4.4653282379593202], [1.7016170339646779, 0.16966788006738831], [3.0436638675775525, 4.0553175839307958], [4.6167683040781498, -0.64332643717819771]], [[2.9495382999168918, 3.2575024713392065], [0.9504417844077051, 0.60193170346209124], [1.9739262275415319, 5.4759681921581], [7.5650537930576771, 0.50002036488840762], [6.8201338653296766, 2.1071187524300532]], [[6.2473375543866263, -2.9538248455176799], [-0.38237285535840293, 0.22399724146868571], [8.459346547482113, -0.29878516464782834], [8.028753689868017, 7.4855024020164667], [0.9110932444512434, 6.5119566007859948]]])+(1.-msk_ref)*numarray.array([[[2.8137381849950209, 4.9227666381943811], [-3.6292124927646316, 4.8389896261410215], [7.0820938367352468, 4.3633455655972053], [-1.8005021131529575, -0.46812228874533046], [-9.7540682878418341, -3.2517740693868609]], [[-3.0063074639545677, -4.131972017700253], [-4.747392122286735, 3.5923131929236485], [-5.5067190548574816, -6.0614863199434792], [-5.7713340979190795, 2.0804464325688041], [2.6895528771684774, 3.7618409495171319]], [[6.4802263459942662, 7.5015928039208664], [0.11291152207606903, -0.2204354915654001], [5.4666356695477392, 2.4219220279786136], [-2.3980300677705069, 1.0911491139365221], [5.2491974443768834, 6.9565436051646889]], [[0.03151296840969664, 1.8234193503771605], [1.9885947844213563, 6.4719758607775484], [4.3161241684639409, 0.498940864574827], [5.0222371299109181, 0.67068018123706175], [4.94402322567037, 2.0588676625741891]]])
2408        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2409        self.failUnlessEqual(res.getShape(),(4, 5, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5, 2),"wrong shape of result.")
2410        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2411     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2412     def test_add_expandedData_rank4_taggedData_rank2(self):     def test_add_expandedData_rank4_taggedData_rank2(self):
2413        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2414        arg0=msk_arg0*numarray.array([[[[1.3869947226416404, -2.1010022334054823, 2.2040130948649228, 3.3966197635940603, 0.9721391679351763], [4.0400888494945306, -3.2570932569471767, 0.12368088058274029, 3.3225086526475209, 0.73492825164452036], [-0.75088787026640258, -2.3234267466455694, -0.25995161207090334, 1.884338247241014, 2.7808239259336212], [-0.8109980158936736, -0.99398849193299377, -1.5501906603665914, 3.3594300381588216, -4.4778938564000974]], [[-2.39585455411199, -2.463217916031347, 2.1849541598523112, 2.6092387590369501, 0.74926027302615239], [-0.962009949979449, 3.5751478566498989, 4.453651788995618, 4.051546033261074, 1.2930910700941336], [3.8824078870990899, 4.0165262285650325, 4.431566237457611, 0.057481547113927611, 1.3006912124278891], [4.9712571994800552, 2.0038679170654863, -2.1746133968148316, -3.1814952836886734, -3.2001753834110813]], [[1.9023187041894705, -3.821711914274605, -2.0033912806264045, -4.2173345641268423, -3.8572289558289796], [-3.0126167381425595, -1.3043058245705641, 3.557467304608501, -3.2407097192899057, -4.6434267953271648], [-3.6936637773774503, 1.8702566072477893, -0.17523100520671164, 4.3643732950765521, 2.3854726518443146], [4.333969035423511, 2.4803658603037082, 1.0334460061927722, -3.2402036660123512, 2.4185678718899446]], [[-0.38039531393632942, -2.3023967413540447, -4.6220423283697194, 4.0387479777454729, -2.0105480596703895], [4.9035845410546504, 0.90410804333598183, 0.554262184560395, 0.19977451324276885, -3.5592065457981992], [0.59984740328251984, 2.2320440843338947, -4.0808811907456732, 2.9323400924476566, -0.68317409529978335], [3.3681996577130846, 2.2947493167356345, -2.7863422107477809, 3.6787923679869152, 1.0592830956970385]], [[-3.4034777040243078, -2.4521442166881204, 1.9030609453958007, 1.6481086965951022, -0.59750095006613524], [-1.1535808628629498, -3.3417523901963997, -1.8286747930789304, 1.3145042560361064, 2.8217827287044841], [3.2736242204077985, -4.2455889790647703, 0.42238355266737493, 2.7057591700189052, 1.4208316835895554], [0.95366497610118728, 3.8366027691617894, 2.6196281913191548, 3.0346814770099879, 1.2889231206742666]]], [[[-0.77789890136354067, -2.5957923197355495, 3.6827762971967353, 1.440757554810447, -3.6502281571729664], [2.8469010400680013, -0.11056161583419399, 4.7675602166518889, 1.1159722233908012, 1.4918891300838926], [-0.14605318853023874, 4.8617701661026818, 3.6238293777895905, 0.4269497028501954, 0.20877810986544088], [4.9996303763516075, 2.2490800370301205, -0.82413129440823774, -2.5335950210933489, -4.8306058609459566]], [[-3.5112048341110214, 0.59638826766869624, 0.87896887716860128, 3.6384014641975035, -3.2965223925954712], [2.424540009838255, 4.8747551761695558, 2.8663546331905518, -0.08489904671946924, 3.8652268752178962], [-4.5435449616130814, -0.61758457974869341, 3.3574697348619011, -3.2041014803443959, 0.89405776640646017], [-1.4334759727207738, -2.610634902009644, 1.9078500517763173, 1.327059576903733, 2.8348191514661885]], [[-0.74470635725672807, -3.5693097992305276, 2.3411985313938235, -1.3285075168461891, 2.4989815202485852], [4.7467664319308014, 0.9104573598761263, -4.3356659813938432, -1.0983915637147037, 0.041379671724244282], [4.3598625123610564, 2.1847574152637996, 2.6753192933025263, -1.1767559473557778, 0.47125193844118662], [2.4608296456655951, -0.92761621765888957, 3.6195661900008478, -4.0724324950700428, -3.6344157992905677]], [[-3.7057609950933812, 1.2167570722779555, 3.992727518801507, 4.8313905383833351, 2.4551958816248876], [1.5218842158575505, -1.4051247666286271, -1.1947790069560913, -0.8252234864649699, 0.71488379321033335], [3.8723688489804093, -4.8017607405944513, -0.31432009107399406, 2.976592665192638, 0.30122252929063098], [1.5562321309492946, -0.51278266882817913, -1.3722374556370309, 4.0799861213278561, -2.9879712138959666]], [[-1.1132015811182292, -0.52604817444617069, 3.3023651812826618, -1.8581051798996984, 1.040489075536339], [-3.3517175585413495, 0.16855134394213422, -2.9029956796093925, 0.19207064297572263, 3.7020683477270282], [-2.8636215460011991, 4.8811130658864226, 0.67459121602524164, -2.4166451279304124, 3.2223878962417416], [4.234273622848395, 0.42491877975969761, 3.0852004281428567, -3.6142998931156556, -1.5374431535096345]]], [[[0.70305738900083714, -0.69873601579025024, -3.2457085761722193, -3.2582788405409993, 1.0840243373142888], [-1.3700097561617683, 1.1016317608770994, -4.6246759310459744, 0.71959528460146327, -2.4914989651203157], [-1.2350885817240598, 4.4417448225781122, 3.2842721790560496, -0.43074591661483641, -3.7370819896838503], [-1.2366013717929891, -3.2390394119216337, -0.378953457529974, -3.3616376383617155, 0.28775130567835383]], [[4.7908248125759236, 3.5513084234192789, 3.8465453010943325, -2.7183978826045605, -3.2868455657149678], [1.0383162787656621, -2.6896017542362149, -1.0529151727928476, -1.6379157678879439, -0.76592788124156819], [-3.5107852518820892, -2.6508045612196685, -4.2159119670598422, -0.34144693285778871, 3.6845729247842574], [-2.8377222180909225, 1.4743088720073496, -2.086399741806181, -1.6806730828530569, -2.3684553114482645]], [[0.796550858881937, 0.57005417631590838, -0.32033792940857353, -3.9876689090979478, 2.9990662163208039], [-0.6071085371393643, -1.3746110939492331, -2.5102422698664419, 3.2052991943400126, 4.1372208781371391], [-2.2136627111584728, -3.7994695845634641, 2.6629531152533641, -4.4655988660290475, -3.1287918746217858], [-0.32109916555212425, -3.8140245730934241, 2.2175665762428123, 3.5936214185378184, -3.103936827500279]], [[4.9523525001213073, 4.1781987720522729, 4.6395459045103156, 0.76737194498288108, -4.863566543488397], [-3.3305935558824409, -4.4308674489273079, 2.1074980176447777, 4.1893315726626028, -1.1745495283209073], [-4.2310340706588061, -2.5188449566844708, -3.5411060768878988, -4.6277480347852187, -3.3860646770113201], [3.5517600505375011, -2.1399221211594233, -0.49970114822061351, 3.2511029214477745, 0.11244479450280931]], [[-3.9685299165590338, -4.8016540539675034, -0.25114104172394747, -2.2850349067143738, 2.6986581159183887], [1.4526829763044287, -4.0998414298482535, 0.68414844542005948, 1.6428339691979179, -1.5430426129105888], [-0.81902173400950851, 2.4202282998268876, 0.89682809051175916, -2.3878827209317621, 1.0765129150557833], [-3.5443713614421037, 0.14277562904309793, 3.0051763825036044, 2.2891975511912754, 3.708997360733651]]], [[[4.6220129580465326, -4.0539916404549716, -1.8577238095563429, 4.2759993083970684, 3.0242175223644967], [-3.7914173287567099, -3.1370866922408611, 0.45215888830052542, -4.5095922957573107, -2.6741185070445117], [2.2204828826646716, -3.7681329115195474, -1.7029564180244283, 2.3619577537710166, -1.2822089260302372], [-1.192095811163072, -2.3599756147367135, -3.0249640557257065, 4.0332849538934834, 0.98022268009684943]], [[-2.4841130548862624, 4.2795993065048101, -2.0374722832381842, -1.6258060680500197, -3.5061982490551804], [-0.62796171124253153, 1.0974833018565295, 0.99690592171300185, 1.3851917826796667, 0.9514631047798332], [-2.0099385193534856, 2.3272053917569568, 2.303610318237526, 2.5861450888736037, -3.8407134141390955], [3.6750269741781363, -0.19650228972078132, 3.8720119888179472, -1.0446968018089398, 0.024996306326725559]], [[2.9092561673751121, -4.4648796802068347, 0.40734023864659186, -2.2834164244695385, 0.18816237451115736], [2.8217138045376071, -2.079366302196747, -4.9634657763436971, 1.3231062632149806, 2.6074764329300093], [1.4224381625121216, -0.98253796687299921, 4.5414595242355755, 4.1647801575366348, 4.9000824545308248], [-0.61153930828848679, -4.1877135081479615, 3.0515948544239482, 0.38118224873395157, 2.2310194546803386]], [[3.7157974535484719, 1.2467631597902304, 0.41409706477324537, 3.9786291473443303, 0.80535908451093263], [4.4504790570703729, 4.1809109245289129, 1.3060759140803189, 1.0941873519927769, 0.81750987746466475], [0.71623006451663951, 4.874496230483194, -0.97732784865987199, -3.1743237672030067, -3.5881316495722593], [-1.7733717142312422, -4.5182871030216623, 0.80653846343304547, 3.9543481920298138, -0.58402531597367791]], [[-2.919355482850694, -1.0582341922170704, -0.14013216170990539, 2.8802207511020494, -2.6724214002898119], [-1.1978578540981966, 3.8786319157322513, 2.5842203720405497, 3.891263906166337, -1.4885763524029825], [-0.80791056766749225, 3.4351085523049179, -2.7282109077487036, -4.2528847494054531, 0.55590080200640024], [4.3381078514213574, 2.4117513671592485, -1.8656575904182904, -1.7114708841207262, 2.8027883588916271]]]])+(1.-msk_arg0)*numarray.array([[[[2.7569878169806845, -1.7780736098623686, 0.53922077083022479, -2.2362324653380639, -0.25239217249165868], [1.7515052863635026, -2.1140849209744115, -4.0837744519895427, -3.9545128189982659, -3.3725427774063075], [-2.5420272142605382, -1.4053271181275107, -1.1618073263135322, -2.3141769711633389, 3.4822390594542636], [-0.2887527699400918, -3.8577036109870502, -0.12466647090885452, 0.90048355453618711, -2.2051717469771113]], [[-0.94633988977834615, 2.3176185589178839, -4.5048444421109002, 1.6404366666517722, -2.1583526752555837], [2.5736435776122999, 1.1536577055534325, -2.792208323277209, 2.3953450042613555, 0.54689018707220782], [4.2795479069846074, -0.54009984097679542, 2.7702403842010623, 2.2043642250482591, 0.49228565690204729], [1.7699482492848979, -4.7255309256983571, -1.1231342656254171, 4.2673116264568662, 0.70580631663046045]], [[-1.68728742690617, -0.05448228446733161, -4.6630797531137755, -4.1712219455628112, 4.7021202084450824], [-4.9428611278586683, -4.5179306405733488, 2.0556601412940401, -3.8679943537890771, -3.8329690080940928], [-4.7785510276980547, -1.1803892819504034, 2.1372081719435601, 3.5364157652610473, -0.87140656858757026], [1.7904052845936205, -1.3585162695441633, -0.78186633208530143, 1.837110867751095, 0.44946991745816067]], [[-4.6888378436081375, -4.7743546425379595, -1.0771787793144871, -0.67763716215015535, 4.0388788905344608], [-0.139476430285848, -3.5495563909236969, 3.3121645288091131, -2.5745585148181727, -3.7695163302585266], [-0.65322263296401228, -0.61246828350262383, 2.6251052122224108, 0.58856029209373162, -2.6992824493853096], [-4.0838822204770997, -3.8175502198342026, -3.9572757639865994, -4.8512291774020921, -1.3020579420593381]], [[-1.8276430403608024, 0.44882247049054058, -0.56568246212844997, -2.5008506181592671, -3.3619318964540423], [4.6075038165565623, -2.4422965424706544, -1.9665090863681578, -2.0325369112121683, -3.4712581324238254], [-2.8240547395315865, 1.2407791784792712, -1.4279303730827242, -2.4320292308942912, 3.6575073789818084], [0.82297931826116688, -4.7894605916232438, 4.6429495337635682, -2.9392511484196291, 4.324251494354673]]], [[[-3.1133168645343687, 3.6510008476328473, -0.83996218983603477, -3.4736797945741928, -3.5838257499203143], [-0.17872640213340851, 1.4726171718757533, 3.0830868979090393, 2.640959564403591, 4.1244236806213959], [0.81536602312663664, 4.9204982890244313, -3.3987031687014948, 4.8692659233087561, -4.7864087672875737], [-4.5358074056236859, 0.23000940463408348, -3.7688123415229366, -3.1423321718829356, 2.6967491413892386]], [[-2.4788364179351152, -4.4454003441135583, 4.1515889084629336, -2.7010188348391937, 1.9867132147046194], [-2.7342054023877216, 4.2430388859811359, -4.6673650942254721, -4.5372958455247101, -1.4603524025129753], [2.6730049102700253, 4.0842348681847991, -3.9124033463999028, -2.6387500702828959, -4.332996312913016], [-1.728570198176179, 3.4584941161585334, -3.6205147625549672, 0.87154940010881532, -4.0024475560953281]], [[-3.4255818020934869, 2.3964645798390096, -3.6476416145680588, -3.440058479767357, -4.1036073050368085], [-4.1284902224019939, 2.800193578956014, 1.0159973777466664, -4.9172886203337285, 1.0929617046560107], [3.8392637033861305, -3.1447392219945813, -2.2335564185445591, -4.7522169682963114, -2.5993519284130806], [1.1968233137032813, -1.1603082303223546, -2.6144204925575663, 3.7794206634662739, 2.4934556907954644]], [[-2.7749842237484468, 2.2266147957594082, 1.8437453884885757, 3.3953844246462683, -4.0133843690916056], [1.7924707982213883, 4.908319257450712, 0.23778443866214527, -4.8271749563972488, 0.084213021590002768], [2.0156269938811757, 4.5543229630355047, -3.8121648663214125, -2.5797875466942921, -0.71412178995347553], [-2.4518534310710862, 3.209073131797517, -1.8971311098628241, 3.1323356926787831, 2.187485506165042]], [[4.4739181713085969, -2.6166113166132554, -2.2635112735623188, -1.9182085242762472, -2.6978713555030245], [-4.0180461266249416, 4.9393350693580018, -3.2895934736404762, 1.3101356600752432, 4.7942958188843026], [1.1946636317196022, -3.2594168235433765, 2.5611023618991977, -4.3461240815689468, 2.2028559547312776], [-1.7156634511972078, 1.1831185459887381, -1.6784929964063844, -1.8562718384881229, 3.6684952059384983]]], [[[-2.0835327887694879, 2.9199269183233065, 1.956342315625907, 3.7281006432853214, 2.6991133098017386], [2.6910330451024675, 0.77736590858961474, 3.7220332976238719, 3.0571426022653601, 1.4468325377308355], [1.0205467596676252, -0.012056225148722177, -1.5365257769834839, 4.345568796660503, 1.2466921580983135], [4.4499675255017301, 0.76681042904565899, 3.4319496227983191, 4.4855032168504696, 1.5212600424128597]], [[4.7712707964873733, -4.5145633478009364, 2.8622740264630124, -0.37122490457421797, -0.35807164430103278], [-0.89230960717223162, 2.0966459204132697, -3.352119590553432, -3.7134576751466186, 2.4347073195794167], [-3.7669953194430974, -0.5974613790524943, 1.9058861220302417, 4.9397558304590703, 3.1344076801707512], [1.7705588387231641, -4.5761911208181258, 1.9473878587599769, 4.9208424264228139, -3.6292987595084858]], [[2.0363028277117259, -4.1900233121045236, 1.3594688326369599, -1.8339101651004066, -0.35284008656080523], [0.48471711806403839, 4.2802277092930083, 0.8556357298006203, -3.8179714394223785, 0.41564725413402215], [2.5124873481019838, -3.9591113100453623, 3.6430319981575838, -2.114595466096596, 0.021115444665728234], [1.4398298656842066, -2.8962223924724118, -4.5557000692191085, 1.8021350305592687, -2.6898041557504406]], [[-0.16473612995905018, -0.93065032483061749, -0.63680609603369742, -4.4850483666425367, 2.9694166331010035], [2.6323538661335082, -1.7044606287683139, 2.9829460171412272, 4.3480612923481257, -4.0726074010880362], [-1.7000674906964552, 1.4989029699532139, -4.7663364322344917, -0.80431049549990252, -4.2905602363591333], [-2.2958285344824478, -4.8630083483267104, -1.6868087717478595, 0.72125116086139052, -3.5832943730398981]], [[1.1381366494443581, -1.636550626955712, -4.0921144815703538, -1.5407093232206326, -3.9455860881425489], [-1.6669175222731147, 0.69014519350440473, 1.4546054402208259, 0.99840476718975602, 1.1744994555688777], [0.81377737071364287, -1.8852562993728705, 1.1669296467488603, 1.5594605855192869, 1.0130193719056404], [2.8552747633763031, 3.9869550669991742, 4.5175672228760462, 0.041985793845218389, -1.5401560062195752]]], [[[4.9908782238217384, 3.5754096756789995, 2.4277841574199091, 1.5306897476760248, 4.5967608329925227], [-2.1319932614206474, -2.2149654109463803, 2.8079161321642578, 4.9231446762108142, -2.674386264924391], [-2.1096612452803845, -2.7110995733948351, 2.1823130500465391, -0.0031442289342686891, 3.0295155243766967], [-3.5244190217292348, -4.0542883020218028, -2.037319824233419, -2.6806093596515321, -4.11821638289174]], [[3.7885220206037076, -2.4618571223430399, -2.8091760422594811, 0.28160520389785226, 0.89355996545935046], [4.7502879079888167, -4.1621003871005282, 4.7912231905427287, -0.96052773786453027, -1.4828645730046186], [3.3793892292472432, -0.98134243546021072, -3.9610464016914984, 2.2160826062117707, -0.30984736100867494], [1.9028972317946895, -1.722646850764753, 1.5746753533111066, 0.75170320182018457, 3.8274557392412571]], [[-0.76230043462214425, -0.42737071735770726, 0.6216085563267395, -1.292393331229571, -3.6296124115672668], [-1.7783133981526222, -3.7501178930171344, -2.088086432252898, 4.3179248414348272, 2.6375769399416704], [1.2893048159383529, -0.26405278724064196, 4.8512568293500689, -3.4139525351529687, -3.2542367060392516], [-1.8910538017501102, -1.5922831599958531, 1.430716304023103, 4.4036886065006282, 2.4721799726332989]], [[3.9150732634362146, -4.3947868737494558, 1.5377976558503565, -3.1855097007095368, 1.7949130112790765], [-1.332833832995548, -2.7185006903507225, -4.3107486763540237, 2.4911055172849856, 2.5666598391900317], [-3.2917736297266664, -1.518646431363889, 4.2075542302244209, -2.7275443435256186, 4.935207591283179], [3.0718759274631662, -2.8973449915113312, 1.8728479864555245, 2.122004455455027, 3.5187049499028884]], [[-4.3222789944705866, -2.3967697665460186, 1.2057217850691426, -0.50835495550498511, 1.0681591994941906], [3.8661128256046489, -1.3356529017238272, 3.56139437342134, 4.7159846480986278, 4.577248165863212], [-1.1449148903691997, 0.75809409020330509, -2.9508898497151415, 1.8390434374322986, 0.57226142858188744], [-1.4540958650177069, 0.17242286016028263, -1.4102958409000497, 1.8630656168598225, 0.19256337346169339]]]])        arg0=msk_arg0*numarray.array([[[[1.3869947226416404, -2.1010022334054823, 2.2040130948649228, 3.3966197635940603, 0.9721391679351763], [4.0400888494945306, -3.2570932569471767, 0.12368088058274029, 3.3225086526475209, 0.73492825164452036], [-0.75088787026640258, -2.3234267466455694, -0.25995161207090334, 1.884338247241014, 2.7808239259336212], [-0.8109980158936736, -0.99398849193299377, -1.5501906603665914, 3.3594300381588216, -4.4778938564000974]], [[-2.39585455411199, -2.463217916031347, 2.1849541598523112, 2.6092387590369501, 0.74926027302615239], [-0.962009949979449, 3.5751478566498989, 4.453651788995618, 4.051546033261074, 1.2930910700941336], [3.8824078870990899, 4.0165262285650325, 4.431566237457611, 0.057481547113927611, 1.3006912124278891], [4.9712571994800552, 2.0038679170654863, -2.1746133968148316, -3.1814952836886734, -3.2001753834110813]], [[1.9023187041894705, -3.821711914274605, -2.0033912806264045, -4.2173345641268423, -3.8572289558289796], [-3.0126167381425595, -1.3043058245705641, 3.557467304608501, -3.2407097192899057, -4.6434267953271648], [-3.6936637773774503, 1.8702566072477893, -0.17523100520671164, 4.3643732950765521, 2.3854726518443146], [4.333969035423511, 2.4803658603037082, 1.0334460061927722, -3.2402036660123512, 2.4185678718899446]], [[-0.38039531393632942, -2.3023967413540447, -4.6220423283697194, 4.0387479777454729, -2.0105480596703895], [4.9035845410546504, 0.90410804333598183, 0.554262184560395, 0.19977451324276885, -3.5592065457981992], [0.59984740328251984, 2.2320440843338947, -4.0808811907456732, 2.9323400924476566, -0.68317409529978335], [3.3681996577130846, 2.2947493167356345, -2.7863422107477809, 3.6787923679869152, 1.0592830956970385]], [[-3.4034777040243078, -2.4521442166881204, 1.9030609453958007, 1.6481086965951022, -0.59750095006613524], [-1.1535808628629498, -3.3417523901963997, -1.8286747930789304, 1.3145042560361064, 2.8217827287044841], [3.2736242204077985, -4.2455889790647703, 0.42238355266737493, 2.7057591700189052, 1.4208316835895554], [0.95366497610118728, 3.8366027691617894, 2.6196281913191548, 3.0346814770099879, 1.2889231206742666]]], [[[-0.77789890136354067, -2.5957923197355495, 3.6827762971967353, 1.440757554810447, -3.6502281571729664], [2.8469010400680013, -0.11056161583419399, 4.7675602166518889, 1.1159722233908012, 1.4918891300838926], [-0.14605318853023874, 4.8617701661026818, 3.6238293777895905, 0.4269497028501954, 0.20877810986544088], [4.9996303763516075, 2.2490800370301205, -0.82413129440823774, -2.5335950210933489, -4.8306058609459566]], [[-3.5112048341110214, 0.59638826766869624, 0.87896887716860128, 3.6384014641975035, -3.2965223925954712], [2.424540009838255, 4.8747551761695558, 2.8663546331905518, -0.08489904671946924, 3.8652268752178962], [-4.5435449616130814, -0.61758457974869341, 3.3574697348619011, -3.2041014803443959, 0.89405776640646017], [-1.4334759727207738, -2.610634902009644, 1.9078500517763173, 1.327059576903733, 2.8348191514661885]], [[-0.74470635725672807, -3.5693097992305276, 2.3411985313938235, -1.3285075168461891, 2.4989815202485852], [4.7467664319308014, 0.9104573598761263, -4.3356659813938432, -1.0983915637147037, 0.041379671724244282], [4.3598625123610564, 2.1847574152637996, 2.6753192933025263, -1.1767559473557778, 0.47125193844118662], [2.4608296456655951, -0.92761621765888957, 3.6195661900008478, -4.0724324950700428, -3.6344157992905677]], [[-3.7057609950933812, 1.2167570722779555, 3.992727518801507, 4.8313905383833351, 2.4551958816248876], [1.5218842158575505, -1.4051247666286271, -1.1947790069560913, -0.8252234864649699, 0.71488379321033335], [3.8723688489804093, -4.8017607405944513, -0.31432009107399406, 2.976592665192638, 0.30122252929063098], [1.5562321309492946, -0.51278266882817913, -1.3722374556370309, 4.0799861213278561, -2.9879712138959666]], [[-1.1132015811182292, -0.52604817444617069, 3.3023651812826618, -1.8581051798996984, 1.040489075536339], [-3.3517175585413495, 0.16855134394213422, -2.9029956796093925, 0.19207064297572263, 3.7020683477270282], [-2.8636215460011991, 4.8811130658864226, 0.67459121602524164, -2.4166451279304124, 3.2223878962417416], [4.234273622848395, 0.42491877975969761, 3.0852004281428567, -3.6142998931156556, -1.5374431535096345]]], [[[0.70305738900083714, -0.69873601579025024, -3.2457085761722193, -3.2582788405409993, 1.0840243373142888], [-1.3700097561617683, 1.1016317608770994, -4.6246759310459744, 0.71959528460146327, -2.4914989651203157], [-1.2350885817240598, 4.4417448225781122, 3.2842721790560496, -0.43074591661483641, -3.7370819896838503], [-1.2366013717929891, -3.2390394119216337, -0.378953457529974, -3.3616376383617155, 0.28775130567835383]], [[4.7908248125759236, 3.5513084234192789, 3.8465453010943325, -2.7183978826045605, -3.2868455657149678], [1.0383162787656621, -2.6896017542362149, -1.0529151727928476, -1.6379157678879439, -0.76592788124156819], [-3.5107852518820892, -2.6508045612196685, -4.2159119670598422, -0.34144693285778871, 3.6845729247842574], [-2.8377222180909225, 1.4743088720073496, -2.086399741806181, -1.6806730828530569, -2.3684553114482645]], [[0.796550858881937, 0.57005417631590838, -0.32033792940857353, -3.9876689090979478, 2.9990662163208039], [-0.6071085371393643, -1.3746110939492331, -2.5102422698664419, 3.2052991943400126, 4.1372208781371391], [-2.2136627111584728, -3.7994695845634641, 2.6629531152533641, -4.4655988660290475, -3.1287918746217858], [-0.32109916555212425, -3.8140245730934241, 2.2175665762428123, 3.5936214185378184, -3.103936827500279]], [[4.9523525001213073, 4.1781987720522729, 4.6395459045103156, 0.76737194498288108, -4.863566543488397], [-3.3305935558824409, -4.4308674489273079, 2.1074980176447777, 4.1893315726626028, -1.1745495283209073], [-4.2310340706588061, -2.5188449566844708, -3.5411060768878988, -4.6277480347852187, -3.3860646770113201], [3.5517600505375011, -2.1399221211594233, -0.49970114822061351, 3.2511029214477745, 0.11244479450280931]], [[-3.9685299165590338, -4.8016540539675034, -0.25114104172394747, -2.2850349067143738, 2.6986581159183887], [1.4526829763044287, -4.0998414298482535, 0.68414844542005948, 1.6428339691979179, -1.5430426129105888], [-0.81902173400950851, 2.4202282998268876, 0.89682809051175916, -2.3878827209317621, 1.0765129150557833], [-3.5443713614421037, 0.14277562904309793, 3.0051763825036044, 2.2891975511912754, 3.708997360733651]]], [[[4.6220129580465326, -4.0539916404549716, -1.8577238095563429, 4.2759993083970684, 3.0242175223644967], [-3.7914173287567099, -3.1370866922408611, 0.45215888830052542, -4.5095922957573107, -2.6741185070445117], [2.2204828826646716, -3.7681329115195474, -1.7029564180244283, 2.3619577537710166, -1.2822089260302372], [-1.192095811163072, -2.3599756147367135, -3.0249640557257065, 4.0332849538934834, 0.98022268009684943]], [[-2.4841130548862624, 4.2795993065048101, -2.0374722832381842, -1.6258060680500197, -3.5061982490551804], [-0.62796171124253153, 1.0974833018565295, 0.99690592171300185, 1.3851917826796667, 0.9514631047798332], [-2.0099385193534856, 2.3272053917569568, 2.303610318237526, 2.5861450888736037, -3.8407134141390955], [3.6750269741781363, -0.19650228972078132, 3.8720119888179472, -1.0446968018089398, 0.024996306326725559]], [[2.9092561673751121, -4.4648796802068347, 0.40734023864659186, -2.2834164244695385, 0.18816237451115736], [2.8217138045376071, -2.079366302196747, -4.9634657763436971, 1.3231062632149806, 2.6074764329300093], [1.4224381625121216, -0.98253796687299921, 4.5414595242355755, 4.1647801575366348, 4.9000824545308248], [-0.61153930828848679, -4.1877135081479615, 3.0515948544239482, 0.38118224873395157, 2.2310194546803386]], [[3.7157974535484719, 1.2467631597902304, 0.41409706477324537, 3.9786291473443303, 0.80535908451093263], [4.4504790570703729, 4.1809109245289129, 1.3060759140803189, 1.0941873519927769, 0.81750987746466475], [0.71623006451663951, 4.874496230483194, -0.97732784865987199, -3.1743237672030067, -3.5881316495722593], [-1.7733717142312422, -4.5182871030216623, 0.80653846343304547, 3.9543481920298138, -0.58402531597367791]], [[-2.919355482850694, -1.0582341922170704, -0.14013216170990539, 2.8802207511020494, -2.6724214002898119], [-1.1978578540981966, 3.8786319157322513, 2.5842203720405497, 3.891263906166337, -1.4885763524029825], [-0.80791056766749225, 3.4351085523049179, -2.7282109077487036, -4.2528847494054531, 0.55590080200640024], [4.3381078514213574, 2.4117513671592485, -1.8656575904182904, -1.7114708841207262, 2.8027883588916271]]]])+(1.-msk_arg0)*numarray.array([[[[2.7569878169806845, -1.7780736098623686, 0.53922077083022479, -2.2362324653380639, -0.25239217249165868], [1.7515052863635026, -2.1140849209744115, -4.0837744519895427, -3.9545128189982659, -3.3725427774063075], [-2.5420272142605382, -1.4053271181275107, -1.1618073263135322, -2.3141769711633389, 3.4822390594542636], [-0.2887527699400918, -3.8577036109870502, -0.12466647090885452, 0.90048355453618711, -2.2051717469771113]], [[-0.94633988977834615, 2.3176185589178839, -4.5048444421109002, 1.6404366666517722, -2.1583526752555837], [2.5736435776122999, 1.1536577055534325, -2.792208323277209, 2.3953450042613555, 0.54689018707220782], [4.2795479069846074, -0.54009984097679542, 2.7702403842010623, 2.2043642250482591, 0.49228565690204729], [1.7699482492848979, -4.7255309256983571, -1.1231342656254171, 4.2673116264568662, 0.70580631663046045]], [[-1.68728742690617, -0.05448228446733161, -4.6630797531137755, -4.1712219455628112, 4.7021202084450824], [-4.9428611278586683, -4.5179306405733488, 2.0556601412940401, -3.8679943537890771, -3.8329690080940928], [-4.7785510276980547, -1.1803892819504034, 2.1372081719435601, 3.5364157652610473, -0.87140656858757026], [1.7904052845936205, -1.3585162695441633, -0.78186633208530143, 1.837110867751095, 0.44946991745816067]], [[-4.6888378436081375, -4.7743546425379595, -1.0771787793144871, -0.67763716215015535, 4.0388788905344608], [-0.139476430285848, -3.5495563909236969, 3.3121645288091131, -2.5745585148181727, -3.7695163302585266], [-0.65322263296401228, -0.61246828350262383, 2.6251052122224108, 0.58856029209373162, -2.6992824493853096], [-4.0838822204770997, -3.8175502198342026, -3.9572757639865994, -4.8512291774020921, -1.3020579420593381]], [[-1.8276430403608024, 0.44882247049054058, -0.56568246212844997, -2.5008506181592671, -3.3619318964540423], [4.6075038165565623, -2.4422965424706544, -1.9665090863681578, -2.0325369112121683, -3.4712581324238254], [-2.8240547395315865, 1.2407791784792712, -1.4279303730827242, -2.4320292308942912, 3.6575073789818084], [0.82297931826116688, -4.7894605916232438, 4.6429495337635682, -2.9392511484196291, 4.324251494354673]]], [[[-3.1133168645343687, 3.6510008476328473, -0.83996218983603477, -3.4736797945741928, -3.5838257499203143], [-0.17872640213340851, 1.4726171718757533, 3.0830868979090393, 2.640959564403591, 4.1244236806213959], [0.81536602312663664, 4.9204982890244313, -3.3987031687014948, 4.8692659233087561, -4.7864087672875737], [-4.5358074056236859, 0.23000940463408348, -3.7688123415229366, -3.1423321718829356, 2.6967491413892386]], [[-2.4788364179351152, -4.4454003441135583, 4.1515889084629336, -2.7010188348391937, 1.9867132147046194], [-2.7342054023877216, 4.2430388859811359, -4.6673650942254721, -4.5372958455247101, -1.4603524025129753], [2.6730049102700253, 4.0842348681847991, -3.9124033463999028, -2.6387500702828959, -4.332996312913016], [-1.728570198176179, 3.4584941161585334, -3.6205147625549672, 0.87154940010881532, -4.0024475560953281]], [[-3.4255818020934869, 2.3964645798390096, -3.6476416145680588, -3.440058479767357, -4.1036073050368085], [-4.1284902224019939, 2.800193578956014, 1.0159973777466664, -4.9172886203337285, 1.0929617046560107], [3.8392637033861305, -3.1447392219945813, -2.2335564185445591, -4.7522169682963114, -2.5993519284130806], [1.1968233137032813, -1.1603082303223546, -2.6144204925575663, 3.7794206634662739, 2.4934556907954644]], [[-2.7749842237484468, 2.2266147957594082, 1.8437453884885757, 3.3953844246462683, -4.0133843690916056], [1.7924707982213883, 4.908319257450712, 0.23778443866214527, -4.8271749563972488, 0.084213021590002768], [2.0156269938811757, 4.5543229630355047, -3.8121648663214125, -2.5797875466942921, -0.71412178995347553], [-2.4518534310710862, 3.209073131797517, -1.8971311098628241, 3.1323356926787831, 2.187485506165042]], [[4.4739181713085969, -2.6166113166132554, -2.2635112735623188, -1.9182085242762472, -2.6978713555030245], [-4.0180461266249416, 4.9393350693580018, -3.2895934736404762, 1.3101356600752432, 4.7942958188843026], [1.1946636317196022, -3.2594168235433765, 2.5611023618991977, -4.3461240815689468, 2.2028559547312776], [-1.7156634511972078, 1.1831185459887381, -1.6784929964063844, -1.8562718384881229, 3.6684952059384983]]], [[[-2.0835327887694879, 2.9199269183233065, 1.956342315625907, 3.7281006432853214, 2.6991133098017386], [2.6910330451024675, 0.77736590858961474, 3.7220332976238719, 3.0571426022653601, 1.4468325377308355], [1.0205467596676252, -0.012056225148722177, -1.5365257769834839, 4.345568796660503, 1.2466921580983135], [4.4499675255017301, 0.76681042904565899, 3.4319496227983191, 4.4855032168504696, 1.5212600424128597]], [[4.7712707964873733, -4.5145633478009364, 2.8622740264630124, -0.37122490457421797, -0.35807164430103278], [-0.89230960717223162, 2.0966459204132697, -3.352119590553432, -3.7134576751466186, 2.4347073195794167], [-3.7669953194430974, -0.5974613790524943, 1.9058861220302417, 4.9397558304590703, 3.1344076801707512], [1.7705588387231641, -4.5761911208181258, 1.9473878587599769, 4.9208424264228139, -3.6292987595084858]], [[2.0363028277117259, -4.1900233121045236, 1.3594688326369599, -1.8339101651004066, -0.35284008656080523], [0.48471711806403839, 4.2802277092930083, 0.8556357298006203, -3.8179714394223785, 0.41564725413402215], [2.5124873481019838, -3.9591113100453623, 3.6430319981575838, -2.114595466096596, 0.021115444665728234], [1.4398298656842066, -2.8962223924724118, -4.5557000692191085, 1.8021350305592687, -2.6898041557504406]], [[-0.16473612995905018, -0.93065032483061749, -0.63680609603369742, -4.4850483666425367, 2.9694166331010035], [2.6323538661335082, -1.7044606287683139, 2.9829460171412272, 4.3480612923481257, -4.0726074010880362], [-1.7000674906964552, 1.4989029699532139, -4.7663364322344917, -0.80431049549990252, -4.2905602363591333], [-2.2958285344824478, -4.8630083483267104, -1.6868087717478595, 0.72125116086139052, -3.5832943730398981]], [[1.1381366494443581, -1.636550626955712, -4.0921144815703538, -1.5407093232206326, -3.9455860881425489], [-1.6669175222731147, 0.69014519350440473, 1.4546054402208259, 0.99840476718975602, 1.1744994555688777], [0.81377737071364287, -1.8852562993728705, 1.1669296467488603, 1.5594605855192869, 1.0130193719056404], [2.8552747633763031, 3.9869550669991742, 4.5175672228760462, 0.041985793845218389, -1.5401560062195752]]], [[[4.9908782238217384, 3.5754096756789995, 2.4277841574199091, 1.5306897476760248, 4.5967608329925227], [-2.1319932614206474, -2.2149654109463803, 2.8079161321642578, 4.9231446762108142, -2.674386264924391], [-2.1096612452803845, -2.7110995733948351, 2.1823130500465391, -0.0031442289342686891, 3.0295155243766967], [-3.5244190217292348, -4.0542883020218028, -2.037319824233419, -2.6806093596515321, -4.11821638289174]], [[3.7885220206037076, -2.4618571223430399, -2.8091760422594811, 0.28160520389785226, 0.89355996545935046], [4.7502879079888167, -4.1621003871005282, 4.7912231905427287, -0.96052773786453027, -1.4828645730046186], [3.3793892292472432, -0.98134243546021072, -3.9610464016914984, 2.2160826062117707, -0.30984736100867494], [1.9028972317946895, -1.722646850764753, 1.5746753533111066, 0.75170320182018457, 3.8274557392412571]], [[-0.76230043462214425, -0.42737071735770726, 0.6216085563267395, -1.292393331229571, -3.6296124115672668], [-1.7783133981526222, -3.7501178930171344, -2.088086432252898, 4.3179248414348272, 2.6375769399416704], [1.2893048159383529, -0.26405278724064196, 4.8512568293500689, -3.4139525351529687, -3.2542367060392516], [-1.8910538017501102, -1.5922831599958531, 1.430716304023103, 4.4036886065006282, 2.4721799726332989]], [[3.9150732634362146, -4.3947868737494558, 1.5377976558503565, -3.1855097007095368, 1.7949130112790765], [-1.332833832995548, -2.7185006903507225, -4.3107486763540237, 2.4911055172849856, 2.5666598391900317], [-3.2917736297266664, -1.518646431363889, 4.2075542302244209, -2.7275443435256186, 4.935207591283179], [3.0718759274631662, -2.8973449915113312, 1.8728479864555245, 2.122004455455027, 3.5187049499028884]], [[-4.3222789944705866, -2.3967697665460186, 1.2057217850691426, -0.50835495550498511, 1.0681591994941906], [3.8661128256046489, -1.3356529017238272, 3.56139437342134, 4.7159846480986278, 4.577248165863212], [-1.1449148903691997, 0.75809409020330509, -2.9508898497151415, 1.8390434374322986, 0.57226142858188744], [-1.4540958650177069, 0.17242286016028263, -1.4102958409000497, 1.8630656168598225, 0.19256337346169339]]]])
2415        arg1=Data(numarray.array([[-0.53131463379981092, 1.4487720561730129, 3.336594306503688, 3.6779964804600542, -3.3605745426194722], [-4.2012140077023838, -0.7350639876903351, 1.707144500195068, -2.8589233159048391, 4.4580547510917352], [-2.6430273872941545, 0.73149864921807861, 1.3072206575706105, 3.3770067746215773, -4.8722647774264605], [-4.1193857676745127, 3.6646601348833769, -3.2973138109193267, 2.6683196039724617, -0.49878901069885817]]),self.functionspace)        arg1=Data(numarray.array([[-0.53131463379981092, 1.4487720561730129, 3.336594306503688, 3.6779964804600542, -3.3605745426194722], [-4.2012140077023838, -0.7350639876903351, 1.707144500195068, -2.8589233159048391, 4.4580547510917352], [-2.6430273872941545, 0.73149864921807861, 1.3072206575706105, 3.3770067746215773, -4.8722647774264605], [-4.1193857676745127, 3.6646601348833769, -3.2973138109193267, 2.6683196039724617, -0.49878901069885817]]),self.functionspace)
2416        arg1.setTaggedValue(1,numarray.array([[4.2975687576609918, 3.5134482063861796, 0.91241434976022529, -2.4189529884926433, -3.3153610453363536], [-0.56063146999955826, 1.8635431688040178, 0.51775890100035671, -4.5776679657086907, 3.8314021193262295], [-2.9293854076698187, 2.3704159075364473, -3.8677750415145695, -1.3811073100527773, 4.9734353956754589], [-3.9006641241136619, -1.7840471951070658, 4.8274228354482602, 4.2782531661289429, 4.0652309468994599]]))        arg1.setTaggedValue(1,numarray.array([[4.2975687576609918, 3.5134482063861796, 0.91241434976022529, -2.4189529884926433, -3.3153610453363536], [-0.56063146999955826, 1.8635431688040178, 0.51775890100035671, -4.5776679657086907, 3.8314021193262295], [-2.9293854076698187, 2.3704159075364473, -3.8677750415145695, -1.3811073100527773, 4.9734353956754589], [-3.9006641241136619, -1.7840471951070658, 4.8274228354482602, 4.2782531661289429, 4.0652309468994599]]))
2417        res=add(arg0,arg1)        res=add(arg0,arg1)
2418        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2419        ref=msk_ref*numarray.array([[[[0.85568008884182944, -2.6323168672052932, 1.6726984610651119, 2.8653051297942493, 0.44082453413536538], [3.5087742156947197, -3.7884078907469876, -0.40763375321707063, 2.79119401884771, 0.20361361784470944], [-1.2822025040662135, -2.8547413804453803, -0.79126624587071426, 1.353023613441203, 2.2495092921338102], [-1.3423126496934845, -1.5253031257328047, -2.0815052941664023, 2.8281154043590107, -5.0092084901999083]], [[-0.94708249793897714, -1.0144458598583341, 3.6337262160253241, 4.058010815209963, 2.1980323291991652], [0.48676210619356386, 5.0239199128229117, 5.9024238451686308, 5.5003180894340868, 2.7418631262671465], [5.3311799432721028, 5.4652982847380454, 5.8803382936306239, 1.5062536032869405, 2.749463268600902], [6.420029255653068, 3.4526399732384991, -0.72584134064181871, -1.7327232275156605, -1.7514033272380685]], [[5.2389130106931585, -0.48511760777091695, 1.3332030258772836, -0.88074025762315422, -0.52063464932529158], [0.32397756836112857, 2.0322884819331239, 6.8940616111121891, 0.095884587213782346, -1.3068324888234768], [-0.35706947087376228, 5.2068509137514773, 3.1613633012969764, 7.7009676015802402, 5.7220669583480026], [7.670563341927199, 5.8169601668073962, 4.3700403126964602, 0.096390640491336832, 5.7551621783936326]], [[3.2976011665237248, 1.3755997391060095, -0.94404584790966517, 7.7167444582055271, 1.6674484207896647], [8.5815810215147046, 4.5821045237960361, 4.2322586650204492, 3.8777709937028231, 0.11878993466185506], [4.2778438837425741, 5.9100405647939489, -0.40288471028561901, 6.6103365729077108, 2.9948223851602709], [7.0461961381731388, 5.9727457971956888, 0.89165426971227335, 7.3567888484469695, 4.7372795761570927]], [[-6.7640522466437805, -5.8127187593075931, -1.4575135972236715, -1.71246584602437, -3.9580754926856074], [-4.5141554054824216, -6.7023269328158719, -5.1892493356984026, -2.0460702865833658, -0.53879181391498809], [-0.086950322211673647, -7.6061635216842429, -2.9381909899520973, -0.65481537260056699, -1.9397428590299168], [-2.4069095665182849, 0.47602822654231725, -0.74094635130031739, -0.32589306560948428, -2.0716514219452056]]], [[[-4.9791129090659245, -6.7970063274379333, -0.51843771050564857, -2.7604564528919369, -7.8514421648753503], [-1.3543129676343826, -4.3117756235365778, 0.56634620894950505, -3.0852417843115827, -2.7093248776184913], [-4.3472671962326226, 0.66055615840029791, -0.57738462991279338, -3.7742643048521884, -3.992435897836943], [0.79841636864922361, -1.9521339706722634, -5.0253453021106216, -6.7348090287957323, -9.0318198686483413]], [[-4.2462688218013565, -0.13867572002163886, 0.14390488947826618, 2.9033374765071684, -4.0315863802858063], [1.6894760221479199, 4.1396911884792207, 2.1312906455002167, -0.81996303440980434, 3.1301628875275611], [-5.2786089493034165, -1.3526485674390285, 2.622405747171566, -3.939165468034731, 0.15899377871612508], [-2.1685399604111089, -3.3456988896999791, 1.1727860640859822, 0.5919955892133979, 2.0997551637758534]], [[0.96243814293833996, -1.8621652990354596, 4.0483430315888915, 0.37863698334887896, 4.2061260204436532], [6.4539109321258694, 2.6176018600711943, -2.6285214811987752, 0.60875293648036433, 1.7485241719193123], [6.0670070125561244, 3.8919019154588677, 4.3824637934975943, 0.53038855283929021, 2.1783964386362547], [4.1679741458606632, 0.77952828253617845, 5.3267106901959158, -2.3652879948749748, -1.9272712990954997]], [[-6.5646843109982207, -1.6421662436268836, 1.1338042028966679, 1.972467222478496, -0.4037274342799515], [-1.3370391000472885, -4.2640480825334661, -4.0537023228609304, -3.684146802369809, -2.1440395226945057], [1.0134455330755703, -7.6606840564992904, -3.1732434069788331, 0.11766934928779893, -2.5577007866142081], [-1.3026911849555445, -3.3717059847330182, -4.2311607715418695, 1.221062805423017, -5.8468945298008057]], [[3.344853169973506, 3.9320065766455645, 7.760419932374397, 2.5999495711920368, 5.4985438266280742], [1.1063371925503858, 4.6266060950338694, 1.5550590714823427, 4.6501253940674578, 8.1601230988187634], [1.5944332050905361, 9.3391678169781578, 5.1326459671169768, 2.0414096231613228, 7.6804426473334768], [8.6923283739401302, 4.8829735308514328, 7.5432551792345919, 0.84375485797607963, 2.9206115975821008]]], [[[-1.9399699982933174, -3.3417634030844048, -5.8887359634663738, -5.9013062278351534, -1.5590030499798657], [-4.0130371434559233, -1.5413956264170552, -7.2677033183401285, -1.9234321026926913, -5.1345263524144702], [-3.8781159690182143, 1.7987174352839577, 0.64124479176189508, -3.073773303908991, -6.3801093769780053], [-3.8796287590871437, -5.8820667992157887, -3.0219808448241285, -6.0046650256558696, -2.3552760816158007]], [[5.5223234617940022, 4.2828070726373575, 4.5780439503124111, -1.9868992333864819, -2.5553469164968892], [1.7698149279837407, -1.9581031050181363, -0.32141652357476902, -0.9064171186698653, -0.034429232023489575], [-2.7792866026640106, -1.9193059120015898, -3.4844133178417636, 0.3900517163602899, 4.416071574002336], [-2.1062235688728439, 2.2058075212254282, -1.3549010925881024, -0.94917443363497833, -1.6369566622301859]], [[2.1037715164525475, 1.8772748338865188, 0.98688272816203693, -2.6804482515273373, 4.3062868738914144], [0.70011212043124615, -0.067390436378622631, -1.2030216122958315, 4.5125198519106231, 5.4444415357077496], [-0.90644205358786234, -2.4922489269928536, 3.9701737728239745, -3.1583782084584371, -1.8215712170511753], [0.9861214920184862, -2.5068039155228137, 3.5247872338134227, 4.9008420761084288, -1.7967161699296685]], [[8.3293592747428846, 7.5552055466738501, 8.0165526791318928, 4.1443787196044584, -1.4865597688668197], [0.046413218739136397, -1.0538606743057306, 5.484504792266355, 7.5663383472841801, 2.20245724630067], [-0.85402729603722882, 0.85816181793710644, -0.16409930226632152, -1.2507412601636414, -0.0090579023897428002], [6.9287668251590784, 1.237084653462154, 2.8773056264009638, 6.6281096960693517, 3.4894515691243866]], [[-8.8407946939854938, -9.6739188313939639, -5.1234058191504079, -7.1572996841408347, -2.1736066615080718], [-3.4195818011220318, -8.9721062072747131, -4.188116332006401, -3.2294308082285426, -6.4153073903370492], [-5.691286511435969, -2.4520364775995729, -3.9754366869147013, -7.2601474983582222, -3.7957518623706772], [-8.4166361388685651, -4.7294891483833625, -1.8670883949228561, -2.583067226235185, -1.1632674166928094]]], [[[0.50262719037201986, -8.1733774081294843, -5.9771095772308556, 0.15661354072255573, -1.095168245310016], [-7.9108030964312226, -7.2564724599153738, -3.6672268793739873, -8.6289780634318234, -6.7935042747190248], [-1.8989028850098411, -7.8875186791940601, -5.8223421856989415, -1.7574280139034961, -5.4015946937047499], [-5.3114815788375846, -6.4793613824112262, -7.1443498234002192, -0.086100813781029295, -3.1391630875776633]], [[1.1805470799971145, 7.9442594413881871, 1.6271878516451928, 2.0388540668333572, 0.15846188582819654], [3.0366984236408454, 4.7621434367399065, 4.6615660565963788, 5.0498519175630436, 4.6161232396632101], [1.6547216155298914, 5.9918655266403338, 5.968270453120903, 6.2508052237569807, -0.17605327925571856], [7.3396871090615132, 3.4681578451625956, 7.5366721237013241, 2.6199633330744372, 3.6896564412101025]], [[-0.38805764354421468, -7.7621934911261619, -2.8899735722727349, -5.5807302353888648, -3.1091514364081694], [-0.47560000638171962, -5.3766801131160733, -8.2607795872630234, -1.9742075477043461, -0.68983737798931744], [-1.8748756484072051, -4.2798517777923255, 1.2441457133162488, 0.86746634661730804, 1.6027686436114981], [-3.9088531192078135, -7.4850273190672887, -0.24571895649537856, -2.9161315621853752, -1.0662943562389882]], [[6.3841170575209336, 3.9150827637626922, 3.0824166687457071, 6.646948751316792, 3.4736786884833943], [7.1187986610428347, 6.8492305285013746, 3.9743955180527806, 3.7625069559652387, 3.4858294814371265], [3.3845496684891012, 7.5428158344556557, 1.6909917553125897, -0.50600416323054498, -0.91981204559979757], [0.89494788974121953, -1.8499674990492005, 3.4748580674055072, 6.6226677960022755, 2.0842942879987838]], [[-3.4181444935495522, -1.5570232029159286, -0.63892117240876356, 2.3814317404031913, -3.1712104109886701], [-1.6966468647970547, 3.3798429050333931, 2.0854313613416915, 3.3924748954674788, -1.9873653631018406], [-1.3066995783663504, 2.9363195416060597, -3.2269999184475617, -4.7516737601043113, 0.05711179130754207], [3.8393188407224992, 1.9129623564603904, -2.3644466011171485, -2.2102598948195844, 2.303999348192769]]]])+(1.-msk_ref)*numarray.array([[[[7.0545565746416763, 2.5194951477986232, 4.8367895284912166, 2.0613362923229279, 4.0451765851693331], [6.0490740440244943, 2.1834838366865803, 0.21379430567144908, 0.34305593866272588, 0.9250259802546843], [1.7555415434004535, 2.8922416395334811, 3.1357614313474595, 1.9833917864976529, 7.7798078171152554], [4.0088159877209, 0.43986514667394161, 4.1729022867521373, 5.1980523121971789, 2.0923970106838805]], [[2.5671083166078335, 5.8310667653040635, -0.99139623572472058, 5.1538848730379518, 1.3550955311305959], [6.0870917839984795, 4.6671059119396121, 0.72123988310897058, 5.9087932106475352, 4.0603383934583874], [7.792996113370787, 2.9733483654093842, 6.2836885905872419, 5.7178124314344387, 4.0057338632882269], [5.2833964556710775, -1.2120827193121775, 2.3903139407607625, 7.7807598328430458, 4.2192545230166401]], [[-0.77487307714594467, 0.85793206529289368, -3.7506654033535503, -3.2588075958025859, 5.6145345582053077], [-4.030446778098443, -3.6055162908131235, 2.9680744910542654, -2.9555800040288518, -2.9205546583338675], [-3.8661366779378294, -0.26797493219017809, 3.0496225217037853, 4.4488301150212726, 0.041007781172655022], [2.7028196343538458, -0.44610191978393798, 0.13054801767492386, 2.7495252175113203, 1.361884267218386]], [[-7.1077908321007808, -7.1933076310306028, -3.4961317678071304, -3.0965901506427986, 1.6199259020418175], [-2.5584294187784913, -5.9685093794163402, 0.89321154031646977, -4.9935115033108159, -6.1884693187511699], [-3.0721756214566556, -3.0314212719952671, 0.20615222372976749, -1.8303926963989117, -5.1182354378779529], [-6.502835208969743, -6.2365032083268463, -6.3762287524792427, -7.2701821658947354, -3.7210109305519814]], [[-5.1430040856971555, -2.866538574845813, -3.8810435074648035, -5.8162116634956202, -6.6772929417903963], [1.2921427712202087, -5.7576575878070084, -5.2818701317045118, -5.3478979565485218, -6.786619177760179], [-6.13941578486794, -2.0745818668570823, -4.7432914184190782, -5.7473902762306448, 0.34214633364545488], [-2.4923817270751867, -8.1048216369595973, 1.3275884884272147, -6.2546121937559827, 1.0088904490183195]]], [[[-3.673948334533927, 3.090369377633289, -1.400593659835593, -4.0343112645737511, -4.1444572199198726], [-0.73935787213296678, 0.91198570187619499, 2.5224554279094811, 2.0803280944040328, 3.5637922106218376], [0.25473455312707838, 4.3598668190248731, -3.9593346387010531, 4.3086344533091978, -5.347040237287132], [-5.0964388756232442, -0.33062206536547478, -4.3294438115224949, -3.7029636418824938, 2.1361176713896803]], [[-0.6152932491310974, -2.5818571753095405, 6.0151320772669514, -0.83747566603517587, 3.8502563835086372], [-0.87066223358370376, 6.1065820547851537, -2.8038219254214543, -2.6737526767206923, 0.40319076629104256], [4.5365480790740431, 5.9477780369888169, -2.048860177595885, -0.77520690147887805, -2.4694531441089982], [0.13497297062783886, 5.3220372849625512, -1.7569715937509494, 2.7350925689128331, -2.1389043872913103]], [[-2.9078229010931302, 2.9142234808393663, -3.1298827135677021, -2.9222995787670003, -3.5858484040364518], [-3.6107313214016372, 3.3179524799563707, 1.5337562787470231, -4.3995297193333718, 1.6107206056563674], [4.3570226043864873, -2.6269803209942246, -1.7157975175442024, -4.2344580672959546, -2.0815930274127239], [1.714582214703638, -0.64254932932199793, -2.0966615915572095, 4.2971795644666306, 3.0112145917958211]], [[-7.3526521894571371, -2.3510531699492825, -2.733922577220115, -1.1822835410624224, -8.5910523348002954], [-2.7851971674873024, 0.33065129174202124, -4.3398835270465455, -9.4048429221059386, -4.493454944118688], [-2.562040971827515, -0.023345002673186066, -8.3898328320301037, -7.1574555124029828, -5.2917897556621663], [-7.0295213967797769, -1.3685948339111738, -6.4747990755715144, -1.4453322730299076, -2.3901824595436487]], [[8.3053202906348265, 1.2147908027129741, 1.5678908457639107, 1.9131935950499823, 1.1335307638232051], [-0.18664400729871211, 8.7707371886842314, 0.54180864568575338, 5.1415377794014727, 8.6256979382105321], [5.0260657510458318, 0.57198529578285306, 6.3925044812254272, -0.51472196224271727, 6.0342580740575071], [2.1157386681290218, 5.0145206653149677, 2.1529091229198452, 1.9751302808381066, 7.4998973252647279]]], [[[-5.0129181964393066, -0.0094584893465121667, -0.97304309204391171, 0.79871523561550273, -0.23027209786808012], [-0.23835236256735115, -2.152019499080204, 0.79264788995405322, 0.12775719459554136, -1.4825528699389832], [-1.9088386480021935, -2.9414416328185409, -4.4659111846533026, 1.4161833889906843, -1.6826932495715052], [1.5205821178319114, -2.1625749786241597, 0.50256421512850036, 1.5561178091806509, -1.408125365256959]], [[7.1416867040238206, -2.1441474402644891, 5.2326899339994597, 1.9991910029622293, 2.0123442632354145], [1.4781063003642156, 4.467061827949717, -0.98170368301698474, -1.3430417676101714, 4.8051232271158639], [-1.3965794119066501, 1.772954528483953, 4.2763020295666889, 7.3101717379955176, 5.5048235877071985], [4.1409747462596114, -2.2057752132816786, 4.3178037662964242, 7.2912583339592612, -1.2588828519720385]], [[-1.8314722138028436, -8.0577983536190931, -2.5083062088776096, -5.7016852066149761, -4.2206151280753748], [-3.3830579234505311, 0.41245266777843881, -3.0121393117139492, -7.685746480936948, -3.4521277873805474], [-1.3552876934125857, -7.8268863515599314, -0.22474304335698569, -5.9823705076111651, -3.8466595968488413], [-2.427945175830363, -6.7639974339869813, -8.4234751107336781, -2.0656400109553008, -6.5575791972650102]], [[-1.5458434400118275, -2.3117576348833948, -2.0179134060864747, -5.866155676695314, 1.5883093230482261], [1.2512465560807309, -3.0855679388210913, 1.6018387070884499, 2.9669539822953483, -5.4537147111408135], [-3.0811748007492326, 0.11779565990043661, -6.147443742287269, -2.1854178055526798, -5.6716675464119106], [-3.6769358445352252, -6.2441156583794877, -3.0679160818006368, -0.6598561491913868, -4.9644016830926754]], [[6.111572045119817, 3.3368847687197469, 0.88132091410510505, 3.4327260724548263, 1.02784930753291], [3.3065178734023442, 5.6635805891798636, 6.4280408358962848, 5.9718401628652149, 6.1479348512443366], [5.7872127663891018, 3.0881790963025884, 6.1403650424243192, 6.5328959811947458, 5.9864547675810993], [7.828710159051762, 8.9603904626746331, 9.4910026185515051, 5.0154211895206773, 3.4332793894558837]]], [[[1.0902140997080765, -0.32525444843466245, -1.4728799666937529, -2.3699743764376371, 0.69609670887886077], [-6.0326573855343089, -6.1156295350600427, -1.0927479919494041, 1.0224805520971523, -6.5750503890380525], [-6.0103253693940459, -6.611763697508497, -1.7183510740671228, -3.9038083530479306, -0.87114859973696523], [-7.4250831458428967, -7.9549524261354652, -5.9379839483470809, -6.5812734837651945, -8.0188805070054023]], [[2.0044748254966418, -4.2459043174501057, -4.5932232373665469, -1.5024419912092135, -0.89048722964771532], [2.966240712881751, -5.946147582207594, 3.0071759954356629, -2.744574932971596, -3.2669117681116844], [1.5953420341401774, -2.7653896305672765, -5.7450935967985641, 0.43203541110470489, -2.0938945561157407], [0.11885003668762373, -3.5066940458718188, -0.20937184179595913, -1.0323439932868812, 2.0434085441341914]], [[4.065122400826116, 4.400052118090553, 5.4490313917749997, 3.5350295042186892, 1.1978104238809935], [3.049109437295638, 1.0773049424311258, 2.7393364031953622, 9.1453476768830875, 7.4649997753899306], [6.1167276513866131, 4.5633700482076183, 9.6786796647983291, 1.4134703002952915, 1.5731861294090086], [2.9363690336981501, 3.2351396754524071, 6.2581391394713632, 9.2311114419488884, 7.2996028080815591]], [[8.1933264295651576, -0.11653370762051285, 5.8160508219792995, 1.0927434654194061, 6.0731661774080195], [2.9454193331333949, 1.5597524757782204, -0.032495510225080793, 6.7693586834139285, 6.8449130053189746], [0.98647953640227648, 2.7596067347650539, 8.4858073963533638, 1.5507088226033243, 9.2134607574121219], [7.3501290935921091, 1.3809081746176117, 6.1511011525844674, 6.4002576215839699, 7.7969581160318313]], [[-0.25704804757112676, 1.6684611803534413, 5.2709527319686025, 3.5568759913944747, 5.1333901463936504], [7.9313437725041087, 2.7295780451756326, 7.6266253203207999, 8.7812155949980877, 8.6424791127626719], [2.9203160565302602, 4.8233250371027649, 1.1143410971843184, 5.9042743843317584, 4.6374923754813473], [2.6111350818817529, 4.2376538070597425, 2.6549351059994102, 5.9282965637592824, 4.2577943203611532]]]])        ref=msk_ref*numarray.array([[[[0.85568008884182944, -2.6323168672052932, 1.6726984610651119, 2.8653051297942493, 0.44082453413536538], [3.5087742156947197, -3.7884078907469876, -0.40763375321707063, 2.79119401884771, 0.20361361784470944], [-1.2822025040662135, -2.8547413804453803, -0.79126624587071426, 1.353023613441203, 2.2495092921338102], [-1.3423126496934845, -1.5253031257328047, -2.0815052941664023, 2.8281154043590107, -5.0092084901999083]], [[-0.94708249793897714, -1.0144458598583341, 3.6337262160253241, 4.058010815209963, 2.1980323291991652], [0.48676210619356386, 5.0239199128229117, 5.9024238451686308, 5.5003180894340868, 2.7418631262671465], [5.3311799432721028, 5.4652982847380454, 5.8803382936306239, 1.5062536032869405, 2.749463268600902], [6.420029255653068, 3.4526399732384991, -0.72584134064181871, -1.7327232275156605, -1.7514033272380685]], [[5.2389130106931585, -0.48511760777091695, 1.3332030258772836, -0.88074025762315422, -0.52063464932529158], [0.32397756836112857, 2.0322884819331239, 6.8940616111121891, 0.095884587213782346, -1.3068324888234768], [-0.35706947087376228, 5.2068509137514773, 3.1613633012969764, 7.7009676015802402, 5.7220669583480026], [7.670563341927199, 5.8169601668073962, 4.3700403126964602, 0.096390640491336832, 5.7551621783936326]], [[3.2976011665237248, 1.3755997391060095, -0.94404584790966517, 7.7167444582055271, 1.6674484207896647], [8.5815810215147046, 4.5821045237960361, 4.2322586650204492, 3.8777709937028231, 0.11878993466185506], [4.2778438837425741, 5.9100405647939489, -0.40288471028561901, 6.6103365729077108, 2.9948223851602709], [7.0461961381731388, 5.9727457971956888, 0.89165426971227335, 7.3567888484469695, 4.7372795761570927]], [[-6.7640522466437805, -5.8127187593075931, -1.4575135972236715, -1.71246584602437, -3.9580754926856074], [-4.5141554054824216, -6.7023269328158719, -5.1892493356984026, -2.0460702865833658, -0.53879181391498809], [-0.086950322211673647, -7.6061635216842429, -2.9381909899520973, -0.65481537260056699, -1.9397428590299168], [-2.4069095665182849, 0.47602822654231725, -0.74094635130031739, -0.32589306560948428, -2.0716514219452056]]], [[[-4.9791129090659245, -6.7970063274379333, -0.51843771050564857, -2.7604564528919369, -7.8514421648753503], [-1.3543129676343826, -4.3117756235365778, 0.56634620894950505, -3.0852417843115827, -2.7093248776184913], [-4.3472671962326226, 0.66055615840029791, -0.57738462991279338, -3.7742643048521884, -3.992435897836943], [0.79841636864922361, -1.9521339706722634, -5.0253453021106216, -6.7348090287957323, -9.0318198686483413]], [[-4.2462688218013565, -0.13867572002163886, 0.14390488947826618, 2.9033374765071684, -4.0315863802858063], [1.6894760221479199, 4.1396911884792207, 2.1312906455002167, -0.81996303440980434, 3.1301628875275611], [-5.2786089493034165, -1.3526485674390285, 2.622405747171566, -3.939165468034731, 0.15899377871612508], [-2.1685399604111089, -3.3456988896999791, 1.1727860640859822, 0.5919955892133979, 2.0997551637758534]], [[0.96243814293833996, -1.8621652990354596, 4.0483430315888915, 0.37863698334887896, 4.2061260204436532], [6.4539109321258694, 2.6176018600711943, -2.6285214811987752, 0.60875293648036433, 1.7485241719193123], [6.0670070125561244, 3.8919019154588677, 4.3824637934975943, 0.53038855283929021, 2.1783964386362547], [4.1679741458606632, 0.77952828253617845, 5.3267106901959158, -2.3652879948749748, -1.9272712990954997]], [[-6.5646843109982207, -1.6421662436268836, 1.1338042028966679, 1.972467222478496, -0.4037274342799515], [-1.3370391000472885, -4.2640480825334661, -4.0537023228609304, -3.684146802369809, -2.1440395226945057], [1.0134455330755703, -7.6606840564992904, -3.1732434069788331, 0.11766934928779893, -2.5577007866142081], [-1.3026911849555445, -3.3717059847330182, -4.2311607715418695, 1.221062805423017, -5.8468945298008057]], [[3.344853169973506, 3.9320065766455645, 7.760419932374397, 2.5999495711920368, 5.4985438266280742], [1.1063371925503858, 4.6266060950338694, 1.5550590714823427, 4.6501253940674578, 8.1601230988187634], [1.5944332050905361, 9.3391678169781578, 5.1326459671169768, 2.0414096231613228, 7.6804426473334768], [8.6923283739401302, 4.8829735308514328, 7.5432551792345919, 0.84375485797607963, 2.9206115975821008]]], [[[-1.9399699982933174, -3.3417634030844048, -5.8887359634663738, -5.9013062278351534, -1.5590030499798657], [-4.0130371434559233, -1.5413956264170552, -7.2677033183401285, -1.9234321026926913, -5.1345263524144702], [-3.8781159690182143, 1.7987174352839577, 0.64124479176189508, -3.073773303908991, -6.3801093769780053], [-3.8796287590871437, -5.8820667992157887, -3.0219808448241285, -6.0046650256558696, -2.3552760816158007]], [[5.5223234617940022, 4.2828070726373575, 4.5780439503124111, -1.9868992333864819, -2.5553469164968892], [1.7698149279837407, -1.9581031050181363, -0.32141652357476902, -0.9064171186698653, -0.034429232023489575], [-2.7792866026640106, -1.9193059120015898, -3.4844133178417636, 0.3900517163602899, 4.416071574002336], [-2.1062235688728439, 2.2058075212254282, -1.3549010925881024, -0.94917443363497833, -1.6369566622301859]], [[2.1037715164525475, 1.8772748338865188, 0.98688272816203693, -2.6804482515273373, 4.3062868738914144], [0.70011212043124615, -0.067390436378622631, -1.2030216122958315, 4.5125198519106231, 5.4444415357077496], [-0.90644205358786234, -2.4922489269928536, 3.9701737728239745, -3.1583782084584371, -1.8215712170511753], [0.9861214920184862, -2.5068039155228137, 3.5247872338134227, 4.9008420761084288, -1.7967161699296685]], [[8.3293592747428846, 7.5552055466738501, 8.0165526791318928, 4.1443787196044584, -1.4865597688668197], [0.046413218739136397, -1.0538606743057306, 5.484504792266355, 7.5663383472841801, 2.20245724630067], [-0.85402729603722882, 0.85816181793710644, -0.16409930226632152, -1.2507412601636414, -0.0090579023897428002], [6.9287668251590784, 1.237084653462154, 2.8773056264009638, 6.6281096960693517, 3.4894515691243866]], [[-8.8407946939854938, -9.6739188313939639, -5.1234058191504079, -7.1572996841408347, -2.1736066615080718], [-3.4195818011220318, -8.9721062072747131, -4.188116332006401, -3.2294308082285426, -6.4153073903370492], [-5.691286511435969, -2.4520364775995729, -3.9754366869147013, -7.2601474983582222, -3.7957518623706772], [-8.4166361388685651, -4.7294891483833625, -1.8670883949228561, -2.583067226235185, -1.1632674166928094]]], [[[0.50262719037201986, -8.1733774081294843, -5.9771095772308556, 0.15661354072255573, -1.095168245310016], [-7.9108030964312226, -7.2564724599153738, -3.6672268793739873, -8.6289780634318234, -6.7935042747190248], [-1.8989028850098411, -7.8875186791940601, -5.8223421856989415, -1.7574280139034961, -5.4015946937047499], [-5.3114815788375846, -6.4793613824112262, -7.1443498234002192, -0.086100813781029295, -3.1391630875776633]], [[1.1805470799971145, 7.9442594413881871, 1.6271878516451928, 2.0388540668333572, 0.15846188582819654], [3.0366984236408454, 4.7621434367399065, 4.6615660565963788, 5.0498519175630436, 4.6161232396632101], [1.6547216155298914, 5.9918655266403338, 5.968270453120903, 6.2508052237569807, -0.17605327925571856], [7.3396871090615132, 3.4681578451625956, 7.5366721237013241, 2.6199633330744372, 3.6896564412101025]], [[-0.38805764354421468, -7.7621934911261619, -2.8899735722727349, -5.5807302353888648, -3.1091514364081694], [-0.47560000638171962, -5.3766801131160733, -8.2607795872630234, -1.9742075477043461, -0.68983737798931744], [-1.8748756484072051, -4.2798517777923255, 1.2441457133162488, 0.86746634661730804, 1.6027686436114981], [-3.9088531192078135, -7.4850273190672887, -0.24571895649537856, -2.9161315621853752, -1.0662943562389882]], [[6.3841170575209336, 3.9150827637626922, 3.0824166687457071, 6.646948751316792, 3.4736786884833943], [7.1187986610428347, 6.8492305285013746, 3.9743955180527806, 3.7625069559652387, 3.4858294814371265], [3.3845496684891012, 7.5428158344556557, 1.6909917553125897, -0.50600416323054498, -0.91981204559979757], [0.89494788974121953, -1.8499674990492005, 3.4748580674055072, 6.6226677960022755, 2.0842942879987838]], [[-3.4181444935495522, -1.5570232029159286, -0.63892117240876356, 2.3814317404031913, -3.1712104109886701], [-1.6966468647970547, 3.3798429050333931, 2.0854313613416915, 3.3924748954674788, -1.9873653631018406], [-1.3066995783663504, 2.9363195416060597, -3.2269999184475617, -4.7516737601043113, 0.05711179130754207], [3.8393188407224992, 1.9129623564603904, -2.3644466011171485, -2.2102598948195844, 2.303999348192769]]]])+(1.-msk_ref)*numarray.array([[[[7.0545565746416763, 2.5194951477986232, 4.8367895284912166, 2.0613362923229279, 4.0451765851693331], [6.0490740440244943, 2.1834838366865803, 0.21379430567144908, 0.34305593866272588, 0.9250259802546843], [1.7555415434004535, 2.8922416395334811, 3.1357614313474595, 1.9833917864976529, 7.7798078171152554], [4.0088159877209, 0.43986514667394161, 4.1729022867521373, 5.1980523121971789, 2.0923970106838805]], [[2.5671083166078335, 5.8310667653040635, -0.99139623572472058, 5.1538848730379518, 1.3550955311305959], [6.0870917839984795, 4.6671059119396121, 0.72123988310897058, 5.9087932106475352, 4.0603383934583874], [7.792996113370787, 2.9733483654093842, 6.2836885905872419, 5.7178124314344387, 4.0057338632882269], [5.2833964556710775, -1.2120827193121775, 2.3903139407607625, 7.7807598328430458, 4.2192545230166401]], [[-0.77487307714594467, 0.85793206529289368, -3.7506654033535503, -3.2588075958025859, 5.6145345582053077], [-4.030446778098443, -3.6055162908131235, 2.9680744910542654, -2.9555800040288518, -2.9205546583338675], [-3.8661366779378294, -0.26797493219017809, 3.0496225217037853, 4.4488301150212726, 0.041007781172655022], [2.7028196343538458, -0.44610191978393798, 0.13054801767492386, 2.7495252175113203, 1.361884267218386]], [[-7.1077908321007808, -7.1933076310306028, -3.4961317678071304, -3.0965901506427986, 1.6199259020418175], [-2.5584294187784913, -5.9685093794163402, 0.89321154031646977, -4.9935115033108159, -6.1884693187511699], [-3.0721756214566556, -3.0314212719952671, 0.20615222372976749, -1.8303926963989117, -5.1182354378779529], [-6.502835208969743, -6.2365032083268463, -6.3762287524792427, -7.2701821658947354, -3.7210109305519814]], [[-5.1430040856971555, -2.866538574845813, -3.8810435074648035, -5.8162116634956202, -6.6772929417903963], [1.2921427712202087, -5.7576575878070084, -5.2818701317045118, -5.3478979565485218, -6.786619177760179], [-6.13941578486794, -2.0745818668570823, -4.7432914184190782, -5.7473902762306448, 0.34214633364545488], [-2.4923817270751867, -8.1048216369595973, 1.3275884884272147, -6.2546121937559827, 1.0088904490183195]]], [[[-3.673948334533927, 3.090369377633289, -1.400593659835593, -4.0343112645737511, -4.1444572199198726], [-0.73935787213296678, 0.91198570187619499, 2.5224554279094811, 2.0803280944040328, 3.5637922106218376], [0.25473455312707838, 4.3598668190248731, -3.9593346387010531, 4.3086344533091978, -5.347040237287132], [-5.0964388756232442, -0.33062206536547478, -4.3294438115224949, -3.7029636418824938, 2.1361176713896803]], [[-0.6152932491310974, -2.5818571753095405, 6.0151320772669514, -0.83747566603517587, 3.8502563835086372], [-0.87066223358370376, 6.1065820547851537, -2.8038219254214543, -2.6737526767206923, 0.40319076629104256], [4.5365480790740431, 5.9477780369888169, -2.048860177595885, -0.77520690147887805, -2.4694531441089982], [0.13497297062783886, 5.3220372849625512, -1.7569715937509494, 2.7350925689128331, -2.1389043872913103]], [[-2.9078229010931302, 2.9142234808393663, -3.1298827135677021, -2.9222995787670003, -3.5858484040364518], [-3.6107313214016372, 3.3179524799563707, 1.5337562787470231, -4.3995297193333718, 1.6107206056563674], [4.3570226043864873, -2.6269803209942246, -1.7157975175442024, -4.2344580672959546, -2.0815930274127239], [1.714582214703638, -0.64254932932199793, -2.0966615915572095, 4.2971795644666306, 3.0112145917958211]], [[-7.3526521894571371, -2.3510531699492825, -2.733922577220115, -1.1822835410624224, -8.5910523348002954], [-2.7851971674873024, 0.33065129174202124, -4.3398835270465455, -9.4048429221059386, -4.493454944118688], [-2.562040971827515, -0.023345002673186066, -8.3898328320301037, -7.1574555124029828, -5.2917897556621663], [-7.0295213967797769, -1.3685948339111738, -6.4747990755715144, -1.4453322730299076, -2.3901824595436487]], [[8.3053202906348265, 1.2147908027129741, 1.5678908457639107, 1.9131935950499823, 1.1335307638232051], [-0.18664400729871211, 8.7707371886842314, 0.54180864568575338, 5.1415377794014727, 8.6256979382105321], [5.0260657510458318, 0.57198529578285306, 6.3925044812254272, -0.51472196224271727, 6.0342580740575071], [2.1157386681290218, 5.0145206653149677, 2.1529091229198452, 1.9751302808381066, 7.4998973252647279]]], [[[-5.0129181964393066, -0.0094584893465121667, -0.97304309204391171, 0.79871523561550273, -0.23027209786808012], [-0.23835236256735115, -2.152019499080204, 0.79264788995405322, 0.12775719459554136, -1.4825528699389832], [-1.9088386480021935, -2.9414416328185409, -4.4659111846533026, 1.4161833889906843, -1.6826932495715052], [1.5205821178319114, -2.1625749786241597, 0.50256421512850036, 1.5561178091806509, -1.408125365256959]], [[7.1416867040238206, -2.1441474402644891, 5.2326899339994597, 1.9991910029622293, 2.0123442632354145], [1.4781063003642156, 4.467061827949717, -0.98170368301698474, -1.3430417676101714, 4.8051232271158639], [-1.3965794119066501, 1.772954528483953, 4.2763020295666889, 7.3101717379955176, 5.5048235877071985], [4.1409747462596114, -2.2057752132816786, 4.3178037662964242, 7.2912583339592612, -1.2588828519720385]], [[-1.8314722138028436, -8.0577983536190931, -2.5083062088776096, -5.7016852066149761, -4.2206151280753748], [-3.3830579234505311, 0.41245266777843881, -3.0121393117139492, -7.685746480936948, -3.4521277873805474], [-1.3552876934125857, -7.8268863515599314, -0.22474304335698569, -5.9823705076111651, -3.8466595968488413], [-2.427945175830363, -6.7639974339869813, -8.4234751107336781, -2.0656400109553008, -6.5575791972650102]], [[-1.5458434400118275, -2.3117576348833948, -2.0179134060864747, -5.866155676695314, 1.5883093230482261], [1.2512465560807309, -3.0855679388210913, 1.6018387070884499, 2.9669539822953483, -5.4537147111408135], [-3.0811748007492326, 0.11779565990043661, -6.147443742287269, -2.1854178055526798, -5.6716675464119106], [-3.6769358445352252, -6.2441156583794877, -3.0679160818006368, -0.6598561491913868, -4.9644016830926754]], [[6.111572045119817, 3.3368847687197469, 0.88132091410510505, 3.4327260724548263, 1.02784930753291], [3.3065178734023442, 5.6635805891798636, 6.4280408358962848, 5.9718401628652149, 6.1479348512443366], [5.7872127663891018, 3.0881790963025884, 6.1403650424243192, 6.5328959811947458, 5.9864547675810993], [7.828710159051762, 8.9603904626746331, 9.4910026185515051, 5.0154211895206773, 3.4332793894558837]]], [[[1.0902140997080765, -0.32525444843466245, -1.4728799666937529, -2.3699743764376371, 0.69609670887886077], [-6.0326573855343089, -6.1156295350600427, -1.0927479919494041, 1.0224805520971523, -6.5750503890380525], [-6.0103253693940459, -6.611763697508497, -1.7183510740671228, -3.9038083530479306, -0.87114859973696523], [-7.4250831458428967, -7.9549524261354652, -5.9379839483470809, -6.5812734837651945, -8.0188805070054023]], [[2.0044748254966418, -4.2459043174501057, -4.5932232373665469, -1.5024419912092135, -0.89048722964771532], [2.966240712881751, -5.946147582207594, 3.0071759954356629, -2.744574932971596, -3.2669117681116844], [1.5953420341401774, -2.7653896305672765, -5.7450935967985641, 0.43203541110470489, -2.0938945561157407], [0.11885003668762373, -3.5066940458718188, -0.20937184179595913, -1.0323439932868812, 2.0434085441341914]], [[4.065122400826116, 4.400052118090553, 5.4490313917749997, 3.5350295042186892, 1.1978104238809935], [3.049109437295638, 1.0773049424311258, 2.7393364031953622, 9.1453476768830875, 7.4649997753899306], [6.1167276513866131, 4.5633700482076183, 9.6786796647983291, 1.4134703002952915, 1.5731861294090086], [2.9363690336981501, 3.2351396754524071, 6.2581391394713632, 9.2311114419488884, 7.2996028080815591]], [[8.1933264295651576, -0.11653370762051285, 5.8160508219792995, 1.0927434654194061, 6.0731661774080195], [2.9454193331333949, 1.5597524757782204, -0.032495510225080793, 6.7693586834139285, 6.8449130053189746], [0.98647953640227648, 2.7596067347650539, 8.4858073963533638, 1.5507088226033243, 9.2134607574121219], [7.3501290935921091, 1.3809081746176117, 6.1511011525844674, 6.4002576215839699, 7.7969581160318313]], [[-0.25704804757112676, 1.6684611803534413, 5.2709527319686025, 3.5568759913944747, 5.1333901463936504], [7.9313437725041087, 2.7295780451756326, 7.6266253203207999, 8.7812155949980877, 8.6424791127626719], [2.9203160565302602, 4.8233250371027649, 1.1143410971843184, 5.9042743843317584, 4.6374923754813473], [2.6111350818817529, 4.2376538070597425, 2.6549351059994102, 5.9282965637592824, 4.2577943203611532]]]])
2420        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2421        self.failUnlessEqual(res.getShape(),(4, 5, 4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5, 4, 5),"wrong shape of result.")
2422        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2423     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2424     def test_add_expandedData_rank2_taggedData_rank4(self):     def test_add_expandedData_rank2_taggedData_rank4(self):
2425        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2426        arg0=msk_arg0*numarray.array([[2.5193930226692576, -3.224872319796448, 3.7857654389615885, 0.61077717113805807, -0.7122870897154101], [4.8856832998020483, 2.9979457365431061, -2.2192789177090857, -1.3323728975096492, 1.2988504734281623], [2.273165116043371, 4.8645938538642071, -1.9056088951408103, -4.4381257045262537, -4.875619836404379], [-3.3897329283723279, 2.7969472230160051, -2.1997763447385585, -3.5833983905077185, -1.0031422868156383]])+(1.-msk_arg0)*numarray.array([[-3.6216000641601398, -2.6884629198240462, 0.61287022528873614, -1.294794412096719, -3.3622448025882488], [4.1569935432047238, 1.0703655080681482, 3.5837367897154611, -1.9437634200487732, -0.53031741726289638], [2.5521979900664018, -1.7641196061898423, -4.2657127431072075, 0.069134970998021572, 1.8602071638367645], [2.0141686614430583, 1.7825540824224682, 4.5370526714934964, -1.4181186476329621, 1.4488449281416163]])        arg0=msk_arg0*numarray.array([[2.5193930226692576, -3.224872319796448, 3.7857654389615885, 0.61077717113805807, -0.7122870897154101], [4.8856832998020483, 2.9979457365431061, -2.2192789177090857, -1.3323728975096492, 1.2988504734281623], [2.273165116043371, 4.8645938538642071, -1.9056088951408103, -4.4381257045262537, -4.875619836404379], [-3.3897329283723279, 2.7969472230160051, -2.1997763447385585, -3.5833983905077185, -1.0031422868156383]])+(1.-msk_arg0)*numarray.array([[-3.6216000641601398, -2.6884629198240462, 0.61287022528873614, -1.294794412096719, -3.3622448025882488], [4.1569935432047238, 1.0703655080681482, 3.5837367897154611, -1.9437634200487732, -0.53031741726289638], [2.5521979900664018, -1.7641196061898423, -4.2657127431072075, 0.069134970998021572, 1.8602071638367645], [2.0141686614430583, 1.7825540824224682, 4.5370526714934964, -1.4181186476329621, 1.4488449281416163]])
2427        arg1=Data(numarray.array([[[[1.8075393637720545, -1.2144049511921038, 3.6458329020920033, -2.9761632655206451, -1.5016391805392262], [3.5145624263807811, -3.6142991317538065, 1.7924298886048176, -0.28936657061963711, -1.8258910051992228], [-3.2782442879533624, -2.2549892694970319, 0.79410510772662946, -0.22355679951613894, -0.057313716717427354], [0.039438071398106622, -2.4281392822122259, -4.4007542329794269, 2.2280605390712971, 2.5627614795424645]], [[4.3757189317208898, -4.3492618775080096, -4.3710019271770859, 0.51160697070114391, -0.2663121797264969], [2.038015825945573, -4.8875534618023604, 3.7870792417178052, 1.6889717945731286, -3.5841393739659919], [0.46086176284153346, -2.3992571833462497, 3.4879577603442335, 2.7226144111000883, 3.2923352481802421], [-3.5941286310417464, 2.0898905525226654, 1.1007593700729155, 1.7583487081450588, 0.88123263412546571]], [[-2.7691921585604873, 4.5038164329530197, -0.58042109378693674, -4.5678110733729067, 1.6679623886430894], [2.8868699582172228, 1.561679614645799, -0.59628017327048788, -1.2869541289643238, 1.9588188388970327], [-0.76745834431002447, 3.9815125320242899, -1.6112696826217432, 2.8420904128400544, 3.424866492947805], [-0.35238849282207951, 1.7948965417382983, -0.87432863859299026, 2.7583277297048348, 2.0439082159701316]], [[-3.9560535290887322, -3.755805311310624, 3.4502488551715267, 2.3612042803517177, 1.2530897177642384], [3.4358086706363764, 2.9753688237843932, 0.31620679097259075, 2.5650733602238054, -2.7989013951245401], [2.7584104853804252, 2.1323967731844808, -1.4814829846377231, -4.9667763691267544, -4.6197855447936735], [4.0131914544269272, 2.717889421083111, -2.28443706942722, 1.2765052211342409, 0.64912702945053802]], [[1.3176637543760332, 3.5558122964382886, 2.6407602855336982, -2.4982557764791857, 2.078538600165782], [2.2621132537494946, -3.8752367291700383, -1.519102757789208, 1.3099758699496444, -3.6010609518181491], [1.5176531987819706, 0.5257604716426183, 3.3578541095640606, 2.3198124978588588, -0.7487123969414462], [-0.36022461173966569, -0.077715257449564312, 3.9294448830528221, 0.056262996852987079, -3.4596145638358564]]], [[[0.14188461495347937, -0.64558690158713272, 3.8275783329342907, 3.2457408982416389, 3.602178999140083], [-1.4339807160566851, 4.487711334200652, -2.1982274861674544, 3.2407543962312886, -3.8539526119275616], [0.50819584038495691, -3.0447925327893408, -2.8058465000647201, 3.763131248585033, -2.3244834714900464], [4.4582427087795846, 1.712643084561285, -3.4627160133222459, -0.64034492260812037, -1.3970207807944899]], [[1.4696212077413753, -2.4477256450088634, 2.361023705959683, -1.7030169039166108, 2.1624509349088328], [-1.6582804285777697, 2.3853065291265976, -4.635601436911605, 1.2886899140702468, 4.540110585155043], [3.769478995562535, 0.56758843918086654, 1.0060749072322217, 2.1833530169440323, -4.371892130606799], [0.28285237259633789, -0.75732972498352069, -1.7536953540982636, -2.5613401343497477, -4.7150902771504812]], [[-4.9891708313854997, 1.2634576244234905, 1.5552970474025614, -3.6900558130793226, -0.15569276533386134], [1.8902464097441456, 1.3061324857933165, 2.1323351626851759, 2.9178399831591602, -3.9469858778497278], [4.2401009500277826, 0.40960656593276923, 1.4424099314217802, 0.38528361321682159, 3.4095762574225148], [-1.5884819281011286, 4.4013492776572942, -0.49633545828643211, 2.6779729938658541, -3.5365800183352825]], [[4.3543146610702959, 1.767095546662163, -1.7511467267737215, -4.1426059836030653, -2.5481253235660519], [0.77332390313458088, 0.86027274245593954, 2.2710962167765469, 2.0313442845057654, -4.9481104358322643], [2.0721654830670699, 2.5497226196401668, -2.6715287150786162, 4.4655193144129033, -1.9303373319703523], [1.1866592747983704, -4.9838779138101907, -1.8996111265666169, 1.0494966922772431, 3.4844196866554356]], [[-3.7048613641934871, -1.2473563642643981, -1.7001482775629584, 2.4330476182095975, 0.98870461518900132], [2.3298466807796023, -3.0406049042885899, 4.2804979693016936, -4.5168340569157603, 2.357060788076204], [-1.2011156221417716, -3.323514074233902, 4.8914477825122731, 4.604536395832163, 2.8229316151201624], [-1.1811865039198413, -0.20678185812813865, 4.1332622970650625, -1.858706773530395, 3.6025090814655663]]], [[[2.0677687246050027, -1.7553524974227064, 0.75378746842976518, 4.5552930512194099, -1.4819104290545573], [0.76565719461543669, 1.4276842128602363, 3.0536043717861965, -3.8680564356681812, -4.389184748046465], [3.1711118449828017, 1.294649078172232, -4.3841270991594339, -2.8937801051347734, 0.21841156910961246], [-2.6284870859558196, 0.59444046930501671, -0.75266485758782053, -1.5085938175475286, -0.97618344026765413]], [[1.4424712012790408, -2.0857518134837982, 4.6464889126680031, -4.6993221104097618, -1.2292606831485866], [0.12033946800633899, -1.2002488468221406, -4.0532525315628138, 4.5596006283253594, -0.9857607487047515], [1.6688240354331718, 4.9667162291896414, -0.76464259034050386, -3.8194485384538379, 1.4302278816446101], [1.3285251111309222, 1.7759684732343999, 1.0625449709725245, 2.0765311705509673, 0.84901166877217804]], [[-3.2479863494277703, 3.0018754860404862, 1.8326556228537374, 3.5822915047937922, 0.43858299721666327], [0.4615028659813678, 1.1020136039967117, 1.0713014136947638, -3.4258998609725664, 4.5173242581783892], [-4.3809294247744912, -0.83480235457085072, 4.8298893344880653, -4.6552130188763039, -1.4120372693415764], [-1.473624582307056, -2.1489050272327939, 3.3818033025882617, -0.54227174041389681, -0.73119059256376939]], [[1.051153857443837, 3.4821197215581776, -2.403366958624733, -0.91925473282395131, -3.2415792422208423], [-2.2632052447478745, -3.8180721866029046, 3.7827672194012951, 3.8716852906174175, 0.65746533018719333], [3.9361392402672593, 0.35998776778915076, 3.3445718645836067, 2.5681588294793256, 4.3729787358904009], [-3.731664089760903, 0.74683615241484791, 4.1443313967640449, -2.5599828375176434, 4.807313761920387]], [[-1.9596872572531812, 2.651453415428449, -1.4591295889113209, -3.7079652160842977, -1.3751367594735866], [-3.2422687310737794, 2.5168225298400948, -3.5134661776522891, -1.7362566810892774, -0.42314246872416117], [3.7713886898073188, -3.644978146370347, -0.13588734275858361, 0.9648690109676501, -1.6524420231016101], [-4.4985914246216314, 1.5803169952821925, 2.8790197105850268, 2.006648205833593, 3.333731930132501]]], [[[-0.14771743133952953, 1.3264953743876253, -3.1593087633524499, -1.650010974211451, -4.2239542406311736], [-1.2231262724641603, 2.1723848240205132, -2.2905125175649999, 4.5519723846566578, -1.9544593644541375], [-3.9379644481043083, 1.3551759879758931, -4.8341027092932896, 0.38488489194540065, 0.081523381666750439], [-0.39317411740720765, 1.7117183760813788, 1.8812514368830202, -3.8792303520879603, -0.92650007146280355]], [[3.2713242290999354, 4.3103102629289136, -3.0522768742388906, -4.5800841032153308, -1.0100492483655268], [-4.7232220455657661, -4.8092025573721973, -0.6963759796464668, -1.1304005105746873, 1.5062160349374469], [0.62265171368240058, 2.8233647995091093, 0.75897597078466195, 3.3854901909306729, 3.0938723886983759], [1.3808444342696236, 0.72800809442061976, 2.9637390572426643, -1.8586417275151943, 3.8366060883861746]], [[1.8526271312203608, -0.95929919427541499, 2.5504902251743777, -1.4176026100329375, -1.2459593282068382], [-2.0588323882585269, 3.1354232235559358, -0.071173486958587162, -2.8374917910461503, -3.5527972934141272], [0.17631551171706317, 3.1297398642052148, 2.7466662317451931, -2.2534718397377516, -3.4826459634371485], [-2.3304458164785071, 2.7937851633208046, 4.7084787888004112, 4.7600032971115489, -0.032842752940358544]], [[-0.68098726537465737, 1.3636637400114813, 4.5465203965966943, -2.7321622604009423, 3.1911556595015114], [2.8369884658059208, 3.1630452671871794, -4.5885977648686049, 1.5999126612168544, 3.9414550895096188], [3.9291428799732095, -4.4103376468474274, -1.4989680706894459, -3.0517394063196921, -2.5931785839832102], [3.8211572275282393, -1.4871496006178377, -0.19410207245308531, 4.7091097192311633, -2.4927875785478237]], [[-1.5626360845579388, -2.3111634439599849, 2.7151291747860196, -2.7392141314429894, 3.7567913772293675], [3.5951684012171334, -0.16454274633151655, -3.0341133325772232, 3.5035920486407228, -1.2319941857442962], [0.7938693952069773, -1.9231541146285869, 3.8880067098908704, -0.092966739292562828, -2.4966803232574919], [-1.4223723034836167, -3.9827443835964162, -2.3608991592361406, -1.25443100166828, 0.89606245690140085]]]]),self.functionspace)        arg1=Data(numarray.array([[[[1.8075393637720545, -1.2144049511921038, 3.6458329020920033, -2.9761632655206451, -1.5016391805392262], [3.5145624263807811, -3.6142991317538065, 1.7924298886048176, -0.28936657061963711, -1.8258910051992228], [-3.2782442879533624, -2.2549892694970319, 0.79410510772662946, -0.22355679951613894, -0.057313716717427354], [0.039438071398106622, -2.4281392822122259, -4.4007542329794269, 2.2280605390712971, 2.5627614795424645]], [[4.3757189317208898, -4.3492618775080096, -4.3710019271770859, 0.51160697070114391, -0.2663121797264969], [2.038015825945573, -4.8875534618023604, 3.7870792417178052, 1.6889717945731286, -3.5841393739659919], [0.46086176284153346, -2.3992571833462497, 3.4879577603442335, 2.7226144111000883, 3.2923352481802421], [-3.5941286310417464, 2.0898905525226654, 1.1007593700729155, 1.7583487081450588, 0.88123263412546571]], [[-2.7691921585604873, 4.5038164329530197, -0.58042109378693674, -4.5678110733729067, 1.6679623886430894], [2.8868699582172228, 1.561679614645799, -0.59628017327048788, -1.2869541289643238, 1.9588188388970327], [-0.76745834431002447, 3.9815125320242899, -1.6112696826217432, 2.8420904128400544, 3.424866492947805], [-0.35238849282207951, 1.7948965417382983, -0.87432863859299026, 2.7583277297048348, 2.0439082159701316]], [[-3.9560535290887322, -3.755805311310624, 3.4502488551715267, 2.3612042803517177, 1.2530897177642384], [3.4358086706363764, 2.9753688237843932, 0.31620679097259075, 2.5650733602238054, -2.7989013951245401], [2.7584104853804252, 2.1323967731844808, -1.4814829846377231, -4.9667763691267544, -4.6197855447936735], [4.0131914544269272, 2.717889421083111, -2.28443706942722, 1.2765052211342409, 0.64912702945053802]], [[1.3176637543760332, 3.5558122964382886, 2.6407602855336982, -2.4982557764791857, 2.078538600165782], [2.2621132537494946, -3.8752367291700383, -1.519102757789208, 1.3099758699496444, -3.6010609518181491], [1.5176531987819706, 0.5257604716426183, 3.3578541095640606, 2.3198124978588588, -0.7487123969414462], [-0.36022461173966569, -0.077715257449564312, 3.9294448830528221, 0.056262996852987079, -3.4596145638358564]]], [[[0.14188461495347937, -0.64558690158713272, 3.8275783329342907, 3.2457408982416389, 3.602178999140083], [-1.4339807160566851, 4.487711334200652, -2.1982274861674544, 3.2407543962312886, -3.8539526119275616], [0.50819584038495691, -3.0447925327893408, -2.8058465000647201, 3.763131248585033, -2.3244834714900464], [4.4582427087795846, 1.712643084561285, -3.4627160133222459, -0.64034492260812037, -1.3970207807944899]], [[1.4696212077413753, -2.4477256450088634, 2.361023705959683, -1.7030169039166108, 2.1624509349088328], [-1.6582804285777697, 2.3853065291265976, -4.635601436911605, 1.2886899140702468, 4.540110585155043], [3.769478995562535, 0.56758843918086654, 1.0060749072322217, 2.1833530169440323, -4.371892130606799], [0.28285237259633789, -0.75732972498352069, -1.7536953540982636, -2.5613401343497477, -4.7150902771504812]], [[-4.9891708313854997, 1.2634576244234905, 1.5552970474025614, -3.6900558130793226, -0.15569276533386134], [1.8902464097441456, 1.3061324857933165, 2.1323351626851759, 2.9178399831591602, -3.9469858778497278], [4.2401009500277826, 0.40960656593276923, 1.4424099314217802, 0.38528361321682159, 3.4095762574225148], [-1.5884819281011286, 4.4013492776572942, -0.49633545828643211, 2.6779729938658541, -3.5365800183352825]], [[4.3543146610702959, 1.767095546662163, -1.7511467267737215, -4.1426059836030653, -2.5481253235660519], [0.77332390313458088, 0.86027274245593954, 2.2710962167765469, 2.0313442845057654, -4.9481104358322643], [2.0721654830670699, 2.5497226196401668, -2.6715287150786162, 4.4655193144129033, -1.9303373319703523], [1.1866592747983704, -4.9838779138101907, -1.8996111265666169, 1.0494966922772431, 3.4844196866554356]], [[-3.7048613641934871, -1.2473563642643981, -1.7001482775629584, 2.4330476182095975, 0.98870461518900132], [2.3298466807796023, -3.0406049042885899, 4.2804979693016936, -4.5168340569157603, 2.357060788076204], [-1.2011156221417716, -3.323514074233902, 4.8914477825122731, 4.604536395832163, 2.8229316151201624], [-1.1811865039198413, -0.20678185812813865, 4.1332622970650625, -1.858706773530395, 3.6025090814655663]]], [[[2.0677687246050027, -1.7553524974227064, 0.75378746842976518, 4.5552930512194099, -1.4819104290545573], [0.76565719461543669, 1.4276842128602363, 3.0536043717861965, -3.8680564356681812, -4.389184748046465], [3.1711118449828017, 1.294649078172232, -4.3841270991594339, -2.8937801051347734, 0.21841156910961246], [-2.6284870859558196, 0.59444046930501671, -0.75266485758782053, -1.5085938175475286, -0.97618344026765413]], [[1.4424712012790408, -2.0857518134837982, 4.6464889126680031, -4.6993221104097618, -1.2292606831485866], [0.12033946800633899, -1.2002488468221406, -4.0532525315628138, 4.5596006283253594, -0.9857607487047515], [1.6688240354331718, 4.9667162291896414, -0.76464259034050386, -3.8194485384538379, 1.4302278816446101], [1.3285251111309222, 1.7759684732343999, 1.0625449709725245, 2.0765311705509673, 0.84901166877217804]], [[-3.2479863494277703, 3.0018754860404862, 1.8326556228537374, 3.5822915047937922, 0.43858299721666327], [0.4615028659813678, 1.1020136039967117, 1.0713014136947638, -3.4258998609725664, 4.5173242581783892], [-4.3809294247744912, -0.83480235457085072, 4.8298893344880653, -4.6552130188763039, -1.4120372693415764], [-1.473624582307056, -2.1489050272327939, 3.3818033025882617, -0.54227174041389681, -0.73119059256376939]], [[1.051153857443837, 3.4821197215581776, -2.403366958624733, -0.91925473282395131, -3.2415792422208423], [-2.2632052447478745, -3.8180721866029046, 3.7827672194012951, 3.8716852906174175, 0.65746533018719333], [3.9361392402672593, 0.35998776778915076, 3.3445718645836067, 2.5681588294793256, 4.3729787358904009], [-3.731664089760903, 0.74683615241484791, 4.1443313967640449, -2.5599828375176434, 4.807313761920387]], [[-1.9596872572531812, 2.651453415428449, -1.4591295889113209, -3.7079652160842977, -1.3751367594735866], [-3.2422687310737794, 2.5168225298400948, -3.5134661776522891, -1.7362566810892774, -0.42314246872416117], [3.7713886898073188, -3.644978146370347, -0.13588734275858361, 0.9648690109676501, -1.6524420231016101], [-4.4985914246216314, 1.5803169952821925, 2.8790197105850268, 2.006648205833593, 3.333731930132501]]], [[[-0.14771743133952953, 1.3264953743876253, -3.1593087633524499, -1.650010974211451, -4.2239542406311736], [-1.2231262724641603, 2.1723848240205132, -2.2905125175649999, 4.5519723846566578, -1.9544593644541375], [-3.9379644481043083, 1.3551759879758931, -4.8341027092932896, 0.38488489194540065, 0.081523381666750439], [-0.39317411740720765, 1.7117183760813788, 1.8812514368830202, -3.8792303520879603, -0.92650007146280355]], [[3.2713242290999354, 4.3103102629289136, -3.0522768742388906, -4.5800841032153308, -1.0100492483655268], [-4.7232220455657661, -4.8092025573721973, -0.6963759796464668, -1.1304005105746873, 1.5062160349374469], [0.62265171368240058, 2.8233647995091093, 0.75897597078466195, 3.3854901909306729, 3.0938723886983759], [1.3808444342696236, 0.72800809442061976, 2.9637390572426643, -1.8586417275151943, 3.8366060883861746]], [[1.8526271312203608, -0.95929919427541499, 2.5504902251743777, -1.4176026100329375, -1.2459593282068382], [-2.0588323882585269, 3.1354232235559358, -0.071173486958587162, -2.8374917910461503, -3.5527972934141272], [0.17631551171706317, 3.1297398642052148, 2.7466662317451931, -2.2534718397377516, -3.4826459634371485], [-2.3304458164785071, 2.7937851633208046, 4.7084787888004112, 4.7600032971115489, -0.032842752940358544]], [[-0.68098726537465737, 1.3636637400114813, 4.5465203965966943, -2.7321622604009423, 3.1911556595015114], [2.8369884658059208, 3.1630452671871794, -4.5885977648686049, 1.5999126612168544, 3.9414550895096188], [3.9291428799732095, -4.4103376468474274, -1.4989680706894459, -3.0517394063196921, -2.5931785839832102], [3.8211572275282393, -1.4871496006178377, -0.19410207245308531, 4.7091097192311633, -2.4927875785478237]], [[-1.5626360845579388, -2.3111634439599849, 2.7151291747860196, -2.7392141314429894, 3.7567913772293675], [3.5951684012171334, -0.16454274633151655, -3.0341133325772232, 3.5035920486407228, -1.2319941857442962], [0.7938693952069773, -1.9231541146285869, 3.8880067098908704, -0.092966739292562828, -2.4966803232574919], [-1.4223723034836167, -3.9827443835964162, -2.3608991592361406, -1.25443100166828, 0.89606245690140085]]]]),self.functionspace)
2428        arg1.setTaggedValue(1,numarray.array([[[[1.2885019143926533, 1.8969958159578484, 1.606240852303217, 3.447811624858609, 2.193062785112585], [-0.74529246063648813, -1.8449577984176111, -1.1509939827496463, -1.0959524668899698, -2.9899950862319313], [3.5371282092156981, 3.2534893555305668, 2.9756688830546407, -0.2994354925831697, 0.8145130985888569], [4.0391295147814237, -3.5463510945804275, -1.6192593548495262, -1.2129914582674415, 1.5748522691264464]], [[0.39333621348988412, 1.7893468612377159, 3.511151768616493, -2.1972284970593692, -2.9544890742856911], [1.8014146943097042, -4.86576236309996, 1.591152643141748, 3.3870480817021207, 0.25393552391471275], [4.5186064500712035, 2.804994574436793, 2.5481083683428025, 1.9987714437605835, 4.3517146857738869], [-4.4505451665361404, 3.3567663863335948, -2.7003135365577267, -4.54223945380551, -0.58883322917672665]], [[-4.2158491582654296, 4.8900464760709994, 0.71346951541712578, -1.8714383795615461, -2.1249127240955978], [-2.3967522730777011, -4.5141793133848136, 3.1292947028699114, 0.91358465269378009, 3.821286065570451], [3.5851437635035275, 4.897576892389413, 0.55034081512156519, -3.1787803867304731, 0.036943730057219071], [2.5977002990334244, -4.3983607853718212, 2.3225432545321105, -2.268493701826185, -2.8956660894642017]], [[2.1100599986177135, -4.4837871633972073, 0.92520823977685662, 1.4584925223861234, 1.6792714747608155], [3.5701982420277147, -4.3564508113805882, -1.233408132463385, 2.1186578037522636, -0.44490737650947132], [3.7220122324673355, 3.7425375333042865, 4.8136837347046573, -3.7522872714573055, 3.7193482825478288], [3.2693603135995453, -1.6281068853852245, -4.4569874554498767, -4.7252463727929515, -0.22307192059250802]], [[2.8670165250388937, -2.7992878680214295, 1.5338406586890567, -2.0156868073855758, 4.237699841338376], [-4.7968200756245079, 2.3505399965501503, 1.446800069248094, -3.0486813780181343, -2.2321276429098647], [4.6357824304462909, -2.1793964108796118, -1.1361733670043073, 3.2867673806648607, 1.2094987681125167], [-0.66069101729950752, 4.2768153872657511, -1.2084432496313058, 0.014688055833999236, 2.9009360393155355]]], [[[2.9284282885875133, -1.6808105687721033, -4.2477751066152223, 0.03151429637553349, 1.9153010715536158], [0.20969855408884719, 1.4829119262771373, -4.2341389905980265, 2.4505749444587357, 4.7248619717236586], [0.3132336810925187, 0.073963430337339986, 2.1847448137158292, 3.0768115546490655, 1.7711762473641768], [-3.1279777928087773, -1.4447228500226306, 3.3668480399113125, -1.443182431025698, 2.0091485248490066]], [[4.8932163148200303, 1.6235520045398371, -0.18676148998718745, -0.12274044194542899, 1.7852093981513431], [3.0049770295102007, -4.8723043442032097, 1.0477241395588033, 4.6788730928044018, -2.470653750675238], [-2.5168906885439135, 2.530385828826061, 0.9186151685594659, 1.533592515543269, -1.7334825862143379], [-1.3891728543300408, 3.3584414518186936, -1.062522385971596, 1.5409859863101385, 0.44435508986575023]], [[-4.2037845624918582, 1.1071287797629061, 3.3306974940342364, 1.1773712590490018, -3.9337613042207877], [3.7513060163171623, 4.7188896064255879, 2.5207056477898115, -0.37874256310327681, -3.5675830128269115], [-2.6605477786401934, 0.47383145879946476, -3.6792533647978489, 4.7429254877113642, 0.42670938347036014], [1.268610035107538, 1.1962209440108946, 4.1529937944361706, 4.0465013226625288, 2.0910601275496665]], [[-3.4388413640982582, -4.2666644002096028, -4.7359217515218868, 1.340711920740044, 4.4489005398029846], [-0.10360380405324321, 2.777714405559971, -1.5442121484774263, 3.7901294413456892, 2.4038374089686876], [-3.3551291751190728, -1.2784025916380903, 3.4753477692808143, 3.3396780557090366, -4.8965235133312763], [2.4905585888611732, 4.8913472266536715, -1.0402536505086912, 0.81484878733254895, 0.022432965199829624]], [[1.6911969040740304, 3.1260947771241181, 0.68091021334729351, -2.2149281966603396, 2.8408379285996279], [-1.1142655176252738, 2.4371888838412055, -4.9379079622925213, -1.4284579348872972, -4.9781870369944761], [0.066957685220171648, -2.542779821930794, 4.023801762236225, 4.2068887464664471, 1.4217676477447272], [0.38387171633307027, -2.2701934903655197, 2.3585515407847453, -3.9191121304232732, 2.035848371737055]]], [[[0.021522509435492942, 2.1120462908559992, -2.8544527844825005, -2.3364583080479284, -2.9146151738663804], [4.0419221730658013, -2.4986115541869625, -1.6488898343624516, -0.26061427871768572, 4.7051058505340926], [-2.2529092545800466, 0.89923931839312132, -3.6755650979367527, 3.9921750297216789, 3.9252815017700584], [0.67931738683666509, -2.030444842835637, 2.1635043882647231, -0.278363801045586, 2.6307617549335127]], [[2.3291081408925471, -3.3393050458329734, 1.3169395447343355, 4.5022079193728342, 0.69742869429527676], [-0.0574115323430755, 2.6037805938419041, -3.1774881113740427, -4.2206051644404425, 0.97338068519175724], [-2.9535496732702904, -3.0688595148206002, -2.0647758631521329, -3.0675431083156601, 2.9614655033053392], [-2.990404875523506, -0.026361799451716905, 0.6761887192951832, -4.5268408484244027, -4.4562043857261804]], [[-0.65471460193884923, 3.5776997236796895, 1.0731157686508102, -0.88557580549227044, 1.3887123473102223], [-0.18007517534713102, 3.0402073153568825, 3.9190220915224003, 0.21112902590073013, -4.9626725121349775], [2.0198445519503618, -2.4309026346996374, 1.3960952869770509, 3.4086031887325099, -1.353812964782847], [-3.8508532833296716, -0.68096892511166107, 4.6700080238906931, -2.6898012874309707, -1.2188147886206613]], [[-4.5237528167440413, -2.6128428477676335, 4.4873109453864437, -4.801804154848587, -0.30519122556627831], [-2.5381269560130306, 3.1353650405037019, 3.4279471619469177, 2.8761514010144316, 1.8220900785468039], [2.5798374489550326, 2.3467144184623496, 4.4220499534917153, -1.2284316727154989, 2.7345988952919882], [-0.95615467397200327, 3.6785200271382337, -2.6460760816242654, 1.7913031067756418, -4.8690003917289566]], [[-1.8520163428921532, -0.3976640655457846, -3.2120336999197061, -4.9429228918119472, -2.9189986938556265], [-4.7596201818984865, 3.1030400755273426, 2.7329868241507818, -2.1007284785502325, 1.1359390381737757], [0.8671909648833509, 1.5345144009559935, -0.37573688057495858, 0.33852853726690579, 4.6282824434312051], [0.95366224102013497, -1.247407057909963, 2.7041901697737156, 0.024713772789292321, -3.5635882357178819]]], [[[2.145157508570894, -4.0875518210420072, 1.450046543236021, 0.019862290779364855, 1.3464906505143857], [3.7143765370965571, 4.4031496083348962, 3.2524025604213254, -1.296785117877195, -4.5627933073946352], [1.5223019891425951, 4.037544889087977, -0.016771298136082358, -4.4402124376795635, -4.5372834788527774], [-4.5492247387743721, -4.4148506152620639, 4.1018024380621547, -0.17412945475207664, -3.7258725130687864]], [[-0.94317292757675286, 3.6665956380197819, -0.69194376601550189, 4.6244279557118233, -1.194151832243481], [0.59598393396156268, 4.5204243080489483, -2.1398057474797683, -2.5380049106968885, -0.42652651025972865], [-0.68598189111244778, -2.539893378012299, -2.8677693065760481, -1.7838070476889447, -2.4452073407860353], [0.51910190418875324, -3.4734378003337572, -2.5097330094594703, 2.5288564478886535, -0.22904108876181528]], [[0.73930535458779723, 1.5684224093977504, 0.6469902180053051, -1.2504509318445542, -2.2863913669385472], [-4.1488697910084991, 2.1901624921014742, 3.6991890235377909, 3.2137832487271432, 4.9089388841536152], [2.4345212423455251, -1.5130876003379914, 1.1945620995631669, -2.5517452992699674, 4.5628945688848717], [4.3754950744653378, 4.6029289472599242, -1.4016703338236525, -1.5716961607067881, 1.0958128315217603]], [[-2.6482275278453846, 2.1651258647090419, -1.3562962830140091, 3.2402469353389343, -3.472870399707281], [-0.47195229008341499, 3.6813373292694802, 1.3713894622660199, 1.3657183110960345, -0.51902043495334649], [3.1603251973427025, 1.3768572282674949, 4.7208086101613862, 2.3138541784868618, 2.2452162614868296], [2.6260561135522567, -4.8275595862288743, 4.2746763911155803, -1.0127449984673706, 4.3945257463808431]], [[3.1654575622830006, 3.1826369503291332, 1.7618275156223104, 0.69104662691202989, 2.3537314342588811], [-4.9221817564110175, 1.264672844469553, 0.53674755345977054, -1.1222542771542754, -4.1548441096013331], [0.07508467229502358, 0.12656116683681251, 1.5717669404192636, -0.3514559124213914, 2.4149087568245324], [2.8529364066607936, -1.3972244243415499, -0.25575992210605669, 2.7032954655984263, 4.8123398174669756]]]]))        arg1.setTaggedValue(1,numarray.array([[[[1.2885019143926533, 1.8969958159578484, 1.606240852303217, 3.447811624858609, 2.193062785112585], [-0.74529246063648813, -1.8449577984176111, -1.1509939827496463, -1.0959524668899698, -2.9899950862319313], [3.5371282092156981, 3.2534893555305668, 2.9756688830546407, -0.2994354925831697, 0.8145130985888569], [4.0391295147814237, -3.5463510945804275, -1.6192593548495262, -1.2129914582674415, 1.5748522691264464]], [[0.39333621348988412, 1.7893468612377159, 3.511151768616493, -2.1972284970593692, -2.9544890742856911], [1.8014146943097042, -4.86576236309996, 1.591152643141748, 3.3870480817021207, 0.25393552391471275], [4.5186064500712035, 2.804994574436793, 2.5481083683428025, 1.9987714437605835, 4.3517146857738869], [-4.4505451665361404, 3.3567663863335948, -2.7003135365577267, -4.54223945380551, -0.58883322917672665]], [[-4.2158491582654296, 4.8900464760709994, 0.71346951541712578, -1.8714383795615461, -2.1249127240955978], [-2.3967522730777011, -4.5141793133848136, 3.1292947028699114, 0.91358465269378009, 3.821286065570451], [3.5851437635035275, 4.897576892389413, 0.55034081512156519, -3.1787803867304731, 0.036943730057219071], [2.5977002990334244, -4.3983607853718212, 2.3225432545321105, -2.268493701826185, -2.8956660894642017]], [[2.1100599986177135, -4.4837871633972073, 0.92520823977685662, 1.4584925223861234, 1.6792714747608155], [3.5701982420277147, -4.3564508113805882, -1.233408132463385, 2.1186578037522636, -0.44490737650947132], [3.7220122324673355, 3.7425375333042865, 4.8136837347046573, -3.7522872714573055, 3.7193482825478288], [3.2693603135995453, -1.6281068853852245, -4.4569874554498767, -4.7252463727929515, -0.22307192059250802]], [[2.8670165250388937, -2.7992878680214295, 1.5338406586890567, -2.0156868073855758, 4.237699841338376], [-4.7968200756245079, 2.3505399965501503, 1.446800069248094, -3.0486813780181343, -2.2321276429098647], [4.6357824304462909, -2.1793964108796118, -1.1361733670043073, 3.2867673806648607, 1.2094987681125167], [-0.66069101729950752, 4.2768153872657511, -1.2084432496313058, 0.014688055833999236, 2.9009360393155355]]], [[[2.9284282885875133, -1.6808105687721033, -4.2477751066152223, 0.03151429637553349, 1.9153010715536158], [0.20969855408884719, 1.4829119262771373, -4.2341389905980265, 2.4505749444587357, 4.7248619717236586], [0.3132336810925187, 0.073963430337339986, 2.1847448137158292, 3.0768115546490655, 1.7711762473641768], [-3.1279777928087773, -1.4447228500226306, 3.3668480399113125, -1.443182431025698, 2.0091485248490066]], [[4.8932163148200303, 1.6235520045398371, -0.18676148998718745, -0.12274044194542899, 1.7852093981513431], [3.0049770295102007, -4.8723043442032097, 1.0477241395588033, 4.6788730928044018, -2.470653750675238], [-2.5168906885439135, 2.530385828826061, 0.9186151685594659, 1.533592515543269, -1.7334825862143379], [-1.3891728543300408, 3.3584414518186936, -1.062522385971596, 1.5409859863101385, 0.44435508986575023]], [[-4.2037845624918582, 1.1071287797629061, 3.3306974940342364, 1.1773712590490018, -3.9337613042207877], [3.7513060163171623, 4.7188896064255879, 2.5207056477898115, -0.37874256310327681, -3.5675830128269115], [-2.6605477786401934, 0.47383145879946476, -3.6792533647978489, 4.7429254877113642, 0.42670938347036014], [1.268610035107538, 1.1962209440108946, 4.1529937944361706, 4.0465013226625288, 2.0910601275496665]], [[-3.4388413640982582, -4.2666644002096028, -4.7359217515218868, 1.340711920740044, 4.4489005398029846], [-0.10360380405324321, 2.777714405559971, -1.5442121484774263, 3.7901294413456892, 2.4038374089686876], [-3.3551291751190728, -1.2784025916380903, 3.4753477692808143, 3.3396780557090366, -4.8965235133312763], [2.4905585888611732, 4.8913472266536715, -1.0402536505086912, 0.81484878733254895, 0.022432965199829624]], [[1.6911969040740304, 3.1260947771241181, 0.68091021334729351, -2.2149281966603396, 2.8408379285996279], [-1.1142655176252738, 2.4371888838412055, -4.9379079622925213, -1.4284579348872972, -4.9781870369944761], [0.066957685220171648, -2.542779821930794, 4.023801762236225, 4.2068887464664471, 1.4217676477447272], [0.38387171633307027, -2.2701934903655197, 2.3585515407847453, -3.9191121304232732, 2.035848371737055]]], [[[0.021522509435492942, 2.1120462908559992, -2.8544527844825005, -2.3364583080479284, -2.9146151738663804], [4.0419221730658013, -2.4986115541869625, -1.6488898343624516, -0.26061427871768572, 4.7051058505340926], [-2.2529092545800466, 0.89923931839312132, -3.6755650979367527, 3.9921750297216789, 3.9252815017700584], [0.67931738683666509, -2.030444842835637, 2.1635043882647231, -0.278363801045586, 2.6307617549335127]], [[2.3291081408925471, -3.3393050458329734, 1.3169395447343355, 4.5022079193728342, 0.69742869429527676], [-0.0574115323430755, 2.6037805938419041, -3.1774881113740427, -4.2206051644404425, 0.97338068519175724], [-2.9535496732702904, -3.0688595148206002, -2.0647758631521329, -3.0675431083156601, 2.9614655033053392], [-2.990404875523506, -0.026361799451716905, 0.6761887192951832, -4.5268408484244027, -4.4562043857261804]], [[-0.65471460193884923, 3.5776997236796895, 1.0731157686508102, -0.88557580549227044, 1.3887123473102223], [-0.18007517534713102, 3.0402073153568825, 3.9190220915224003, 0.21112902590073013, -4.9626725121349775], [2.0198445519503618, -2.4309026346996374, 1.3960952869770509, 3.4086031887325099, -1.353812964782847], [-3.8508532833296716, -0.68096892511166107, 4.6700080238906931, -2.6898012874309707, -1.2188147886206613]], [[-4.5237528167440413, -2.6128428477676335, 4.4873109453864437, -4.801804154848587, -0.30519122556627831], [-2.5381269560130306, 3.1353650405037019, 3.4279471619469177, 2.8761514010144316, 1.8220900785468039], [2.5798374489550326, 2.3467144184623496, 4.4220499534917153, -1.2284316727154989, 2.7345988952919882], [-0.95615467397200327, 3.6785200271382337, -2.6460760816242654, 1.7913031067756418, -4.8690003917289566]], [[-1.8520163428921532, -0.3976640655457846, -3.2120336999197061, -4.9429228918119472, -2.9189986938556265], [-4.7596201818984865, 3.1030400755273426, 2.7329868241507818, -2.1007284785502325, 1.1359390381737757], [0.8671909648833509, 1.5345144009559935, -0.37573688057495858, 0.33852853726690579, 4.6282824434312051], [0.95366224102013497, -1.247407057909963, 2.7041901697737156, 0.024713772789292321, -3.5635882357178819]]], [[[2.145157508570894, -4.0875518210420072, 1.450046543236021, 0.019862290779364855, 1.3464906505143857], [3.7143765370965571, 4.4031496083348962, 3.2524025604213254, -1.296785117877195, -4.5627933073946352], [1.5223019891425951, 4.037544889087977, -0.016771298136082358, -4.4402124376795635, -4.5372834788527774], [-4.5492247387743721, -4.4148506152620639, 4.1018024380621547, -0.17412945475207664, -3.7258725130687864]], [[-0.94317292757675286, 3.6665956380197819, -0.69194376601550189, 4.6244279557118233, -1.194151832243481], [0.59598393396156268, 4.5204243080489483, -2.1398057474797683, -2.5380049106968885, -0.42652651025972865], [-0.68598189111244778, -2.539893378012299, -2.8677693065760481, -1.7838070476889447, -2.4452073407860353], [0.51910190418875324, -3.4734378003337572, -2.5097330094594703, 2.5288564478886535, -0.22904108876181528]], [[0.73930535458779723, 1.5684224093977504, 0.6469902180053051, -1.2504509318445542, -2.2863913669385472], [-4.1488697910084991, 2.1901624921014742, 3.6991890235377909, 3.2137832487271432, 4.9089388841536152], [2.4345212423455251, -1.5130876003379914, 1.1945620995631669, -2.5517452992699674, 4.5628945688848717], [4.3754950744653378, 4.6029289472599242, -1.4016703338236525, -1.5716961607067881, 1.0958128315217603]], [[-2.6482275278453846, 2.1651258647090419, -1.3562962830140091, 3.2402469353389343, -3.472870399707281], [-0.47195229008341499, 3.6813373292694802, 1.3713894622660199, 1.3657183110960345, -0.51902043495334649], [3.1603251973427025, 1.3768572282674949, 4.7208086101613862, 2.3138541784868618, 2.2452162614868296], [2.6260561135522567, -4.8275595862288743, 4.2746763911155803, -1.0127449984673706, 4.3945257463808431]], [[3.1654575622830006, 3.1826369503291332, 1.7618275156223104, 0.69104662691202989, 2.3537314342588811], [-4.9221817564110175, 1.264672844469553, 0.53674755345977054, -1.1222542771542754, -4.1548441096013331], [0.07508467229502358, 0.12656116683681251, 1.5717669404192636, -0.3514559124213914, 2.4149087568245324], [2.8529364066607936, -1.3972244243415499, -0.25575992210605669, 2.7032954655984263, 4.8123398174669756]]]]))
2429        res=add(arg0,arg1)        res=add(arg0,arg1)
2430        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2431        ref=msk_ref*numarray.array([[[[4.3269323864413121, 1.3049880714771538, 6.1652259247612609, -0.45677024285138756, 1.0177538421300314], [6.0339554490500387, -1.0949061090845489, 4.3118229112740751, 2.2300264520496205, 0.69350201747003482], [-0.75885126528410485, 0.26440375317222564, 3.313498130395887, 2.2958362231531186, 2.4620793059518302], [2.5588310940673642, 0.091253740457031718, -1.8813612103101693, 4.7474535617405547, 5.082154502211722]], [[1.1508466119244418, -7.574134197304458, -7.5958742469735334, -2.713265349095304, -3.4911844995229449], [-1.186856493850875, -8.1124257815988088, 0.56220692192135724, -1.5359005252233193, -6.8090116937624394], [-2.7640105569549145, -5.6241295031426972, 0.2630854405477856, -0.50225790869635967, 0.067462928383794196], [-6.8190009508381948, -1.1349817672737825, -2.1241129497235325, -1.4665236116513891, -2.3436396856709822]], [[1.0165732804011012, 8.2895818719146082, 3.2053443451746517, -0.78204563441131825, 5.4537278276046779], [6.6726353971788113, 5.3474450536073874, 3.1894852656911006, 2.4988113099972646, 5.7445842778586211], [3.018307094651564, 7.7672779709858784, 2.1744957563398453, 6.6278558518016428, 7.2106319319093934], [3.4333769461395089, 5.5806619806998867, 2.9114368003685982, 6.5440931686664232, 5.8296736549317201]], [[-3.3452763579506741, -3.1450281401725659, 4.0610260263095848, 2.9719814514897758, 1.8638668889022965], [4.0465858417744345, 3.5861459949224512, 0.92698396211064882, 3.1758505313618635, -2.188124223986482], [3.3691876565184833, 2.7431739443225389, -0.87070581349966503, -4.3559991979886963, -4.0090083736556155], [4.6239686255649852, 3.3286665922211691, -1.673659898289162, 1.887282392272299, 1.2599042005885961]], [[0.60537666466062312, 2.8435252067228785, 1.9284731958182881, -3.2105428661945958, 1.3662515104503719], [1.5498261640340845, -4.5875238188854484, -2.2313898475046181, 0.59768878023423433, -4.3133480415335592], [0.80536610906656048, -0.18652661807279181, 2.6455670198486505, 1.6075254081434487, -1.4609994866568563], [-1.0725117014550758, -0.79000234716497442, 3.217157793337412, -0.65602409286242302, -4.1719016535512665]]], [[[5.0275679147555277, 4.2400963982149156, 8.713261632736339, 8.1314241980436872, 8.4878622989421313], [3.4517025837453632, 9.3733946340027003, 2.6874558136345938, 8.1264376960333369, 1.0317306878744867], [5.3938791401870052, 1.8408907670127075, 2.0798367997373282, 8.6488145483870813, 2.5611998283120019], [9.3439260085816329, 6.5983263843633333, 1.4229672864798024, 4.2453383771939279, 3.4886625190075584]], [[4.4675669442844814, 0.55022009153424278, 5.3589694425027892, 1.2949288326264954, 5.1603966714519389], [1.3396653079653364, 5.3832522656697037, -1.6376557003684988, 4.2866356506133529, 7.5380563216981491], [6.7674247321056411, 3.5655341757239727, 4.0040206437753278, 5.1812987534871384, -1.3739463940636929], [3.280798109139444, 2.2406160115595855, 1.2442503824448425, 0.43660560219335842, -1.7171445406073751]], [[-7.2084497490945854, -0.95582129328559517, -0.66398187030652434, -5.9093347307884088, -2.374971683042947], [-0.3290325079649401, -0.91314643191576916, -0.08694375502390983, 0.69856106545007446, -6.1662647955588135], [2.0208220323186969, -1.8096723517763165, -0.7768689862873055, -1.8339953044922641, 1.1902973397134291], [-3.8077608458102143, 2.1820703599482085, -2.7156143759955178, 0.45869407615676838, -5.7558589360443682]], [[3.0219417635606467, 0.4347226491525138, -3.0835196242833707, -5.4749788811127145, -3.8804982210757011], [-0.55904899437506828, -0.47210015505370961, 0.93872331926689778, 0.69897138699611627, -6.2804833333419134], [0.73979258555742078, 1.2173497221305176, -4.0039016125882654, 3.1331464169032541, -3.2627102294800014], [-0.14571362271127875, -6.3162508113198399, -3.2319840240762661, -0.28287620523240609, 2.1520467891457864]], [[-2.4060108907653248, 0.051494109163764179, -0.4012978041347961, 3.7318980916377598, 2.2875550886171636], [3.6286971542077646, -1.7417544308604276, 5.5793484427298559, -3.2179835834875981, 3.6559112615043663], [0.0977348512863907, -2.0246636008057397, 6.1902982559404354, 5.9033868692603253, 4.1217820885483247], [0.11766396950832103, 1.0920686153000236, 5.4321127704932248, -0.55985630010223275, 4.9013595548937285]]], [[[4.3409338406483737, 0.51781261862066463, 3.0269525844731362, 6.8284581672627809, 0.79125468698881374], [3.0388223106588077, 3.7008493289036073, 5.3267694878295675, -1.5948913196248102, -2.116019632003094], [5.4442769610261728, 3.567814194215603, -2.1109619831160629, -0.62061498909140234, 2.4915766851529835], [-0.35532196991244858, 2.8676055853483877, 1.5205002584555505, 0.76457129849584238, 1.2969816757757169]], [[6.3070650551432479, 2.7788420403804088, 9.5110827665322102, 0.16527174345444529, 3.6353331707156205], [4.9849333218705461, 3.6643450070420664, 0.81134132230139322, 9.4241944821895665, 3.8788331051594556], [6.5334178892973789, 9.8313100830538485, 4.0999512635237032, 1.0451453154103691, 6.2948217355088172], [6.1931189649951293, 6.6405623270986069, 5.9271388248367316, 6.9411250244151743, 5.7136055226363851]], [[-5.1535952445685806, 1.0962665908996758, -0.072953272287072934, 1.6766826096529819, -1.4670258979241471], [-1.4441060291594425, -0.80359529114409867, -0.83430748144604649, -5.3315087561133767, 2.6117153630375789], [-6.2865383199153015, -2.7404112497116611, 2.924280439347255, -6.5608219140171142, -3.3176461644823867], [-3.3792334774478663, -4.0545139223736042, 1.4761944074474513, -2.4478806355547071, -2.6367994877045797]], [[-3.3869718470824166, -0.95600598296807604, -6.8414926631509871, -5.357380437350205, -7.6797049467470959], [-6.7013309492741282, -8.2561978911291583, -0.65535848512495853, -0.56644041390883615, -3.7806603743390603], [-0.5019864642589944, -4.0781379367371029, -1.093553839942647, -1.869966875046928, -0.065146968635852787], [-8.1697897942871567, -3.6912895521114057, -0.29379430776220872, -6.9981085420438971, 0.3691880573941333]], [[-6.8353070936575602, -2.22416642097593, -6.3347494253156995, -8.5835850524886759, -6.2507565958779656], [-8.1178885674781576, -2.3587973065642842, -8.3890860140566677, -6.6118765174936565, -5.2987623051285402], [-1.1042311465970602, -8.520597982774726, -5.0115071791629626, -3.9107508254367289, -6.5280618595059892], [-9.3742112610260104, -3.2953028411221865, -1.9966001258193522, -2.868971630570786, -1.541887906271878]]], [[[-3.5374503597118574, -2.0632375539847025, -6.5490416917247778, -5.0397439025837789, -7.6136871690035015], [-4.6128592008364881, -1.2173481043518146, -5.6802454459373273, 1.1622394562843299, -5.3441922928264649], [-7.3276973764766362, -2.0345569403964348, -8.2238356376656174, -3.0048480364269272, -3.3082095467055774], [-3.7829070457795355, -1.6780145522909491, -1.5084814914893077, -7.2689632804602882, -4.3162329998351314]], [[6.0682714521159404, 7.1072574859449187, -0.25532965122288553, -1.7831368801993257, 1.7868979746504783], [-1.926274822549761, -2.0122553343561922, 2.1005712433695383, 1.6665467124413178, 4.303163257953452], [3.4195989366984056, 5.6203120225251144, 3.555923193800667, 6.182437413946678, 5.890819611714381], [4.1777916572856286, 3.5249553174366248, 5.7606862802586694, 0.93830549550081077, 6.6335533114021796]], [[-0.34714921351819772, -3.1590755390139735, 0.35071388043581919, -3.6173789547714961, -3.4457356729453967], [-4.2586087329970859, 0.93564687881737729, -2.2709498316971457, -5.0372681357847089, -5.7525736381526862], [-2.0234608330214954, 0.92996351946665623, 0.54688988700663455, -4.4532481844763101, -5.682422308175707], [-4.5302221612170657, 0.59400881858224608, 2.5087024440618526, 2.5602269523729904, -2.2326190976789171]], [[-4.2643856558823758, -2.2197346504962372, 0.9631220060889758, -6.3155606509086608, -0.3922427310062071], [-0.74640992470179768, -0.42035312332053909, -8.1719961553763234, -1.9834857292908641, 0.35805669900190029], [0.34574448946549108, -7.9937360373551458, -5.0823664611971644, -6.6351377968274106, -6.1765769744909287], [0.23775883702052081, -5.0705479911255562, -3.7775004629608038, 1.1257113287234448, -6.0761859690555422]], [[-2.5657783713735771, -3.3143057307756232, 1.7119868879703812, -3.7423564182586277, 2.7536490904137292], [2.5920261144014951, -1.1676850331471549, -4.0372556193928615, 2.5004497618250845, -2.2351364725599345], [-0.20927289160866103, -2.9262964014442252, 2.8848644230752321, -1.0961090261082012, -3.4998226100731302], [-2.425514590299255, -4.9858866704120546, -3.3640414460517789, -2.2575732884839184, -0.10707982991423748]]]])+(1.-msk_ref)*numarray.array([[[[-2.3330981497674865, -1.7246042482022914, -2.0153592118569228, -0.17378843930153076, -1.4285372790475548], [-4.3668925247966275, -5.4665578625777513, -4.7725940469097861, -4.7175525310501101, -6.6115951503920716], [-0.084471854944441649, -0.36811070862957296, -0.64593118110549907, -3.9210355567433095, -2.8070869655712829], [0.41752945062128388, -7.1679511587405678, -5.2408594190096665, -4.8345915224275817, -2.0467477950336934]], [[-2.295126706334162, -0.89911605858633026, 0.82268884879244686, -4.8856914168834154, -5.6429519941097368], [-0.88704822551434193, -7.5542252829240066, -1.0973102766822982, 0.69858516187807451, -2.4345273959093334], [1.8301435302471574, 0.11653165461274684, -0.14035455148124365, -0.68969147606346271, 1.6632517659498407], [-7.139008086360187, 0.66830346650954864, -5.3887764563817733, -7.2307023736295566, -3.2772961490007728]], [[-3.6029789329766935, 5.5029167013597355, 1.3263397407058619, -1.25856815427281, -1.5120424988068617], [-1.783882047788965, -3.9013090880960775, 3.7421649281586475, 1.5264548779825162, 4.4341562908591872], [4.1980139887922636, 5.5104471176781491, 1.1632110404103013, -2.565910161441737, 0.64981395534595521], [3.2105705243221605, -3.785490560083085, 2.9354134798208467, -1.6556234765374489, -2.2827958641754655]], [[0.81526558652099457, -5.7785815754939263, -0.36958617231986235, 0.1636981102894044, 0.38447706266409654], [2.2754038299309958, -5.6512452234773072, -2.528202544560104, 0.82386339165554467, -1.7397017886061903], [2.4272178203706165, 2.4477431212075675, 3.5188893226079383, -5.0470816835540244, 2.4245538704511098], [1.9745659015028263, -2.9229012974819435, -5.7517818675465957, -6.0200407848896704, -1.517866332689227]], [[-0.49522827754935506, -6.1615326706096782, -1.828404143899192, -5.3779316099738246, 0.8754550387501272], [-8.1590648782127566, -1.0117048060380984, -1.9154447333401547, -6.4109261806063831, -5.594372445498113], [1.2735376278580421, -5.5416412134678605, -4.498418169592556, -0.075477421923388022, -2.1527460344757321], [-4.0229358198877563, 0.9145705846775023, -4.5706880522195545, -3.3475567467542495, -0.46130876327271331]]], [[[7.0854218317922371, 2.4761829744326205, -0.090781563410498478, 4.1885078395802573, 6.0722946147583396], [4.366692097293571, 5.6399054694818611, -0.077145447393302646, 6.6075684876634595, 8.8818555149283824], [4.4702272242972425, 4.2309569735420638, 6.341738356920553, 7.2338050978537893, 5.9281697905689006], [1.0290157503959465, 2.7122706931820932, 7.5238415831160363, 2.7138111121790258, 6.1661420680537304]], [[5.9635818228881785, 2.6939175126079853, 0.88360401808096078, 0.94762506612271924, 2.8555749062194913], [4.075342537578349, -3.8019388361350615, 2.1180896476269515, 5.74923860087255, -1.4002882426070897], [-1.4465251804757653, 3.6007513368942092, 1.9889806766276141, 2.6039580236114173, -0.6631170781461897], [-0.31880734626189255, 4.4288069598868418, 0.0078431220965522463, 2.6113514943782867, 1.5147205979338985]], [[-0.62004777277639711, 4.6908655694783672, 6.9144342837496975, 4.7611080487644628, -0.35002451450532668], [7.3350428060326234, 8.3026263961410489, 6.1044424375052726, 3.2049942266121842, 0.016153776888549576], [0.92318901107526763, 4.0575682485149258, -0.095516575082387867, 8.3266622774268253, 4.0104461731858212], [4.8523468248229991, 4.7799577337263557, 7.7367305841516316, 7.6302381123779899, 5.6747969172651276]], [[-5.3826047841470315, -6.210427820258376, -6.67968517157066, -0.60305149930872926, 2.5051371197542114], [-2.0473672241020164, 0.83395098551119773, -3.4879755685261995, 1.846366021296916, 0.46007398891991436], [-5.2988925951678461, -3.2221660116868636, 1.5315843492320411, 1.3959146356602634, -6.8402869333800496], [0.54679516881239998, 2.9475838066048983, -2.9840170705574645, -1.1289146327162243, -1.9213304548489436]], [[1.1608794868111341, 2.5957773598612217, 0.15059279608439713, -2.745245613923236, 2.3105205113367315], [-1.6445829348881702, 1.9068714665783091, -5.4682253795554177, -1.9587753521501936, -5.5085044542573725], [-0.46335973204272474, -3.0730972391936904, 3.4934843449733286, 3.6765713292035507, 0.89145023048183081], [-0.14644570092982612, -2.800510907628416, 1.8282341235218489, -4.4494295476861696, 1.5055309544741586]]], [[[2.5737204995018947, 4.664244280922401, -0.3022547944160987, 0.21573968201847338, -0.36241718379997856], [6.5941201631322031, 0.053586435879439343, 0.90330815570395018, 2.2915837113487161, 7.2573038406004944], [0.29928873548635515, 3.4514373084595231, -1.1233671078703509, 6.5443730197880807, 6.4774794918364602], [3.2315153769030669, 0.52175314723076482, 4.7157023783311249, 2.2738341890208158, 5.1829597449999145]], [[0.56498853470270483, -5.1034246520228157, -0.44718006145550682, 2.7380883131829918, -1.0666909118945656], [-1.8215311385329178, 0.83966098765206176, -4.9416077175638851, -5.9847247706302849, -0.79073892099808507], [-4.7176692794601323, -4.8329791210104425, -3.8288954693419752, -4.8316627145055024, 1.1973458971154969], [-4.7545244817133483, -1.7904814056415592, -1.0879308868946591, -6.290960454614245, -6.2203239919160227]], [[-4.9204273450460567, -0.68801301942751802, -3.1925969744563973, -5.1512885485994779, -2.8770003957969852], [-4.4457879184543385, -1.225505427750325, -0.34669065158480716, -4.0545837172064774, -9.2283852552421841], [-2.2458681911568457, -6.6966153778068449, -2.8696174561301566, -0.8571095543746976, -5.6195257078900545], [-8.1165660264368782, -4.9466816682188686, 0.40429528078348564, -6.9555140305381782, -5.4845275317278688]], [[-4.4546178457460197, -2.543707876769612, 4.5564459163844653, -4.7326691838505655, -0.23605625456825674], [-2.468991985015009, 3.2045000115017235, 3.4970821329449393, 2.9452863720124531, 1.8912250495448255], [2.6489724199530542, 2.4158493894603712, 4.4911849244897368, -1.1592967017174773, 2.8037338662900098], [-0.88701970297398169, 3.7476549981362552, -2.5769411106262439, 1.8604380777736633, -4.799865420730935]], [[0.0081908209446113212, 1.4625430982909799, -1.3518265360829416, -3.0827157279751827, -1.0587915300188619], [-2.8994130180617219, 4.9632472393641072, 4.5931939879875463, -0.24052131471346794, 2.9961462020105403], [2.7273981287201154, 3.394721564792758, 1.484470283261806, 2.1987357011036703, 6.4884896072679696], [2.8138694048568995, 0.61280010592680156, 4.5643973336104802, 1.8849209366260569, -1.7033810718811173]]], [[[4.1593261700139523, -2.0733831595989489, 3.4642152046790793, 2.0340309522224231, 3.3606593119574439], [5.7285451985396154, 6.4173182697779545, 5.2665712218643836, 0.71738354356586331, -2.5486246459515769], [3.5364706505856534, 6.0517135505310353, 1.9973973633069759, -2.4260437762365052, -2.5231148174097191], [-2.5350560773313138, -2.4006819538190056, 6.115971099505213, 1.8400392066909816, -1.7117038516257281]], [[0.83938115484571529, 5.4491497204422501, 1.0906103164069663, 6.4069820381342915, 0.58840225017898717], [2.3785380163840308, 6.3029783904714165, -0.35725166505730011, -0.75545082827442034, 1.3560275721627395], [1.0965721913100204, -0.75733929558983082, -1.08521522415358, -0.0012529652664765578, -0.66265325836356714], [2.3016559866112214, -1.690883717911289, -0.72717892703700215, 4.3114105303111216, 1.5535129936606529]], [[5.2763580260812937, 6.1054750808912468, 5.1840428894988015, 3.2866017396489422, 2.2506613045549493], [0.38818288048499738, 6.7272151635949706, 8.2362416950312873, 7.7508359202206396, 9.4459915556471117], [6.9715739138390216, 3.0239650711555051, 5.7316147710566634, 1.985307372223529, 9.0999472403783681], [8.9125477459588343, 9.1399816187534206, 3.135382337669844, 2.9653565107867084, 5.6328655030152568]], [[-4.0663461754783468, 0.74700721707607975, -2.7744149306469712, 1.8221282877059721, -4.8909890473402431], [-1.8900709377163771, 2.2632186816365181, -0.046729185366942261, -0.052400336536927661, -1.9371390825863086], [1.7422065497097403, -0.041261419365467233, 3.3026899625284241, 0.89573553085389968, 0.82709761385386749], [1.2079374659192945, -6.2456782338618364, 2.8565577434826182, -2.4308636461003328, 2.976407098747881]], [[4.6143024904246168, 4.6314818784707494, 3.2106724437639267, 2.1398915550536461, 3.8025763624004973], [-3.4733368282694013, 2.7135177726111692, 1.9855924816013868, 0.32659065098734086, -2.7059991814597169], [1.5239296004366398, 1.5754060949784288, 3.0206118685608798, 1.0973890157202248, 3.8637536849661487], [4.3017813348024099, 0.051620503800066331, 1.1930850060355596, 4.1521403937400425, 6.2611847456085918]]]])        ref=msk_ref*numarray.array([[[[4.3269323864413121, 1.3049880714771538, 6.1652259247612609, -0.45677024285138756, 1.0177538421300314], [6.0339554490500387, -1.0949061090845489, 4.3118229112740751, 2.2300264520496205, 0.69350201747003482], [-0.75885126528410485, 0.26440375317222564, 3.313498130395887, 2.2958362231531186, 2.4620793059518302], [2.5588310940673642, 0.091253740457031718, -1.8813612103101693, 4.7474535617405547, 5.082154502211722]], [[1.1508466119244418, -7.574134197304458, -7.5958742469735334, -2.713265349095304, -3.4911844995229449], [-1.186856493850875, -8.1124257815988088, 0.56220692192135724, -1.5359005252233193, -6.8090116937624394], [-2.7640105569549145, -5.6241295031426972, 0.2630854405477856, -0.50225790869635967, 0.067462928383794196], [-6.8190009508381948, -1.1349817672737825, -2.1241129497235325, -1.4665236116513891, -2.3436396856709822]], [[1.0165732804011012, 8.2895818719146082, 3.2053443451746517, -0.78204563441131825, 5.4537278276046779], [6.6726353971788113, 5.3474450536073874, 3.1894852656911006, 2.4988113099972646, 5.7445842778586211], [3.018307094651564, 7.7672779709858784, 2.1744957563398453, 6.6278558518016428, 7.2106319319093934], [3.4333769461395089, 5.5806619806998867, 2.9114368003685982, 6.5440931686664232, 5.8296736549317201]], [[-3.3452763579506741, -3.1450281401725659, 4.0610260263095848, 2.9719814514897758, 1.8638668889022965], [4.0465858417744345, 3.5861459949224512, 0.92698396211064882, 3.1758505313618635, -2.188124223986482], [3.3691876565184833, 2.7431739443225389, -0.87070581349966503, -4.3559991979886963, -4.0090083736556155], [4.6239686255649852, 3.3286665922211691, -1.673659898289162, 1.887282392272299, 1.2599042005885961]], [[0.60537666466062312, 2.8435252067228785, 1.9284731958182881, -3.2105428661945958, 1.3662515104503719], [1.5498261640340845, -4.5875238188854484, -2.2313898475046181, 0.59768878023423433, -4.3133480415335592], [0.80536610906656048, -0.18652661807279181, 2.6455670198486505, 1.6075254081434487, -1.4609994866568563], [-1.0725117014550758, -0.79000234716497442, 3.217157793337412, -0.65602409286242302, -4.1719016535512665]]], [[[5.0275679147555277, 4.2400963982149156, 8.713261632736339, 8.1314241980436872, 8.4878622989421313], [3.4517025837453632, 9.3733946340027003, 2.6874558136345938, 8.1264376960333369, 1.0317306878744867], [5.3938791401870052, 1.8408907670127075, 2.0798367997373282, 8.6488145483870813, 2.5611998283120019], [9.3439260085816329, 6.5983263843633333, 1.4229672864798024, 4.2453383771939279, 3.4886625190075584]], [[4.4675669442844814, 0.55022009153424278, 5.3589694425027892, 1.2949288326264954, 5.1603966714519389], [1.3396653079653364, 5.3832522656697037, -1.6376557003684988, 4.2866356506133529, 7.5380563216981491], [6.7674247321056411, 3.5655341757239727, 4.0040206437753278, 5.1812987534871384, -1.3739463940636929], [3.280798109139444, 2.2406160115595855, 1.2442503824448425, 0.43660560219335842, -1.7171445406073751]], [[-7.2084497490945854, -0.95582129328559517, -0.66398187030652434, -5.9093347307884088, -2.374971683042947], [-0.3290325079649401, -0.91314643191576916, -0.08694375502390983, 0.69856106545007446, -6.1662647955588135], [2.0208220323186969, -1.8096723517763165, -0.7768689862873055, -1.8339953044922641, 1.1902973397134291], [-3.8077608458102143, 2.1820703599482085, -2.7156143759955178, 0.45869407615676838, -5.7558589360443682]], [[3.0219417635606467, 0.4347226491525138, -3.0835196242833707, -5.4749788811127145, -3.8804982210757011], [-0.55904899437506828, -0.47210015505370961, 0.93872331926689778, 0.69897138699611627, -6.2804833333419134], [0.73979258555742078, 1.2173497221305176, -4.0039016125882654, 3.1331464169032541, -3.2627102294800014], [-0.14571362271127875, -6.3162508113198399, -3.2319840240762661, -0.28287620523240609, 2.1520467891457864]], [[-2.4060108907653248, 0.051494109163764179, -0.4012978041347961, 3.7318980916377598, 2.2875550886171636], [3.6286971542077646, -1.7417544308604276, 5.5793484427298559, -3.2179835834875981, 3.6559112615043663], [0.0977348512863907, -2.0246636008057397, 6.1902982559404354, 5.9033868692603253, 4.1217820885483247], [0.11766396950832103, 1.0920686153000236, 5.4321127704932248, -0.55985630010223275, 4.9013595548937285]]], [[[4.3409338406483737, 0.51781261862066463, 3.0269525844731362, 6.8284581672627809, 0.79125468698881374], [3.0388223106588077, 3.7008493289036073, 5.3267694878295675, -1.5948913196248102, -2.116019632003094], [5.4442769610261728, 3.567814194215603, -2.1109619831160629, -0.62061498909140234, 2.4915766851529835], [-0.35532196991244858, 2.8676055853483877, 1.5205002584555505, 0.76457129849584238, 1.2969816757757169]], [[6.3070650551432479, 2.7788420403804088, 9.5110827665322102, 0.16527174345444529, 3.6353331707156205], [4.9849333218705461, 3.6643450070420664, 0.81134132230139322, 9.4241944821895665, 3.8788331051594556], [6.5334178892973789, 9.8313100830538485, 4.0999512635237032, 1.0451453154103691, 6.2948217355088172], [6.1931189649951293, 6.6405623270986069, 5.9271388248367316, 6.9411250244151743, 5.7136055226363851]], [[-5.1535952445685806, 1.0962665908996758, -0.072953272287072934, 1.6766826096529819, -1.4670258979241471], [-1.4441060291594425, -0.80359529114409867, -0.83430748144604649, -5.3315087561133767, 2.6117153630375789], [-6.2865383199153015, -2.7404112497116611, 2.924280439347255, -6.5608219140171142, -3.3176461644823867], [-3.3792334774478663, -4.0545139223736042, 1.4761944074474513, -2.4478806355547071, -2.6367994877045797]], [[-3.3869718470824166, -0.95600598296807604, -6.8414926631509871, -5.357380437350205, -7.6797049467470959], [-6.7013309492741282, -8.2561978911291583, -0.65535848512495853, -0.56644041390883615, -3.7806603743390603], [-0.5019864642589944, -4.0781379367371029, -1.093553839942647, -1.869966875046928, -0.065146968635852787], [-8.1697897942871567, -3.6912895521114057, -0.29379430776220872, -6.9981085420438971, 0.3691880573941333]], [[-6.8353070936575602, -2.22416642097593, -6.3347494253156995, -8.5835850524886759, -6.2507565958779656], [-8.1178885674781576, -2.3587973065642842, -8.3890860140566677, -6.6118765174936565, -5.2987623051285402], [-1.1042311465970602, -8.520597982774726, -5.0115071791629626, -3.9107508254367289, -6.5280618595059892], [-9.3742112610260104, -3.2953028411221865, -1.9966001258193522, -2.868971630570786, -1.541887906271878]]], [[[-3.5374503597118574, -2.0632375539847025, -6.5490416917247778, -5.0397439025837789, -7.6136871690035015], [-4.6128592008364881, -1.2173481043518146, -5.6802454459373273, 1.1622394562843299, -5.3441922928264649], [-7.3276973764766362, -2.0345569403964348, -8.2238356376656174, -3.0048480364269272, -3.3082095467055774], [-3.7829070457795355, -1.6780145522909491, -1.5084814914893077, -7.2689632804602882, -4.3162329998351314]], [[6.0682714521159404, 7.1072574859449187, -0.25532965122288553, -1.7831368801993257, 1.7868979746504783], [-1.926274822549761, -2.0122553343561922, 2.1005712433695383, 1.6665467124413178, 4.303163257953452], [3.4195989366984056, 5.6203120225251144, 3.555923193800667, 6.182437413946678, 5.890819611714381], [4.1777916572856286, 3.5249553174366248, 5.7606862802586694, 0.93830549550081077, 6.6335533114021796]], [[-0.34714921351819772, -3.1590755390139735, 0.35071388043581919, -3.6173789547714961, -3.4457356729453967], [-4.2586087329970859, 0.93564687881737729, -2.2709498316971457, -5.0372681357847089, -5.7525736381526862], [-2.0234608330214954, 0.92996351946665623, 0.54688988700663455, -4.4532481844763101, -5.682422308175707], [-4.5302221612170657, 0.59400881858224608, 2.5087024440618526, 2.5602269523729904, -2.2326190976789171]], [[-4.2643856558823758, -2.2197346504962372, 0.9631220060889758, -6.3155606509086608, -0.3922427310062071], [-0.74640992470179768, -0.42035312332053909, -8.1719961553763234, -1.9834857292908641, 0.35805669900190029], [0.34574448946549108, -7.9937360373551458, -5.0823664611971644, -6.6351377968274106, -6.1765769744909287], [0.23775883702052081, -5.0705479911255562, -3.7775004629608038, 1.1257113287234448, -6.0761859690555422]], [[-2.5657783713735771, -3.3143057307756232, 1.7119868879703812, -3.7423564182586277, 2.7536490904137292], [2.5920261144014951, -1.1676850331471549, -4.0372556193928615, 2.5004497618250845, -2.2351364725599345], [-0.20927289160866103, -2.9262964014442252, 2.8848644230752321, -1.0961090261082012, -3.4998226100731302], [-2.425514590299255, -4.9858866704120546, -3.3640414460517789, -2.2575732884839184, -0.10707982991423748]]]])+(1.-msk_ref)*numarray.array([[[[-2.3330981497674865, -1.7246042482022914, -2.0153592118569228, -0.17378843930153076, -1.4285372790475548], [-4.3668925247966275, -5.4665578625777513, -4.7725940469097861, -4.7175525310501101, -6.6115951503920716], [-0.084471854944441649, -0.36811070862957296, -0.64593118110549907, -3.9210355567433095, -2.8070869655712829], [0.41752945062128388, -7.1679511587405678, -5.2408594190096665, -4.8345915224275817, -2.0467477950336934]], [[-2.295126706334162, -0.89911605858633026, 0.82268884879244686, -4.8856914168834154, -5.6429519941097368], [-0.88704822551434193, -7.5542252829240066, -1.0973102766822982, 0.69858516187807451, -2.4345273959093334], [1.8301435302471574, 0.11653165461274684, -0.14035455148124365, -0.68969147606346271, 1.6632517659498407], [-7.139008086360187, 0.66830346650954864, -5.3887764563817733, -7.2307023736295566, -3.2772961490007728]], [[-3.6029789329766935, 5.5029167013597355, 1.3263397407058619, -1.25856815427281, -1.5120424988068617], [-1.783882047788965, -3.9013090880960775, 3.7421649281586475, 1.5264548779825162, 4.4341562908591872], [4.1980139887922636, 5.5104471176781491, 1.1632110404103013, -2.565910161441737, 0.64981395534595521], [3.2105705243221605, -3.785490560083085, 2.9354134798208467, -1.6556234765374489, -2.2827958641754655]], [[0.81526558652099457, -5.7785815754939263, -0.36958617231986235, 0.1636981102894044, 0.38447706266409654], [2.2754038299309958, -5.6512452234773072, -2.528202544560104, 0.82386339165554467, -1.7397017886061903], [2.4272178203706165, 2.4477431212075675, 3.5188893226079383, -5.0470816835540244, 2.4245538704511098], [1.9745659015028263, -2.9229012974819435, -5.7517818675465957, -6.0200407848896704, -1.517866332689227]], [[-0.49522827754935506, -6.1615326706096782, -1.828404143899192, -5.3779316099738246, 0.8754550387501272], [-8.1590648782127566, -1.0117048060380984, -1.9154447333401547, -6.4109261806063831, -5.594372445498113], [1.2735376278580421, -5.5416412134678605, -4.498418169592556, -0.075477421923388022, -2.1527460344757321], [-4.0229358198877563, 0.9145705846775023, -4.5706880522195545, -3.3475567467542495, -0.46130876327271331]]], [[[7.0854218317922371, 2.4761829744326205, -0.090781563410498478, 4.1885078395802573, 6.0722946147583396], [4.366692097293571, 5.6399054694818611, -0.077145447393302646, 6.6075684876634595, 8.8818555149283824], [4.4702272242972425, 4.2309569735420638, 6.341738356920553, 7.2338050978537893, 5.9281697905689006], [1.0290157503959465, 2.7122706931820932, 7.5238415831160363, 2.7138111121790258, 6.1661420680537304]], [[5.9635818228881785, 2.6939175126079853, 0.88360401808096078, 0.94762506612271924, 2.8555749062194913], [4.075342537578349, -3.8019388361350615, 2.1180896476269515, 5.74923860087255, -1.4002882426070897], [-1.4465251804757653, 3.6007513368942092, 1.9889806766276141, 2.6039580236114173, -0.6631170781461897], [-0.31880734626189255, 4.4288069598868418, 0.0078431220965522463, 2.6113514943782867, 1.5147205979338985]], [[-0.62004777277639711, 4.6908655694783672, 6.9144342837496975, 4.7611080487644628, -0.35002451450532668], [7.3350428060326234, 8.3026263961410489, 6.1044424375052726, 3.2049942266121842, 0.016153776888549576], [0.92318901107526763, 4.0575682485149258, -0.095516575082387867, 8.3266622774268253, 4.0104461731858212], [4.8523468248229991, 4.7799577337263557, 7.7367305841516316, 7.6302381123779899, 5.6747969172651276]], [[-5.3826047841470315, -6.210427820258376, -6.67968517157066, -0.60305149930872926, 2.5051371197542114], [-2.0473672241020164, 0.83395098551119773, -3.4879755685261995, 1.846366021296916, 0.46007398891991436], [-5.2988925951678461, -3.2221660116868636, 1.5315843492320411, 1.3959146356602634, -6.8402869333800496], [0.54679516881239998, 2.9475838066048983, -2.9840170705574645, -1.1289146327162243, -1.9213304548489436]], [[1.1608794868111341, 2.5957773598612217, 0.15059279608439713, -2.745245613923236, 2.3105205113367315], [-1.6445829348881702, 1.9068714665783091, -5.4682253795554177, -1.9587753521501936, -5.5085044542573725], [-0.46335973204272474, -3.0730972391936904, 3.4934843449733286, 3.6765713292035507, 0.89145023048183081], [-0.14644570092982612, -2.800510907628416, 1.8282341235218489, -4.4494295476861696, 1.5055309544741586]]], [[[2.5737204995018947, 4.664244280922401, -0.3022547944160987, 0.21573968201847338, -0.36241718379997856], [6.5941201631322031, 0.053586435879439343, 0.90330815570395018, 2.2915837113487161, 7.2573038406004944], [0.29928873548635515, 3.4514373084595231, -1.1233671078703509, 6.5443730197880807, 6.4774794918364602], [3.2315153769030669, 0.52175314723076482, 4.7157023783311249, 2.2738341890208158, 5.1829597449999145]], [[0.56498853470270483, -5.1034246520228157, -0.44718006145550682, 2.7380883131829918, -1.0666909118945656], [-1.8215311385329178, 0.83966098765206176, -4.9416077175638851, -5.9847247706302849, -0.79073892099808507], [-4.7176692794601323, -4.8329791210104425, -3.8288954693419752, -4.8316627145055024, 1.1973458971154969], [-4.7545244817133483, -1.7904814056415592, -1.0879308868946591, -6.290960454614245, -6.2203239919160227]], [[-4.9204273450460567, -0.68801301942751802, -3.1925969744563973, -5.1512885485994779, -2.8770003957969852], [-4.4457879184543385, -1.225505427750325, -0.34669065158480716, -4.0545837172064774, -9.2283852552421841], [-2.2458681911568457, -6.6966153778068449, -2.8696174561301566, -0.8571095543746976, -5.6195257078900545], [-8.1165660264368782, -4.9466816682188686, 0.40429528078348564, -6.9555140305381782, -5.4845275317278688]], [[-4.4546178457460197, -2.543707876769612, 4.5564459163844653, -4.7326691838505655, -0.23605625456825674], [-2.468991985015009, 3.2045000115017235, 3.4970821329449393, 2.9452863720124531, 1.8912250495448255], [2.6489724199530542, 2.4158493894603712, 4.4911849244897368, -1.1592967017174773, 2.8037338662900098], [-0.88701970297398169, 3.7476549981362552, -2.5769411106262439, 1.8604380777736633, -4.799865420730935]], [[0.0081908209446113212, 1.4625430982909799, -1.3518265360829416, -3.0827157279751827, -1.0587915300188619], [-2.8994130180617219, 4.9632472393641072, 4.5931939879875463, -0.24052131471346794, 2.9961462020105403], [2.7273981287201154, 3.394721564792758, 1.484470283261806, 2.1987357011036703, 6.4884896072679696], [2.8138694048568995, 0.61280010592680156, 4.5643973336104802, 1.8849209366260569, -1.7033810718811173]]], [[[4.1593261700139523, -2.0733831595989489, 3.4642152046790793, 2.0340309522224231, 3.3606593119574439], [5.7285451985396154, 6.4173182697779545, 5.2665712218643836, 0.71738354356586331, -2.5486246459515769], [3.5364706505856534, 6.0517135505310353, 1.9973973633069759, -2.4260437762365052, -2.5231148174097191], [-2.5350560773313138, -2.4006819538190056, 6.115971099505213, 1.8400392066909816, -1.7117038516257281]], [[0.83938115484571529, 5.4491497204422501, 1.0906103164069663, 6.4069820381342915, 0.58840225017898717], [2.3785380163840308, 6.3029783904714165, -0.35725166505730011, -0.75545082827442034, 1.3560275721627395], [1.0965721913100204, -0.75733929558983082, -1.08521522415358, -0.0012529652664765578, -0.66265325836356714], [2.3016559866112214, -1.690883717911289, -0.72717892703700215, 4.3114105303111216, 1.5535129936606529]], [[5.2763580260812937, 6.1054750808912468, 5.1840428894988015, 3.2866017396489422, 2.2506613045549493], [0.38818288048499738, 6.7272151635949706, 8.2362416950312873, 7.7508359202206396, 9.4459915556471117], [6.9715739138390216, 3.0239650711555051, 5.7316147710566634, 1.985307372223529, 9.0999472403783681], [8.9125477459588343, 9.1399816187534206, 3.135382337669844, 2.9653565107867084, 5.6328655030152568]], [[-4.0663461754783468, 0.74700721707607975, -2.7744149306469712, 1.8221282877059721, -4.8909890473402431], [-1.8900709377163771, 2.2632186816365181, -0.046729185366942261, -0.052400336536927661, -1.9371390825863086], [1.7422065497097403, -0.041261419365467233, 3.3026899625284241, 0.89573553085389968, 0.82709761385386749], [1.2079374659192945, -6.2456782338618364, 2.8565577434826182, -2.4308636461003328, 2.976407098747881]], [[4.6143024904246168, 4.6314818784707494, 3.2106724437639267, 2.1398915550536461, 3.8025763624004973], [-3.4733368282694013, 2.7135177726111692, 1.9855924816013868, 0.32659065098734086, -2.7059991814597169], [1.5239296004366398, 1.5754060949784288, 3.0206118685608798, 1.0973890157202248, 3.8637536849661487], [4.3017813348024099, 0.051620503800066331, 1.1930850060355596, 4.1521403937400425, 6.2611847456085918]]]])
2432        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2433        self.failUnlessEqual(res.getShape(),(4, 5, 4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5, 4, 5),"wrong shape of result.")
2434        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2435     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2436     def test_add_expandedData_rank3_taggedData_rank3(self):     def test_add_expandedData_rank3_taggedData_rank3(self):
2437        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2438        arg0=msk_arg0*numarray.array([[[0.69721776243925504, -0.38016393632876433], [2.0895541985355406, -2.3054618326391418]], [[3.3551249661538503, -0.13528677902904374], [4.6781715592826494, 2.6838695066855944]], [[0.34849041304025086, -3.7531132909792753], [-4.6223640857985409, -4.6603991310762325]], [[-0.83628954019563384, 2.0971443794824012], [3.2194528015264936, -3.8187705360308168]], [[4.5845923475385124, -1.8472002040645243], [2.1255827648830126, 1.7151803704414128]], [[1.9820003030955089, 0.26012572365763464], [3.4501108469508708, 1.0514326626431503]]])+(1.-msk_arg0)*numarray.array([[[0.4787227323796639, -3.8600249742754356], [1.1402596403162342, 0.6247410387321537]], [[-1.2308408103278721, -4.6660836091738176], [-3.3031844515968309, -4.9110286373290393]], [[0.67374707966685143, -1.1275674771787072], [-2.5379615745904194, -0.42792362496033931]], [[1.8072830020317543, -2.74764880516818], [-4.5935290452094133, 3.3208516258118017]], [[-3.8688063099269634, -2.7571410530095743], [3.0376321541634788, 3.8586665464196468]], [[4.7796293057139589, -3.1583958853985972], [-3.7885777473286586, -4.39193528325307]]])        arg0=msk_arg0*numarray.array([[[0.69721776243925504, -0.38016393632876433], [2.0895541985355406, -2.3054618326391418]], [[3.3551249661538503, -0.13528677902904374], [4.6781715592826494, 2.6838695066855944]], [[0.34849041304025086, -3.7531132909792753], [-4.6223640857985409, -4.6603991310762325]], [[-0.83628954019563384, 2.0971443794824012], [3.2194528015264936, -3.8187705360308168]], [[4.5845923475385124, -1.8472002040645243], [2.1255827648830126, 1.7151803704414128]], [[1.9820003030955089, 0.26012572365763464], [3.4501108469508708, 1.0514326626431503]]])+(1.-msk_arg0)*numarray.array([[[0.4787227323796639, -3.8600249742754356], [1.1402596403162342, 0.6247410387321537]], [[-1.2308408103278721, -4.6660836091738176], [-3.3031844515968309, -4.9110286373290393]], [[0.67374707966685143, -1.1275674771787072], [-2.5379615745904194, -0.42792362496033931]], [[1.8072830020317543, -2.74764880516818], [-4.5935290452094133, 3.3208516258118017]], [[-3.8688063099269634, -2.7571410530095743], [3.0376321541634788, 3.8586665464196468]], [[4.7796293057139589, -3.1583958853985972], [-3.7885777473286586, -4.39193528325307]]])
2439        arg1=Data(numarray.array([[[2.9363739782293301, 2.2204072951125156], [1.8055729728132883, 1.3053966304128704]], [[-4.1550811187916512, -0.15003576328718005], [-3.2630723734134079, -0.54097161314004261]], [[4.8884317818326704, 1.4641518932961484], [-1.7092500262797405, -2.2653590066334894]], [[4.3479492014299019, -3.2593416892567095], [-1.090843124637102, 3.9531183878210445]], [[4.8673887304339019, -4.8344196958431791], [-0.3239165719764987, 1.106249593283918]], [[0.46290272130013577, 4.5328962569433067], [-0.12818780436453991, 0.1055225235123034]]]),self.functionspace)        arg1=Data(numarray.array([[[2.9363739782293301, 2.2204072951125156], [1.8055729728132883, 1.3053966304128704]], [[-4.1550811187916512, -0.15003576328718005], [-3.2630723734134079, -0.54097161314004261]], [[4.8884317818326704, 1.4641518932961484], [-1.7092500262797405, -2.2653590066334894]], [[4.3479492014299019, -3.2593416892567095], [-1.090843124637102, 3.9531183878210445]], [[4.8673887304339019, -4.8344196958431791], [-0.3239165719764987, 1.106249593283918]], [[0.46290272130013577, 4.5328962569433067], [-0.12818780436453991, 0.1055225235123034]]]),self.functionspace)
2440        arg1.setTaggedValue(1,numarray.array([[[0.85518707983121889, -0.50645550037053066], [-1.3940362153699173, -0.077572058432615165]], [[3.517263874149684, 3.9549790978184056], [-4.1245265941567357, 2.6414571541812437]], [[1.151831799514289, 3.8759019889347872], [-3.9900199071305087, 0.39943425990782355]], [[-4.3106534053485284, 3.6334858880668079], [2.7047207405972573, -3.8867060761603178]], [[-0.25051038433310069, 1.7964915990354804], [-0.93424790795559343, -1.6581847402438674]], [[-3.2413691435029355, -2.1376049954262424], [3.9024289845661997, 4.3463160409452133]]]))        arg1.setTaggedValue(1,numarray.array([[[0.85518707983121889, -0.50645550037053066], [-1.3940362153699173, -0.077572058432615165]], [[3.517263874149684, 3.9549790978184056], [-4.1245265941567357, 2.6414571541812437]], [[1.151831799514289, 3.8759019889347872], [-3.9900199071305087, 0.39943425990782355]], [[-4.3106534053485284, 3.6334858880668079], [2.7047207405972573, -3.8867060761603178]], [[-0.25051038433310069, 1.7964915990354804], [-0.93424790795559343, -1.6581847402438674]], [[-3.2413691435029355, -2.1376049954262424], [3.9024289845661997, 4.3463160409452133]]]))
2441        res=add(arg0,arg1)        res=add(arg0,arg1)
2442        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2443        ref=msk_ref*numarray.array([[[3.6335917406685851, 1.8402433587837512], [3.8951271713488289, -1.0000652022262715]], [[-0.79995615263780095, -0.28532254231622378], [1.4150991858692414, 2.1428978935455518]], [[5.2369221948729212, -2.2889613976831269], [-6.331614112078281, -6.9257581377097219]], [[3.5116596612342681, -1.1621973097743084], [2.1286096768893916, 0.13434785179022768]], [[9.4519810779724143, -6.6816198999077034], [1.8016661929065139, 2.8214299637253308]], [[2.4449030243956447, 4.7930219806009413], [3.3219230425863309, 1.1569551861554537]]])+(1.-msk_ref)*numarray.array([[[1.3339098122108828, -4.3664804746459662], [-0.25377657505368312, 0.54716898029953853]], [[2.2864230638218119, -0.71110451135541197], [-7.4277110457535667, -2.2695714831477956]], [[1.8255788791811405, 2.74833451175608], [-6.5279814817209285, -0.028489365052515758]], [[-2.5033704033167741, 0.88583708289862795], [-1.888808304612156, -0.56585445034851611]], [[-4.1193166942600641, -0.96064945397409396], [2.1033842462078853, 2.2004818061757794]], [[1.5382601622110235, -5.29600088082484], [0.11385123723754109, -0.045619242307856744]]])        ref=msk_ref*numarray.array([[[3.6335917406685851, 1.8402433587837512], [3.8951271713488289, -1.0000652022262715]], [[-0.79995615263780095, -0.28532254231622378], [1.4150991858692414, 2.1428978935455518]], [[5.2369221948729212, -2.2889613976831269], [-6.331614112078281, -6.9257581377097219]], [[3.5116596612342681, -1.1621973097743084], [2.1286096768893916, 0.13434785179022768]], [[9.4519810779724143, -6.6816198999077034], [1.8016661929065139, 2.8214299637253308]], [[2.4449030243956447, 4.7930219806009413], [3.3219230425863309, 1.1569551861554537]]])+(1.-msk_ref)*numarray.array([[[1.3339098122108828, -4.3664804746459662], [-0.25377657505368312, 0.54716898029953853]], [[2.2864230638218119, -0.71110451135541197], [-7.4277110457535667, -2.2695714831477956]], [[1.8255788791811405, 2.74833451175608], [-6.5279814817209285, -0.028489365052515758]], [[-2.5033704033167741, 0.88583708289862795], [-1.888808304612156, -0.56585445034851611]], [[-4.1193166942600641, -0.96064945397409396], [2.1033842462078853, 2.2004818061757794]], [[1.5382601622110235, -5.29600088082484], [0.11385123723754109, -0.045619242307856744]]])
2444        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2445        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
2446        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2447     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2448     def test_add_expandedData_rank4_taggedData_rank3(self):     def test_add_expandedData_rank4_taggedData_rank3(self):
2449        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2450        arg0=msk_arg0*numarray.array([[[[-2.4868038832302308, -2.2135689431636973], [-3.0381204974062559, -0.41614994749192213]], [[-1.67491265150576, 2.7027520371263947], [-3.2120689152052853, -2.1381952993280748]]], [[[1.1880069446541119, 1.848165019076502], [-1.2499074324548918, -4.388302531103121]], [[-4.4992261333834112, 2.0014456183150706], [-0.47747167750751984, 0.68472978906707382]]], [[[0.72628154144028656, -0.28710177467522868], [4.8958538813788959, -3.4525685478778767]], [[-0.83548491088977173, -1.9029783379756582], [-1.7668608402399535, 2.6850559699465926]]], [[[-2.3052127992571569, 1.1711228421009832], [-2.3992978728879377, 1.9640685269152218]], [[-3.2925680796946821, -1.3018006365121826], [-0.81246483098932032, 2.3482717850422965]]], [[[-4.3680857069983841, 2.5596990959696919], [-1.5256215308991128, -1.6635793910044052]], [[-1.9545798512682424, 2.4514327622331367], [-4.9629562240810001, -3.4981317751607541]]], [[[-2.0430715149465528, -4.1712376370317008], [1.4014685737185211, 3.9403676221732837]], [[-3.2208698563814817, 4.9297459081193509], [3.3449352599138962, 3.5348161965322475]]]])+(1.-msk_arg0)*numarray.array([[[[4.487579937462522, -1.5911624740413375], [-1.6472021050228536, 3.7554187243585027]], [[-0.35557869932496988, -3.1016371794357789], [-4.9135032578237681, 0.86374202331884931]]], [[[0.20664244754915462, -2.2278892587431876], [-3.3608218130959813, 2.4526623556678562]], [[4.233868589544155, 0.42933909860830788], [1.7729730767830665, 0.23920585144191708]]], [[[-4.6981872289698492, -4.6015526959030106], [3.8872272568799122, 3.1594923834361879]], [[-1.2329198011863243, 3.5455150430334008], [0.34857155575606491, -0.94856822217745496]]], [[[1.2453923003524814, -3.8558995505127047], [-3.7543246410431252, 1.7910035865935541]], [[-3.8319081589377371, -4.2278690311544853], [-3.0223472019983877, -2.9286108527106434]]], [[[4.1801107096924142, 0.78112953128257345], [-2.5184592191751465, -3.8044597990872298]], [[-3.6513544442270121, -4.3875752480691546], [-2.1276548471840528, 4.6403973904241553]]], [[[-1.8410243415503236, 0.30263849672001353], [-4.5665730996161198, 2.6523597255328806]], [[3.8586139305242799, -2.6169696157581743], [-3.2368622192289376, -3.2129317738736631]]]])        arg0=msk_arg0*numarray.array([[[[-2.4868038832302308, -2.2135689431636973], [-3.0381204974062559, -0.41614994749192213]], [[-1.67491265150576, 2.7027520371263947], [-3.2120689152052853, -2.1381952993280748]]], [[[1.1880069446541119, 1.848165019076502], [-1.2499074324548918, -4.388302531103121]], [[-4.4992261333834112, 2.0014456183150706], [-0.47747167750751984, 0.68472978906707382]]], [[[0.72628154144028656, -0.28710177467522868], [4.8958538813788959, -3.4525685478778767]], [[-0.83548491088977173, -1.9029783379756582], [-1.7668608402399535, 2.6850559699465926]]], [[[-2.3052127992571569, 1.1711228421009832], [-2.3992978728879377, 1.9640685269152218]], [[-3.2925680796946821, -1.3018006365121826], [-0.81246483098932032, 2.3482717850422965]]], [[[-4.3680857069983841, 2.5596990959696919], [-1.5256215308991128, -1.6635793910044052]], [[-1.9545798512682424, 2.4514327622331367], [-4.9629562240810001, -3.4981317751607541]]], [[[-2.0430715149465528, -4.1712376370317008], [1.4014685737185211, 3.9403676221732837]], [[-3.2208698563814817, 4.9297459081193509], [3.3449352599138962, 3.5348161965322475]]]])+(1.-msk_arg0)*numarray.array([[[[4.487579937462522, -1.5911624740413375], [-1.6472021050228536, 3.7554187243585027]], [[-0.35557869932496988, -3.1016371794357789], [-4.9135032578237681, 0.86374202331884931]]], [[[0.20664244754915462, -2.2278892587431876], [-3.3608218130959813, 2.4526623556678562]], [[4.233868589544155, 0.42933909860830788], [1.7729730767830665, 0.23920585144191708]]], [[[-4.6981872289698492, -4.6015526959030106], [3.8872272568799122, 3.1594923834361879]], [[-1.2329198011863243, 3.5455150430334008], [0.34857155575606491, -0.94856822217745496]]], [[[1.2453923003524814, -3.8558995505127047], [-3.7543246410431252, 1.7910035865935541]], [[-3.8319081589377371, -4.2278690311544853], [-3.0223472019983877, -2.9286108527106434]]], [[[4.1801107096924142, 0.78112953128257345], [-2.5184592191751465, -3.8044597990872298]], [[-3.6513544442270121, -4.3875752480691546], [-2.1276548471840528, 4.6403973904241553]]], [[[-1.8410243415503236, 0.30263849672001353], [-4.5665730996161198, 2.6523597255328806]], [[3.8586139305242799, -2.6169696157581743], [-3.2368622192289376, -3.2129317738736631]]]])
2451        arg1=Data(numarray.array([[[-3.270268187961487, 3.4593285227363033], [-0.84871272839758483, 3.0053042891990138]], [[0.61499361684878373, 4.8885772758220973], [-4.9608349399001579, -0.84524240032785336]], [[-0.57700783028411617, -3.4265675695597162], [2.0052850724404836, 3.1146874809734086]], [[-1.7888946990381238, -4.440971626985748], [1.6290891761110853, 4.0476338786113804]], [[2.0840708664121532, -0.27620464983064252], [4.7011855214168783, 3.4887252836165299]], [[-1.2431786004297241, 4.6494300918223779], [1.7763715186887721, -3.1771549446132497]]]),self.functionspace)        arg1=Data(numarray.array([[[-3.270268187961487, 3.4593285227363033], [-0.84871272839758483, 3.0053042891990138]], [[0.61499361684878373, 4.8885772758220973], [-4.9608349399001579, -0.84524240032785336]], [[-0.57700783028411617, -3.4265675695597162], [2.0052850724404836, 3.1146874809734086]], [[-1.7888946990381238, -4.440971626985748], [1.6290891761110853, 4.0476338786113804]], [[2.0840708664121532, -0.27620464983064252], [4.7011855214168783, 3.4887252836165299]], [[-1.2431786004297241, 4.6494300918223779], [1.7763715186887721, -3.1771549446132497]]]),self.functionspace)
2452        arg1.setTaggedValue(1,numarray.array([[[1.2028979210262154, 0.71996724884320429], [-2.2965843129490668, 4.5573875863667528]], [[-3.2820325982036369, 1.1810980873473689], [-1.0455800073023171, -2.4712116995358957]], [[-2.0493572397233528, 4.1632394822803676], [3.292316794544611, 0.50290044660389732]], [[-4.0364878420771655, -4.6620451510960548], [-4.8708943827601718, 1.3556441532940857]], [[-3.0835978189941415, 3.2390534057113243], [3.7030955712269513, -0.3437591995256124]], [[-4.1004587449688863, -2.9900376357817571], [3.658455590106465, -0.23312882742010022]]]))        arg1.setTaggedValue(1,numarray.array([[[1.2028979210262154, 0.71996724884320429], [-2.2965843129490668, 4.5573875863667528]], [[-3.2820325982036369, 1.1810980873473689], [-1.0455800073023171, -2.4712116995358957]], [[-2.0493572397233528, 4.1632394822803676], [3.292316794544611, 0.50290044660389732]], [[-4.0364878420771655, -4.6620451510960548], [-4.8708943827601718, 1.3556441532940857]], [[-3.0835978189941415, 3.2390534057113243], [3.7030955712269513, -0.3437591995256124]], [[-4.1004587449688863, -2.9900376357817571], [3.658455590106465, -0.23312882742010022]]]))
2453        res=add(arg0,arg1)        res=add(arg0,arg1)
2454        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2455        ref=msk_ref*numarray.array([[[[-5.7570720711917183, -5.4838371311251848], [0.42120802533004742, 3.0431785752443812]], [[-2.5236253799033448, 1.8540393087288098], [-0.20676462600627143, 0.86710898987093898]]], [[[1.8030005615028957, 2.4631586359252857], [3.6386698433672056, 0.50027474471897637]], [[-9.460061073283569, -2.9593893215850873], [-1.3227140778353732, -0.16051261126077954]]], [[[0.14927371115617039, -0.86410960495934486], [1.4692863118191797, -6.8791361174375929]], [[1.1698001615507119, 0.10230673446482541], [1.3478266407334552, 5.7997434509200012]]], [[[-4.0941074982952808, -0.61777185693714065], [-6.8402694998736857, -2.4769031000705262]], [[-1.6634789035835968, 0.32728853959890269], [3.23516904762206, 6.3959056636536769]]], [[[-2.2840148405862308, 4.6437699623818451], [-1.8018261807297553, -1.9397840408350477]], [[2.7466056701486359, 7.152618283650015], [-1.4742309404644702, -0.0094064915442242381]]], [[[-3.2862501153762769, -5.4144162374614249], [6.0508986655408989, 8.5897977139956616]], [[-1.4444983376927096, 6.7061174268081229], [0.16778031530064652, 0.35766125191899789]]]])+(1.-msk_ref)*numarray.array([[[[5.6904778584887374, -0.38826455301512208], [-0.92723485617964929, 4.4753859732017069]], [[-2.6521630122740367, -5.3982214923848453], [-0.35611567145701528, 5.4211296096856021]]], [[[-3.0753901506544823, -5.5099218569468249], [-2.1797237257486124, 3.6337604430152251]], [[3.1882885822418379, -0.61624090869400927], [-0.69823862275282922, -2.2320058480939786]]], [[[-6.747544468693202, -6.6509099356263635], [8.0504667391602798, 7.3227318657165554]], [[2.0593969933582867, 6.8378318375780118], [0.85147200235996223, -0.44566777557355763]]], [[[-2.7910955417246841, -7.8923873925898702], [-8.4163697921391805, -2.8710415645025007]], [[-8.7028025416979098, -9.0987634139146571], [-1.666703048704302, -1.5729666994165576]]], [[[1.0965128906982726, -2.3024682877115681], [0.72059418653617779, -0.56540639337590548]], [[0.051741126999939269, -0.68447967684220323], [-2.4714140467096652, 4.2966381908985429]]], [[[-5.9414830865192094, -3.7978202482488728], [-7.5566107353978769, -0.3376779102488765]], [[7.517069520630745, 1.0414859743482907], [-3.4699910466490378, -3.4460606012937633]]]])        ref=msk_ref*numarray.array([[[[-5.7570720711917183, -5.4838371311251848], [0.42120802533004742, 3.0431785752443812]], [[-2.5236253799033448, 1.8540393087288098], [-0.20676462600627143, 0.86710898987093898]]], [[[1.8030005615028957, 2.4631586359252857], [3.6386698433672056, 0.50027474471897637]], [[-9.460061073283569, -2.9593893215850873], [-1.3227140778353732, -0.16051261126077954]]], [[[0.14927371115617039, -0.86410960495934486], [1.4692863118191797, -6.8791361174375929]], [[1.1698001615507119, 0.10230673446482541], [1.3478266407334552, 5.7997434509200012]]], [[[-4.0941074982952808, -0.61777185693714065], [-6.8402694998736857, -2.4769031000705262]], [[-1.6634789035835968, 0.32728853959890269], [3.23516904762206, 6.3959056636536769]]], [[[-2.2840148405862308, 4.6437699623818451], [-1.8018261807297553, -1.9397840408350477]], [[2.7466056701486359, 7.152618283650015], [-1.4742309404644702, -0.0094064915442242381]]], [[[-3.2862501153762769, -5.4144162374614249], [6.0508986655408989, 8.5897977139956616]], [[-1.4444983376927096, 6.7061174268081229], [0.16778031530064652, 0.35766125191899789]]]])+(1.-msk_ref)*numarray.array([[[[5.6904778584887374, -0.38826455301512208], [-0.92723485617964929, 4.4753859732017069]], [[-2.6521630122740367, -5.3982214923848453], [-0.35611567145701528, 5.4211296096856021]]], [[[-3.0753901506544823, -5.5099218569468249], [-2.1797237257486124, 3.6337604430152251]], [[3.1882885822418379, -0.61624090869400927], [-0.69823862275282922, -2.2320058480939786]]], [[[-6.747544468693202, -6.6509099356263635], [8.0504667391602798, 7.3227318657165554]], [[2.0593969933582867, 6.8378318375780118], [0.85147200235996223, -0.44566777557355763]]], [[[-2.7910955417246841, -7.8923873925898702], [-8.4163697921391805, -2.8710415645025007]], [[-8.7028025416979098, -9.0987634139146571], [-1.666703048704302, -1.5729666994165576]]], [[[1.0965128906982726, -2.3024682877115681], [0.72059418653617779, -0.56540639337590548]], [[0.051741126999939269, -0.68447967684220323], [-2.4714140467096652, 4.2966381908985429]]], [[[-5.9414830865192094, -3.7978202482488728], [-7.5566107353978769, -0.3376779102488765]], [[7.517069520630745, 1.0414859743482907], [-3.4699910466490378, -3.4460606012937633]]]])
2456        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2457        self.failUnlessEqual(res.getShape(),(6, 2, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2, 2),"wrong shape of result.")
2458        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2459     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2460     def test_add_expandedData_rank3_taggedData_rank4(self):     def test_add_expandedData_rank3_taggedData_rank4(self):
2461        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2462        arg0=msk_arg0*numarray.array([[[4.1729539404094886, 1.2267648638210691], [2.8774661212593768, -3.7922283046835181]], [[-1.4669367476511743, -2.3716470159046246], [-4.9669321546761793, 4.0109206367996837]], [[2.2511499400910671, 1.3546902147112174], [-0.23602999621423759, -2.0937850537015468]], [[-2.6837286402181091, -3.6723714121424345], [3.3991087293931539, 2.8666616742232511]], [[2.8264533892329213, -0.13178126070141971], [3.326921022738027, -3.2072106875268158]], [[0.14952324936700911, 2.4416990952143527], [2.832448899736125, -0.85265460103660118]]])+(1.-msk_arg0)*numarray.array([[[3.9522504318050427, 3.0829739217957712], [-4.2615584164425204, 1.5585392640567699]], [[3.4025282497213798, -4.9809669168426556], [-2.2682144095713754, 1.3634221650873304]], [[-0.36401295276548229, 4.0474254988121015], [-1.694534399008468, 0.4651240404199628]], [[-4.8690104900025446, 1.1893223363212062], [-0.82631167529225724, 0.29905087283718235]], [[-0.079817209806376965, -2.4489338571564745], [3.5903083412641106, -1.164824312386842]], [[4.7904488838661443, 1.2069247006521246], [1.8423092943514998, 4.0819430422883247]]])        arg0=msk_arg0*numarray.array([[[4.1729539404094886, 1.2267648638210691], [2.8774661212593768, -3.7922283046835181]], [[-1.4669367476511743, -2.3716470159046246], [-4.9669321546761793, 4.0109206367996837]], [[2.2511499400910671, 1.3546902147112174], [-0.23602999621423759, -2.0937850537015468]], [[-2.6837286402181091, -3.6723714121424345], [3.3991087293931539, 2.8666616742232511]], [[2.8264533892329213, -0.13178126070141971], [3.326921022738027, -3.2072106875268158]], [[0.14952324936700911, 2.4416990952143527], [2.832448899736125, -0.85265460103660118]]])+(1.-msk_arg0)*numarray.array([[[3.9522504318050427, 3.0829739217957712], [-4.2615584164425204, 1.5585392640567699]], [[3.4025282497213798, -4.9809669168426556], [-2.2682144095713754, 1.3634221650873304]], [[-0.36401295276548229, 4.0474254988121015], [-1.694534399008468, 0.4651240404199628]], [[-4.8690104900025446, 1.1893223363212062], [-0.82631167529225724, 0.29905087283718235]], [[-0.079817209806376965, -2.4489338571564745], [3.5903083412641106, -1.164824312386842]], [[4.7904488838661443, 1.2069247006521246], [1.8423092943514998, 4.0819430422883247]]])
2463        arg1=Data(numarray.array([[[[-0.25212526860379914, 3.7016103800836682], [4.1058897258654632, 2.8011340606148494]], [[-1.6969382991578827, 1.283332144451852], [-4.4060487431416027, 4.9756254037274523]]], [[[2.6135751494563939, -2.593320314157058], [0.324673524789997, -1.8951425164430571]], [[0.80096158913710003, -0.79641138656761701], [-4.4256469421976599, -3.6398246641773566]]], [[[4.3553406005269686, -4.2599089812442994], [-1.8924691060952203, 0.85781051976484246]], [[1.7061063481931695, 2.570946904726755], [-4.9672824011154839, 3.2703079381455566]]], [[[3.1382909284780851, 4.5516868955313754], [0.80996332724597142, 4.5788729260297902]], [[3.9818110337348269, 3.6649799879707246], [4.1470055287843905, -1.0390510895161298]]], [[[-0.044076974504470456, -3.3272145260603301], [1.1688859919167633, 3.7838994582239245]], [[3.3582195848110246, 0.22824109037927176], [3.4732021660538575, 2.4244998447332957]]], [[[0.14465957726198297, 1.4258751164126764], [-4.574314810880292, -2.8604463205824504]], [[4.2389327433348853, 3.7801486620935254], [-1.3992411255405712, 2.167021848508929]]]]),self.functionspace)        arg1=Data(numarray.array([[[[-0.25212526860379914, 3.7016103800836682], [4.1058897258654632, 2.8011340606148494]], [[-1.6969382991578827, 1.283332144451852], [-4.4060487431416027, 4.9756254037274523]]], [[[2.6135751494563939, -2.593320314157058], [0.324673524789997, -1.8951425164430571]], [[0.80096158913710003, -0.79641138656761701], [-4.4256469421976599, -3.6398246641773566]]], [[[4.3553406005269686, -4.2599089812442994], [-1.8924691060952203, 0.85781051976484246]], [[1.7061063481931695, 2.570946904726755], [-4.9672824011154839, 3.2703079381455566]]], [[[3.1382909284780851, 4.5516868955313754], [0.80996332724597142, 4.5788729260297902]], [[3.9818110337348269, 3.6649799879707246], [4.1470055287843905, -1.0390510895161298]]], [[[-0.044076974504470456, -3.3272145260603301], [1.1688859919167633, 3.7838994582239245]], [[3.3582195848110246, 0.22824109037927176], [3.4732021660538575, 2.4244998447332957]]], [[[0.14465957726198297, 1.4258751164126764], [-4.574314810880292, -2.8604463205824504]], [[4.2389327433348853, 3.7801486620935254], [-1.3992411255405712, 2.167021848508929]]]]),self.functionspace)
2464        arg1.setTaggedValue(1,numarray.array([[[[-4.1616252682529282, 2.3067531144525431], [-2.7287869207883597, -3.0246653555795655]], [[1.3127105152613563, 1.6883863648214446], [3.2036605606711195, -1.0553615968576455]]], [[[4.2568719807501036, 2.354217544038657], [-2.4207648693712636, -0.12326515282250039]], [[-2.9321458315151649, 3.2025450169536125], [-0.482474981345411, 3.2810815435562706]]], [[[2.4533345221421774, -0.6176065258700163], [0.089262208490800354, -2.9371614377777311]], [[-1.5551895578358952, 1.4114554010327707], [1.523595409642386, -0.041380664807060263]]], [[[3.3155959451569093, 4.5612939847874134], [-1.0352756378992387, 1.8104760806021583]], [[-0.033021560823804919, 0.22531663653005474], [0.60623440964026543, -3.4435105456716086]]], [[[3.8556904275351673, 4.4565144811531834], [-3.126585712598323, -1.0206521125296089]], [[2.1610014228151462, -2.6124548692416036], [2.7953436121150252, 2.2379505904064256]]], [[[1.6698804345972995, 0.3195051165192222], [1.2814690538266804, -4.9409807380572923]], [[-1.9046383838595826, -4.2352588091063943], [1.8147605330088972, -3.7814103982617819]]]]))        arg1.setTaggedValue(1,numarray.array([[[[-4.1616252682529282, 2.3067531144525431], [-2.7287869207883597, -3.0246653555795655]], [[1.3127105152613563, 1.6883863648214446], [3.2036605606711195, -1.0553615968576455]]], [[[4.2568719807501036, 2.354217544038657], [-2.4207648693712636, -0.12326515282250039]], [[-2.9321458315151649, 3.2025450169536125], [-0.482474981345411, 3.2810815435562706]]], [[[2.4533345221421774, -0.6176065258700163], [0.089262208490800354, -2.9371614377777311]], [[-1.5551895578358952, 1.4114554010327707], [1.523595409642386, -0.041380664807060263]]], [[[3.3155959451569093, 4.5612939847874134], [-1.0352756378992387, 1.8104760806021583]], [[-0.033021560823804919, 0.22531663653005474], [0.60623440964026543, -3.4435105456716086]]], [[[3.8556904275351673, 4.4565144811531834], [-3.126585712598323, -1.0206521125296089]], [[2.1610014228151462, -2.6124548692416036], [2.7953436121150252, 2.2379505904064256]]], [[[1.6698804345972995, 0.3195051165192222], [1.2814690538266804, -4.9409807380572923]], [[-1.9046383838595826, -4.2352588091063943], [1.8147605330088972, -3.7814103982617819]]]]))
2465        res=add(arg0,arg1)        res=add(arg0,arg1)
2466        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2467        ref=msk_ref*numarray.array([[[[3.9208286718056895, 7.8745643204931568], [5.3326545896865323, 4.0278989244359185]], [[1.1805278221014941, 4.1607982657112288], [-8.1982770478251208, 1.1833970990439342]]], [[[1.1466384018052196, -4.0602570618082323], [-2.0469734911146276, -4.2667895323476817]], [[-4.1659705655390793, -5.7633435412437963], [-0.41472630539797617, 0.37109597262232707]]], [[[6.6064905406180356, -2.0087590411532323], [-0.53777889138400292, 2.2125007344760599]], [[1.4700763519789319, 2.3349169085125174], [-7.0610674548170307, 1.1765228844440099]]], [[[0.45456228825997602, 1.8679582553132663], [-2.862408084896463, 0.90650151388735578]], [[7.3809197631279808, 7.0640887173638784], [7.0136672030076417, 1.8276105847071213]]], [[[2.7823764147284509, -0.50076113682740875], [1.0371047312153436, 3.6521181975225048]], [[6.6851406075490516, 3.5551621131172988], [0.26599147852704164, -0.7827108427935201]]], [[[0.29418282662899209, 1.5753983657796855], [-2.1326157156659393, -0.41874722536809772]], [[7.0713816430710104, 6.6125975618296504], [-2.2518957265771724, 1.3143672474723278]]]])+(1.-msk_ref)*numarray.array([[[[-0.20937483644788557, 6.2590035462575857], [0.35418700100741152, 0.058308566216205726]], [[-2.9488479011811641, -2.5731720516210759], [4.7621998247278894, 0.50317766719912438]]], [[[7.6594002304714834, 5.7567457937600368], [-7.4017317862139187, -5.104232069665156]], [[-5.2003602410865408, 0.93433060738223705], [0.88094718374191938, 4.644503708643601]]], [[[2.0893215693766951, -0.98161947863549859], [4.1366877073029018, 1.1102640610343704]], [[-3.2497239568443632, -0.28307899797569736], [1.9887194500623488, 0.42374337561290254]]], [[[-1.5534145448456353, -0.30771650521513116], [0.1540466984219675, 2.9997984169233645]], [[-0.85933323611606216, -0.6009950387622025], [0.90528528247744777, -3.1444596728344263]]], [[[3.7758732177287904, 4.3766972713468064], [-5.5755195697547979, -3.4695859696860833]], [[5.7513097640792568, 0.97785347202250694], [1.6305192997281832, 1.0731262780195836]]], [[[6.4603293184634438, 5.1099540003853665], [2.4883937544788051, -3.7340560374051677]], [[-0.062329089508082802, -2.3929495147548945], [5.8967035752972219, 0.30053264402654278]]]])        ref=msk_ref*numarray.array([[[[3.9208286718056895, 7.8745643204931568], [5.3326545896865323, 4.0278989244359185]], [[1.1805278221014941, 4.1607982657112288], [-8.1982770478251208, 1.1833970990439342]]], [[[1.1466384018052196, -4.0602570618082323], [-2.0469734911146276, -4.2667895323476817]], [[-4.1659705655390793, -5.7633435412437963], [-0.41472630539797617, 0.37109597262232707]]], [[[6.6064905406180356, -2.0087590411532323], [-0.53777889138400292, 2.2125007344760599]], [[1.4700763519789319, 2.3349169085125174], [-7.0610674548170307, 1.1765228844440099]]], [[[0.45456228825997602, 1.8679582553132663], [-2.862408084896463, 0.90650151388735578]], [[7.3809197631279808, 7.0640887173638784], [7.0136672030076417, 1.8276105847071213]]], [[[2.7823764147284509, -0.50076113682740875], [1.0371047312153436, 3.6521181975225048]], [[6.6851406075490516, 3.5551621131172988], [0.26599147852704164, -0.7827108427935201]]], [[[0.29418282662899209, 1.5753983657796855], [-2.1326157156659393, -0.41874722536809772]], [[7.0713816430710104, 6.6125975618296504], [-2.2518957265771724, 1.3143672474723278]]]])+(1.-msk_ref)*numarray.array([[[[-0.20937483644788557, 6.2590035462575857], [0.35418700100741152, 0.058308566216205726]], [[-2.9488479011811641, -2.5731720516210759], [4.7621998247278894, 0.50317766719912438]]], [[[7.6594002304714834, 5.7567457937600368], [-7.4017317862139187, -5.104232069665156]], [[-5.2003602410865408, 0.93433060738223705], [0.88094718374191938, 4.644503708643601]]], [[[2.0893215693766951, -0.98161947863549859], [4.1366877073029018, 1.1102640610343704]], [[-3.2497239568443632, -0.28307899797569736], [1.9887194500623488, 0.42374337561290254]]], [[[-1.5534145448456353, -0.30771650521513116], [0.1540466984219675, 2.9997984169233645]], [[-0.85933323611606216, -0.6009950387622025], [0.90528528247744777, -3.1444596728344263]]], [[[3.7758732177287904, 4.3766972713468064], [-5.5755195697547979, -3.4695859696860833]], [[5.7513097640792568, 0.97785347202250694], [1.6305192997281832, 1.0731262780195836]]], [[[6.4603293184634438, 5.1099540003853665], [2.4883937544788051, -3.7340560374051677]], [[-0.062329089508082802, -2.3929495147548945], [5.8967035752972219, 0.30053264402654278]]]])
2468        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2469        self.failUnlessEqual(res.getShape(),(6, 2, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2, 2),"wrong shape of result.")
2470        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
2471     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2472     def test_add_expandedData_rank4_taggedData_rank4(self):     def test_add_expandedData_rank4_taggedData_rank4(self):
2473        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2474        arg0=msk_arg0*numarray.array([[[[3.4401800260990321, 2.5663291303592972, -4.7455882393285709, -1.6973994601204314], [-4.1226041654494203, -1.1272483329595326, 0.18259666122996343, 0.36323537827676855], [3.6665507540901991, -4.1189220940486937, 3.1064037983923996, -4.6275405120239608]], [[-1.3669858162746538, -4.1901128196990287, -0.17568228011831089, 0.481526878992665], [3.4530195077758314, -0.35984237473046132, 1.1510281306986094, -3.4808093219470271], [-4.1864369735349793, 3.1012588306204805, 4.1454525116077505, -0.14650795892292834]]], [[[3.0156484206419254, -0.72487826024640967, 1.1762969986872811, -4.2402054373441223], [1.168580748300764, 4.6508116300106845, 1.5889656458856916, 1.7393669486460279], [2.3855274418307602, -1.7368593026720225, -1.3381427692494108, 0.19997383972689686]], [[2.390375174953685, 0.32416657649849334, -0.15655987497772905, -1.7269075100129418], [4.0098498511087666, 3.7780121534311686, 0.56042336215418764, 1.2342470082663315], [1.3692861957691207, -2.1658719567301086, -2.4506047591737392, -1.0431177230010991]]], [[[-2.4209396645134063, 3.676516277352226, 4.3330052644616099, -1.0439007112301746], [-3.9073864085684362, 2.9943584943542731, -3.128364293471205, -1.8114900055199068], [-3.9430210624285991, -3.2697052652490433, -4.4184068149027214, 3.6304943571654711]], [[3.206524085923979, 4.6841914363432142, -4.2355196363273322, 3.1844493952250712], [-2.8880325781019547, 0.043155723141346414, -2.553908566943047, -3.1568643144062114], [-0.73805867385939727, -1.5986929066231093, 0.26277548074679213, 0.43950123409209674]]]])+(1.-msk_arg0)*numarray.array([[[[4.4689641620777785, 0.42339252037470931, -2.3909077308256457, 3.6041497558570565], [-1.4327217691315997, -0.59278537541568532, -4.1945128102011422, 1.3951890241904783], [-3.2996732389553407, -1.8980621454959024, -1.820108983030313, -3.2644766803812528]], [[-2.1540601999284159, -2.5183538497796176, 2.8842257866386625, 2.072719744438456], [2.2018767493771243, 1.2108343075046459, 3.6861459788849373, -3.5474594594980591], [2.3918343870783145, 4.1093708407734812, -4.5678778935432884, -0.92386135953792703]]], [[[4.9508701237948074, -1.8173054055605018, 3.0250090356479262, -2.7404756322485948], [2.0759518670694046, 1.5033439982447758, 1.0165723967908011, 1.7267016847628867], [3.0508295261521745, 4.7233767154550783, 0.36280812867670953, -3.3663056046182827]], [[2.0908075019800654, -2.4781554285974816, -1.8272153438110825, 1.1812662947554342], [4.3298355013470431, -4.2166505170570359, 2.9312714202622816, -0.010853731430390035], [4.5724643424756337, -2.1400114700328099, -3.354089479481738, -3.067463341169272]]], [[[3.8670674462955574, -1.4404235764559372, 1.3491444628697637, -3.5254065249403013], [-4.8955337562571897, 0.57628032765249326, -0.14745891505191189, 0.49847646781887001], [-2.4464997802842756, -2.5626099164735172, 4.0513350023568577, 0.1670022398067097]], [[0.81892056114142608, -2.3642686862104787, 4.7852233486188016, -2.4582897045139687], [-1.525975638541599, -1.1326673565880996, 2.71578471352748, -4.2014299216080664], [4.9341103395024071, 0.37075158699522515, 1.9114805427681114, -1.327666612314812]]]])        arg0=msk_arg0*numarray.array([[[[3.4401800260990321, 2.5663291303592972, -4.7455882393285709, -1.6973994601204314], [-4.1226041654494203, -1.1272483329595326, 0.18259666122996343, 0.36323537827676855], [3.6665507540901991, -4.1189220940486937, 3.1064037983923996, -4.6275405120239608]], [[-1.3669858162746538, -4.1901128196990287, -0.17568228011831089, 0.481526878992665], [3.4530195077758314, -0.35984237473046132, 1.1510281306986094, -3.4808093219470271], [-4.1864369735349793, 3.1012588306204805, 4.1454525116077505, -0.14650795892292834]]], [[[3.0156484206419254, -0.72487826024640967, 1.1762969986872811, -4.2402054373441223], [1.168580748300764, 4.6508116300106845, 1.5889656458856916, 1.7393669486460279], [2.3855274418307602, -1.7368593026720225, -1.3381427692494108, 0.19997383972689686]], [[2.390375174953685, 0.32416657649849334, -0.15655987497772905, -1.7269075100129418], [4.0098498511087666, 3.7780121534311686, 0.56042336215418764, 1.2342470082663315], [1.3692861957691207, -2.1658719567301086, -2.4506047591737392, -1.0431177230010991]]], [[[-2.4209396645134063, 3.676516277352226, 4.3330052644616099, -1.0439007112301746], [-3.9073864085684362, 2.9943584943542731, -3.128364293471205, -1.8114900055199068], [-3.9430210624285991, -3.2697052652490433, -4.4184068149027214, 3.6304943571654711]], [[3.206524085923979, 4.6841914363432142, -4.2355196363273322, 3.1844493952250712], [-2.8880325781019547, 0.043155723141346414, -2.553908566943047, -3.1568643144062114], [-0.73805867385939727, -1.5986929066231093, 0.26277548074679213, 0.43950123409209674]]]])+(1.-msk_arg0)*numarray.array([[[[4.4689641620777785, 0.42339252037470931, -2.3909077308256457, 3.6041497558570565], [-1.4327217691315997, -0.59278537541568532, -4.1945128102011422, 1.3951890241904783], [-3.2996732389553407, -1.8980621454959024, -1.820108983030313, -3.2644766803812528]], [[-2.1540601999284159, -2.5183538497796176, 2.8842257866386625, 2.072719744438456], [2.2018767493771243, 1.2108343075046459, 3.6861459788849373, -3.5474594594980591], [2.3918343870783145, 4.1093708407734812, -4.5678778935432884, -0.92386135953792703]]], [[[4.9508701237948074, -1.8173054055605018, 3.0250090356479262, -2.7404756322485948], [2.0759518670694046, 1.5033439982447758, 1.0165723967908011, 1.7267016847628867], [3.0508295261521745, 4.7233767154550783, 0.36280812867670953, -3.3663056046182827]], [[2.0908075019800654, -2.4781554285974816, -1.8272153438110825, 1.1812662947554342], [4.3298355013470431, -4.2166505170570359, 2.9312714202622816, -0.010853731430390035], [4.5724643424756337, -2.1400114700328099, -3.354089479481738, -3.067463341169272]]], [[[3.8670674462955574, -1.4404235764559372, 1.3491444628697637, -3.5254065249403013], [-4.8955337562571897, 0.57628032765249326, -0.14745891505191189, 0.49847646781887001], [-2.4464997802842756, -2.5626099164735172, 4.0513350023568577, 0.1670022398067097]], [[0.81892056114142608, -2.3642686862104787, 4.7852233486188016, -2.4582897045139687], [-1.525975638541599, -1.1326673565880996, 2.71578471352748, -4.2014299216080664], [4.9341103395024071, 0.37075158699522515, 1.9114805427681114, -1.327666612314812]]]])
2475        arg1=Data(numarray.array([[[[-4.3309224111087898, -4.3970761400999105, 2.7715467766767956, 1.4477517789899288], [-3.0775754086498939, -2.381096375852918, 3.7702014307567016, -1.0546700691291502], [3.8474031398361639, 4.228638285703294, -0.24872924599757695, 2.4129375079204243]], [[0.89792118952284117, -3.3998645835417332, -1.4322391151288274, 4.3029798884702366], [-4.1399800492239986, 1.9834698243728006, -4.1619720565895468, -4.6667544052702512], [4.8765695842598227, -3.6207898195930333, 4.0161162966693507, -0.36983723950914449]]], [[[1.8637031084645059, 3.9661010942320072, 2.5968685174139026, -2.4349540752718091], [4.9164829078979864, 2.3307723096978394, 1.5248117327131432, -1.2187646055262147], [0.09037133443162837, -3.3300059258376056, 3.6554637648490846, -4.2687947666289663]], [[-3.8242672799436885, -0.94935328244745598, -2.0303705498232971, -3.9981465153744922], [2.0726722320655133, 4.5056570495109849, 0.32374884896373679, -1.8693146616111678], [0.41436146532649598, -0.25796044034207988, 0.71985332637852029, 1.0525877118671678]]], [[[2.6572182279026695, 4.4458653538076121, 0.97143256099718833, -0.50141535504948909], [-2.7088994557726132, 3.0172789001872928, 3.5525967871616775, -1.4322646956781835], [3.6347241811707001, 3.366396919806709, -0.14197785559813347, -0.26687686804618238]], [[2.9786999757433597, 4.9124189376050307, 2.285745103332002, -1.8728852501280837], [3.377352039377655, 1.8373829163522606, 2.0482594425622054, -2.9098357761397855], [1.1326539772835833, 1.5680602371056001, -0.66714778054239332, -2.5611616200906906]]]]),self.functionspace)        arg1=Data(numarray.array([[[[-4.3309224111087898, -4.3970761400999105, 2.7715467766767956, 1.4477517789899288], [-3.0775754086498939, -2.381096375852918, 3.7702014307567016, -1.0546700691291502], [3.8474031398361639, 4.228638285703294, -0.24872924599757695, 2.4129375079204243]], [[0.89792118952284117, -3.3998645835417332, -1.4322391151288274, 4.3029798884702366], [-4.1399800492239986, 1.9834698243728006, -4.1619720565895468, -4.6667544052702512], [4.8765695842598227, -3.6207898195930333, 4.0161162966693507, -0.36983723950914449]]], [[[1.8637031084645059, 3.9661010942320072, 2.5968685174139026, -2.4349540752718091], [4.9164829078979864, 2.3307723096978394, 1.5248117327131432, -1.2187646055262147], [0.09037133443162837, -3.3300059258376056, 3.6554637648490846, -4.2687947666289663]], [[-3.8242672799436885, -0.94935328244745598, -2.0303705498232971, -3.9981465153744922], [2.0726722320655133, 4.5056570495109849, 0.32374884896373679, -1.8693146616111678], [0.41436146532649598, -0.25796044034207988, 0.71985332637852029, 1.0525877118671678]]], [[[2.6572182279026695, 4.4458653538076121, 0.97143256099718833, -0.50141535504948909], [-2.7088994557726132, 3.0172789001872928, 3.5525967871616775, -1.4322646956781835], [3.6347241811707001, 3.366396919806709, -0.14197785559813347, -0.26687686804618238]], [[2.9786999757433597, 4.9124189376050307, 2.285745103332002, -1.8728852501280837], [3.377352039377655, 1.8373829163522606, 2.0482594425622054, -2.9098357761397855], [1.1326539772835833, 1.5680602371056001, -0.66714778054239332, -2.5611616200906906]]]]),self.functionspace)
2476        arg1.setTaggedValue(1,numarray.array([[[[0.095980219895867691, -4.2530425517448203, -3.4146532626047756, -3.0022794838227931], [0.81437665740011767, -3.8453172472596098, 2.5448284147664824, -2.5917733637774076], [-0.75448256162443705, -0.1554394989958876, -0.95054496431478164, -3.5953644634727344]], [[4.5501381130870335, -4.4107260862571653, 2.7116476421469695, 2.551249408187295], [3.8277743756906641, -0.50897810904276231, 4.4236567840435299, -3.5143681630384238], [-4.0782822164421395, -2.7514986570704112, 1.1701635515707673, 4.5205519742935074]]], [[[-3.6844466567026846, 3.0354716671582214, 3.08434083270852, -4.7136576208847547], [-3.0277790156724471, -4.7819156735125725, -4.2279196977511404, -1.3701642332238428], [-4.1772111281453173, 3.0888052348772987, -2.7070408310505432, -2.4423716174898678]], [[-4.3670584199839801, 4.1290890528990598, 4.3940522072588308, -0.35934808960877263], [4.532259197040533, -0.6177750332862928, 2.8551094384879052, 2.3992553027987995], [-2.7852253744497881, 3.7907899749342331, 4.6383142476360852, -0.92301425272875903]]], [[[2.3782842878820016, 1.2155105389461927, -4.6004462174818368, 0.25220586488367225], [4.9338174078514658, 0.15548726233226784, -3.1594970304482572, -2.3432229624095391], [2.5103520957263292, -4.7169996058849897, 0.90810569788890483, -1.0606878388025267]], [[2.5569856070195289, 4.228958632993816, -3.5034782978037016, 0.49651968605833741], [1.5853451693259393, -1.273546654842872, 3.4630230949723444, 3.4895514933814056], [-0.55024989713669292, -3.7626236298621976, 3.7610019624719957, 1.4873023093308557]]]]))        arg1.setTaggedValue(1,numarray.array([[[[0.095980219895867691, -4.2530425517448203, -3.4146532626047756, -3.0022794838227931], [0.81437665740011767, -3.8453172472596098, 2.5448284147664824, -2.5917733637774076], [-0.75448256162443705, -0.1554394989958876, -0.95054496431478164, -3.5953644634727344]], [[4.5501381130870335, -4.4107260862571653, 2.7116476421469695, 2.551249408187295], [3.8277743756906641, -0.50897810904276231, 4.4236567840435299, -3.5143681630384238], [-4.0782822164421395, -2.7514986570704112, 1.1701635515707673, 4.5205519742935074]]], [[[-3.6844466567026846, 3.0354716671582214, 3.08434083270852, -4.7136576208847547], [-3.0277790156724471, -4.7819156735125725, -4.2279196977511404, -1.3701642332238428], [-4.1772111281453173, 3.0888052348772987, -2.7070408310505432, -2.4423716174898678]], [[-4.3670584199839801, 4.1290890528990598, 4.3940522072588308, -0.35934808960877263], [4.532259197040533, -0.6177750332862928, 2.8551094384879052, 2.3992553027987995], [-2.7852253744497881, 3.7907899749342331, 4.6383142476360852, -0.92301425272875903]]], [[[2.3782842878820016, 1.2155105389461927, -4.6004462174818368, 0.25220586488367225], [4.9338174078514658, 0.15548726233226784, -3.1594970304482572, -2.3432229624095391], [2.5103520957263292, -4.7169996058849897, 0.90810569788890483, -1.0606878388025267]], [[2.5569856070195289, 4.228958632993816, -3.5034782978037016, 0.49651968605833741], [1.5853451693259393, -1.273546654842872, 3.4630230949723444, 3.4895514933814056], [-0.55024989713669292, -3.7626236298621976, 3.7610019624719957, 1.4873023093308557]]]]))
2477        res=add(arg0,arg1)        res=add(arg0,arg1)
2478        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
2479        ref=msk_ref*numarray.array([[[[-0.89074238500975778, -1.8307470097406133, -1.9740414626517753, -0.24964768113050262], [-7.2001795740993142, -3.5083447088124506, 3.952798091986665, -0.69143469085238163], [7.513953893926363, 0.10971619165460034, 2.8576745523948226, -2.2146030041035365]], [[-0.4690646267518126, -7.5899774032407619, -1.6079213952471383, 4.7845067674629016], [-0.68696054144816721, 1.6236274496423393, -3.0109439258909374, -8.1475637272172783], [0.69013261072484333, -0.51953098897255279, 8.1615688082771012, -0.51634519843207283]]], [[[4.8793515291064313, 3.2412228339855975, 3.7731655161011837, -6.6751595126159309], [6.0850636561987503, 6.981583939708524, 3.1137773785988347, 0.52060234311981324], [2.4758987762623885, -5.0668652285096281, 2.3173209955996739, -4.0688209269020694]], [[-1.4338921049900035, -0.62518670594896264, -2.1869304248010262, -5.7250540253874345], [6.0825220831742799, 8.2836692029421535, 0.88417221111792443, -0.63506765334483628], [1.7836476610956167, -2.4238323970721884, -1.7307514327952189, 0.009469988866068757]]], [[[0.23627856338926323, 8.122381631159838, 5.3044378254587983, -1.5453160662796637], [-6.6162858643410498, 6.011637394541566, 0.42423249369047245, -3.2437547011980903], [-0.308296881257899, 0.096691654557665707, -4.5603846705008548, 3.3636174891192887]], [[6.1852240616673386, 9.5966103739482449, -1.9497745329953302, 1.3115641450969875], [0.48931946127570036, 1.880538639493607, -0.50564912438084164, -6.0667000905459965], [0.39459530342418603, -0.030632669517509203, -0.40437229979560119, -2.1216603859985939]]]])+(1.-msk_ref)*numarray.array([[[[4.5649443819736462, -3.829650031370111, -5.8055609934304213, 0.60187027203426346], [-0.61834511173148199, -4.4381026226752951, -1.6496843954346598, -1.1965843395869293], [-4.0541558005797782, -2.05350164449179, -2.7706539473450946, -6.8598411438539877]], [[2.3960779131586176, -6.929079936036783, 5.595873428785632, 4.6239691526257509], [6.0296511250677884, 0.70185619846188363, 8.1098027629284672, -7.0618276225364829], [-1.686447829363825, 1.3578721837030701, -3.3977143419725211, 3.5966906147555804]]], [[[1.2664234670921228, 1.2181662615977196, 6.1093498683564462, -7.4541332531333495], [-0.95182714860304252, -3.2785716752677967, -3.2113473009603393, 0.35653745153904381], [-1.1263816019931427, 7.8121819503323771, -2.3442327023738336, -5.80867722210815]], [[-2.2762509180039148, 1.6509336243015782, 2.5668368634477483, 0.82191820514666158], [8.8620946983875761, -4.8344255503433287, 5.7863808587501868, 2.3884015713684095], [1.7872389680258456, 1.6507785049014232, 1.2842247681543473, -3.990477593898031]]], [[[6.2453517341775591, -0.22491303750974456, -3.251301754612073, -3.273200660056629], [0.038283651594276158, 0.7317675899847611, -3.3069559455001691, -1.8447464945906691], [0.063852315442053609, -7.2796095223585073, 4.9594407002457626, -0.89368559899581701]], [[3.375906168160955, 1.8646899467833373, 1.2817450508151, -1.9617700184556313], [0.059369530784340263, -2.4062140114309716, 6.1788078084998244, -0.71187842822666081], [4.3838604423657141, -3.3918720428669724, 5.6724825052401071, 0.15963569701604374]]]])        ref=msk_ref*numarray.array([[[[-0.89074238500975778, -1.8307470097406133, -1.9740414626517753, -0.24964768113050262], [-7.2001795740993142, -3.5083447088124506, 3.952798091986665, -0.69143469085238163], [7.513953893926363, 0.10971619165460034, 2.8576745523948226, -2.2146030041035365]], [[-0.4690646267518126, -7.5899774032407619, -1.6079213952471383, 4.7845067674629016], [-0.68696054144816721, 1.6236274496423393, -3.0109439258909374, -8.1475637272172783], [0.69013261072484333, -0.51953098897255279, 8.1615688082771012, -0.51634519843207283]]], [[[4.8793515291064313, 3.2412228339855975, 3.7731655161011837, -6.6751595126159309], [6.0850636561987503, 6.981583939708524, 3.1137773785988347, 0.52060234311981324], [2.4758987762623885, -5.0668652285096281, 2.3173209955996739, -4.0688209269020694]], [[-1.4338921049900035, -0.62518670594896264, -2.1869304248010262, -5.7250540253874345], [6.0825220831742799, 8.2836692029421535, 0.88417221111792443, -0.63506765334483628], [1.7836476610956167, -2.4238323970721884, -1.7307514327952189, 0.009469988866068757]]], [[[0.23627856338926323, 8.122381631159838, 5.3044378254587983, -1.5453160662796637], [-6.6162858643410498, 6.011637394541566, 0.42423249369047245, -3.2437547011980903], [-0.308296881257899, 0.096691654557665707, -4.5603846705008548, 3.3636174891192887]], [[6.1852240616673386, 9.5966103739482449, -1.9497745329953302, 1.3115641450969875], [0.48931946127570036, 1.880538639493607, -0.50564912438084164, -6.0667000905459965], [0.39459530342418603, -0.030632669517509203, -0.40437229979560119, -2.1216603859985939]]]])+(1.-msk_ref)*numarray.array([[[[4.5649443819736462, -3.829650031370111, -5.8055609934304213, 0.60187027203426346], [-0.61834511173148199, -4.4381026226752951, -1.6496843954346598, -1.1965843395869293], [-4.0541558005797782, -2.05350164449179, -2.7706539473450946, -6.8598411438539877]], [[2.3960779131586176, -6.929079936036783, 5.595873428785632, 4.6239691526257509], [6.0296511250677884, 0.70185619846188363, 8.1098027629284672, -7.0618276225364829], [-1.686447829363825, 1.3578721837030701, -3.3977143419725211, 3.5966906147555804]]], [[[1.2664234670921228, 1.2181662615977196, 6.1093498683564462, -7.4541332531333495], [-0.95182714860304252, -3.2785716752677967, -3.2113473009603393, 0.35653745153904381], [-1.1263816019931427, 7.8121819503323771, -2.3442327023738336, -5.80867722210815]], [[-2.2762509180039148, 1.6509336243015782, 2.5668368634477483, 0.82191820514666158], [8.8620946983875761, -4.8344255503433287, 5.7863808587501868, 2.3884015713684095], [1.7872389680258456, 1.6507785049014232, 1.2842247681543473, -3.990477593898031]]], [[[6.2453517341775591, -0.22491303750974456, -3.251301754612073, -3.273200660056629], [0.038283651594276158, 0.7317675899847611, -3.3069559455001691, -1.8447464945906691], [0.063852315442053609, -7.2796095223585073, 4.9594407002457626, -0.89368559899581701]], [[3.375906168160955, 1.8646899467833373, 1.2817450508151, -1.9617700184556313], [0.059369530784340263, -2.4062140114309716, 6.1788078084998244, -0.71187842822666081], [4.3838604423657141, -3.3918720428669724, 5.6724825052401071, 0.15963569701604374]]]])
2480        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
2481        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 4299  class Test_util_binary_with_tagged_data( Line 4319  class Test_util_binary_with_tagged_data(
4319     def test_mult_taggedData_rank0_expandedData_rank0(self):     def test_mult_taggedData_rank0_expandedData_rank0(self):
4320        arg0=Data(-3.64306025156,self.functionspace)        arg0=Data(-3.64306025156,self.functionspace)
4321        arg0.setTaggedValue(1,3.01321404025)        arg0.setTaggedValue(1,3.01321404025)
4322        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4323        arg1=msk_arg1*(4.13951870789)+(1.-msk_arg1)*(-1.32426586275)        arg1=msk_arg1*(4.13951870789)+(1.-msk_arg1)*(-1.32426586275)
4324        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4325        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4326        ref=msk_ref*(-15.0805160653)+(1.-msk_ref)*(-3.99029649066)        ref=msk_ref*(-15.0805160653)+(1.-msk_ref)*(-3.99029649066)
4327        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4328        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
# Line 4311  class Test_util_binary_with_tagged_data( Line 4331  class Test_util_binary_with_tagged_data(
4331     def test_mult_taggedData_rank1_expandedData_rank0(self):     def test_mult_taggedData_rank1_expandedData_rank0(self):
4332        arg0=Data(numarray.array([0.039624497826805438, -0.53672173282488966]),self.functionspace)        arg0=Data(numarray.array([0.039624497826805438, -0.53672173282488966]),self.functionspace)
4333        arg0.setTaggedValue(1,numarray.array([-1.0127972941618912, -1.4797726058895009]))        arg0.setTaggedValue(1,numarray.array([-1.0127972941618912, -1.4797726058895009]))
4334        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4335        arg1=msk_arg1*(-1.94658493304)+(1.-msk_arg1)*(4.94710567973)        arg1=msk_arg1*(-1.94658493304)+(1.-msk_arg1)*(4.94710567973)
4336        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4337        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4338        ref=msk_ref*numarray.array([-0.077132450449070425, 1.0447744383538757])+(1.-msk_ref)*numarray.array([-5.0104152463615774, -7.3205914633020512])        ref=msk_ref*numarray.array([-0.077132450449070425, 1.0447744383538757])+(1.-msk_ref)*numarray.array([-5.0104152463615774, -7.3205914633020512])
4339        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4340        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 4323  class Test_util_binary_with_tagged_data( Line 4343  class Test_util_binary_with_tagged_data(
4343     def test_mult_taggedData_rank0_expandedData_rank1(self):     def test_mult_taggedData_rank0_expandedData_rank1(self):
4344        arg0=Data(-4.43758521582,self.functionspace)        arg0=Data(-4.43758521582,self.functionspace)
4345        arg0.setTaggedValue(1,-3.79493903321)        arg0.setTaggedValue(1,-3.79493903321)
4346        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4347        arg1=msk_arg1*numarray.array([4.7492709853788817, 1.9001574141512547])+(1.-msk_arg1)*numarray.array([4.2767557845500246, -4.9983270752126527])        arg1=msk_arg1*numarray.array([4.7492709853788817, 1.9001574141512547])+(1.-msk_arg1)*numarray.array([4.2767557845500246, -4.9983270752126527])
4348        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4349        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4350        ref=msk_ref*numarray.array([-21.075294710640918, -8.432110448768654])+(1.-msk_ref)*numarray.array([-16.230027462314109, 18.968346518496567])        ref=msk_ref*numarray.array([-21.075294710640918, -8.432110448768654])+(1.-msk_ref)*numarray.array([-16.230027462314109, 18.968346518496567])
4351        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4352        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 4335  class Test_util_binary_with_tagged_data( Line 4355  class Test_util_binary_with_tagged_data(
4355     def test_mult_taggedData_rank2_expandedData_rank0(self):     def test_mult_taggedData_rank2_expandedData_rank0(self):
4356        arg0=Data(numarray.array([[4.7131265884009856, 3.9394776281461183, -2.8764276968849547, 0.51654581905004626, -4.5917112841818044], [3.8994196198134468, -1.0448215791533144, 1.8424096495429403, 4.7920096130303875, 4.3464636419623766], [3.611705576827358, -1.4907179187765571, 1.4006465648320807, -1.2877778519226668, -4.3128118903075663], [0.35976626148054081, -0.0059196485647960984, 4.4461809562555477, 0.54974081215892667, -1.484066147052685]]),self.functionspace)        arg0=Data(numarray.array([[4.7131265884009856, 3.9394776281461183, -2.8764276968849547, 0.51654581905004626, -4.5917112841818044], [3.8994196198134468, -1.0448215791533144, 1.8424096495429403, 4.7920096130303875, 4.3464636419623766], [3.611705576827358, -1.4907179187765571, 1.4006465648320807, -1.2877778519226668, -4.3128118903075663], [0.35976626148054081, -0.0059196485647960984, 4.4461809562555477, 0.54974081215892667, -1.484066147052685]]),self.functionspace)
4357        arg0.setTaggedValue(1,numarray.array([[-1.8077035102571792, -0.89867825536962442, 4.8474366343953559, 1.9913595533878077, 3.6123152446212288], [-2.557346291617554, 0.25567088777149305, 4.7035675651523086, -1.3742976333308476, 4.9962005154251106], [2.8788614369399648, 4.8979635944382878, 4.5498946270807998, 2.6728282617626045, -2.5655389808741544], [-3.5660616697773406, 3.0322237861533683, -0.46643241543133307, -1.024900383199947, -3.4527491427962511]]))        arg0.setTaggedValue(1,numarray.array([[-1.8077035102571792, -0.89867825536962442, 4.8474366343953559, 1.9913595533878077, 3.6123152446212288], [-2.557346291617554, 0.25567088777149305, 4.7035675651523086, -1.3742976333308476, 4.9962005154251106], [2.8788614369399648, 4.8979635944382878, 4.5498946270807998, 2.6728282617626045, -2.5655389808741544], [-3.5660616697773406, 3.0322237861533683, -0.46643241543133307, -1.024900383199947, -3.4527491427962511]]))
4358        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4359        arg1=msk_arg1*(-0.995478870454)+(1.-msk_arg1)*(2.36413395453)        arg1=msk_arg1*(-0.995478870454)+(1.-msk_arg1)*(2.36413395453)
4360        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4361        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4362        ref=msk_ref*numarray.array([[-4.6918179325273774, -3.9216667394450742, 2.8634229946371779, -0.51421044848559416, 4.5709515626274575], [-3.8817898385574354, 1.0400978054413397, -1.8340798768402631, -4.7703443167834374, -4.3268127167693944], [-3.5953765880319364, 1.4839781899489877, -1.3943140602640922, 1.28195564142745, 4.2933131090432699], [-0.3581397116060499, 0.0058928850667669206, -4.4260791961666506, -0.54725536273034547, 1.4773564917467905]])+(1.-msk_ref)*numarray.array([[-4.273653248322085, -2.1245957777171198, 11.459989539806733, 4.707840735841831, 8.5399971242754251], [-6.0459092015044629, 0.6044402269654181, 11.119863788202615, -3.2490236985876897, 11.811687282156839], [6.8060140734568249, 11.579442041663409, 10.756560377415374, 6.3189240482603974, -6.0652778163549055], [-8.4306474774685931, 7.1685832105787206, -1.1027087108146616, -2.4230017959338128, -8.1627614849590024]])        ref=msk_ref*numarray.array([[-4.6918179325273774, -3.9216667394450742, 2.8634229946371779, -0.51421044848559416, 4.5709515626274575], [-3.8817898385574354, 1.0400978054413397, -1.8340798768402631, -4.7703443167834374, -4.3268127167693944], [-3.5953765880319364, 1.4839781899489877, -1.3943140602640922, 1.28195564142745, 4.2933131090432699], [-0.3581397116060499, 0.0058928850667669206, -4.4260791961666506, -0.54725536273034547, 1.4773564917467905]])+(1.-msk_ref)*numarray.array([[-4.273653248322085, -2.1245957777171198, 11.459989539806733, 4.707840735841831, 8.5399971242754251], [-6.0459092015044629, 0.6044402269654181, 11.119863788202615, -3.2490236985876897, 11.811687282156839], [6.8060140734568249, 11.579442041663409, 10.756560377415374, 6.3189240482603974, -6.0652778163549055], [-8.4306474774685931, 7.1685832105787206, -1.1027087108146616, -2.4230017959338128, -8.1627614849590024]])
4363        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4364        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 4347  class Test_util_binary_with_tagged_data( Line 4367  class Test_util_binary_with_tagged_data(
4367     def test_mult_taggedData_rank0_expandedData_rank2(self):     def test_mult_taggedData_rank0_expandedData_rank2(self):
4368        arg0=Data(2.25171273475,self.functionspace)        arg0=Data(2.25171273475,self.functionspace)
4369        arg0.setTaggedValue(1,-0.225600650652)        arg0.setTaggedValue(1,-0.225600650652)
4370        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4371        arg1=msk_arg1*numarray.array([[-0.25720884712650882, 1.823669315682114, 3.6638439561492433, -0.8175947314386196, 2.9924084609209185], [0.62338350063939085, 3.4241997878546062, 0.79882059770056468, 0.33798057130253412, -1.1787369821052485], [-4.6934546228333076, -0.57721192555679757, 2.1703330553450755, -0.24339021343745859, 0.7711303851201059], [4.2127333071672872, -3.5572197650478299, -0.28271079324935666, 4.4650874137017649, -4.2458864712493769]])+(1.-msk_arg1)*numarray.array([[-1.086456555908649, 3.3580492199495939, 0.34969314990139466, 1.6131754725589778, 3.7112117378961944], [-2.5460404008612869, 2.730323825403592, -0.02444661339287002, 4.3429519798202616, -1.7269963834271209], [-2.9829891792734733, -4.8736831130170133, -4.0669223313986418, -4.3109566642215489, -2.0856818371592079], [2.150854965483032, 4.8875732424236151, 4.9886453232910419, -4.9839741779550737, -4.8300395121925845]])        arg1=msk_arg1*numarray.array([[-0.25720884712650882, 1.823669315682114, 3.6638439561492433, -0.8175947314386196, 2.9924084609209185], [0.62338350063939085, 3.4241997878546062, 0.79882059770056468, 0.33798057130253412, -1.1787369821052485], [-4.6934546228333076, -0.57721192555679757, 2.1703330553450755, -0.24339021343745859, 0.7711303851201059], [4.2127333071672872, -3.5572197650478299, -0.28271079324935666, 4.4650874137017649, -4.2458864712493769]])+(1.-msk_arg1)*numarray.array([[-1.086456555908649, 3.3580492199495939, 0.34969314990139466, 1.6131754725589778, 3.7112117378961944], [-2.5460404008612869, 2.730323825403592, -0.02444661339287002, 4.3429519798202616, -1.7269963834271209], [-2.9829891792734733, -4.8736831130170133, -4.0669223313986418, -4.3109566642215489, -2.0856818371592079], [2.150854965483032, 4.8875732424236151, 4.9886453232910419, -4.9839741779550737, -4.8300395121925845]])
4372        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4373        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4374        ref=msk_ref*numarray.array([[-0.57916043656479232, 4.1063794220918686, 8.2499240941933198, -1.8409884686437856, 6.738044239025399], [1.4036805670219428, 7.7103142686360249, 1.7987145126219322, 0.76103515649955811, -2.6541770735256422], [-10.568311544198931, -1.2997154434250615, 4.8869665793665682, -0.54804484311033042, 1.7363641083266144], [9.4858652358486015, -8.0098370452579886, -0.63658349341048415, 10.054094191198415, -9.5605166376094548]])+(1.-msk_ref)*numarray.array([[0.24510530591817417, -0.75757808894223, -0.078891002146318723, -0.36393343622523011, -0.8372517827768986], [0.57438837102070694, -0.6159628315018385, 0.0055151718876705431, -0.97977279239805026, 0.38961150777489195], [0.67296429973211369, 1.099506081368536, 0.91750032411487681, 0.97255462838116302, 0.47053117951627571], [-0.4852342796711599, -1.1026397036003066, -1.1254416308067545, 1.1243878173796698, 1.0896600566257468]])        ref=msk_ref*numarray.array([[-0.57916043656479232, 4.1063794220918686, 8.2499240941933198, -1.8409884686437856, 6.738044239025399], [1.4036805670219428, 7.7103142686360249, 1.7987145126219322, 0.76103515649955811, -2.6541770735256422], [-10.568311544198931, -1.2997154434250615, 4.8869665793665682, -0.54804484311033042, 1.7363641083266144], [9.4858652358486015, -8.0098370452579886, -0.63658349341048415, 10.054094191198415, -9.5605166376094548]])+(1.-msk_ref)*numarray.array([[0.24510530591817417, -0.75757808894223, -0.078891002146318723, -0.36393343622523011, -0.8372517827768986], [0.57438837102070694, -0.6159628315018385, 0.0055151718876705431, -0.97977279239805026, 0.38961150777489195], [0.67296429973211369, 1.099506081368536, 0.91750032411487681, 0.97255462838116302, 0.47053117951627571], [-0.4852342796711599, -1.1026397036003066, -1.1254416308067545, 1.1243878173796698, 1.0896600566257468]])
4375        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4376        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 4359  class Test_util_binary_with_tagged_data( Line 4379  class Test_util_binary_with_tagged_data(
4379     def test_mult_taggedData_rank3_expandedData_rank0(self):     def test_mult_taggedData_rank3_expandedData_rank0(self):
4380        arg0=Data(numarray.array([[[1.5208157141748826, -0.49650635274133048], [0.074388107079075283, 2.7903785759327526]], [[-0.42588358629141787, 1.9592410879235365], [-1.8014579045589887, 1.1994680473766728]], [[-0.54959894162210432, -4.1265851818808201], [1.544051822995705, -4.6368044854202726]], [[-4.3010569723043339, -1.109431766012893], [-4.9613761857478123, -4.0350152141203406]], [[-4.3553266600792684, -0.63926931192103886], [2.6110825205760237, -1.9621557239251519]], [[1.7842505265254527, 1.7716565676332987], [-1.0872393015286006, -2.3138646623199066]]]),self.functionspace)        arg0=Data(numarray.array([[[1.5208157141748826, -0.49650635274133048], [0.074388107079075283, 2.7903785759327526]], [[-0.42588358629141787, 1.9592410879235365], [-1.8014579045589887, 1.1994680473766728]], [[-0.54959894162210432, -4.1265851818808201], [1.544051822995705, -4.6368044854202726]], [[-4.3010569723043339, -1.109431766012893], [-4.9613761857478123, -4.0350152141203406]], [[-4.3553266600792684, -0.63926931192103886], [2.6110825205760237, -1.9621557239251519]], [[1.7842505265254527, 1.7716565676332987], [-1.0872393015286006, -2.3138646623199066]]]),self.functionspace)
4381        arg0.setTaggedValue(1,numarray.array([[[1.6328274833662295, 2.4567423039425975], [0.95888231556165415, 2.9633643071780424]], [[3.0351896630869621, -2.5326929832757008], [1.132292915675186, -4.4675631700099361]], [[-3.4264156155835614, 1.760609459260511], [0.045859709797008819, -0.6592639912299445]], [[3.7783244073355799, 3.0389467829892176], [-0.30342223749255215, -3.3838296830763817]], [[1.2365087426140686, -1.7199882231581642], [-2.9604668893061814, 4.933714966830177]], [[2.4275364284957082, -3.47593689713218], [-2.964797301278812, 4.9602894667036139]]]))        arg0.setTaggedValue(1,numarray.array([[[1.6328274833662295, 2.4567423039425975], [0.95888231556165415, 2.9633643071780424]], [[3.0351896630869621, -2.5326929832757008], [1.132292915675186, -4.4675631700099361]], [[-3.4264156155835614, 1.760609459260511], [0.045859709797008819, -0.6592639912299445]], [[3.7783244073355799, 3.0389467829892176], [-0.30342223749255215, -3.3838296830763817]], [[1.2365087426140686, -1.7199882231581642], [-2.9604668893061814, 4.933714966830177]], [[2.4275364284957082, -3.47593689713218], [-2.964797301278812, 4.9602894667036139]]]))
4382        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4383        arg1=msk_arg1*(-0.113655930811)+(1.-msk_arg1)*(-2.00642883152)        arg1=msk_arg1*(-0.113655930811)+(1.-msk_arg1)*(-2.00642883152)
4384        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4385        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4386        ref=msk_ref*numarray.array([[[-0.17284972558585635, 0.056430891674166761], [-0.0084546495513071005, -0.31714307436145156]], [[0.048404195416885926, -0.22267936953022249], [0.20474637495867326, -0.13632665740210761]], [[0.062465179282552928, 0.46901087991568385], [-0.17549064716230212, 0.52700032977697042]], [[0.48884063365645136, 0.12609350003698672], [0.56388982849245961, 0.45860340999557458]], [[0.4950087055353094, 0.072656748685004949], [-0.29676501429922281, 0.22301063519796002]], [[-0.20279065439146274, -0.20135927627098518], [0.12357119482904441, 0.26298444196560594]]])+(1.-msk_ref)*numarray.array([[[-3.2761521395281852, -4.9292785902512248], [-1.9239291239798748, -5.9457795842264627]], [[-6.0898920491564779, 5.0816682230388768], [-2.2718651517392687, 8.9638475509556006]], [[6.8748590798854723, -3.5325375801113736], [-0.092014243941969331, 1.3227662795882995]], [[-7.5809390257229392, -6.0974304428518495], [0.60879512543009728, 6.7894134370857993]], [[-2.4809667916103932, 3.4510339608235459], [5.9399661214713921, -9.899147955961709]], [[-4.8706790797047335, 6.9742200069585598], [5.9486547849056484, -9.9524677986910621]]])        ref=msk_ref*numarray.array([[[-0.17284972558585635, 0.056430891674166761], [-0.0084546495513071005, -0.31714307436145156]], [[0.048404195416885926, -0.22267936953022249], [0.20474637495867326, -0.13632665740210761]], [[0.062465179282552928, 0.46901087991568385], [-0.17549064716230212, 0.52700032977697042]], [[0.48884063365645136, 0.12609350003698672], [0.56388982849245961, 0.45860340999557458]], [[0.4950087055353094, 0.072656748685004949], [-0.29676501429922281, 0.22301063519796002]], [[-0.20279065439146274, -0.20135927627098518], [0.12357119482904441, 0.26298444196560594]]])+(1.-msk_ref)*numarray.array([[[-3.2761521395281852, -4.9292785902512248], [-1.9239291239798748, -5.9457795842264627]], [[-6.0898920491564779, 5.0816682230388768], [-2.2718651517392687, 8.9638475509556006]], [[6.8748590798854723, -3.5325375801113736], [-0.092014243941969331, 1.3227662795882995]], [[-7.5809390257229392, -6.0974304428518495], [0.60879512543009728, 6.7894134370857993]], [[-2.4809667916103932, 3.4510339608235459], [5.9399661214713921, -9.899147955961709]], [[-4.8706790797047335, 6.9742200069585598], [5.9486547849056484, -9.9524677986910621]]])
4387        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4388        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 4371  class Test_util_binary_with_tagged_data( Line 4391  class Test_util_binary_with_tagged_data(
4391     def test_mult_taggedData_rank0_expandedData_rank3(self):     def test_mult_taggedData_rank0_expandedData_rank3(self):
4392        arg0=Data(-0.902823340529,self.functionspace)        arg0=Data(-0.902823340529,self.functionspace)
4393        arg0.setTaggedValue(1,-2.88962718379)        arg0.setTaggedValue(1,-2.88962718379)
4394        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4395        arg1=msk_arg1*numarray.array([[[-1.325219397094112, -4.8378799834967374], [1.0590090701787265, -0.66226764292894025]], [[-0.98032010698741789, -3.2793976654572878], [0.94292542432119486, -0.86552969350256159]], [[0.65034929223904392, -3.1334004310596697], [0.96434345551132239, 3.0107709949578663]], [[-2.7454565966581645, -4.6117088851078902], [-2.9044074095835759, -2.6664442441046532]], [[1.2828360788704893, 4.087850682694997], [-0.22135351635816214, 2.3765367954747934]], [[4.3784024979455864, -4.9853255283976958], [-2.5877242239164469, 2.654322875360168]]])+(1.-msk_arg1)*numarray.array([[[1.1302927374095724, -1.9894684032675389], [3.8441859469472632, 1.333445387107691]], [[-4.1715239975546838, -4.8597730183374566], [-0.85178082534543975, -1.0219523292825059]], [[-1.5156932129279008, -2.4421487521049889], [-0.27464445391472747, 3.8008053542307572]], [[-1.8645938909197604, -0.79448043638538479], [-3.8390501133276453, 0.72402472207678148]], [[2.6905944947984448, 3.5339041949090984], [1.5724515833806763, -3.3045610470140518]], [[-3.9711549035463731, 0.36594562758118698], [-2.2788912334066556, 1.2474786070715602]]])        arg1=msk_arg1*numarray.array([[[-1.325219397094112, -4.8378799834967374], [1.0590090701787265, -0.66226764292894025]], [[-0.98032010698741789, -3.2793976654572878], [0.94292542432119486, -0.86552969350256159]], [[0.65034929223904392, -3.1334004310596697], [0.96434345551132239, 3.0107709949578663]], [[-2.7454565966581645, -4.6117088851078902], [-2.9044074095835759, -2.6664442441046532]], [[1.2828360788704893, 4.087850682694997], [-0.22135351635816214, 2.3765367954747934]], [[4.3784024979455864, -4.9853255283976958], [-2.5877242239164469, 2.654322875360168]]])+(1.-msk_arg1)*numarray.array([[[1.1302927374095724, -1.9894684032675389], [3.8441859469472632, 1.333445387107691]], [[-4.1715239975546838, -4.8597730183374566], [-0.85178082534543975, -1.0219523292825059]], [[-1.5156932129279008, -2.4421487521049889], [-0.27464445391472747, 3.8008053542307572]], [[-1.8645938909197604, -0.79448043638538479], [-3.8390501133276453, 0.72402472207678148]], [[2.6905944947984448, 3.5339041949090984], [1.5724515833806763, -3.3045610470140518]], [[-3.9711549035463731, 0.36594562758118698], [-2.2788912334066556, 1.2474786070715602]]])
4396        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4397        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4398        ref=msk_ref*numarray.array([[[1.1964390030182304, 4.3677509677785311], [-0.95609810638918558, 0.59791068571332118]], [[0.88505587377805095, 2.9607167552508971], [-0.85129508145531252, 0.7814204092149567]], [[-0.58715052052987382, 2.8289070443840556], [-0.87063177992193608, -2.7181943272354472]], [[2.4786622958720894, 4.1635584212000163], [2.6221667997771974, 2.4073280997966795]], [[-1.158174354076879, -3.6906070089341321], [0.19984312107629934, -2.1455928885804525]], [[-3.9529239693754112, 4.5008682471721215], [2.3362578282038591, -2.3963846451750004]]])+(1.-msk_ref)*numarray.array([[[-3.2661246196581817, 5.7488219793715274], [-11.108264211839147, -3.8531600386846652]], [[12.054149141162908, 14.042932220833089], [2.4613290275485631, 2.9530612312313966]], [[4.3797883103612181, 7.0568994209393905], [0.79362007990893013, -10.982910471876645]], [[5.3879811939289697, 2.2957522659678951], [11.093423567400482, -2.0921615186484712]], [[-7.7748149927230914, -10.211665626515934], [-4.543798840529135, 9.548949431942626]], [[11.475157160325285, -1.0574464332473881], [6.5851460569507161, -3.604748094189437]]])        ref=msk_ref*numarray.array([[[1.1964390030182304, 4.3677509677785311], [-0.95609810638918558, 0.59791068571332118]], [[0.88505587377805095, 2.9607167552508971], [-0.85129508145531252, 0.7814204092149567]], [[-0.58715052052987382, 2.8289070443840556], [-0.87063177992193608, -2.7181943272354472]], [[2.4786622958720894, 4.1635584212000163], [2.6221667997771974, 2.4073280997966795]], [[-1.158174354076879, -3.6906070089341321], [0.19984312107629934, -2.1455928885804525]], [[-3.9529239693754112, 4.5008682471721215], [2.3362578282038591, -2.3963846451750004]]])+(1.-msk_ref)*numarray.array([[[-3.2661246196581817, 5.7488219793715274], [-11.108264211839147, -3.8531600386846652]], [[12.054149141162908, 14.042932220833089], [2.4613290275485631, 2.9530612312313966]], [[4.3797883103612181, 7.0568994209393905], [0.79362007990893013, -10.982910471876645]], [[5.3879811939289697, 2.2957522659678951], [11.093423567400482, -2.0921615186484712]], [[-7.7748149927230914, -10.211665626515934], [-4.543798840529135, 9.548949431942626]], [[11.475157160325285, -1.0574464332473881], [6.5851460569507161, -3.604748094189437]]])
4399        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4400        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
# Line 4383  class Test_util_binary_with_tagged_data( Line 4403  class Test_util_binary_with_tagged_data(
4403     def test_mult_taggedData_rank4_expandedData_rank0(self):     def test_mult_taggedData_rank4_expandedData_rank0(self):
4404        arg0=Data(numarray.array([[[[4.156072134885358, -2.7533663022209174, -4.8682038352522925, 1.5212208357374513], [2.1365557323576532, -3.0252475765815809, -2.49923597741885, -2.9210596544405987], [-1.7920880146051701, -1.4482018790063589, -2.8492126504736004, -4.4786407960339814]], [[3.1932854528607972, -4.6561339617770523, -0.063590837998662053, -0.82349847593043446], [-1.7859495703277508, -1.8256373122804472, 0.27131016092096427, 3.5763220404690426], [-1.6727869123086547, 4.8188296163382009, 4.9786284352598269, -4.5326728880864806]]], [[[3.5011229191449083, -4.9032177130300294, 0.8165487531748461, -1.7084825701466508], [-4.1939809848076877, -2.571958617877097, 0.086325582684412261, 0.014989744559517959], [4.5552332829903683, -1.7408763939632763, 1.4794104970535207, 4.8141575107323966]], [[2.0439429996274008, -2.0076232542439443, -0.11079886015662321, -1.5051535106522138], [-3.3358569529694417, -2.5580255459850534, -4.5489484755856502, 4.0679693899575788], [2.2923645230250314, 2.1383080540297863, 2.4248757198495463, 1.9768015456023456]]], [[[4.3067527665907566, -4.4384656421269018, -1.8218850664462813, 2.3132309748346618], [0.13771319662338488, 2.1411649609423611, 3.1167628272339236, 1.0843256213312857], [4.5929601188545472, -2.3909078691227101, -3.0052911260345008, -2.3951753052349645]], [[-3.9275753320920592, 3.7203355769486741, 2.6044624855628653, -2.4324810272440578], [2.1917065333275501, 3.9060745844812423, 3.0665184015481461, -3.0657837600932347], [0.3972477978425637, -2.749276463042345, 1.3150873636433484, -0.28266606287134621]]]]),self.functionspace)        arg0=Data(numarray.array([[[[4.156072134885358, -2.7533663022209174, -4.8682038352522925, 1.5212208357374513], [2.1365557323576532, -3.0252475765815809, -2.49923597741885, -2.9210596544405987], [-1.7920880146051701, -1.4482018790063589, -2.8492126504736004, -4.4786407960339814]], [[3.1932854528607972, -4.6561339617770523, -0.063590837998662053, -0.82349847593043446], [-1.7859495703277508, -1.8256373122804472, 0.27131016092096427, 3.5763220404690426], [-1.6727869123086547, 4.8188296163382009, 4.9786284352598269, -4.5326728880864806]]], [[[3.5011229191449083, -4.9032177130300294, 0.8165487531748461, -1.7084825701466508], [-4.1939809848076877, -2.571958617877097, 0.086325582684412261, 0.014989744559517959], [4.5552332829903683, -1.7408763939632763, 1.4794104970535207, 4.8141575107323966]], [[2.0439429996274008, -2.0076232542439443, -0.11079886015662321, -1.5051535106522138], [-3.3358569529694417, -2.5580255459850534, -4.5489484755856502, 4.0679693899575788], [2.2923645230250314, 2.1383080540297863, 2.4248757198495463, 1.9768015456023456]]], [[[4.3067527665907566, -4.4384656421269018, -1.8218850664462813, 2.3132309748346618], [0.13771319662338488, 2.1411649609423611, 3.1167628272339236, 1.0843256213312857], [4.5929601188545472, -2.3909078691227101, -3.0052911260345008, -2.3951753052349645]], [[-3.9275753320920592, 3.7203355769486741, 2.6044624855628653, -2.4324810272440578], [2.1917065333275501, 3.9060745844812423, 3.0665184015481461, -3.0657837600932347], [0.3972477978425637, -2.749276463042345, 1.3150873636433484, -0.28266606287134621]]]]),self.functionspace)
4405        arg0.setTaggedValue(1,numarray.array([[[[0.20978813219506431, -4.5207283592328267, 3.3551890905341111, -2.6275249211766938], [0.41610212360163779, -4.3258925235311203, 1.7165430907470434, 3.614877398908769], [1.5732055240367533, 4.1858711509592403, -3.5025803524608365, 2.9850603862314573]], [[-1.7468883308601777, 0.86604961479661746, 4.0113180229670551, 3.3018477533725008], [-0.55523406118933849, 0.57314768716086384, -3.783981741830714, -3.5269114097627718], [1.9907889724481995, 2.3534511734963832, -2.7246766900187436, 0.84505905012148297]]], [[[-0.28366982929819784, -1.140653718247957, -0.93352837895526708, 4.6020191368549686], [-1.9542834909894546, -2.0609489942386472, -3.2893642054921655, 3.2982049002646168], [-1.5119121013020962, 0.68361468468491182, 2.5185924461782703, 1.6119187107645851]], [[1.8710455196485585, 2.444239705967826, -4.4846682233538395, -2.8583259168360939], [-3.9190582704354302, -2.8712595828924803, 2.0497212087590047, 4.2996146845765946], [-0.44378925644792666, -4.4534489182955026, -1.5478161017916259, -0.20068444032513533]]], [[[-1.0644042786342602, -3.3798535020066742, -0.92105238070085083, 1.6697719717992063], [-0.18441158041714889, 4.8295850355922809, 3.9247022199900332, -4.9505698603360182], [3.4392322529498891, -0.01341887149590093, -3.0787590870675041, -2.5180039584879363]], [[-4.1431580460008348, -1.3891454137226997, 4.9517090654091795, 1.4932099907290697], [1.0525697676246484, -1.8972458537613388, -0.89087554384409717, 2.6141762518399316], [1.7585820666641849, 4.599003576107334, 0.95257718833171445, 3.6082928383946005]]]]))        arg0.setTaggedValue(1,numarray.array([[[[0.20978813219506431, -4.5207283592328267, 3.3551890905341111, -2.6275249211766938], [0.41610212360163779, -4.3258925235311203, 1.7165430907470434, 3.614877398908769], [1.5732055240367533, 4.1858711509592403, -3.5025803524608365, 2.9850603862314573]], [[-1.7468883308601777, 0.86604961479661746, 4.0113180229670551, 3.3018477533725008], [-0.55523406118933849, 0.57314768716086384, -3.783981741830714, -3.5269114097627718], [1.9907889724481995, 2.3534511734963832, -2.7246766900187436, 0.84505905012148297]]], [[[-0.28366982929819784, -1.140653718247957, -0.93352837895526708, 4.6020191368549686], [-1.9542834909894546, -2.0609489942386472, -3.2893642054921655, 3.2982049002646168], [-1.5119121013020962, 0.68361468468491182, 2.5185924461782703, 1.6119187107645851]], [[1.8710455196485585, 2.444239705967826, -4.4846682233538395, -2.8583259168360939], [-3.9190582704354302, -2.8712595828924803, 2.0497212087590047, 4.2996146845765946], [-0.44378925644792666, -4.4534489182955026, -1.5478161017916259, -0.20068444032513533]]], [[[-1.0644042786342602, -3.3798535020066742, -0.92105238070085083, 1.6697719717992063], [-0.18441158041714889, 4.8295850355922809, 3.9247022199900332, -4.9505698603360182], [3.4392322529498891, -0.01341887149590093, -3.0787590870675041, -2.5180039584879363]], [[-4.1431580460008348, -1.3891454137226997, 4.9517090654091795, 1.4932099907290697], [1.0525697676246484, -1.8972458537613388, -0.89087554384409717, 2.6141762518399316], [1.7585820666641849, 4.599003576107334, 0.95257718833171445, 3.6082928383946005]]]]))
4406        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4407        arg1=msk_arg1*(3.88278742871)+(1.-msk_arg1)*(-2.09080495891)        arg1=msk_arg1*(3.88278742871)+(1.-msk_arg1)*(-2.09080495891)
4408        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4409        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4410        ref=msk_ref*numarray.array([[[[16.137144638150652, -10.690736064900994, -18.902200651922264, 5.9065771372952378], [8.2957917383395916, -11.746393259090615, -9.7040020345051801, -11.341853704778046], [-6.958296814253341, -5.6230600500421302, -11.062887060984407, -17.389610180554797]], [[12.39884861265492, -18.078778413184182, -0.24690970636242873, -3.1974695299056952], [-6.9344625399811317, -7.0885616055090042, 1.0534396821055891, 13.88609825975673], [-6.4950759940250169, 18.710491055420185, 19.330955900652004, -17.599405308323217]]], [[[13.594116056829238, -19.038152096388099, 3.1704852337572671, -6.6336746455379725], [-16.284336644065981, -9.9863685886591611, 0.33518388722322312, 0.058201991735291558], [17.6870025260428, -6.7594529774210583, 5.7442364798631056, 18.692350262508356]], [[7.9361961839559578, -7.7951743331670738, -0.43020842133168996, -5.8441911294412581], [-12.952423440969291, -9.9322694322734009, -17.662599954859886, 15.795060407710103], [8.9007641520256158, 8.3025956308992086, 9.4152769612193445, 7.6755001903220688]]], [[[16.722205500686666, -17.233618598017841, -7.0739924325546699, 8.9817841487938601], [0.53471106861694118, 8.3136883931443535, 12.101727523858905, 4.2102058911348026], [17.833487810061293, -9.2833870174368389, -11.668906603784711, -9.2999565647263296]], [[-15.249940124764082, 14.445272208764116, 10.112574197493961, -9.4448067531622399], [8.5099305750288714, 15.166457292232906, 11.906639099443344, -11.903786642837604], [1.5424287555463971, -10.674856088752982, 5.1062046832116215, -1.0975322354402115]]]])+(1.-msk_ref)*numarray.array([[[[-0.43862606711371344, 9.4519612713648886, -7.0150459885663556, 5.4936421348534132], [-0.86998838343890195, 9.044597539906567, -3.5889568063150321, -7.5580035914867993], [-3.2892659110391969, -8.7518401597800253, 7.3232123699026195, -6.2411790581757751]], [[3.65240278482286, -1.8107408292780636, -8.3868836141808725, -6.9035196563140193], [1.1608861284898948, -1.1983400265032025, 7.9115677902410635, 7.3740838651650069], [-4.1623514557362009, -4.9206073840966242, 5.6967675349151587, -1.7668536525649907]]], [[[0.59309828578956336, 2.3848844505109055, 1.9518257640020245, -9.6219244323308377], [4.0860256140748943, 4.3090423772128386, 6.8774189925010356, -6.8959031609714785], [3.1611133188370655, -1.4293049727222786, -5.2658855759404695, -3.3702076338249207]], [[-3.9119912508258166, -5.1104284979999948, 9.3765665604501667, 5.9762020010992387], [8.1939864660800286, 6.0032437742268057, -4.2855672676544341, -8.9896557039110299], [0.92787677809189706, 9.3112930826205016, 3.2361815811052481, 0.41959202300768567]]], [[[2.2254617440525499, 7.0666144623817644, 1.9257408849843498, -3.4911675188851681], [0.38556864681643493, -10.097720341889412, -8.2057868637966251, 10.350676013416363], [-7.1907638493076647, 0.02805624306659333, 6.4370847665271205, 5.2646551629592624]], [[8.6625353881225866, 2.9044321196572218, -10.353057869032543, -3.1220108533089155], [-2.2007180897473897, 3.9667710393138926, 1.8626470048400592, -5.4657326708092731], [-3.6768521056300507, -9.6156194829657924, -1.9916531091076142, -7.5442365597115391]]]])        ref=msk_ref*numarray.array([[[[16.137144638150652, -10.690736064900994, -18.902200651922264, 5.9065771372952378], [8.2957917383395916, -11.746393259090615, -9.7040020345051801, -11.341853704778046], [-6.958296814253341, -5.6230600500421302, -11.062887060984407, -17.389610180554797]], [[12.39884861265492, -18.078778413184182, -0.24690970636242873, -3.1974695299056952], [-6.9344625399811317, -7.0885616055090042, 1.0534396821055891, 13.88609825975673], [-6.4950759940250169, 18.710491055420185, 19.330955900652004, -17.599405308323217]]], [[[13.594116056829238, -19.038152096388099, 3.1704852337572671, -6.6336746455379725], [-16.284336644065981, -9.9863685886591611, 0.33518388722322312, 0.058201991735291558], [17.6870025260428, -6.7594529774210583, 5.7442364798631056, 18.692350262508356]], [[7.9361961839559578, -7.7951743331670738, -0.43020842133168996, -5.8441911294412581], [-12.952423440969291, -9.9322694322734009, -17.662599954859886, 15.795060407710103], [8.9007641520256158, 8.3025956308992086, 9.4152769612193445, 7.6755001903220688]]], [[[16.722205500686666, -17.233618598017841, -7.0739924325546699, 8.9817841487938601], [0.53471106861694118, 8.3136883931443535, 12.101727523858905, 4.2102058911348026], [17.833487810061293, -9.2833870174368389, -11.668906603784711, -9.2999565647263296]], [[-15.249940124764082, 14.445272208764116, 10.112574197493961, -9.4448067531622399], [8.5099305750288714, 15.166457292232906, 11.906639099443344, -11.903786642837604], [1.5424287555463971, -10.674856088752982, 5.1062046832116215, -1.0975322354402115]]]])+(1.-msk_ref)*numarray.array([[[[-0.43862606711371344, 9.4519612713648886, -7.0150459885663556, 5.4936421348534132], [-0.86998838343890195, 9.044597539906567, -3.5889568063150321, -7.5580035914867993], [-3.2892659110391969, -8.7518401597800253, 7.3232123699026195, -6.2411790581757751]], [[3.65240278482286, -1.8107408292780636, -8.3868836141808725, -6.9035196563140193], [1.1608861284898948, -1.1983400265032025, 7.9115677902410635, 7.3740838651650069], [-4.1623514557362009, -4.9206073840966242, 5.6967675349151587, -1.7668536525649907]]], [[[0.59309828578956336, 2.3848844505109055, 1.9518257640020245, -9.6219244323308377], [4.0860256140748943, 4.3090423772128386, 6.8774189925010356, -6.8959031609714785], [3.1611133188370655, -1.4293049727222786, -5.2658855759404695, -3.3702076338249207]], [[-3.9119912508258166, -5.1104284979999948, 9.3765665604501667, 5.9762020010992387], [8.1939864660800286, 6.0032437742268057, -4.2855672676544341, -8.9896557039110299], [0.92787677809189706, 9.3112930826205016, 3.2361815811052481, 0.41959202300768567]]], [[[2.2254617440525499, 7.0666144623817644, 1.9257408849843498, -3.4911675188851681], [0.38556864681643493, -10.097720341889412, -8.2057868637966251, 10.350676013416363], [-7.1907638493076647, 0.02805624306659333, 6.4370847665271205, 5.2646551629592624]], [[8.6625353881225866, 2.9044321196572218, -10.353057869032543, -3.1220108533089155], [-2.2007180897473897, 3.9667710393138926, 1.8626470048400592, -5.4657326708092731], [-3.6768521056300507, -9.6156194829657924, -1.9916531091076142, -7.5442365597115391]]]])
4411        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4412        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 4395  class Test_util_binary_with_tagged_data( Line 4415  class Test_util_binary_with_tagged_data(
4415     def test_mult_taggedData_rank0_expandedData_rank4(self):     def test_mult_taggedData_rank0_expandedData_rank4(self):
4416        arg0=Data(-2.0445016831,self.functionspace)        arg0=Data(-2.0445016831,self.functionspace)
4417        arg0.setTaggedValue(1,-0.497296367836)        arg0.setTaggedValue(1,-0.497296367836)
4418        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4419        arg1=msk_arg1*numarray.array([[[[-4.2889962912764048, -3.265424281819389, 2.8940418566442316, 1.5494718257823177], [-2.4400688052404149, -2.6442039177453127, -1.4279092042497776, -3.6095746860863551], [-4.8869551355771232, -2.7595916401110698, -1.4476183602423101, -4.0932703764327965]], [[-4.905724977885864, 4.0346312174169192, 1.1937759414143825, -4.1015071493962116], [-2.6507956052522594, 0.51359172449181045, 3.3056182490327277, 4.9447799833786164], [-0.84121527220928893, -2.1600984705215378, -0.17037505526645802, 3.9403199668404483]]], [[[-0.9426919535461673, -1.9134672792903453, -2.8328741396264077, 4.6033967663236268], [3.4827581796126985, -1.8019039894127364, 4.9660658863911191, 2.6695467879295816], [-3.3154319108782948, 2.2746783851469798, -0.69190827321512138, -4.541699661076156]], [[0.46973152853975719, -0.65584700064942503, 0.66003604137991623, -0.77894416560985924], [-2.5567417891778845, 1.5454431197808169, 1.0406223894571607, 3.888403540502317], [-3.0195614598006815, -1.50821290766023, 4.2636476837275197, 2.3336822782085989]]], [[[3.1185197641743017, -4.1540351486173854, 3.0249255323137021, 0.20414046483347459], [-3.7203728553756479, -3.9799570428389872, 3.2884632369122002, -3.1913712862142161], [-0.1757488376004126, 1.3235866658015905, -1.635596715182718, -2.8837253549445019]], [[4.1343742901975737, -4.4902677121122023, -4.6315681229111938, 2.4900611174060234], [-3.6506784099856828, 0.27768932597901674, -1.3256575737781739, 0.71508173783463214], [2.8936149692986799, -0.57788228126464247, -0.046754807468362358, 2.6363310150730959]]]])+(1.-msk_arg1)*numarray.array([[[[-2.1054757829660931, 4.714273654842053, 2.7380506180819637, -3.5848458028868055], [3.5447510247444587, -0.82653492556493813, 2.8349372186068162, -4.6988903602841257], [-4.2112394063761638, -0.7294713916939557, 1.6618015339375303, 4.3341497489954151]], [[-2.2449316178133802, -2.0254416286618726, -1.0884321875598513, -1.3075112215709597], [4.8887156576276087, 0.13469109279283042, 4.4084580346936129, -0.99774019169856842], [-1.6710554698211122, 3.1354709050556249, 2.3661112471811325, 2.7748949696292371]]], [[[-0.30925685936083269, -0.36114051249383117, 0.089716806966091411, 0.52881421474776324], [-3.426689235653483, 2.3247691060747657, -4.018586181966298, -0.4588364252601842], [-1.0592996577286073, 1.1747474668327849, 4.8833492672672527, -4.1491585737551651]], [[-2.5891792223879451, -1.4287064943537739, -1.4989517390550966, 4.2014889756992186], [1.963991532143698, 2.5850174132071206, 3.4779018369291474, 3.9295926292189414], [1.0065677623047007, -1.4083585720253398, 4.1183491637048313, -4.5293576191733482]]], [[[-4.8262637170759533, -2.1634309321790166, -3.8950296204590149, 2.2895674370176096], [-4.4071496851968339, 4.2972865612608224, 4.2745442916848191, 3.4983158718683764], [-0.38421492688483383, -0.3990678410796642, 3.2760497450048121, 4.4776317967165085]], [[3.0002891196936474, -3.607311728661089, 3.1406684696344822, -4.2200001207042037], [4.6435414787356333, -1.1999114149640846, -1.3284098620620322, 4.1417773770733088], [-3.9758383542280384, -3.7241398702378192, 1.0933255811941134, 0.86494064820047623]]]])        arg1=msk_arg1*numarray.array([[[[-4.2889962912764048, -3.265424281819389, 2.8940418566442316, 1.5494718257823177], [-2.4400688052404149, -2.6442039177453127, -1.4279092042497776, -3.6095746860863551], [-4.8869551355771232, -2.7595916401110698, -1.4476183602423101, -4.0932703764327965]], [[-4.905724977885864, 4.0346312174169192, 1.1937759414143825, -4.1015071493962116], [-2.6507956052522594, 0.51359172449181045, 3.3056182490327277, 4.9447799833786164], [-0.84121527220928893, -2.1600984705215378, -0.17037505526645802, 3.9403199668404483]]], [[[-0.9426919535461673, -1.9134672792903453, -2.8328741396264077, 4.6033967663236268], [3.4827581796126985, -1.8019039894127364, 4.9660658863911191, 2.6695467879295816], [-3.3154319108782948, 2.2746783851469798, -0.69190827321512138, -4.541699661076156]], [[0.46973152853975719, -0.65584700064942503, 0.66003604137991623, -0.77894416560985924], [-2.5567417891778845, 1.5454431197808169, 1.0406223894571607, 3.888403540502317], [-3.0195614598006815, -1.50821290766023, 4.2636476837275197, 2.3336822782085989]]], [[[3.1185197641743017, -4.1540351486173854, 3.0249255323137021, 0.20414046483347459], [-3.7203728553756479, -3.9799570428389872, 3.2884632369122002, -3.1913712862142161], [-0.1757488376004126, 1.3235866658015905, -1.635596715182718, -2.8837253549445019]], [[4.1343742901975737, -4.4902677121122023, -4.6315681229111938, 2.4900611174060234], [-3.6506784099856828, 0.27768932597901674, -1.3256575737781739, 0.71508173783463214], [2.8936149692986799, -0.57788228126464247, -0.046754807468362358, 2.6363310150730959]]]])+(1.-msk_arg1)*numarray.array([[[[-2.1054757829660931, 4.714273654842053, 2.7380506180819637, -3.5848458028868055], [3.5447510247444587, -0.82653492556493813, 2.8349372186068162, -4.6988903602841257], [-4.2112394063761638, -0.7294713916939557, 1.6618015339375303, 4.3341497489954151]], [[-2.2449316178133802, -2.0254416286618726, -1.0884321875598513, -1.3075112215709597], [4.8887156576276087, 0.13469109279283042, 4.4084580346936129, -0.99774019169856842], [-1.6710554698211122, 3.1354709050556249, 2.3661112471811325, 2.7748949696292371]]], [[[-0.30925685936083269, -0.36114051249383117, 0.089716806966091411, 0.52881421474776324], [-3.426689235653483, 2.3247691060747657, -4.018586181966298, -0.4588364252601842], [-1.0592996577286073, 1.1747474668327849, 4.8833492672672527, -4.1491585737551651]], [[-2.5891792223879451, -1.4287064943537739, -1.4989517390550966, 4.2014889756992186], [1.963991532143698, 2.5850174132071206, 3.4779018369291474, 3.9295926292189414], [1.0065677623047007, -1.4083585720253398, 4.1183491637048313, -4.5293576191733482]]], [[[-4.8262637170759533, -2.1634309321790166, -3.8950296204590149, 2.2895674370176096], [-4.4071496851968339, 4.2972865612608224, 4.2745442916848191, 3.4983158718683764], [-0.38421492688483383, -0.3990678410796642, 3.2760497450048121, 4.4776317967165085]], [[3.0002891196936474, -3.607311728661089, 3.1406684696344822, -4.2200001207042037], [4.6435414787356333, -1.1999114149640846, -1.3284098620620322, 4.1417773770733088], [-3.9758383542280384, -3.7241398702378192, 1.0933255811941134, 0.86494064820047623]]]])
4420        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4421        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4422        ref=msk_ref*numarray.array([[[[8.7688601363454275, 6.6761654402314594, -5.9168734468852584, -3.1678977557356225], [4.9887247792058727, 5.4060793603029511, 2.9193627714096966, 7.3797815209965147], [9.9913879999457258, 5.6419897528893861, 2.9596581740090069, 8.368698174020416]], [[10.029762974137562, -8.2488103147165983, -2.4406769214718813, 8.3855382702074728], [5.4195560765054047, -1.0500391451522717, -6.7583420738497946, -10.109610998601166], [1.7198660398854659, 4.4163249586536768, 0.34833208725136949, -8.0559908041772719]]], [[[1.9273352856746166, 3.9120870730753285, 5.7918159464906305, -9.4116524367484633], [-7.1205049600656363, 3.683995739147834, -10.153130063136636, -5.4578929010493979], [6.7784061220104794, -4.6505837869554121, 1.4146076291425438, 9.2855126012273068]], [[-0.9603669007069866, 1.3408802966870719, -1.3494447975111561, 1.5925526576341251], [5.2272628912389036, -3.1596610595348196, -2.1275542267218426, -7.949847583148169], [6.1734984868012832, 3.0835438281919259, -8.7170348655473653, -4.7712173456296361]]], [[[-6.3758189066503599, 8.4929318530252971, -6.1844653420824507, -0.41736552394186227], [7.6063085645934194, 8.1370288727696423, -6.7232686226956906, 6.524763966077721], [0.35931879427777919, -2.7060751659665985, 3.3439802370719671, 5.8957813417964058]], [[-8.4527351948947036, 9.1803598950051359, 9.4692488227070921, -5.090934145570766], [7.4638181536905703, -0.56773629434437423, 2.7103091408102791, -1.4619858165605062], [-5.9160006749887817, 1.18148129668208, 0.095590282562313958, -5.3899831975386823]]]])+(1.-msk_ref)*numarray.array([[[[1.0470454594352911, -2.3443911655369902, -1.3616226273227485, 1.7827307970270476], [-1.762791809487676, 0.4110328163728833, -1.4098039818557164, 2.3367411090279848], [2.0942340608778887, 0.36276347352953586, -0.82640786689110723, -2.1553569278318969]], [[1.1163963395783574, 1.0072447651969918, 0.54127337350909643, 0.65022058139179806], [-2.4311405399202513, -0.066981391225710285, -2.1923101684097159, 0.49617257337550041], [0.83100981559419806, -1.5592582925390144, -1.1766585291186298, -1.379945189522473]]], [[[0.15379231288845127, 0.17959386514154432, -0.044615842238063537, -0.2629773882540074], [1.7040801105925367, -1.1560992325078783, 1.9984283121270057, 0.22817768771265559], [0.52678587223815054, -0.58419764838025967, -2.4284718534856569, 2.0633614883032432]], [[1.2875894229694658, 0.71049055034556152, 0.7454232553932667, -2.089385207117409], [-0.97668585539534369, -1.2855197703802159, -1.7295479511943481, -1.9541721415849407], [-0.50056249217474413, 0.70037160247862607, -2.0480400805900483, 2.2524330926443468]]], [[[2.4000834167196152, 1.0758663446362602, 1.9369840828671521, -1.1385935703439962], [2.1916595309571081, -2.1370249984646343, -2.1257153504081452, -1.7396997766225], [0.19106868760812823, 0.19845498788899427, -1.6291676390403165, -2.2267100290132404]], [[-1.4920328816809434, 1.7939030203146678, -1.5618430225256723, 2.0985907322928701], [-2.3092163112701454, 0.59671158838636373, 0.66061339940071473, -2.0596908460030745], [1.9771699726598984, 1.8520012307817832, -0.54370684038980588, -0.43013184274364585]]]])        ref=msk_ref*numarray.array([[[[8.7688601363454275, 6.6761654402314594, -5.9168734468852584, -3.1678977557356225], [4.9887247792058727, 5.4060793603029511, 2.9193627714096966, 7.3797815209965147], [9.9913879999457258, 5.6419897528893861, 2.9596581740090069, 8.368698174020416]], [[10.029762974137562, -8.2488103147165983, -2.4406769214718813, 8.3855382702074728], [5.4195560765054047, -1.0500391451522717, -6.7583420738497946, -10.109610998601166], [1.7198660398854659, 4.4163249586536768, 0.34833208725136949, -8.0559908041772719]]], [[[1.9273352856746166, 3.9120870730753285, 5.7918159464906305, -9.4116524367484633], [-7.1205049600656363, 3.683995739147834, -10.153130063136636, -5.4578929010493979], [6.7784061220104794, -4.6505837869554121, 1.4146076291425438, 9.2855126012273068]], [[-0.9603669007069866, 1.3408802966870719, -1.3494447975111561, 1.5925526576341251], [5.2272628912389036, -3.1596610595348196, -2.1275542267218426, -7.949847583148169], [6.1734984868012832, 3.0835438281919259, -8.7170348655473653, -4.7712173456296361]]], [[[-6.3758189066503599, 8.4929318530252971, -6.1844653420824507, -0.41736552394186227], [7.6063085645934194, 8.1370288727696423, -6.7232686226956906, 6.524763966077721], [0.35931879427777919, -2.7060751659665985, 3.3439802370719671, 5.8957813417964058]], [[-8.4527351948947036, 9.1803598950051359, 9.4692488227070921, -5.090934145570766], [7.4638181536905703, -0.56773629434437423, 2.7103091408102791, -1.4619858165605062], [-5.9160006749887817, 1.18148129668208, 0.095590282562313958, -5.3899831975386823]]]])+(1.-msk_ref)*numarray.array([[[[1.0470454594352911, -2.3443911655369902, -1.3616226273227485, 1.7827307970270476], [-1.762791809487676, 0.4110328163728833, -1.4098039818557164, 2.3367411090279848], [2.0942340608778887, 0.36276347352953586, -0.82640786689110723, -2.1553569278318969]], [[1.1163963395783574, 1.0072447651969918, 0.54127337350909643, 0.65022058139179806], [-2.4311405399202513, -0.066981391225710285, -2.1923101684097159, 0.49617257337550041], [0.83100981559419806, -1.5592582925390144, -1.1766585291186298, -1.379945189522473]]], [[[0.15379231288845127, 0.17959386514154432, -0.044615842238063537, -0.2629773882540074], [1.7040801105925367, -1.1560992325078783, 1.9984283121270057, 0.22817768771265559], [0.52678587223815054, -0.58419764838025967, -2.4284718534856569, 2.0633614883032432]], [[1.2875894229694658, 0.71049055034556152, 0.7454232553932667, -2.089385207117409], [-0.97668585539534369, -1.2855197703802159, -1.7295479511943481, -1.9541721415849407], [-0.50056249217474413, 0.70037160247862607, -2.0480400805900483, 2.2524330926443468]]], [[[2.4000834167196152, 1.0758663446362602, 1.9369840828671521, -1.1385935703439962], [2.1916595309571081, -2.1370249984646343, -2.1257153504081452, -1.7396997766225], [0.19106868760812823, 0.19845498788899427, -1.6291676390403165, -2.2267100290132404]], [[-1.4920328816809434, 1.7939030203146678, -1.5618430225256723, 2.0985907322928701], [-2.3092163112701454, 0.59671158838636373, 0.66061339940071473, -2.0596908460030745], [1.9771699726598984, 1.8520012307817832, -0.54370684038980588, -0.43013184274364585]]]])
4423        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4424        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
# Line 4407  class Test_util_binary_with_tagged_data( Line 4427  class Test_util_binary_with_tagged_data(
4427     def test_mult_taggedData_rank1_expandedData_rank1(self):     def test_mult_taggedData_rank1_expandedData_rank1(self):
4428        arg0=Data(numarray.array([3.4338998803206859, 1.574548183028714]),self.functionspace)        arg0=Data(numarray.array([3.4338998803206859, 1.574548183028714]),self.functionspace)
4429        arg0.setTaggedValue(1,numarray.array([-3.3073743902620469, -4.5654431931880453]))        arg0.setTaggedValue(1,numarray.array([-3.3073743902620469, -4.5654431931880453]))
4430        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4431        arg1=msk_arg1*numarray.array([2.7654308230912594, -0.30989117819783729])+(1.-msk_arg1)*numarray.array([0.13089435420407014, -3.3040694924526202])        arg1=msk_arg1*numarray.array([2.7654308230912594, -0.30989117819783729])+(1.-msk_arg1)*numarray.array([0.13089435420407014, -3.3040694924526202])
4432        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4433        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4434        ref=msk_ref*numarray.array([9.4962125724482114, -0.48793859156803215])+(1.-msk_ref)*numarray.array([-0.43291663492443089, 15.084541574138095])        ref=msk_ref*numarray.array([9.4962125724482114, -0.48793859156803215])+(1.-msk_ref)*numarray.array([-0.43291663492443089, 15.084541574138095])
4435        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4436        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
# Line 4419  class Test_util_binary_with_tagged_data( Line 4439  class Test_util_binary_with_tagged_data(
4439     def test_mult_taggedData_rank2_expandedData_rank1(self):     def test_mult_taggedData_rank2_expandedData_rank1(self):
4440        arg0=Data(numarray.array([[-4.9390719683617856, 2.1126658232737849], [3.8064605235288322, -0.95207953283280222]]),self.functionspace)        arg0=Data(numarray.array([[-4.9390719683617856, 2.1126658232737849], [3.8064605235288322, -0.95207953283280222]]),self.functionspace)
4441        arg0.setTaggedValue(1,numarray.array([[-2.5866955524137838, 1.9152265557920725], [-1.2887715436198666, 0.25186424266721108]]))        arg0.setTaggedValue(1,numarray.array([[-2.5866955524137838, 1.9152265557920725], [-1.2887715436198666, 0.25186424266721108]]))
4442        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4443        arg1=msk_arg1*numarray.array([4.4146509361450565, 1.8764439695775188])+(1.-msk_arg1)*numarray.array([-0.53708131386951585, -4.9087901963196279])        arg1=msk_arg1*numarray.array([4.4146509361450565, 1.8764439695775188])+(1.-msk_arg1)*numarray.array([-0.53708131386951585, -4.9087901963196279])
4444        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4445        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4446        ref=msk_ref*numarray.array([[-21.804278688816165, 9.3266821544772807], [7.1426098948105627, -1.786523897942293]])+(1.-msk_ref)*numarray.array([[1.389265845870828, -1.028632394942594], [6.3263091186169147, -1.2363487252082734]])        ref=msk_ref*numarray.array([[-21.804278688816165, 9.3266821544772807], [7.1426098948105627, -1.786523897942293]])+(1.-msk_ref)*numarray.array([[1.389265845870828, -1.028632394942594], [6.3263091186169147, -1.2363487252082734]])
4447        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4448        self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")
# Line 4431  class Test_util_binary_with_tagged_data( Line 4451  class Test_util_binary_with_tagged_data(
4451     def test_mult_taggedData_rank1_expandedData_rank2(self):     def test_mult_taggedData_rank1_expandedData_rank2(self):
4452        arg0=Data(numarray.array([-4.7581429655867087, 3.8797902653872285]),self.functionspace)        arg0=Data(numarray.array([-4.7581429655867087, 3.8797902653872285]),self.functionspace)
4453        arg0.setTaggedValue(1,numarray.array([-3.6876368427243209, 4.1502344447251041]))        arg0.setTaggedValue(1,numarray.array([-3.6876368427243209, 4.1502344447251041]))
4454        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4455        arg1=msk_arg1*numarray.array([[2.8489193285849348, -3.4171847922198051], [2.3944743020101704, -4.6022455692490682]])+(1.-msk_arg1)*numarray.array([[-2.844708573713064, -2.1921608137940876], [0.39744212703913018, -4.5450380921272391]])        arg1=msk_arg1*numarray.array([[2.8489193285849348, -3.4171847922198051], [2.3944743020101704, -4.6022455692490682]])+(1.-msk_arg1)*numarray.array([[-2.844708573713064, -2.1921608137940876], [0.39744212703913018, -4.5450380921272391]])
4456        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4457        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4458        ref=msk_ref*numarray.array([[-13.555565462830417, 16.259453781210546], [9.290058087658938, -17.855747558494038]])+(1.-msk_ref)*numarray.array([[10.490252143238049, 8.0838929821236079], [1.6494780054226088, -18.86297364253414]])        ref=msk_ref*numarray.array([[-13.555565462830417, 16.259453781210546], [9.290058087658938, -17.855747558494038]])+(1.-msk_ref)*numarray.array([[10.490252143238049, 8.0838929821236079], [1.6494780054226088, -18.86297364253414]])
4459        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4460        self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2, 2),"wrong shape of result.")
# Line 4443  class Test_util_binary_with_tagged_data( Line 4463  class Test_util_binary_with_tagged_data(
4463     def test_mult_taggedData_rank3_expandedData_rank1(self):     def test_mult_taggedData_rank3_expandedData_rank1(self):
4464        arg0=Data(numarray.array([[[0.63409119829621297, 0.35202921269604914, 3.922274527278196, 3.5373528814209827, 3.8777593726222737], [0.90043244844966708, -4.0253657057154246, -3.7799788336861164, -1.7665950120388176, -4.2171545869505955], [-1.9196438526831305, -4.8525701071455014, -3.1661518304361538, -0.47578054079791965, 2.0714738876351548], [1.0894551855617607, 2.263021927601077, -2.4112244736192645, 2.7502929844235799, 1.4565010278633306]], [[0.75133326190100824, 4.5275856291428838, -3.3352623980250593, 4.1050105056235378, -4.4448808632303578], [0.11086561085650981, 4.6259891835884286, -2.2547009639533067, 2.1908543874385309, -1.854545077367705], [-1.7555388420731322, 3.5651217288674317, -0.17180540199588812, 2.3820822775789967, -3.9458296322099295], [-3.0233272847647328, -3.9615808509406945, 3.4990809971819061, -1.5584956217523516, 2.7766788014760113]]]),self.functionspace)        arg0=Data(numarray.array([[[0.63409119829621297, 0.35202921269604914, 3.922274527278196, 3.5373528814209827, 3.8777593726222737], [0.90043244844966708, -4.0253657057154246, -3.7799788336861164, -1.7665950120388176, -4.2171545869505955], [-1.9196438526831305, -4.8525701071455014, -3.1661518304361538, -0.47578054079791965, 2.0714738876351548], [1.0894551855617607, 2.263021927601077, -2.4112244736192645, 2.7502929844235799, 1.4565010278633306]], [[0.75133326190100824, 4.5275856291428838, -3.3352623980250593, 4.1050105056235378, -4.4448808632303578], [0.11086561085650981, 4.6259891835884286, -2.2547009639533067, 2.1908543874385309, -1.854545077367705], [-1.7555388420731322, 3.5651217288674317, -0.17180540199588812, 2.3820822775789967, -3.9458296322099295], [-3.0233272847647328, -3.9615808509406945, 3.4990809971819061, -1.5584956217523516, 2.7766788014760113]]]),self.functionspace)
4465        arg0.setTaggedValue(1,numarray.array([[[3.1594057194846119, -1.2949800922959875, -3.7487319823493594, -1.5198634147702506, 2.840072965454624], [1.4748667914338709, -1.7835865248790874, -3.5726073431639369, 0.45072764953152689, 1.720331157462951], [3.4298239688244898, 4.5056273681866124, -0.63042522982753191, -4.2869856795398951, 0.57649854502979814], [-1.7668393400494073, 0.94948151273471115, -1.2368113810224566, -0.61396349015687779, 4.0078789177240264]], [[3.5041468851236761, 0.451333910143771, 3.9363292471534592, 3.959528293417252, -2.9380939002595152], [-1.1956236164300424, -0.09021568505698685, -1.7789615460026864, 0.69641371145617281, -4.8501582040624029], [0.81773476049193938, 4.8086090945356386, 2.7863918565531716, -0.94338634125254472, 2.5888454106277354], [1.2848126359187892, -2.7090783922462314, 1.7916819618542181, -0.092231430438747708, -3.9896609880906766]]]))        arg0.setTaggedValue(1,numarray.array([[[3.1594057194846119, -1.2949800922959875, -3.7487319823493594, -1.5198634147702506, 2.840072965454624], [1.4748667914338709, -1.7835865248790874, -3.5726073431639369, 0.45072764953152689, 1.720331157462951], [3.4298239688244898, 4.5056273681866124, -0.63042522982753191, -4.2869856795398951, 0.57649854502979814], [-1.7668393400494073, 0.94948151273471115, -1.2368113810224566, -0.61396349015687779, 4.0078789177240264]], [[3.5041468851236761, 0.451333910143771, 3.9363292471534592, 3.959528293417252, -2.9380939002595152], [-1.1956236164300424, -0.09021568505698685, -1.7789615460026864, 0.69641371145617281, -4.8501582040624029], [0.81773476049193938, 4.8086090945356386, 2.7863918565531716, -0.94338634125254472, 2.5888454106277354], [1.2848126359187892, -2.7090783922462314, 1.7916819618542181, -0.092231430438747708, -3.9896609880906766]]]))
4466        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4467        arg1=msk_arg1*numarray.array([0.46205998410448057, -3.8941687889880097])+(1.-msk_arg1)*numarray.array([-3.9705237966917695, 4.33330322235091])        arg1=msk_arg1*numarray.array([0.46205998410448057, -3.8941687889880097])+(1.-msk_arg1)*numarray.array([-3.9705237966917695, 4.33330322235091])
4468        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4469        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4470        ref=msk_ref*numarray.array([[[0.2929881690055392, 0.16265861242264928, 1.8123261057275724, 1.6344692161613179, 1.7917574340748483], [0.41605380281781168, -1.8599604139975903, -1.7465769598082799, -0.81627286318171077, -1.9485783814125295], [-0.88699060805703112, -2.2421784665735278, -1.4629520644437013, -0.21983914911830793, 0.95714519159354616], [0.5033936457232111, 1.0456518758954447, -1.1141303419528519, 1.2708003326654238, 0.67299084178269009]], [[-2.9258185386234605, -17.631182646478859, 12.988074733474491, -15.985603789467069, 17.309116328361743], [-0.43172940156951073, -18.014382696926184, 8.7801861223281463, -8.5315567767805724, 7.2219115580566706], [6.836364566657342, -13.883185765498526, 0.66903923423192579, -9.2762304581496018, 15.365726600415945], [11.773346751226686, 15.427064504785813, -13.626012009366821, 6.0690450080024698, -10.812855925752517]]])+(1.-msk_ref)*numarray.array([[[-12.544495592617732, 5.141749272703322, 14.884429543337642, 6.0346538560664928, -11.276577293678546], [-5.8559936923386209, 7.0817727404911937, 14.185122472268169, -1.7896248582918755, -6.8306157988969423], [-13.618197686681446, -17.889700684410652, 2.5031183770650935, 17.021578656689989, -2.2890011917989952], [7.0152776445973535, -3.7699389408320698, 4.9107890203688749, 2.4377566479678161, -15.9133786170825]], [[15.184530988897329, 1.955766687182239, 17.057308210924216, 17.157836712854579, -12.731651765564111], [-5.1809996697951517, -0.39093191876403593, -7.7087797997317979, 3.0177717799423904, -21.017206174575314], [3.5434926726680707, 20.837161284377174, 12.074280810734193, -4.0879790724714873, 11.218252160041532], [5.5674827353440559, -11.739258126721817, 7.7639012187308838, -0.39966675472225927, -17.288410815781045]]])        ref=msk_ref*numarray.array([[[0.2929881690055392, 0.16265861242264928, 1.8123261057275724, 1.6344692161613179, 1.7917574340748483], [0.41605380281781168, -1.8599604139975903, -1.7465769598082799, -0.81627286318171077, -1.9485783814125295], [-0.88699060805703112, -2.2421784665735278, -1.4629520644437013, -0.21983914911830793, 0.95714519159354616], [0.5033936457232111, 1.0456518758954447, -1.1141303419528519, 1.2708003326654238, 0.67299084178269009]], [[-2.9258185386234605, -17.631182646478859, 12.988074733474491, -15.985603789467069, 17.309116328361743], [-0.43172940156951073, -18.014382696926184, 8.7801861223281463, -8.5315567767805724, 7.2219115580566706], [6.836364566657342, -13.883185765498526, 0.66903923423192579, -9.2762304581496018, 15.365726600415945], [11.773346751226686, 15.427064504785813, -13.626012009366821, 6.0690450080024698, -10.812855925752517]]])+(1.-msk_ref)*numarray.array([[[-12.544495592617732, 5.141749272703322, 14.884429543337642, 6.0346538560664928, -11.276577293678546], [-5.8559936923386209, 7.0817727404911937, 14.185122472268169, -1.7896248582918755, -6.8306157988969423], [-13.618197686681446, -17.889700684410652, 2.5031183770650935, 17.021578656689989, -2.2890011917989952], [7.0152776445973535, -3.7699389408320698, 4.9107890203688749, 2.4377566479678161, -15.9133786170825]], [[15.184530988897329, 1.955766687182239, 17.057308210924216, 17.157836712854579, -12.731651765564111], [-5.1809996697951517, -0.39093191876403593, -7.7087797997317979, 3.0177717799423904, -21.017206174575314], [3.5434926726680707, 20.837161284377174, 12.074280810734193, -4.0879790724714873, 11.218252160041532], [5.5674827353440559, -11.739258126721817, 7.7639012187308838, -0.39966675472225927, -17.288410815781045]]])
4471        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4472        self.failUnlessEqual(res.getShape(),(2, 4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2, 4, 5),"wrong shape of result.")
# Line 4455  class Test_util_binary_with_tagged_data( Line 4475  class Test_util_binary_with_tagged_data(
4475     def test_mult_taggedData_rank1_expandedData_rank3(self):     def test_mult_taggedData_rank1_expandedData_rank3(self):
4476        arg0=Data(numarray.array([-0.83158212451430735, 2.409336294824536]),self.functionspace)        arg0=Data(numarray.array([-0.83158212451430735, 2.409336294824536]),self.functionspace)
4477        arg0.setTaggedValue(1,numarray.array([3.6307790336974062, 3.3139938519885153]))        arg0.setTaggedValue(1,numarray.array([3.6307790336974062, 3.3139938519885153]))
4478        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4479        arg1=msk_arg1*numarray.array([[[2.3803279599318214, -1.9461718093603251, -0.60150957970544905, -0.94915258495445887, -1.4494487277581003], [0.83392557095529085, 1.3497509421441549, 4.0075947335187383, -1.3521391612366571, 3.757053028329306], [-0.79546517682155837, -1.5232719526345671, -4.0667663049559373, -1.0851765554292001, 3.6741780658772409], [2.6097468760252696, -4.2792824024849256, 0.10119803907949887, -0.69689177451658235, -2.4319410270715602]], [[-1.748695506725527, 1.2553253078933349, 1.0287102780080479, 1.4055186097007422, -1.6688167905982407], [4.3590537602176429, -1.3775549784589849, -1.3375812147130706, -4.4744853857637867, -1.704605601380027], [-1.1169442737543154, -2.9962081277181518, -1.5992199754259726, -3.0896378626102381, 1.7997617876144858], [3.8412274924633287, -2.6915074920030646, -2.3063097666004073, 0.31779653965659271, 0.34194386783046227]]])+(1.-msk_arg1)*numarray.array([[[-3.2865699240132242, 0.42380886630545511, 1.8420083909827518, 0.32189350114021309, 4.1088360448817376], [2.8122191900979745, 4.1599809366857361, 2.1457547104396077, 3.2285537292902351, -1.5233166133430331], [1.3934133813113503, 2.9101660806108569, -3.4201304648136519, 3.9638402963923074, -3.6412159249108935], [-2.3640645648218985, 2.0114654130368876, 2.8836034495645722, -0.62768132565117085, 1.1881982473336734]], [[-0.54176086858649164, -2.7978450322673245, 3.2381356596569102, -2.6058685363369918, 2.8656934433931927], [-0.90701796222822217, -4.667325533666312, -4.1367272631203615, 2.8586820137327713, 0.10813177021057818], [0.24216063104505459, 1.4539657899703871, 0.99526124488510259, 1.3364817090745449, -2.1497798924685085], [3.9896678860655097, 2.4606940785015619, -2.8340030920640391, 3.0181346672884786, 3.0959362656301543]]])        arg1=msk_arg1*numarray.array([[[2.3803279599318214, -1.9461718093603251, -0.60150957970544905, -0.94915258495445887, -1.4494487277581003], [0.83392557095529085, 1.3497509421441549, 4.0075947335187383, -1.3521391612366571, 3.757053028329306], [-0.79546517682155837, -1.5232719526345671, -4.0667663049559373, -1.0851765554292001, 3.6741780658772409], [2.6097468760252696, -4.2792824024849256, 0.10119803907949887, -0.69689177451658235, -2.4319410270715602]], [[-1.748695506725527, 1.2553253078933349, 1.0287102780080479, 1.4055186097007422, -1.6688167905982407], [4.3590537602176429, -1.3775549784589849, -1.3375812147130706, -4.4744853857637867, -1.704605601380027], [-1.1169442737543154, -2.9962081277181518, -1.5992199754259726, -3.0896378626102381, 1.7997617876144858], [3.8412274924633287, -2.6915074920030646, -2.3063097666004073, 0.31779653965659271, 0.34194386783046227]]])+(1.-msk_arg1)*numarray.array([[[-3.2865699240132242, 0.42380886630545511, 1.8420083909827518, 0.32189350114021309, 4.1088360448817376], [2.8122191900979745, 4.1599809366857361, 2.1457547104396077, 3.2285537292902351, -1.5233166133430331], [1.3934133813113503, 2.9101660806108569, -3.4201304648136519, 3.9638402963923074, -3.6412159249108935], [-2.3640645648218985, 2.0114654130368876, 2.8836034495645722, -0.62768132565117085, 1.1881982473336734]], [[-0.54176086858649164, -2.7978450322673245, 3.2381356596569102, -2.6058685363369918, 2.8656934433931927], [-0.90701796222822217, -4.667325533666312, -4.1367272631203615, 2.8586820137327713, 0.10813177021057818], [0.24216063104505459, 1.4539657899703871, 0.99526124488510259, 1.3364817090745449, -2.1497798924685085], [3.9896678860655097, 2.4606940785015619, -2.8340030920640391, 3.0181346672884786, 3.0959362656301543]]])
4480        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4481        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4482        ref=msk_ref*numarray.array([[[-1.979438181960911, 1.6184016878977128, 0.50020461420716544, 0.78929832308467551, 1.2053356524036409], [-0.69347759798180753, -1.1224287560334243, -3.332644142691862, 1.124414756340173, -3.1242981392109965], [0.66149462171842066, 1.2667257265849106, 3.3818501637784579, 0.90241342543693226, -3.0553808018660646], [-2.1702188516096705, 3.5585747516551036, -0.084154480334411572, 0.57952274240904522, 2.0223586859856746]], [[-4.2131955529503955, 3.0245008261191972, 2.4785090096638287, 3.3863669994033194, -4.0207408630009391], [10.502426435583738, -3.3189932077174644, -3.2226829678836917, -10.780540040582657, -4.1069681437661041], [-2.6910943780527044, -7.2188729889596122, -3.8530587302021986, -7.4439766402509502, 4.336231396937869], [9.2548088142697402, -6.484746688275143, -5.5566758277786663, 0.76567873736427383, 0.82385777155661677]]])+(1.-msk_ref)*numarray.array([[[-11.932809172887692, 1.5387563460769136, 6.6879254458748694, 1.1687241750233377, 14.918275764656787], [10.210546473569226, 15.103971565499467, 7.7907612141215763, 11.722165189472557, -5.5308260214088234], [5.05917609013866, 10.566169990059255, -12.417737984155172, 14.391828241066102, -13.22045043733158], [-8.5833960562623322, 7.3031864486618252, 10.469726946176564, -2.2789721970176648, 4.3140852842951061]], [[-1.7953921877435912, -9.2720412357505229, 10.731161668007775, -8.6358323085111017, 9.4968904530888381], [-3.0058519504674797, -15.467488123799173, -13.709088717334156, 9.4736546183005519, 0.35834802168249097], [0.80251884247697003, 4.8184336889634878, 3.298289646671666, 4.4290921671681449, -7.1243573467691688], [13.221734845897116, 8.1547250477787205, -9.391868823616667, 10.00207973186742, 10.259913750446614]]])        ref=msk_ref*numarray.array([[[-1.979438181960911, 1.6184016878977128, 0.50020461420716544, 0.78929832308467551, 1.2053356524036409], [-0.69347759798180753, -1.1224287560334243, -3.332644142691862, 1.124414756340173, -3.1242981392109965], [0.66149462171842066, 1.2667257265849106, 3.3818501637784579, 0.90241342543693226, -3.0553808018660646], [-2.1702188516096705, 3.5585747516551036, -0.084154480334411572, 0.57952274240904522, 2.0223586859856746]], [[-4.2131955529503955, 3.0245008261191972, 2.4785090096638287, 3.3863669994033194, -4.0207408630009391], [10.502426435583738, -3.3189932077174644, -3.2226829678836917, -10.780540040582657, -4.1069681437661041], [-2.6910943780527044, -7.2188729889596122, -3.8530587302021986, -7.4439766402509502, 4.336231396937869], [9.2548088142697402, -6.484746688275143, -5.5566758277786663, 0.76567873736427383, 0.82385777155661677]]])+(1.-msk_ref)*numarray.array([[[-11.932809172887692, 1.5387563460769136, 6.6879254458748694, 1.1687241750233377, 14.918275764656787], [10.210546473569226, 15.103971565499467, 7.7907612141215763, 11.722165189472557, -5.5308260214088234], [5.05917609013866, 10.566169990059255, -12.417737984155172, 14.391828241066102, -13.22045043733158], [-8.5833960562623322, 7.3031864486618252, 10.469726946176564, -2.2789721970176648, 4.3140852842951061]], [[-1.7953921877435912, -9.2720412357505229, 10.731161668007775, -8.6358323085111017, 9.4968904530888381], [-3.0058519504674797, -15.467488123799173, -13.709088717334156, 9.4736546183005519, 0.35834802168249097], [0.80251884247697003, 4.8184336889634878, 3.298289646671666, 4.4290921671681449, -7.1243573467691688], [13.221734845897116, 8.1547250477787205, -9.391868823616667, 10.00207973186742, 10.259913750446614]]])
4483        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4484        self.failUnlessEqual(res.getShape(),(2, 4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2, 4, 5),"wrong shape of result.")
# Line 4467  class Test_util_binary_with_tagged_data( Line 4487  class Test_util_binary_with_tagged_data(
4487     def test_mult_taggedData_rank4_expandedData_rank1(self):     def test_mult_taggedData_rank4_expandedData_rank1(self):
4488        arg0=Data(numarray.array([[[[3.720759068292919, -4.9144939424696936], [2.6530474567775109, 4.6097028883061881]], [[-0.90326527701088377, -0.92550140680515192], [4.8346812608881802, 1.5867156820470729]], [[3.0512226099052633, 1.736867158724662], [-0.82929577054881332, 4.45129616999305]], [[2.8443615583210535, 1.167914796506957], [-4.9667862551023987, -4.4575572323093784]], [[0.076510750499813263, -3.5136330871083468], [0.010764446206086298, 1.2051131060381675]], [[-3.5976555102451044, -3.3347166950925744], [1.3897548012986318, 4.4639274374112201]]], [[[1.6341298960004922, 2.3041020299933299], [-1.8225266758206384, -4.3180727509286188]], [[-2.9867241079254137, -3.0897363872834638], [-2.4834700910484617, 2.9203228841019699]], [[-0.33774536936153332, -3.8456260493110337], [2.0556000903779061, 3.8318691976146866]], [[4.0204305979123731, 2.1522499399893018], [-0.82659881546535896, 4.8329393258540776]], [[-4.5954376157402681, 0.62740483071916398], [-0.019320556806738942, -2.6770014810812102]], [[4.4899316901822868, -1.572155305851517], [1.8475244050988078, -0.14488655442845477]]]]),self.functionspace)        arg0=Data(numarray.array([[[[3.720759068292919, -4.9144939424696936], [2.6530474567775109, 4.6097028883061881]], [[-0.90326527701088377, -0.92550140680515192], [4.8346812608881802, 1.5867156820470729]], [[3.0512226099052633, 1.736867158724662], [-0.82929577054881332, 4.45129616999305]], [[2.8443615583210535, 1.167914796506957], [-4.9667862551023987, -4.4575572323093784]], [[0.076510750499813263, -3.5136330871083468], [0.010764446206086298, 1.2051131060381675]], [[-3.5976555102451044, -3.3347166950925744], [1.3897548012986318, 4.4639274374112201]]], [[[1.6341298960004922, 2.3041020299933299], [-1.8225266758206384, -4.3180727509286188]], [[-2.9867241079254137, -3.0897363872834638], [-2.4834700910484617, 2.9203228841019699]], [[-0.33774536936153332, -3.8456260493110337], [2.0556000903779061, 3.8318691976146866]], [[4.0204305979123731, 2.1522499399893018], [-0.82659881546535896, 4.8329393258540776]], [[-4.5954376157402681, 0.62740483071916398], [-0.019320556806738942, -2.6770014810812102]], [[4.4899316901822868, -1.572155305851517], [1.8475244050988078, -0.14488655442845477]]]]),self.functionspace)
4489        arg0.setTaggedValue(1,numarray.array([[[[3.1549470213098925, 2.108415980449303], [3.3617839875370521, -2.3229433077722375]], [[-4.0763302599922921, -4.3861174636698754], [4.6705127503288306, -3.3975175627589858]], [[-2.6785950224230071, -3.9722410073612857], [0.20365534180771494, -3.1078098427543424]], [[1.8390904908458285, 2.7659495179810545], [2.9151057179926987, 0.15468091977496989]], [[-2.2333707298992742, -4.425086991977782], [-0.76441513431487884, -2.0056861013825991]], [[-4.905373638224173, -4.3035952409996128], [-4.2092005655464737, 2.505967386218777]]], [[[-2.8272501411738271, 3.8861242779370659], [2.5009898200909966, 0.83999161384934684]], [[-0.4117525783568059, 2.8972100205900695], [1.2467885487643038, 3.3703556593376085]], [[1.2652386568986564, -0.6827089539472011], [2.9943373681292842, -2.0377298833221436]], [[0.87887399373448272, 1.3103333788703173], [2.2903872482892975, -0.94786618250658172]], [[-0.90787898340481199, -4.9458169100887952], [4.5766899537209653, 1.2507144372466499]], [[-2.6400382125675845, 2.4945545815596564], [-1.8081223720135373, 2.6415716173621995]]]]))        arg0.setTaggedValue(1,numarray.array([[[[3.1549470213098925, 2.108415980449303], [3.3617839875370521, -2.3229433077722375]], [[-4.0763302599922921, -4.3861174636698754], [4.6705127503288306, -3.3975175627589858]], [[-2.6785950224230071, -3.9722410073612857], [0.20365534180771494, -3.1078098427543424]], [[1.8390904908458285, 2.7659495179810545], [2.9151057179926987, 0.15468091977496989]], [[-2.2333707298992742, -4.425086991977782], [-0.76441513431487884, -2.0056861013825991]], [[-4.905373638224173, -4.3035952409996128], [-4.2092005655464737, 2.505967386218777]]], [[[-2.8272501411738271, 3.8861242779370659], [2.5009898200909966, 0.83999161384934684]], [[-0.4117525783568059, 2.8972100205900695], [1.2467885487643038, 3.3703556593376085]], [[1.2652386568986564, -0.6827089539472011], [2.9943373681292842, -2.0377298833221436]], [[0.87887399373448272, 1.3103333788703173], [2.2903872482892975, -0.94786618250658172]], [[-0.90787898340481199, -4.9458169100887952], [4.5766899537209653, 1.2507144372466499]], [[-2.6400382125675845, 2.4945545815596564], [-1.8081223720135373, 2.6415716173621995]]]]))
4490        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4491        arg1=msk_arg1*numarray.array([0.40958271263585644, 2.8861159321616885])+(1.-msk_arg1)*numarray.array([2.4265938810991887, -1.4548683812037435])        arg1=msk_arg1*numarray.array([0.40958271263585644, 2.8861159321616885])+(1.-msk_arg1)*numarray.array([2.4265938810991887, -1.4548683812037435])
4492        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4493        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4494        ref=msk_ref*numarray.array([[[[1.5239585922558756, -2.0128917601892216], [1.0866423740985929, 1.8880546134377909]], [[-0.36996184238789609, -0.37906937674755542], [1.9802018655643236, 0.64989131323469318]], [[1.2497280334208554, 0.71139076235857968], [-0.33966521127882576, 1.8231739600513517]], [[1.1650013227742888, 0.47835771048087372], [-2.0343097874473273, -1.8257383829388556]], [[0.031337480735518723, -1.4391233710249351], [0.0044089310771115789, 0.49359349500413513]], [[-1.473537503015526, -1.3658423098480947], [0.56921954141459929, 1.8283475088245147]]], [[[4.7162883280687433, 6.6499055780898377], [-5.2600232758756249, -12.462458562688337]], [[-8.620032032854942, -8.9173374135185011], [-7.1675825968220046, 8.4283904028630676]], [[-0.97477229152815548, -11.098922610052586], [5.9327001709926819, 11.059218741195373]], [[11.603428802785244, 6.2116428417971621], [-2.3856600108205521, 13.948423187518223]], [[-13.262965718043111, 1.8107630778537862], [-0.055761366818164217, -7.7261366249689178]], [[12.958463385352756, -4.5374224760505957], [5.3321696206132145, -0.41815939309197497]]]])+(1.-msk_ref)*numarray.array([[[[7.6557751371026965, 5.1162693169700253], [8.1576844537346425, -5.6368400167804209]], [[-9.891598066236762, -10.643325799123613], [11.333437661543684, -8.2443953287179834]], [[-6.4998622913544128, -9.6390157227141735], [0.49418880628376488, -7.5413923480475189]], [[4.4627257318741913, 6.7118361757620777], [7.0737776980383398, 0.37534777344873643]], [[-5.4194837473996076, -10.7378890180649], [-1.8549250875480996, -4.8669856210207021]], [[-11.903349655020044, -10.443077878537249], [-10.214020336674318, 6.0809651256326118]]], [[[4.1132768361476213, -5.6537993373988655], [-3.6386110109628298, -1.2220772394657193]], [[0.59904580713043376, -4.2150592526631385], [-1.8139132376440872, -4.9034238821813823]], [[-1.8407557165985469, 0.99325167066246556], [-4.3563667595481297, 2.9646287766793802]], [[-1.2786459845465559, -1.9063626017542901], [-3.3322119882483467, 1.3790205385411227]], [[1.3208444269150592, 7.1955126417109865], [-6.6584815042414567, -1.8196248886651845]], [[3.8409081206342264, -3.629248585898079], [2.6305800683896079, -3.8431390227854978]]]])        ref=msk_ref*numarray.array([[[[1.5239585922558756, -2.0128917601892216], [1.0866423740985929, 1.8880546134377909]], [[-0.36996184238789609, -0.37906937674755542], [1.9802018655643236, 0.64989131323469318]], [[1.2497280334208554, 0.71139076235857968], [-0.33966521127882576, 1.8231739600513517]], [[1.1650013227742888, 0.47835771048087372], [-2.0343097874473273, -1.8257383829388556]], [[0.031337480735518723, -1.4391233710249351], [0.0044089310771115789, 0.49359349500413513]], [[-1.473537503015526, -1.3658423098480947], [0.56921954141459929, 1.8283475088245147]]], [[[4.7162883280687433, 6.6499055780898377], [-5.2600232758756249, -12.462458562688337]], [[-8.620032032854942, -8.9173374135185011], [-7.1675825968220046, 8.4283904028630676]], [[-0.97477229152815548, -11.098922610052586], [5.9327001709926819, 11.059218741195373]], [[11.603428802785244, 6.2116428417971621], [-2.3856600108205521, 13.948423187518223]], [[-13.262965718043111, 1.8107630778537862], [-0.055761366818164217, -7.7261366249689178]], [[12.958463385352756, -4.5374224760505957], [5.3321696206132145, -0.41815939309197497]]]])+(1.-msk_ref)*numarray.array([[[[7.6557751371026965, 5.1162693169700253], [8.1576844537346425, -5.6368400167804209]], [[-9.891598066236762, -10.643325799123613], [11.333437661543684, -8.2443953287179834]], [[-6.4998622913544128, -9.6390157227141735], [0.49418880628376488, -7.5413923480475189]], [[4.4627257318741913, 6.7118361757620777], [7.0737776980383398, 0.37534777344873643]], [[-5.4194837473996076, -10.7378890180649], [-1.8549250875480996, -4.8669856210207021]], [[-11.903349655020044, -10.443077878537249], [-10.214020336674318, 6.0809651256326118]]], [[[4.1132768361476213, -5.6537993373988655], [-3.6386110109628298, -1.2220772394657193]], [[0.59904580713043376, -4.2150592526631385], [-1.8139132376440872, -4.9034238821813823]], [[-1.8407557165985469, 0.99325167066246556], [-4.3563667595481297, 2.9646287766793802]], [[-1.2786459845465559, -1.9063626017542901], [-3.3322119882483467, 1.3790205385411227]], [[1.3208444269150592, 7.1955126417109865], [-6.6584815042414567, -1.8196248886651845]], [[3.8409081206342264, -3.629248585898079], [2.6305800683896079, -3.8431390227854978]]]])
4495        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4496        self.failUnlessEqual(res.getShape(),(2, 6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2, 6, 2, 2),"wrong shape of result.")
# Line 4479  class Test_util_binary_with_tagged_data( Line 4499  class Test_util_binary_with_tagged_data(
4499     def test_mult_taggedData_rank1_expandedData_rank4(self):     def test_mult_taggedData_rank1_expandedData_rank4(self):
4500        arg0=Data(numarray.array([-3.6771509974862884, -3.8409327790619594]),self.functionspace)        arg0=Data(numarray.array([-3.6771509974862884, -3.8409327790619594]),self.functionspace)
4501        arg0.setTaggedValue(1,numarray.array([-2.2533641958492878, -1.735294570035931]))        arg0.setTaggedValue(1,numarray.array([-2.2533641958492878, -1.735294570035931]))
4502        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4503        arg1=msk_arg1*numarray.array([[[[1.9256168561337059, 4.842409341239339], [4.1432424539228201, 0.36318730946844013]], [[4.7773684123049343, -4.6264950922152082], [-1.5199148033061483, -0.3602583782012756]], [[1.3247727455362224, 0.98073588569236225], [-2.7778325733525389, 2.0983705059447804]], [[0.028352203130117104, 2.4817578520178696], [-1.7381972964256756, 4.2767735709641901]], [[-1.1264571311704596, -4.4728693889395954], [-2.9561747833539953, -1.1855385844097723]], [[-3.1451952649854551, 3.9872696250230391], [0.56412838831848511, -3.6384872003203226]]], [[[0.30138028270316397, -3.3595787616243378], [-4.818227932770677, -0.026798887410844685]], [[2.0364728517928752, -2.3184067730244595], [-3.7883329858456127, 0.15848528791595129]], [[-2.508939354707854, 3.2848702139692776], [-1.1045078739833194, -1.2380587658138795]], [[-2.4371072686630422, -0.59226008269686048], [-1.0905257018047143, -3.9812850252573084]], [[0.97350485006393761, -0.78897775505707735], [3.0258368034836209, -4.8014632813341382]], [[-2.9308852160940391, -1.0703778858334854], [3.063260113307205, -2.9209561129826609]]]])+(1.-msk_arg1)*numarray.array([[[[-3.0602441827007079, 2.5131269967920487], [3.0484893069170518, 3.2127094123871345]], [[-0.18782347462768811, 0.52879139922265761], [-3.4159433266502348, 4.2081803537171716]], [[-2.8097630747374955, 1.2422845930128377], [-0.27422389881144404, 2.5886088286815188]], [[2.2372174736559796, 2.7266917983346222], [-1.9506359915291318, -3.2918644759971185]], [[4.3199655851959378, -0.042911436199680963], [-3.6933609879039651, -1.593760622523801]], [[-0.49019123884239235, -4.2185925014414956], [-0.47696244089891238, 4.4365576000685518]]], [[[2.5255900034042709, -3.6531362312453384], [2.8424749505057436, -2.1130381467605117]], [[-1.559796417093593, 0.78803985364387863], [3.1949902730891004, 0.89594830863765118]], [[2.2204119133988591, 1.2070824486054406], [1.7259486823578847, 3.1915781940503152]], [[0.020761431872850622, -2.230792151259485], [3.4618575263604452, 4.1311627905321835]], [[3.3054455429251579, -1.4363062854135311], [-1.6729625958348091, 0.013819650739320899]], [[-1.2237624158893725, -0.92314273529638857], [3.408706185255582, 3.3741730356500845]]]])        arg1=msk_arg1*numarray.array([[[[1.9256168561337059, 4.842409341239339], [4.1432424539228201, 0.36318730946844013]], [[4.7773684123049343, -4.6264950922152082], [-1.5199148033061483, -0.3602583782012756]], [[1.3247727455362224, 0.98073588569236225], [-2.7778325733525389, 2.0983705059447804]], [[0.028352203130117104, 2.4817578520178696], [-1.7381972964256756, 4.2767735709641901]], [[-1.1264571311704596, -4.4728693889395954], [-2.9561747833539953, -1.1855385844097723]], [[-3.1451952649854551, 3.9872696250230391], [0.56412838831848511, -3.6384872003203226]]], [[[0.30138028270316397, -3.3595787616243378], [-4.818227932770677, -0.026798887410844685]], [[2.0364728517928752, -2.3184067730244595], [-3.7883329858456127, 0.15848528791595129]], [[-2.508939354707854, 3.2848702139692776], [-1.1045078739833194, -1.2380587658138795]], [[-2.4371072686630422, -0.59226008269686048], [-1.0905257018047143, -3.9812850252573084]], [[0.97350485006393761, -0.78897775505707735], [3.0258368034836209, -4.8014632813341382]], [[-2.9308852160940391, -1.0703778858334854], [3.063260113307205, -2.9209561129826609]]]])+(1.-msk_arg1)*numarray.array([[[[-3.0602441827007079, 2.5131269967920487], [3.0484893069170518, 3.2127094123871345]], [[-0.18782347462768811, 0.52879139922265761], [-3.4159433266502348, 4.2081803537171716]], [[-2.8097630747374955, 1.2422845930128377], [-0.27422389881144404, 2.5886088286815188]], [[2.2372174736559796, 2.7266917983346222], [-1.9506359915291318, -3.2918644759971185]], [[4.3199655851959378, -0.042911436199680963], [-3.6933609879039651, -1.593760622523801]], [[-0.49019123884239235, -4.2185925014414956], [-0.47696244089891238, 4.4365576000685518]]], [[[2.5255900034042709, -3.6531362312453384], [2.8424749505057436, -2.1130381467605117]], [[-1.559796417093593, 0.78803985364387863], [3.1949902730891004, 0.89594830863765118]], [[2.2204119133988591, 1.2070824486054406], [1.7259486823578847, 3.1915781940503152]], [[0.020761431872850622, -2.230792151259485], [3.4618575263604452, 4.1311627905321835]], [[3.3054455429251579, -1.4363062854135311], [-1.6729625958348091, 0.013819650739320899]], [[-1.2237624158893725, -0.92314273529638857], [3.408706185255582, 3.3741730356500845]]]])
4504        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4505        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4506        ref=msk_ref*numarray.array([[[[-7.0807839433084672, -17.806270339375157], [-15.235328122269834, -1.3354945772862359]], [[-17.567105022666574, 17.012321043204569], [5.5889562350713788, 1.3247244547556132]], [[-4.8713894226911689, -3.6063139403442683], [10.214509817953191, -7.716025199030657]], [[-0.10425533202084397, -9.1257983610669378], [6.3916139223796424, -15.726342202493967]], [[4.1421529635089982, 16.447416135165117], [10.870301053353955, 4.3594043882208764]], [[11.565357905930417, -14.661792478900248], [-2.0743852658156499, 13.379266837998967]]], [[[-1.1575814067975425, 12.903916189363304], [18.506489603970834, 0.10293272509870423]], [[-7.8219553301210416, 8.9048445697089065], [14.55073234333608, -0.6087313373554496]], [[9.6366674081759562, -12.61696567979887], [4.2423404979145678, 4.7553004960195242]], [[9.3607651942980397, 2.2748311653603182], [4.1886359144712753, 15.291848156299316]], [[-3.739166689186376, 3.0304105213494461], [-11.622035762592301, 18.442097704738686]], [[11.25733309816369, 4.1112495076808733], [-11.765776179994695, 11.219196080556511]]]])+(1.-msk_ref)*numarray.array([[[[6.8958446718538413, -5.6629903941934501], [-6.8693566556362953, -7.2394043615411734]], [[0.42323469286603954, -1.1915596060813836], [7.6973643873239475, -9.4825629387426655]], [[6.3314195114328786, -2.7993196229503328], [0.61792631522790609, -5.8330784516102971]], [[-5.0412657534647813, -6.1442296714831439], [4.3954933024467202, 7.4177695478000842]], [[-9.7344557769816422, 0.09669509392483211], [8.32248741248935, 3.5913231235496053]], [[1.1045793867264537, 9.5060252996265504], [1.0747700870864911, -9.9971800488175191]]], [[[-4.3826426190444598, 6.3392674656815613], [-4.932531347075769, 3.6667436223523029]], [[2.706706252944012, -1.3674812790001323], [-5.5442492722091323, -1.5547342350117925]], [[-3.8530687365641323, -2.0946436186506969], [-2.9950293766563072, -5.5383283099805949]], [[-0.036027199995128593, 3.8710815069593578], [-6.0073425677313006, -7.1687843583449826]], [[-5.7359217021874969, 2.4924144979865788], [2.9030829084253602, -0.023981164887736595]], [[2.1235882753068807, 1.6019245759279399], [-5.9151093341219037, -5.8551841471252457]]]])        ref=msk_ref*numarray.array([[[[-7.0807839433084672, -17.806270339375157], [-15.235328122269834, -1.3354945772862359]], [[-17.567105022666574, 17.012321043204569], [5.5889562350713788, 1.3247244547556132]], [[-4.8713894226911689, -3.6063139403442683], [10.214509817953191, -7.716025199030657]], [[-0.10425533202084397, -9.1257983610669378], [6.3916139223796424, -15.726342202493967]], [[4.1421529635089982, 16.447416135165117], [10.870301053353955, 4.3594043882208764]], [[11.565357905930417, -14.661792478900248], [-2.0743852658156499, 13.379266837998967]]], [[[-1.1575814067975425, 12.903916189363304], [18.506489603970834, 0.10293272509870423]], [[-7.8219553301210416, 8.9048445697089065], [14.55073234333608, -0.6087313373554496]], [[9.6366674081759562, -12.61696567979887], [4.2423404979145678, 4.7553004960195242]], [[9.3607651942980397, 2.2748311653603182], [4.1886359144712753, 15.291848156299316]], [[-3.739166689186376, 3.0304105213494461], [-11.622035762592301, 18.442097704738686]], [[11.25733309816369, 4.1112495076808733], [-11.765776179994695, 11.219196080556511]]]])+(1.-msk_ref)*numarray.array([[[[6.8958446718538413, -5.6629903941934501], [-6.8693566556362953, -7.2394043615411734]], [[0.42323469286603954, -1.1915596060813836], [7.6973643873239475, -9.4825629387426655]], [[6.3314195114328786, -2.7993196229503328], [0.61792631522790609, -5.8330784516102971]], [[-5.0412657534647813, -6.1442296714831439], [4.3954933024467202, 7.4177695478000842]], [[-9.7344557769816422, 0.09669509392483211], [8.32248741248935, 3.5913231235496053]], [[1.1045793867264537, 9.5060252996265504], [1.0747700870864911, -9.9971800488175191]]], [[[-4.3826426190444598, 6.3392674656815613], [-4.932531347075769, 3.6667436223523029]], [[2.706706252944012, -1.3674812790001323], [-5.5442492722091323, -1.5547342350117925]], [[-3.8530687365641323, -2.0946436186506969], [-2.9950293766563072, -5.5383283099805949]], [[-0.036027199995128593, 3.8710815069593578], [-6.0073425677313006, -7.1687843583449826]], [[-5.7359217021874969, 2.4924144979865788], [2.9030829084253602, -0.023981164887736595]], [[2.1235882753068807, 1.6019245759279399], [-5.9151093341219037, -5.8551841471252457]]]])
4507        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4508        self.failUnlessEqual(res.getShape(),(2, 6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2, 6, 2, 2),"wrong shape of result.")
# Line 4491  class Test_util_binary_with_tagged_data( Line 4511  class Test_util_binary_with_tagged_data(
4511     def test_mult_taggedData_rank2_expandedData_rank2(self):     def test_mult_taggedData_rank2_expandedData_rank2(self):
4512        arg0=Data(numarray.array([[2.1751379768020884, -4.1749146142125957, 2.4448509020395601, 3.6057585348814065, -2.794275857113818], [1.7691634543414372, 3.8152507093440278, 0.069936806028620069, 3.398290813545346, 4.3937873163084813], [4.5208443128950258, 0.93804925210948653, 0.3931926517458928, 3.8344303902422467, 3.3779293251990143], [-2.1031189450549315, -4.5480139810791247, -2.1144445010176671, -0.56695388582463657, -1.3063960438057052]]),self.functionspace)        arg0=Data(numarray.array([[2.1751379768020884, -4.1749146142125957, 2.4448509020395601, 3.6057585348814065, -2.794275857113818], [1.7691634543414372, 3.8152507093440278, 0.069936806028620069, 3.398290813545346, 4.3937873163084813], [4.5208443128950258, 0.93804925210948653, 0.3931926517458928, 3.8344303902422467, 3.3779293251990143], [-2.1031189450549315, -4.5480139810791247, -2.1144445010176671, -0.56695388582463657, -1.3063960438057052]]),self.functionspace)
4513        arg0.setTaggedValue(1,numarray.array([[4.4907791349282906, 0.91473985679860892, 3.5370910190440394, 3.4069955285915992, -0.2939399241406413], [1.7951607853348062, -2.862552145312919, 2.8807729686776344, -4.4793064012094197, -1.8622256117154903], [1.2121345886670687, -1.6505350134089678, -2.4730096429990067, -4.9097306815947217, 4.7051132242619502], [-0.073628401654396214, -1.7848919180727774, 2.8570088074667801, -3.296198815083252, -2.176104206944399]]))        arg0.setTaggedValue(1,numarray.array([[4.4907791349282906, 0.91473985679860892, 3.5370910190440394, 3.4069955285915992, -0.2939399241406413], [1.7951607853348062, -2.862552145312919, 2.8807729686776344, -4.4793064012094197, -1.8622256117154903], [1.2121345886670687, -1.6505350134089678, -2.4730096429990067, -4.9097306815947217, 4.7051132242619502], [-0.073628401654396214, -1.7848919180727774, 2.8570088074667801, -3.296198815083252, -2.176104206944399]]))
4514        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4515        arg1=msk_arg1*numarray.array([[-0.65439738048729268, 1.0414187124236438, -0.21535888536702608, 2.0533621996426081, -3.0719470504452762], [-2.044496284749532, 3.3234983914830849, 0.023975824302388205, -3.5225732752812453, -0.32317177213849035], [2.4609651405165875, -4.8155842427981996, 4.0327574263167758, -4.7886521937621893, -2.0271574679248472], [-1.4788223639493889, -2.6314447758901558, -0.56690595122444343, -2.8539827931838513, -1.2031054929366514]])+(1.-msk_arg1)*numarray.array([[-3.4751088071732363, -4.5021994886896142, 0.010195593098552891, -4.3354826817035175, -2.9808629651748628], [1.8126091267808597, -0.69236892479451306, -3.0549991604670801, -0.46693487919925936, -4.8379434068743699], [-2.5984901655680748, -4.0195819423015253, -0.82291799950174394, -0.012557122870361148, 2.7672761769679308], [2.0245435355673971, -1.2473381934407812, 0.70961028899666356, -2.7389178010847215, 2.1296370944799179]])        arg1=msk_arg1*numarray.array([[-0.65439738048729268, 1.0414187124236438, -0.21535888536702608, 2.0533621996426081, -3.0719470504452762], [-2.044496284749532, 3.3234983914830849, 0.023975824302388205, -3.5225732752812453, -0.32317177213849035], [2.4609651405165875, -4.8155842427981996, 4.0327574263167758, -4.7886521937621893, -2.0271574679248472], [-1.4788223639493889, -2.6314447758901558, -0.56690595122444343, -2.8539827931838513, -1.2031054929366514]])+(1.-msk_arg1)*numarray.array([[-3.4751088071732363, -4.5021994886896142, 0.010195593098552891, -4.3354826817035175, -2.9808629651748628], [1.8126091267808597, -0.69236892479451306, -3.0549991604670801, -0.46693487919925936, -4.8379434068743699], [-2.5984901655680748, -4.0195819423015253, -0.82291799950174394, -0.012557122870361148, 2.7672761769679308], [2.0245435355673971, -1.2473381934407812, 0.70961028899666356, -2.7389178010847215, 2.1296370944799179]])
4516        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4517        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4518        ref=msk_ref*numarray.array([[-1.4234045942177163, -4.3478342020119349, -0.52652036515180789, 7.4039282765641925, 8.5838674773912391], [-3.6170481095157165, 12.679979595609575, 0.001676792573612399, -11.970728401428596, -1.4199480334110335], [11.125640259737322, -4.5172551974270796, 1.585650586301435, -18.361753500061944, -6.8475946576995215], [3.1101393299928786, 11.967847631186052, 1.1986911711607142, 1.6180766346722346, 1.5717322562533542]])+(1.-msk_ref)*numarray.array([[-15.605946122859111, -4.1183413155627075, 0.036062740782718823, -14.770970110850199, 0.87619463385714624], [3.2539248235369653, 1.9819421510185324, -8.8007590008064316, 2.0915443933451896, 9.0093421203115458], [-3.1497198079962816, 6.634460735035093, 2.0350841481652644, 0.061652091429166909, 13.020347735436864], [-0.14906390460356769, 2.2263638605759488, 2.0273628455325148, 9.0280176105458843, -4.6343122405625961]])        ref=msk_ref*numarray.array([[-1.4234045942177163, -4.3478342020119349, -0.52652036515180789, 7.4039282765641925, 8.5838674773912391], [-3.6170481095157165, 12.679979595609575, 0.001676792573612399, -11.970728401428596, -1.4199480334110335], [11.125640259737322, -4.5172551974270796, 1.585650586301435, -18.361753500061944, -6.8475946576995215], [3.1101393299928786, 11.967847631186052, 1.1986911711607142, 1.6180766346722346, 1.5717322562533542]])+(1.-msk_ref)*numarray.array([[-15.605946122859111, -4.1183413155627075, 0.036062740782718823, -14.770970110850199, 0.87619463385714624], [3.2539248235369653, 1.9819421510185324, -8.8007590008064316, 2.0915443933451896, 9.0093421203115458], [-3.1497198079962816, 6.634460735035093, 2.0350841481652644, 0.061652091429166909, 13.020347735436864], [-0.14906390460356769, 2.2263638605759488, 2.0273628455325148, 9.0280176105458843, -4.6343122405625961]])
4519        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4520        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
# Line 4503  class Test_util_binary_with_tagged_data( Line 4523  class Test_util_binary_with_tagged_data(
4523     def test_mult_taggedData_rank3_expandedData_rank2(self):     def test_mult_taggedData_rank3_expandedData_rank2(self):
4524        arg0=Data(numarray.array([[[4.7383036096107904, -2.6198161912193099], [1.499561012325473, -4.2292876671152904], [4.9409559360461088, 2.8389183304060666], [-2.8947888559776578, -3.214996670536685], [-4.8998013781500083, 2.9118409140898658]], [[2.3364088211273764, 3.4786068727548205], [-2.6606829359296089, -0.45639709364181691], [0.2711698390521855, 1.4496951848985553], [2.0786213991817091, -1.0943364285438384], [-0.68799041583289622, -2.589032327484313]], [[4.2243091738128484, -4.7474611164237137], [-3.5367172021833957, -3.0885381576646109], [-3.6583434939173332, -3.5088616287707119], [1.8079411723902306, 0.56491768272748111], [-2.9834682349112871, 3.7766295273024291]], [[2.4936525374276357, 3.4948594727013109], [1.9217524121193534, 4.0943337388787686], [3.0621871427549223, 1.7536425381393537], [1.0206230366885727, -3.1697285621027249], [-4.9136947203961174, 4.5317176829971988]]]),self.functionspace)        arg0=Data(numarray.array([[[4.7383036096107904, -2.6198161912193099], [1.499561012325473, -4.2292876671152904], [4.9409559360461088, 2.8389183304060666], [-2.8947888559776578, -3.214996670536685], [-4.8998013781500083, 2.9118409140898658]], [[2.3364088211273764, 3.4786068727548205], [-2.6606829359296089, -0.45639709364181691], [0.2711698390521855, 1.4496951848985553], [2.0786213991817091, -1.0943364285438384], [-0.68799041583289622, -2.589032327484313]], [[4.2243091738128484, -4.7474611164237137], [-3.5367172021833957, -3.0885381576646109], [-3.6583434939173332, -3.5088616287707119], [1.8079411723902306, 0.56491768272748111], [-2.9834682349112871, 3.7766295273024291]], [[2.4936525374276357, 3.4948594727013109], [1.9217524121193534, 4.0943337388787686], [3.0621871427549223, 1.7536425381393537], [1.0206230366885727, -3.1697285621027249], [-4.9136947203961174, 4.5317176829971988]]]),self.functionspace)
4525        arg0.setTaggedValue(1,numarray.array([[[-0.89246743696984954, -0.872852599247258], [4.3308311819230134, -3.3390263857978884], [0.8188056457853774, 0.87881618909646075], [1.0932919402998378, -4.738538184830464], [2.3161177470007566, -3.6051516523890346]], [[3.5009893379075265, -2.3347001709546622], [2.4202817196021709, 0.8597561827987068], [-1.5159133368424138, 0.26050058153664768], [-1.180030665245122, -4.9886126533759185], [-2.4325439323392297, -3.2895672844390744]], [[2.153466673543198, -2.3438182092641782], [3.3415258164407202, -2.6126456744606918], [-3.7673691187377143, 3.4858982563086283], [-1.7754381812363782, 1.6824335680954929], [-1.0952441167907443, -1.0837451079914882]], [[3.4939380355866962, 3.5674904936104195], [-1.2503751965917367, 0.36382400390474601], [-3.1150020167593273, 1.9168983638265988], [3.3814357334602612, 3.1599237711979349], [1.7081710482712333, 1.712480901511543]]]))        arg0.setTaggedValue(1,numarray.array([[[-0.89246743696984954, -0.872852599247258], [4.3308311819230134, -3.3390263857978884], [0.8188056457853774, 0.87881618909646075], [1.0932919402998378, -4.738538184830464], [2.3161177470007566, -3.6051516523890346]], [[3.5009893379075265, -2.3347001709546622], [2.4202817196021709, 0.8597561827987068], [-1.5159133368424138, 0.26050058153664768], [-1.180030665245122, -4.9886126533759185], [-2.4325439323392297, -3.2895672844390744]], [[2.153466673543198, -2.3438182092641782], [3.3415258164407202, -2.6126456744606918], [-3.7673691187377143, 3.4858982563086283], [-1.7754381812363782, 1.6824335680954929], [-1.0952441167907443, -1.0837451079914882]], [[3.4939380355866962, 3.5674904936104195], [-1.2503751965917367, 0.36382400390474601], [-3.1150020167593273, 1.9168983638265988], [3.3814357334602612, 3.1599237711979349], [1.7081710482712333, 1.712480901511543]]]))
4526        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4527        arg1=msk_arg1*numarray.array([[2.7324139692157479, 1.4992942972415779, -2.0343752477994914, 4.5984205193442342, -3.9645671692619597], [4.0206801968404431, -1.020380987765229, 4.7496701446638081, -0.14516672181369117, -3.2087112926413996], [-3.2398426512427259, -3.0490207575765016, -0.77934308821368958, 2.1721644685964048, 4.5012502220869059], [-1.5339789302645954, 0.41973993782685781, 1.1134800211837277, 0.71070737758543867, -1.5984639852336446]])+(1.-msk_arg1)*numarray.array([[-0.92806493258389278, -4.3675439209682674, 3.994480082413908, -1.0547776033920586, 1.8604325317547481], [-2.312790306895991, -3.4186918616574049, -2.5434723500842695, -1.3853187650112107, 1.2866166470171549], [4.0210910127779602, 2.6808299952802663, 3.5819866265529203, -2.7547572215652769, -1.1726668475795146], [2.2749634211894545, 2.6640580557780726, -4.8918594358622798, 2.871263340788957, 4.1374541498067465]])        arg1=msk_arg1*numarray.array([[2.7324139692157479, 1.4992942972415779, -2.0343752477994914, 4.5984205193442342, -3.9645671692619597], [4.0206801968404431, -1.020380987765229, 4.7496701446638081, -0.14516672181369117, -3.2087112926413996], [-3.2398426512427259, -3.0490207575765016, -0.77934308821368958, 2.1721644685964048, 4.5012502220869059], [-1.5339789302645954, 0.41973993782685781, 1.1134800211837277, 0.71070737758543867, -1.5984639852336446]])+(1.-msk_arg1)*numarray.array([[-0.92806493258389278, -4.3675439209682674, 3.994480082413908, -1.0547776033920586, 1.8604325317547481], [-2.312790306895991, -3.4186918616574049, -2.5434723500842695, -1.3853187650112107, 1.2866166470171549], [4.0210910127779602, 2.6808299952802663, 3.5819866265529203, -2.7547572215652769, -1.1726668475795146], [2.2749634211894545, 2.6640580557780726, -4.8918594358622798, 2.871263340788957, 4.1374541498067465]])
4528        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4529        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4530        ref=msk_ref*numarray.array([[[12.947006973285925, -7.1584223576652368], [2.2482832741453893, -6.3409468807000922], [-10.051758456760171, -5.7754251819023601], [-13.311456474496683, -14.783906659419287], [19.425591679718028, -11.544188890114416]], [[9.3939526788301677, 13.98636576587837], [2.7149102822939439, 0.46569891722341683], [1.2879672886794555, 6.885573938575547], [-0.30174665441099668, 0.15886123189301171], [2.2075626165120665, 8.3074572662125608]], [[-13.686097033354788, 15.381027010105957], [10.783524163135063, 9.4170169532864847], [2.8511047162959935, 2.7346070578806834], [3.927145575978586, 1.2270941181024513], [-13.429337054983661, 16.999554498510026]], [[-3.8252104518148387, -5.361040795359445], [0.80663623798159145, 1.7185553889993805], [3.4096842045832894, 1.9526459305160935], [0.72536432190822242, -2.2527494740296907], [7.8543640449858971, -7.2437875075174807]]])+(1.-msk_ref)*numarray.array([[[0.82826773172474299, 0.81006388867608203], [-18.915095401347674, 14.583344393244213], [3.2707028434577476, 3.5104137634487071], [-1.1531798525973165, 4.9981039501772324], [4.3089808038947206, -6.7071414160139451]], [[-8.0970542052587398, 5.3996719248923561], [-8.2741974177221316, -2.9392414651435752], [3.8556836573826612, -0.6625760263193361], [1.6347186238527298, 6.9108187200940261], [-3.1297515179482249, -4.2324120296423295]], [[8.6592854873014034, -9.4247063368575201], [8.9580626387176636, -7.0040588911334645], [-13.494665800606954, 12.486440935621651], [4.890901151203634, -4.6346960215148956], [1.2843564657670117, 1.270871959368099]], [[7.9485812268622729, 8.1159103784048163], [-3.3310721152253073, 0.9692482684878716], [15.238152008414147, -9.3771973486741125], [9.7089924607182656, 9.0729732839282224], [7.0674793922495551, 7.0853112124237319]]])        ref=msk_ref*numarray.array([[[12.947006973285925, -7.1584223576652368], [2.2482832741453893, -6.3409468807000922], [-10.051758456760171, -5.7754251819023601], [-13.311456474496683, -14.783906659419287], [19.425591679718028, -11.544188890114416]], [[9.3939526788301677, 13.98636576587837], [2.7149102822939439, 0.46569891722341683], [1.2879672886794555, 6.885573938575547], [-0.30174665441099668, 0.15886123189301171], [2.2075626165120665, 8.3074572662125608]], [[-13.686097033354788, 15.381027010105957], [10.783524163135063, 9.4170169532864847], [2.8511047162959935, 2.7346070578806834], [3.927145575978586, 1.2270941181024513], [-13.429337054983661, 16.999554498510026]], [[-3.8252104518148387, -5.361040795359445], [0.80663623798159145, 1.7185553889993805], [3.4096842045832894, 1.9526459305160935], [0.72536432190822242, -2.2527494740296907], [7.8543640449858971, -7.2437875075174807]]])+(1.-msk_ref)*numarray.array([[[0.82826773172474299, 0.81006388867608203], [-18.915095401347674, 14.583344393244213], [3.2707028434577476, 3.5104137634487071], [-1.1531798525973165, 4.9981039501772324], [4.3089808038947206, -6.7071414160139451]], [[-8.0970542052587398, 5.3996719248923561], [-8.2741974177221316, -2.9392414651435752], [3.8556836573826612, -0.6625760263193361], [1.6347186238527298, 6.9108187200940261], [-3.1297515179482249, -4.2324120296423295]], [[8.6592854873014034, -9.4247063368575201], [8.9580626387176636, -7.0040588911334645], [-13.494665800606954, 12.486440935621651], [4.890901151203634, -4.6346960215148956], [1.2843564657670117, 1.270871959368099]], [[7.9485812268622729, 8.1159103784048163], [-3.3310721152253073, 0.9692482684878716], [15.238152008414147, -9.3771973486741125], [9.7089924607182656, 9.0729732839282224], [7.0674793922495551, 7.0853112124237319]]])
4531        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4532        self.failUnlessEqual(res.getShape(),(4, 5, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5, 2),"wrong shape of result.")
# Line 4515  class Test_util_binary_with_tagged_data( Line 4535  class Test_util_binary_with_tagged_data(
4535     def test_mult_taggedData_rank2_expandedData_rank3(self):     def test_mult_taggedData_rank2_expandedData_rank3(self):
4536        arg0=Data(numarray.array([[0.68847758965993489, -4.3261589132856813, 4.8465381152523221, -2.366658190585107, 1.8061456497888306], [-0.58045524646014712, -3.9350876704809155, -1.5079584903974128, 2.3065264591869372, -1.7421869619209271], [-0.07244340004514882, 3.355158999055929, 1.3051950851923602, -1.928291602091333, 0.21781483064364338], [-4.487063756381505, 1.0762773586220531, 1.0244288915164477, -1.05724507221997, -3.2070439128594641]]),self.functionspace)        arg0=Data(numarray.array([[0.68847758965993489, -4.3261589132856813, 4.8465381152523221, -2.366658190585107, 1.8061456497888306], [-0.58045524646014712, -3.9350876704809155, -1.5079584903974128, 2.3065264591869372, -1.7421869619209271], [-0.07244340004514882, 3.355158999055929, 1.3051950851923602, -1.928291602091333, 0.21781483064364338], [-4.487063756381505, 1.0762773586220531, 1.0244288915164477, -1.05724507221997, -3.2070439128594641]]),self.functionspace)
4537        arg0.setTaggedValue(1,numarray.array([[2.3997811408692202, 3.8988775318511841, 4.9282596391361384, 3.0800253340703581, 0.41221663431310773], [-0.98815180214586906, -3.6987380133980183, 1.4996827554147885, -0.15834277556539078, 2.9825851179626337], [3.44699437365189, -4.2705322199336804, 4.9263766584281665, 2.785935072804425, 3.0187250470742875], [2.1156177557107494, -2.5073096562613415, -4.5210886214863866, -4.9862872064575257, 3.2310706075234883]]))        arg0.setTaggedValue(1,numarray.array([[2.3997811408692202, 3.8988775318511841, 4.9282596391361384, 3.0800253340703581, 0.41221663431310773], [-0.98815180214586906, -3.6987380133980183, 1.4996827554147885, -0.15834277556539078, 2.9825851179626337], [3.44699437365189, -4.2705322199336804, 4.9263766584281665, 2.785935072804425, 3.0187250470742875], [2.1156177557107494, -2.5073096562613415, -4.5210886214863866, -4.9862872064575257, 3.2310706075234883]]))
4538        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4539        arg1=msk_arg1*numarray.array([[[-1.0949714848643777, -2.2693637068243886], [0.6775629687309106, 4.8854633735623239], [-2.7144365829692898, 3.8057229005940396], [-0.28075043412593015, -1.3863654992913013], [3.8312671339338653, -0.083642306154482426]], [[0.25741167641682949, -1.680557976526341], [-2.6385302309745517, 2.2032379938858506], [-2.9964864657684531, 3.9071960466024329], [-2.644546090677192, 0.70935108060643515], [3.3586384975066323, -0.55936281647424835]], [[0.76366393199511418, 4.4196517944571276], [-1.8432831013429429, 3.6572101834884521], [0.54796740133781086, 3.7491857047123904], [-3.4978219364943017, -1.8185240858634613], [0.77254911338018495, -0.72576375129174764]], [[-3.0439444338911228, -1.0824791778102383], [-0.26767353259929472, 0.32859248458688839], [0.025174833996679524, 0.028036659851558454], [4.1584938648927103, 0.46854036969740953], [2.4504876723649458, -4.5636861546867529]]])+(1.-msk_arg1)*numarray.array([[[4.9791367068482266, -1.7487439727221954], [-1.2770449283107475, 2.7934767334925201], [-1.7921873849467507, -4.6190841747872655], [4.2063506709188268, -1.0033366599582259], [-0.22240752826124943, -2.7110547307600985]], [[-3.0733250122958999, 3.0492594814084519], [-2.6102259945724162, 1.1966821474737168], [2.4547009379296982, 0.53124556026941772], [0.90571667926333088, -4.9926294617772466], [2.8800863613658381, -4.8597255608820422]], [[-1.6089209797473836, 2.069665329585753], [1.048354154533703, 4.0745062032098751], [-1.2219267304432213, 1.3276281169410709], [1.6278631360235423, -2.2011844927969704], [3.3521356214219118, 0.19097246972520932]], [[2.0104077266447931, 1.3598483634808165], [2.0124019256362065, 1.4151402060057263], [-0.56699392655077396, -1.0550924063371934], [-3.235840818751774, 3.8548967795131261], [-3.9797104506428385, 3.3351369876558188]]])        arg1=msk_arg1*numarray.array([[[-1.0949714848643777, -2.2693637068243886], [0.6775629687309106, 4.8854633735623239], [-2.7144365829692898, 3.8057229005940396], [-0.28075043412593015, -1.3863654992913013], [3.8312671339338653, -0.083642306154482426]], [[0.25741167641682949, -1.680557976526341], [-2.6385302309745517, 2.2032379938858506], [-2.9964864657684531, 3.9071960466024329], [-2.644546090677192, 0.70935108060643515], [3.3586384975066323, -0.55936281647424835]], [[0.76366393199511418, 4.4196517944571276], [-1.8432831013429429, 3.6572101834884521], [0.54796740133781086, 3.7491857047123904], [-3.4978219364943017, -1.8185240858634613], [0.77254911338018495, -0.72576375129174764]], [[-3.0439444338911228, -1.0824791778102383], [-0.26767353259929472, 0.32859248458688839], [0.025174833996679524, 0.028036659851558454], [4.1584938648927103, 0.46854036969740953], [2.4504876723649458, -4.5636861546867529]]])+(1.-msk_arg1)*numarray.array([[[4.9791367068482266, -1.7487439727221954], [-1.2770449283107475, 2.7934767334925201], [-1.7921873849467507, -4.6190841747872655], [4.2063506709188268, -1.0033366599582259], [-0.22240752826124943, -2.7110547307600985]], [[-3.0733250122958999, 3.0492594814084519], [-2.6102259945724162, 1.1966821474737168], [2.4547009379296982, 0.53124556026941772], [0.90571667926333088, -4.9926294617772466], [2.8800863613658381, -4.8597255608820422]], [[-1.6089209797473836, 2.069665329585753], [1.048354154533703, 4.0745062032098751], [-1.2219267304432213, 1.3276281169410709], [1.6278631360235423, -2.2011844927969704], [3.3521356214219118, 0.19097246972520932]], [[2.0104077266447931, 1.3598483634808165], [2.0124019256362065, 1.4151402060057263], [-0.56699392655077396, -1.0550924063371934], [-3.235840818751774, 3.8548967795131261], [-3.9797104506428385, 3.3351369876558188]]])
4540        res=mult(arg0,arg1)        res=mult(arg0,arg1)
4541        msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)        msk_ref=1.-whereZero(self.functionspace.getX()[0],1.e-8)
4542        ref=msk_ref*numarray.array([[[-0.75386332864578665, -1.5624060549361902], [-2.9312450764875364, -21.13529091906738], [-13.155620360795936, 18.444581093817636], [0.66444031443445706, 3.2810532640423693], [6.9198264671335723, -0.15107018739922398]], [[-0.14941595807625041, 0.9754886944551634], [10.382847780099121, -8.6699346648753171], [4.5185772074164756, -5.8918894521213439], [-6.0997155306863204, 1.6361370362715886], [-5.8513762001617469, 0.97451460584480387]], [[-0.055322411725573381, -0.32017460300611755], [-6.1845078852784967, 12.270521658570265], [0.71520435907174029, 4.8934187552640669], [6.7448206657528056, 3.5066447229713305], [0.16827265429480182, -0.15808210857490732]], [[13.658372745752075, 4.857153085789971], [-0.28809096263900291, 0.35365665137423391], [0.025789827285328987, 0.028721564373555719], [-4.3965471465147958, -0.4953619969987092], [-7.8588215731951561, 14.635941902589165]]])+(1.-msk_ref)*numarray.array([[[11.948838366904049, -4.1966028059474425], [-4.9790417781552794, 10.891423671963025], [-8.832364755002013, -22.764046108376537], [12.955666630413834, -3.0903023312728717], [-0.091680082745749625, -1.1175418565525563]], [[3.0369116494801687, -3.0131312517641398], [9.6545421096846447, -4.42621374881581], [3.6812726663136757, 0.79669980562671339], [-0.14341369287042463, 0.7905468063473523], [8.5901027198569011, -14.494545135269393]], [[-5.5459415648397172, 7.134124746424475], [-4.4770301948375115, -17.400310021127421], [-6.0196713231649319, 6.5403961663714316], [4.5351210043733872, -6.1323570801962992], [10.119175761576257, 0.57649337766112541]], [[4.2532542827078066, 2.8769193428542206], [-5.0457147804265787, -3.5481947034818218], [2.5634297897805922, 4.7701662729077761], [16.134831676675017, -19.221622493900618], [-12.858725463526131, 10.776063092879143]]])        ref=msk_ref*numarray.array([[[-0.75386332864578665, -1.5624060549361902], [-2.9312450764875364, -21.13529091906738], [-13.155620360795936, 18.444581093817636], [0.66444031443445706, 3.2810532640423693], [6.9198264671335723, -0.15107018739922398]], [[-0.14941595807625041, 0.9754886944551634], [10.382847780099121, -8.6699346648753171], [4.5185772074164756, -5.8918894521213439], [-6.0997155306863204, 1.6361370362715886], [-5.8513762001617469, 0.97451460584480387]], [[-0.055322411725573381, -0.32017460300611755], [-6.1845078852784967, 12.270521658570265], [0.71520435907174029, 4.8934187552640669], [6.7448206657528056, 3.5066447229713305], [0.16827265429480182, -0.15808210857490732]], [[13.658372745752075, 4.857153085789971], [-0.28809096263900291, 0.35365665137423391], [0.025789827285328987, 0.028721564373555719], [-4.3965471465147958, -0.4953619969987092], [-7.8588215731951561, 14.635941902589165]]])+(1.-msk_ref)*numarray.array([[[11.948838366904049, -4.1966028059474425], [-4.9790417781552794, 10.891423671963025], [-8.832364755002013, -22.764046108376537], [12.955666630413834, -3.0903023312728717], [-0.091680082745749625, -1.1175418565525563]], [[3.0369116494801687, -3.0131312517641398], [9.6545421096846447, -4.42621374881581], [3.6812726663136757, 0.79669980562671339], [-0.14341369287042463, 0.7905468063473523], [8.5901027198569011, -14.494545135269393]], [[-5.5459415648397172, 7.134124746424475], [-4.4770301948375115, -17.400310021127421], [-6.0196713231649319, 6.5403961663714316], [4.5351210043733872, -6.1323570801962992], [10.119175761576257, 0.57649337766112541]], [[4.2532542827078066, 2.8769193428542206], [-5.0457147804265787, -3.5481947034818218], [2.5634297897805922, 4.7701662729077761], [16.134831676675017, -19.221622493900618], [-12.858725463526131, 10.776063092879143]]])
4543        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
4544        self.failUnlessEqual(res.getShape(),(4, 5, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5, 2),"wrong shape of result.")
# Line 4527  class Test_util_binary_with_tagged_data( Line 4547  class Test_util_binary_with_tagged_data(
4547     def test_mult_taggedData_rank4_expandedData_rank2(self):     def test_mult_taggedData_rank4_expandedData_rank2(self):
4548        arg0=Data(numarray.array([[[[-0.075500384798199427, -1.281207221247771, 4.4417549657702242, 2.9027377855073304, -2.2080727666070477], [0.32437689587723995, 0.9023290012755405, 0.9483003993437622, -3.8284613759482564, 4.2742845425426736], [1.1590759464904181, -1.9839295263827763, -1.8414740866163228, 0.64513076278032155, 3.1412052155341303], [-2.7625612578119227, 1.7471381485890278, 1.8864078599325831, -1.578607130161318, -3.8633345358964091]], [[-4.1946087472459039, -3.4832574885647629, 3.3624833238664085, -3.136120164674292, 0.52086607071301838], [-1.1362201522932347, -2.8391895501614082, 3.3912189802319705, -4.929010138186479, 0.7891837912721531], [1.494967627265952, -1.3606624276375756, -2.541297481519095, 1.1874021911908468, -3.2354277052691351], [1.3015334970456927, -2.0665561577689315, -2.0455341570120744, 4.2206184927665245, -1.668027274421676]], [[-3.2787957737745268, 3.2071339571677662, 1.4757511335167139, -4.2278704617663143, 3.9971153215340109], [2.5283898104724143, 0.1440217823725245, -1.1759390137298764, -2.4993464362647644, 1.2998761498151312], [0.75922867095980884, 2.0214244810020627, 0.15347198379488969, 2.734216540490733, -1.8426372708876961], [-4.4235389619322678, -3.487553313001106, -0.49346247442844859, -0.63346931382114313, -0.7761849803963381]], [[1.595123004983769, 2.7889292258293343, -0.75633951859708404, -0.13398763168930294, -0.42768604925349063], [-3.6497658983704562, -1.485566880148391, -4.0191819754536731, -2.6133739002320286, 1.092806174230053], [2.1105768739327377, 0.095836371083382943, 4.0716335322962554, -1.3955083877446359, -1.766275914891521], [-2.2147667604361509, 4.1861521050179515, 0.85045412278795673, -4.1415746184359472, 3.1645737681408743]], [[1.9997866872769361, 0.29456280617841646, 1.3695876328401795, -3.1979608430073601, 4.1189764218773348], [3.4178846673287797, -2.3287946931161474, 1.5094757746574281, -2.7445271416655825, -3.5626188311264384], [-2.524411463237711, 1.0613590749070143, 3.0789873675952322, 4.4838562562766775, 3.0460754240089418], [-4.4117558358515909, -4.0687628467429358, -2.0243921991750158, 4.490991321657873, -0.64245917199679425]]], [[[-1.2936902310525413, -2.797555429663261, -0.99525511187594784, -3.5702475347900364, 1.486438867156834], [3.6691787358363896, -2.8706190905008109, 0.91671553395057259, 0.87677104543089612, -1.9612382188262769], [3.7672844805266852, 3.6065442172739424, -4.1120498000009285, -2.2640914108607024, 2.3722556518720435], [3.1682809080434637, 2.4847032065504067, -3.9536890307647599, 0.34919282505110516, -2.6382804141539431]], [[-0.97111872537221977, -1.4339963826551405, -0.9424375442180386, -3.9752401850869457, 0.19486001400332942], [-3.5759998521648861, -2.0384788110920402, -2.2312797697009357, -3.6328861847165794, -2.1825743891522178], [-3.9707203979458083, 2.5391504849210014, 2.5201307963403741, -1.8965981068743587, -3.6665182919909531], [1.8796205347148431, 1.9294655754022152, -1.8130673630449188, 0.71727507695985704, 0.47471520192921801]], [[3.9814910665479015, 4.9800407123442199, -2.3263130055536942, 0.4537779678128917, 0.6679266646297215], [-2.7508379562413743, 1.9825980831867263, -2.6470277846932468, -4.3957464393182022, -3.8871018894742946], [1.6218359401000484, -1.2358590626510324, 2.3553966575594707, 4.7591145582156784, 0.57853286557528616], [2.237755968183988, -1.5859065823493923, -1.3100595475436263, 2.9037370251142836, -3.4176969036181983]], [[-4.9337034547489242, 2.3627813394947008, -2.1125030708194248, -1.2561227157137744, 2.1953193572041254], [0.28120971152559182, -0.44338060600635565, -3.8775870952946159, 4.3044071950879861, 0.51825762933904684], [4.3630727774058506, 4.7023681258612804, 2.3279338655604009, 0.56772960769758285, 0.95281865622305784], [-1.4446973760597768, 2.4851272813151448, 1.9428693506202501, -4.1986149402960642, 1.7218794882624451]], [[-1.8710271154397287, -1.9644268239171514, -1.6674220842331922, 3.5208049718021233, -0.73186028078906507], [1.396632053885015, -1.7482586368199895, 1.2340452074274086, 1.166002083006731, 0.47141415128758446], [1.9122429170660658, -0.86979995044466385, -3.5226760023659418, 0.79182285890944648, 3.4333225182154798], [0.039447186354416353, -3.0081439436828372, -2.1219701034310767, -1.7837211178227252, 1.4342719593146747]]], [[[-0.05756944084165827, -3.4058027736232157, 1.7378033867275979, -2.685501721352149, -4.6932498957029249], [4.3761300756003614, -3.1724638045933129, -4.1705107352866468, -4.44005780653697, -3.5859136674919965], [1.7839684404326261, -3.2964318082267385, 0.35264179473620683, 4.7024652935461191, 0.71546766940322382], [-4.7637330666698716, -2.6144945932406847, -2.6633013669619245, 2.3148768419660843, -1.4363582761981886]], [[0.60818140146173238, -1.1734593937362456, -1.8300945570878446, -4.778416321638554, 0.4371019952612043], [0.69300819135382241, 3.4831468167027566, 1.8658765985112824, -0.92609019051129859, 2.536771950047755], [2.9425853509979376, -4.4969702694193678, -0.35498329814196872, -2.4768963718524351, 2.7699051042415457], [2.335997669975324, 0.40045147841404205, 4.5643186965718598, -0.77770767266446406, -1.1908825738972419]], [[0.15751199673097371, 2.6115314009669142, 1.6191363736750732, -4.5760835592816509, 2.3732278091078998], [-3.2134806465348573, 0.41820278271574196, -1.0901194265722056, 2.3022676259094386, -2.7872652875194093], [-0.7091868645146473, 1.5230683485587235, -1.0750360664611924, -0.72054885714006112, 2.5108687410619055], [-4.0192840140983872, 2.4577911153116236, 0.2937360644494138, 1.8120358834970274, 4.3027049797788823]], [[3.3377639344449808, 3.415050908567224, -2.6870056331409109, -1.8993386435691004, 2.9345746490494609], [-4.5516771188796081, 2.2046149548552414, -3.7468877015110671, 3.9877222681820808, -1.8436712434991409], [2.5234226301162348, 4.3403100129447179, -3.4460679115173356, -1.0905214723364876, -1.4211481033867104], [4.7027129189859789, -3.2982392246707448, -2.2375742732628492, 1.8996127581474278, 2.7110568487629276]], [[3.7509926516469019, -1.346539084065721, 2.0831607782851211, -1.4630371863304523, -0.91200378578820018], [-0.93634574558186934, -3.6722563069258305, -3.4815946107223605, 0.4519633943646344, -4.6956089065835318], [-0.14352160830182115, 1.1404739396680839, 0.45055613782334802, -3.6607955962815009, -1.2590628261570158], [4.5855256437048855, 0.22098933503513774, -2.4598968562204373, 3.5313256618669726, 2.4385031888933533]]], [[[1.1402633367536801, -0.43814645416761522, 3.6766819039011889, -1.0048996921862443, -2.4644513379015756], [3.0889183323981619, -1.525106696976477, 3.5088366509198146, -1.574194504184554, 3.4365612762713944], [3.3979244877285026, -2.2207688525867688, -2.5942084417585152, -1.7204703661812437, 3.5429600895969457], [-2.7806803202055308, 0.11211086457510966, 0.19489402793638977, 4.2487130165920188, -1.2896927466133379]], [[-3.6166547616189639, 1.897749287156878, -1.1889638768171737, -1.5492850534110367, 3.7784560796240854], [-2.8684739740046239, 0.24412851906494115, 1.6397801805644292, -2.8314182383991717, -1.9275095972111247], [3.1780185207857148, -4.1355211909747975, -2.9603471323042649, 2.3809980658025767, 2.4173014723180719], [-4.9659195122875444, -1.6408211664711372, 2.0917539644715299, 2.2432717349275135, -3.3735688154978138]], [[4.585892670469029, -1.77774063462526, -4.2497807740229288, -2.0390768034786921, 3.3716909610902963], [-4.9176891130897449, -1.1249697341024278, 4.1656397672208083, -1.8609809295836666, 3.7034101780384887], [-1.446899852292268, 0.41447596075617543, -0.84047436573099521, 0.9830611423329696, -1.8158075213932081], [2.6862217855146309, -1.4872316740730107, -2.0464322500331269, -2.6473385912927636, 3.9146885615464058]], [[-2.0785074514236457, -2.2558933269440762, -4.6686228543389188, -1.0989887885135516, 1.3519772203805687], [1.2789717258805222, -4.1219311739634126, -4.9270198828089127, -2.9545118455175077, 0.50138615814476761], [-1.6119010693587024, -3.4600311512221027, 3.0517102627009614, -3.5272265738584831, -4.4248766209746968], [4.9190244207716809, 2.0306240994275644, -2.5389760525207139, 4.9986656119103117, -0.0014665287608242039]], [[-2.027919745071852, -3.4500454426239289, -4.4837060533808826, 4.3264447036394813, -1.856070700743345], [-3.7818616370196345, 3.1480071304935002, -2.9875243775733096, -1.6159015953162168, 1.1171708879295563], [1.2121024924499704, 2.6046815307677837, 0.33781071291101306, 1.4987595038651866, 4.6193974598451177], [-2.0194945211249138, -0.51541719091325877, -1.5446137335909427, 2.5606632024726075, -3.5228807964297548]]]]),self.functionspace)        arg0=Data(numarray.array([[[[-0.075500384798199427, -1.281207221247771, 4.4417549657702242, 2.9027377855073304, -2.2080727666070477], [0.32437689587723995, 0.9023290012755405, 0.9483003993437622, -3.8284613759482564, 4.2742845425426736], [1.1590759464904181, -1.9839295263827763, -1.8414740866163228, 0.64513076278032155, 3.1412052155341303], [-2.7625612578119227, 1.7471381485890278, 1.8864078599325831, -1.578607130161318, -3.8633345358964091]], [[-4.1946087472459039, -3.4832574885647629, 3.3624833238664085, -3.136120164674292, 0.52086607071301838], [-1.1362201522932347, -2.8391895501614082, 3.3912189802319705, -4.929010138186479, 0.7891837912721531], [1.494967627265952, -1.3606624276375756, -2.541297481519095, 1.1874021911908468, -3.2354277052691351], [1.3015334970456927, -2.0665561577689315, -2.0455341570120744, 4.2206184927665245, -1.668027274421676]], [[-3.2787957737745268, 3.2071339571677662, 1.4757511335167139, -4.2278704617663143, 3.9971153215340109], [2.5283898104724143, 0.1440217823725245, -1.1759390137298764, -2.4993464362647644, 1.2998761498151312], [0.75922867095980884, 2.0214244810020627, 0.15347198379488969, 2.734216540490733, -1.8426372708876961], [-4.4235389619322678, -3.487553313001106, -0.49346247442844859, -0.63346931382114313, -0.7761849803963381]], [[1.595123004983769, 2.7889292258293343, -0.75633951859708404, -0.13398763168930294, -0.42768604925349063], [-3.6497658983704562, -1.485566880148391, -4.0191819754536731, -2.6133739002320286, 1.092806174230053], [2.1105768739327377, 0.095836371083382943, 4.0716335322962554, -1.3955083877446359, -1.766275914891521], [-2.2147667604361509, 4.1861521050179515, 0.85045412278795673, -4.1415746184359472, 3.1645737681408743]], [[1.9997866872769361, 0.29456280617841646, 1.3695876328401795, -3.1979608430073601, 4.1189764218773348], [3.4178846673287797, -2.3287946931161474, 1.5094757746574281, -2.7445271416655825, -3.5626188311264384], [-2.524411463237711, 1.0613590749070143, 3.0789873675952322, 4.4838562562766775, 3.0460754240089418], [-4.4117558358515909, -4.0687628467429358, -2.0243921991750158, 4.490991321657873, -0.64245917199679425]]], [[[-1.2936902310525413, -2.797555429663261, -0.99525511187594784, -3.5702475347900364, 1.486438867156834], [3.6691787358363896, -2.8706190905008109, 0.91671553395057259, 0.87677104543089612, -1.9612382188262769], [3.7672844805266852, 3.6065442172739424, -4.1120498000009285, -2.2640914108607024, 2.3722556518720435], [3.1682809080434637, 2.4847032065504067, -3.9536890307647599, 0.34919282505110516, -2.6382804141539431]], [[-0.97111872537221977, -1.4339963826551405, -0.9424375442180386, -3.9752401850869457, 0.19486001400332942], [-3.5759998521648861, -2.0384788110920402, -2.2312797697009357, -3.6328861847165794, -2.1825743891522178], [-3.9707203979458083, 2.5391504849210014, 2.5201307963403741, -1.8965981068743587, -3.6665182919909531], [1.8796205347148431, 1.9294655754022152, -1.8130673630449188, 0.71727507695985704, 0.47471520192921801]], [[3.9814910665479015, 4.9800407123442199, -2.3263130055536942, 0.4537779678128917, 0.6679266646297215], [-2.7508379562413743, 1.9825980831867263, -2.6470277846932468, -4.3957464393182022, -3.8871018894742946], [1.6218359401000484, -1.2358590626510324, 2.3553966575594707, 4.7591145582156784, 0.57853286557528616], [2.237755968183988, -1.5859065823493923, -1.3100595475436263, 2.9037370251142836, -3.4176969036181983]], [[-4.9337034547489242, 2.3627813394947008, -2.1125030708194248, -1.2561227157137744, 2.1953193572041254], [0.28120971152559182, -0.44338060600635565, -3.8775870952946159, 4.3044071950879861, 0.51825762933904684], [4.3630727774058506, 4.7023681258612804, 2.3279338655604009, 0.56772960769758285, 0.95281865622305784], [-1.4446973760597768, 2.4851272813151448, 1.9428693506202501, -4.1986149402960642, 1.7218794882624451]], [[-1.8710271154397287, -1.9644268239171514, -1.6674220842331922, 3.5208049718021233, -0.73186028078906507], [1.396632053885015, -1.7482586368199895, 1.2340452074274086, 1.166002083006731, 0.47141415128758446], [1.9122429170660658, -0.86979995044466385, -3.5226760023659418, 0.79182285890944648, 3.4333225182154798], [0.039447186354416353, -3.0081439436828372, -2.1219701034310767, -1.7837211178227252, 1.4342719593146747]]], [[[-0.05756944084165827, -3.4058027736232157, 1.7378033867275979, -2.685501721352149, -4.6932498957029249], [4.3761300756003614, -3.1724638045933129, -4.1705107352866468, -4.44005780653697, -3.5859136674919965], [1.7839684404326261, -3.2964318082267385, 0.35264179473620683, 4.7024652935461191, 0.71546766940322382], [-4.7637330666698716, -2.6144945932406847, -2.6633013669619245, 2.3148768419660843, -1.4363582761981886]], [[0.60818140146173238, -1.1734593937362456, -1.8300945570878446, -4.778416321638554, 0.4371019952612043], [0.69300819135382241, 3.4831468167027566, 1.8658765985112824, -0.92609019051129859, 2.536771950047755], [2.9425853509979376, -4.4969702694193678, -0.35498329814196872, -2.4768963718524351, 2.7699051042415457], [2.33599766997