From c7756c78bbb6f170dfa23965ba35c3e08ee70a21 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Mon, 4 Jan 2016 16:55:47 -0500 Subject: [PATCH] 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. --- vtkm/cont/tbb/internal/DeviceAdapterAlgorithmTBB.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vtkm/cont/tbb/internal/DeviceAdapterAlgorithmTBB.h b/vtkm/cont/tbb/internal/DeviceAdapterAlgorithmTBB.h index 557c30ff6..ea833ad0f 100644 --- a/vtkm/cont/tbb/internal/DeviceAdapterAlgorithmTBB.h +++ b/vtkm/cont/tbb/internal/DeviceAdapterAlgorithmTBB.h @@ -229,7 +229,7 @@ public: /// Move value indexes when sorting and reorder the value array at last typedef vtkm::cont::ArrayHandle ValueType; - typedef vtkm::cont::ArrayHandle IndexType; + typedef vtkm::cont::ArrayHandle IndexType; typedef vtkm::cont::ArrayHandleZip ZipHandleType; IndexType indexArray;