From: Anthony Geay Date: Mon, 11 Jan 2016 06:57:10 +0000 (+0100) Subject: One more test. X-Git-Tag: V7_8_0a1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=14e5d789c0a4d8a981d257939573a3e76a5d22b5;p=tools%2Fmedcoupling.git One more test. --- diff --git a/src/MEDCoupling_Swig/MEDCouplingRemapperTest.py b/src/MEDCoupling_Swig/MEDCouplingRemapperTest.py index c5d99f89f..50157d00b 100644 --- a/src/MEDCoupling_Swig/MEDCouplingRemapperTest.py +++ b/src/MEDCoupling_Swig/MEDCouplingRemapperTest.py @@ -877,6 +877,23 @@ class MEDCouplingBasicsTest(unittest.TestCase): rem2.prepare(mt,ms,"P0P0") # reverse mt<->ms self.assertEqual(rem2.getCrudeMatrix(),[{0: 1.0}, {1: 1.0}]) pass + + def test2D1Dand1D2DPointLocator1(self): + arrX=DataArrayDouble([0,1,2]) + arrY=DataArrayDouble([0,1]) + ms=MEDCouplingCMesh() ; ms.setCoords(arrX,arrY) ; ms=ms.buildUnstructured() + mt=MEDCouplingUMesh("target",1) ; mt.setCoords(ms.getCoords()[:]) + mt.allocateCells() + mt.insertNextCell(NORM_SEG2,[0,4]) ; mt.insertNextCell(NORM_SEG2,[1,5]) + rem=MEDCouplingRemapper() + rem.setIntersectionType(PointLocator) + rem.prepare(ms,mt,"P0P0") + self.assertEqual(rem.getCrudeMatrix(),[{0:1.},{1:1.}]) + rem=MEDCouplingRemapper() + rem.setIntersectionType(PointLocator) + rem.prepare(mt,ms,"P0P0") + self.assertEqual(rem.getCrudeMatrix(),[{0:1.},{1:1.}]) + pass def build2DSourceMesh_1(self): sourceCoords=[-0.3,-0.3, 0.7,-0.3, -0.3,0.7, 0.7,0.7]