if meshDim == -1:\r
raise Exception("Could not find a valid cell type in the mesh !")\r
if i > 0:\r
- print "WARNING: some invalid/incompatible cell types were detected - trying to have them as polygons ..."\r
+ print("WARNING: some invalid/incompatible cell types were detected - trying to have them as polygons ...")\r
for typ in types2:\r
if self.VTKTypes_2_MC[typ] != -1:\r
md=MEDCouplingMesh.GetDimensionOfGeometricType(self.VTKTypes_2_MC[typ])\r
if md!=meshDim:\r
raise Exception("MultiLevel umeshes not managed yet !")\r
else:\r
- print "WARNING: invalid/incompatible cell type detected: VTK type number: %d" % typ\r
+ print("WARNING: invalid/incompatible cell type detected: VTK type number: %d" % typ)\r
m=MEDCouplingUMesh("mesh",meshDim)\r
# coordinates\r
coo=np.memmap(fd,dtype=rd._type_coords,mode='r',offset=ref+rd._off_coords,shape=(rd._nb_nodes*rd._space_dim,))\r
if str(attrs["encoding"])=="raw":\r
raise VTURawReader.NormalException(self._loc.getLineNumber())\r
else:\r
- print attrs["encoding"]\r
+ print(attrs["encoding"])\r
raise VTURawReader.NotRawVTUException("The file is not a raw VTU ! Change reader !")\r
pass\r
pass\r