From 536454e00e8a0c2eed1c4ada93d36a196c5f7ccc Mon Sep 17 00:00:00 2001 From: ageay Date: Fri, 21 Jun 2013 09:35:36 +0000 Subject: [PATCH] debugging session --- src/MEDCoupling/MEDCouplingUMesh.cxx | 6 +++++- src/MEDCoupling_Swig/MEDCouplingBasicsTest.py | 13 +++++++++++++ src/MEDCoupling_Swig/MEDCouplingCommon.i | 1 + 3 files changed, 19 insertions(+), 1 deletion(-) 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