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

index 8359d26da69b7a0f4d167c14d4838ea8781de56b..4af22c8cf002f09053357eb6967881765a340f86 100644 (file)
@@ -171,7 +171,7 @@ class VTURawReader:
         m.checkCoherency() ; mm=MEDFileUMesh() ; mm.setMeshAtLevel(0,m) ; ms.pushMesh(mm)
         # Fields on nodes and on cells
         for spatialDisc,nbEnt,fields in [(ON_NODES,rd._nb_nodes,rd._node_fields),(ON_CELLS,rd._nb_cells,rd._cell_fields)]: 
-            for name,typ,nbCompo,off in rd._node_fields:
+            for name,typ,nbCompo,off in fields:
                 ff=MEDFileFieldMultiTS()
                 f=MEDCouplingFieldDouble(spatialDisc,ONE_TIME)
                 f.setName(name) ; f.setMesh(m)