Serial SortByKey works now when the key is a ArrayHandleZip.

The issue was that the temporary index array storage container
was the same as the input ArrayHandleZip which is not correct.
This commit is contained in:
Robert Maynard 2015-12-31 14:45:18 -05:00
parent 37851dbe9f
commit c9751b0d40

@ -412,7 +412,7 @@ public:
/// More efficient sort:
/// Move value indexes when sorting and reorder the value array at last
typedef vtkm::cont::ArrayHandle<U,StorageU> ValueType;
typedef vtkm::cont::ArrayHandle<vtkm::Id,StorageU> IndexType;
typedef vtkm::cont::ArrayHandle<vtkm::Id> IndexType;
IndexType indexArray;
ValueType valuesScattered;