]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Bug linked with multi node field read in parallel. The first one was modifying the...
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 17 Mar 2016 10:55:40 +0000 (11:55 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 17 Mar 2016 10:55:40 +0000 (11:55 +0100)
src/MEDLoader/MEDFileField.cxx

index 4509721c77f50afab115ee59862ec954899936da..8e4ed708ee47b04035f613437ef1b9e40cbf7a49 100644 (file)
@@ -500,6 +500,7 @@ void MEDFileFieldPerMeshPerTypePerDisc::goReadZeValuesInFile(med_idt fid, const
           dpd->checkCoherency();
           MEDCouplingAutoRefCountObjectPtr<DataArrayInt> 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;