mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Fix inefficient copy when extracting rectilinear grids
The `ExtractStructured` code was calling `ArrayCopy` on a permutation of odd arrays, which was causing problems with the copy. Specifically use `ArrayCopyDevice` to ensure the copy happens efficiently.
This commit is contained in:
parent
c61f732101
commit
4b30939dda
@ -11,7 +11,7 @@
|
||||
#define vtk_m_worklet_ExtractStructured_h
|
||||
|
||||
#include <vtkm/RangeId3.h>
|
||||
#include <vtkm/cont/ArrayCopy.h>
|
||||
#include <vtkm/cont/ArrayCopyDevice.h>
|
||||
#include <vtkm/cont/ArrayGetValues.h>
|
||||
#include <vtkm/cont/ArrayHandle.h>
|
||||
#include <vtkm/cont/ArrayHandleCartesianProduct.h>
|
||||
@ -468,8 +468,8 @@ private:
|
||||
}
|
||||
else
|
||||
{
|
||||
vtkm::cont::ArrayCopy(vtkm::cont::make_ArrayHandlePermutation(validIds[i], arrays[i]),
|
||||
xyzs[i]);
|
||||
vtkm::cont::ArrayCopyDevice(vtkm::cont::make_ArrayHandlePermutation(validIds[i], arrays[i]),
|
||||
xyzs[i]);
|
||||
++dim;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user