From 7dd3a0b3fa638549b6a14bb7d3c364d788d79f0a Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Wed, 8 Oct 2014 14:11:06 +0200 Subject: [PATCH] Let the power of orderConsecutiveCells1D express itself. --- src/MEDCoupling/MEDCouplingUMesh.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index 3677ba54d..f3991fe61 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -9646,7 +9646,7 @@ void MEDCouplingUMesh::BuildIntersecting2DCellsFromEdges(double eps, const MEDCo /** * Provides a renumbering of the cells of this (which has to be a piecewise connected 1D line), so that * the segments of the line are indexed in consecutive order (i.e. cells \a i and \a i+1 are neighbors). - * This doesn't modify the mesh. + * This doesn't modify the mesh. This method only works using nodal connectivity consideration. Coordinates of nodes are ignored here. * The caller is to deal with the resulting DataArrayInt. * \throw If the coordinate array is not set. * \throw If the nodal connectivity of the cells is not defined. @@ -9656,8 +9656,8 @@ void MEDCouplingUMesh::BuildIntersecting2DCellsFromEdges(double eps, const MEDCo DataArrayInt *MEDCouplingUMesh::orderConsecutiveCells1D() const { checkFullyDefined(); - if(getMeshDimension()!=1 || getSpaceDimension()!=2) - throw INTERP_KERNEL::Exception("MEDCouplingUMesh::orderConsecutiveCells1D works on unstructured mesh with (meshdim, spacedim) = (1,2)!"); + if(getMeshDimension()!=1) + throw INTERP_KERNEL::Exception("MEDCouplingUMesh::orderConsecutiveCells1D works on unstructured mesh with meshdim = 1 !"); // Check that this is a line (and not a more complex 1D mesh) - each point is used at most by 2 segments: MEDCouplingAutoRefCountObjectPtr _d(DataArrayInt::New()),_dI(DataArrayInt::New()); -- 2.39.2