]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Correction of error during Py3 porting
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 30 Aug 2018 12:06:41 +0000 (14:06 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 30 Aug 2018 12:06:41 +0000 (14:06 +0200)
src/MEDLoader/Swig/CaseWriter.py

index b29f44be299aa7344fc98493c9469f072f88d395..c8f4f74a3e368d0b2876a2acf529da645f17b179 100644 (file)
@@ -158,7 +158,7 @@ time values:
                         typ=MEDCouplingMesh.GetCorrespondingPolyType(typ)
                         pass
                     mp=m[i:i+nbelem]
-                    mm.write(self.__str80(self.dictMCTyp[typ]))
+                    mm.write(self.__str80(self.dictMCTyp_str[typ]))
                     a=np.memmap(f,dtype='int32',mode='w+',offset=mm.tell(),shape=(1,))
                     a[0]=nbelem ; a.flush() ; mm.seek(mm.tell()+4)
                     if typ!=NORM_POLYHED and typ!=NORM_POLYGON:
@@ -270,7 +270,7 @@ time values:
                         if typ==curTyp:
                             arr=ff.getUndergroundDataArray()[bg:end].changeNbOfComponents(nbCompo,0.) ; arr=arr.toNoInterlace()
                             if typ==ON_CELLS:
-                                mm.write(self.__str80(self.dictMCTyp[geo]))
+                                mm.write(self.__str80(self.dictMCTyp_str[geo]))
                                 pass
                             elif typ==ON_NODES:
                                 mm.write(self.__str80("coordinates"))