From: ageay Date: Fri, 21 Jun 2013 09:35:36 +0000 (+0000) Subject: debugging session X-Git-Tag: B4CMakeModifs~50 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=536454e00e8a0c2eed1c4ada93d36a196c5f7ccc;p=modules%2Fmed.git debugging session --- diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index 7053039d2..fe6f8f71f 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -6697,7 +6697,10 @@ MEDCoupling1GTUMesh *MEDCouplingUMesh::convertIntoSingleGeoTypeMesh() const thro ret->setCoords(getCoords()); MEDCoupling1SGTUMesh *retC=dynamic_cast((MEDCoupling1GTUMesh*)ret); if(retC) - retC->setNodalConnectivity(convertNodalConnectivityToStaticGeoTypeMesh()); + { + MEDCouplingAutoRefCountObjectPtr c=convertNodalConnectivityToStaticGeoTypeMesh(); + retC->setNodalConnectivity(c); + } else { MEDCoupling1DGTUMesh *retD=dynamic_cast((MEDCoupling1GTUMesh*)ret); @@ -6758,6 +6761,7 @@ void MEDCouplingUMesh::convertNodalConnectivityToDynamicGeoTypeMesh(DataArrayInt c->alloc(lgth-nbCells,1); ci->alloc(nbCells+1,1); int *cp(c->getPointer()),*cip(ci->getPointer()); const int *incp(_nodal_connec->begin()),*incip(_nodal_connec_index->begin()); + cip[0]=0; for(int i=0;i