From: Anthony Geay Date: Thu, 17 Mar 2016 10:55:40 +0000 (+0100) Subject: Bug linked with multi node field read in parallel. The first one was modifying the... X-Git-Tag: V7_8_0a2~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7b19196ef7bd1e2cdbcc165ada4c85a53b916d6f;p=tools%2Fmedcoupling.git Bug linked with multi node field read in parallel. The first one was modifying the second one in context where field PartDef was a DataArrayPartDef. --- diff --git a/src/MEDLoader/MEDFileField.cxx b/src/MEDLoader/MEDFileField.cxx index 4509721c7..8e4ed708e 100644 --- a/src/MEDLoader/MEDFileField.cxx +++ b/src/MEDLoader/MEDFileField.cxx @@ -500,6 +500,7 @@ void MEDFileFieldPerMeshPerTypePerDisc::goReadZeValuesInFile(med_idt fid, const dpd->checkCoherency(); MEDCouplingAutoRefCountObjectPtr myIds(dpd->toDAI()); int a(myIds->getMinValueInArray()),b(myIds->getMaxValueInArray()); + myIds=myIds->deepCpy();// WARNING deep copy here because _pd is modified by applyLin !!! myIds->applyLin(1,-a); int nbOfEltsToLoad(b-a+1); med_filter filter=MED_FILTER_INIT;