From 72edde3107a1620c1fe6fc480a45ae8a98219dab Mon Sep 17 00:00:00 2001 From: ageay Date: Wed, 3 Jul 2013 08:53:57 +0000 Subject: [PATCH] A draft of VTKReader --- src/MEDLoader/Swig/VTKReader.py | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.2