Skip to content
Snippets Groups Projects
Commit 9f3294ad authored by Kenneth Moreland's avatar Kenneth Moreland Committed by Kitware Robot
Browse files

Merge topic 'fix-deprecation-in-example'


69bacdfc Fix deprecation warning in histogram example

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Acked-by: default avatarSujin Philip <sujin.philip@kitware.com>
Merge-request: !2553
parents 82f5b5eb 69bacdfc
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ int main(int argc, char* argv[])
vtkm::cont::PartitionedDataSet result = histogram.Execute(pds);
vtkm::cont::ArrayHandle<vtkm::Id> bins;
result.GetPartition(0).GetField("histogram").GetData().CopyTo(bins);
result.GetPartition(0).GetField("histogram").GetData().AsArrayHandle(bins);
auto binPortal = bins.ReadPortal();
if (rank == 0)
{
......
......@@ -44,7 +44,8 @@ public:
void SetLocalHistogram(vtkm::Id index, const vtkm::cont::Field& field)
{
this->SetLocalHistogram(index, field.GetData().Cast<vtkm::cont::ArrayHandle<vtkm::Id>>());
this->SetLocalHistogram(index,
field.GetData().AsArrayHandle<vtkm::cont::ArrayHandle<vtkm::Id>>());
}
vtkm::cont::ArrayHandle<vtkm::Id> ReduceAll(const vtkm::Id numBins) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment