From: abn Date: Thu, 30 Apr 2015 08:02:08 +0000 (+0200) Subject: Valgrind OK! Such a nice tool :-) X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=981676bfd6fa03af39f90cb94cb4b3bbcde07fe2;p=tools%2Fmedcoupling.git Valgrind OK! Such a nice tool :-) --- diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index 9e5c5b950..0c872c297 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -11468,10 +11468,9 @@ bool MEDCouplingUMesh::Colinearize2DCell(const double *coords, const int *connBg } // Now move forward: const unsigned fwdStart = (nbOfTurn == 0 ? 0 : posBaseElt); // the first element to be inspected going forward - const unsigned endJ(nbs-nbOfHit); // put in a constant because modified in the loop - for(unsigned j=1;jareColinears()); diff --git a/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py b/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py index 889bf2c7e..790aac8d6 100644 --- a/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py +++ b/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py @@ -14747,7 +14747,7 @@ class MEDCouplingBasicsTest(unittest.TestCase): m.colinearize2D(1e-12) m.checkCoherency2() self.assertEqual(refPtr,m.getCoords().getHiddenCppPointer()) - self.assertTrue(m.getNodalConnectivity().isEqual(DataArrayInt([5,0,2,3,4]))) + self.assertTrue(m.getNodalConnectivity().isEqual(DataArrayInt([NORM_POLYGON,0,2,3,4]))) self.assertTrue(m.getNodalConnectivityIndex().isEqual(DataArrayInt([0,5]))) pass