diff --git a/field.py b/field.py index f10d13b..72fc20a 100644 --- a/field.py +++ b/field.py @@ -273,7 +273,8 @@ class Field3d: mesh.dimensions = self.dim(axis=None) mesh.origin = self.origin mesh.spacing = self.spacing - mesh.point_arrays['data'] = self.data.flatten(order='F') + # order needs to be F no matter how array is stored in memory + mesh.point_arrays['data'] = self.data.ravel(order='F') return mesh def vtk_contour(self,val):