From 7b19196ef7bd1e2cdbcc165ada4c85a53b916d6f Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Thu, 17 Mar 2016 11:55:40 +0100 Subject: [PATCH] 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. --- src/MEDLoader/MEDFileField.cxx | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.2