From: Anthony Geay Date: Fri, 5 Jan 2018 15:47:16 +0000 (+0100) Subject: Debug on MEDFile context X-Git-Tag: V9_0_0~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eeb6f3079cfca5f54218c3299a3ffe9ee868c90b;p=tools%2Fmedcoupling.git Debug on MEDFile context --- diff --git a/src/MEDLoader/MEDFileField.cxx b/src/MEDLoader/MEDFileField.cxx index 309836027..b1de959d8 100644 --- a/src/MEDLoader/MEDFileField.cxx +++ b/src/MEDLoader/MEDFileField.cxx @@ -742,11 +742,11 @@ void MEDFileFieldLin2QuadVisitor::endTimeStepEntry(const MEDFileAnyTypeField1TSW return ; if(_1ts_update_requested) { - const DataArrayInt *pfl(NULL); + MCAuto pfl; if(!_pfl.empty()) { int locId(_cur_f1ts->getProfileId(_pfl)); - pfl=_cur_f1ts->getProfile(_pfl); + pfl.takeRef(_cur_f1ts->getProfile(_pfl)); MCAuto newPfl; { std::vector vs(2); @@ -766,7 +766,7 @@ void MEDFileFieldLin2QuadVisitor::endTimeStepEntry(const MEDFileAnyTypeField1TSW std::vector v(1,0),v2(1,1); MCAuto pts0(_matrix->keepSelectedComponents(v)); MCAuto pts1(_matrix->keepSelectedComponents(v2)); - if(pfl) + if(pfl.isNotNull()) { pts0=pfl->findIdForEach(pts0->begin(),pts0->end()); pts1=pfl->findIdForEach(pts1->begin(),pts1->end());