From c9751b0d4025b1e0df74fc30e79b1c73328c40ca Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Thu, 31 Dec 2015 14:45:18 -0500 Subject: [PATCH] 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. --- vtkm/cont/internal/DeviceAdapterAlgorithmSerial.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vtkm/cont/internal/DeviceAdapterAlgorithmSerial.h b/vtkm/cont/internal/DeviceAdapterAlgorithmSerial.h index 1b7a99fe4..84b3f874d 100644 --- a/vtkm/cont/internal/DeviceAdapterAlgorithmSerial.h +++ b/vtkm/cont/internal/DeviceAdapterAlgorithmSerial.h @@ -412,7 +412,7 @@ public: /// More efficient sort: /// 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; IndexType indexArray; ValueType valuesScattered;