Commit 3d0a39f0 authored by Robert Maynard's avatar Robert Maynard
Browse files

Correct bugs that the new VTK-m dispatcher type checking has found.

The counting array in these 2 occurrences would be 32bit integers and we need
them to be 64bit integers ( when vtkIdType == 64bit ).
parent 77ebbaa9
......@@ -142,7 +142,7 @@ typename vtkm::exec::ReverseConnectivityVTK<Device>
this->RConn.Allocate(rconnSize);
vtkm::worklet::DispatcherMapField<ComputeReverseMapping, Device> dispatcher;
dispatcher.Invoke(vtkm::cont::make_ArrayHandleCounting(0, 1, numberOfCells),
dispatcher.Invoke(vtkm::cont::make_ArrayHandleCounting<vtkm::Id>(0, 1, numberOfCells),
this->IndexOffsets, this->Connectivity, pointIdKey, this->RConn);
Algorithm::SortByKey(pointIdKey, this->RConn);
......
......@@ -139,8 +139,10 @@ typename vtkm::exec::ReverseConnectivityVTK<Device>
pointIdKey.Allocate(rconnSize);
this->RConn.Allocate(rconnSize);
vtkm::worklet::DispatcherMapField<ComputeSingleTypeReverseMapping, Device> dispatcher( ComputeSingleTypeReverseMapping(this->DetermineNumberOfPoints()));
dispatcher.Invoke(vtkm::cont::make_ArrayHandleCounting(0, 1, numberOfCells),
vtkm::worklet::DispatcherMapField<ComputeSingleTypeReverseMapping, Device>
dispatcher(
ComputeSingleTypeReverseMapping(this->DetermineNumberOfPoints()));
dispatcher.Invoke(vtkm::cont::make_ArrayHandleCounting<vtkm::Id>(0, 1, numberOfCells),
this->Connectivity, pointIdKey, this->RConn);
Algorithm::SortByKey(pointIdKey, this->RConn);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment