From: Anthony Geay Date: Thu, 12 Nov 2020 13:59:51 +0000 (+0100) Subject: Quick and dirty fix for name on nodes management X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fagy%2Fpart_load_coords;p=tools%2Fmedcoupling.git Quick and dirty fix for name on nodes management --- diff --git a/src/MEDLoader/MEDFileMeshLL.cxx b/src/MEDLoader/MEDFileMeshLL.cxx index cb771459d..3e476b2b9 100644 --- a/src/MEDLoader/MEDFileMeshLL.cxx +++ b/src/MEDLoader/MEDFileMeshLL.cxx @@ -774,6 +774,7 @@ void MEDFileUMeshL2::loadPartCoordsSlice(med_idt fid, const std::vector > nameCoords2(nameCoords.begin(),nameCoords.end()); + std::for_each(nameCoords2.begin(),nameCoords2.end(),[](MCAuto& elt){ elt->incrRef(); }); MCAuto tmp( DataArrayChar::Aggregate(ToConstVect(nameCoords2)) ); _name_coords = DynamicCastSafe( tmp ); }