From 5ab9f955b02a51a728a82d754e81277d06734df6 Mon Sep 17 00:00:00 2001 From: joergbuchwald Date: Mon, 30 Sep 2024 14:28:27 +0200 Subject: [PATCH] add array type for cell fields --- VTUinterface/vtuIO.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VTUinterface/vtuIO.py b/VTUinterface/vtuIO.py index bfc978b..9f38737 100644 --- a/VTUinterface/vtuIO.py +++ b/VTUinterface/vtuIO.py @@ -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: