# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2016 CEA/DEN, EDF R&D
+# Copyright (C) 2007-2022 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
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:
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"))