From eeb6f3079cfca5f54218c3299a3ffe9ee868c90b Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Fri, 5 Jan 2018 16:47:16 +0100 Subject: [PATCH] Debug on MEDFile context --- src/MEDLoader/MEDFileField.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()); -- 2.39.2