Skip to content

Commit 229e2d0

Browse files
Antoine Lavandierrenefritze
authored andcommitted
Fixed pointData being used instead of cellData
1 parent 5a42121 commit 229e2d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyevtk/hl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def _addDataToParallelFile(vtkParallelFile, cellData, pointData):
108108
vectors = next((key for key in keys if cellData[key][1] == 3), None)
109109
vtkParallelFile.openData("PCell", scalars=scalars, vectors=vectors)
110110
for key in keys:
111-
dtype, ncomp = pointData[key]
111+
dtype, ncomp = cellData[key]
112112
vtkParallelFile.addHeader(key, dtype=dtype, ncomp=ncomp)
113113
vtkParallelFile.closeData("PCell")
114114

0 commit comments

Comments
 (0)