From da96e98ef037f8dd1810e1751e59b976706daf00 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 27 Sep 2016 16:02:13 +0300 Subject: [PATCH] 23223: [CEA 1710] regression - bug CEA 983 - case2med --- src/MEDLoader/Swig/CaseReader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MEDLoader/Swig/CaseReader.py b/src/MEDLoader/Swig/CaseReader.py index d1dde8d42..336cdfc88 100644 --- a/src/MEDLoader/Swig/CaseReader.py +++ b/src/MEDLoader/Swig/CaseReader.py @@ -272,6 +272,8 @@ class CaseReader(CaseIO): raise Exception("ConvertField : mismatch #2") fdisc=MEDCouplingFieldDiscretization.New(self.discSpatial2[discr]) meshId=np.memmap(fd,dtype='int32',mode='r',offset=int(pos),shape=(1)).tolist()[0]-1 + if meshId >= len( mcmeshes ): + continue nbOfValues=fdisc.getNumberOfTuples(mcmeshes[meshId]) vals2=DataArrayDouble(nbOfValues,nbCompo) fd.seek(pos+4) -- 2.39.2