]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
A draft of VTKReader
authorageay <ageay>
Wed, 3 Jul 2013 08:53:57 +0000 (08:53 +0000)
committerageay <ageay>
Wed, 3 Jul 2013 08:53:57 +0000 (08:53 +0000)
src/MEDLoader/Swig/VTKReader.py

index 4af22c8cf002f09053357eb6967881765a340f86..90c730548308882617d1e081a163e9e9abe076f2 100644 (file)
@@ -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)