use ravel since it doesnt always copy

This commit is contained in:
Michael Krayer 2021-05-27 23:39:13 +02:00
parent 0619930cfa
commit e2fe40c460
1 changed files with 2 additions and 1 deletions

View File

@ -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):