TBB 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 2016-01-04 16:55:47 -05:00
parent c9751b0d40
commit c7756c78bb

@ -229,7 +229,7 @@ public:
/// 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;
typedef vtkm::cont::ArrayHandleZip<KeyType,IndexType> ZipHandleType;
IndexType indexArray;