From: ageay Date: Wed, 3 Jul 2013 08:53:57 +0000 (+0000) Subject: A draft of VTKReader X-Git-Tag: B4CMakeModifs~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=72edde3107a1620c1fe6fc480a45ae8a98219dab;p=modules%2Fmed.git A draft of VTKReader --- diff --git a/src/MEDLoader/Swig/VTKReader.py b/src/MEDLoader/Swig/VTKReader.py index 4af22c8cf..90c730548 100644 --- a/src/MEDLoader/Swig/VTKReader.py +++ b/src/MEDLoader/Swig/VTKReader.py @@ -176,6 +176,7 @@ class VTURawReader: f=MEDCouplingFieldDouble(spatialDisc,ONE_TIME) f.setName(name) ; f.setMesh(m) vals=np.memmap(fd,dtype=typ,mode='r',offset=ref+off,shape=(nbEnt*nbCompo)) + vals=self.__swapIfNecessary(rd._bo,vals) arr=DataArrayDouble(np.array(vals,dtype='float64')) ; arr.rearrange(nbCompo) f.setArray(arr) ; f.checkCoherency() f.setTime(self._time[0],self._time[1],0)