Skip to content

Commit

Permalink
add array type for cell fields
Browse files Browse the repository at this point in the history
  • Loading branch information
joergbuchwald committed Sep 30, 2024
1 parent 09801ad commit 5ab9f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VTUinterface/vtuIO.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ def add_cell_field(self, field, fieldname, ofilename, writefile=True, array_type
array_type : `vtk array type`
datamode : `str`
"""
field_vtk = numpy_to_vtk(field)
field_vtk = numpy_to_vtk(field, array_type=array_type)
r = self.cdata.AddArray(field_vtk)
self.cdata.GetArray(r).SetName(fieldname)
if writefile is True:
Expand Down

0 comments on commit 5ab9f95

Please sign in to comment.