]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
23223: [CEA 1710] regression - bug CEA 983 - case2med
authoreap <eap@opencascade.com>
Tue, 27 Sep 2016 14:26:36 +0000 (17:26 +0300)
committereap <eap@opencascade.com>
Tue, 27 Sep 2016 14:26:36 +0000 (17:26 +0300)
src/MEDLoader/Swig/CaseReader.py

index 336cdfc887738f6c0d1eb83f293563c1ff378c13..ea266d3fc74daeaea6596c606f5c3d3cc8789a57 100644 (file)
@@ -273,7 +273,7 @@ class CaseReader(CaseIO):
             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
+                return
             nbOfValues=fdisc.getNumberOfTuples(mcmeshes[meshId])
             vals2=DataArrayDouble(nbOfValues,nbCompo)
             fd.seek(pos+4)