use ravel since it doesnt always copy
This commit is contained in:
parent
0619930cfa
commit
e2fe40c460
3
field.py
3
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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue