From b16dc73f3d55fbe0df9085777ae5800c56afe86c Mon Sep 17 00:00:00 2001 From: Oliver Ruebel Date: Mon, 17 May 2021 15:21:17 -0700 Subject: [PATCH] Remove broken copy / ArrayHandleDecorator while working on a fix --- .../contourtree_distributed/HierarchicalAugmenter.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vtkm/worklet/contourtree_distributed/HierarchicalAugmenter.h b/vtkm/worklet/contourtree_distributed/HierarchicalAugmenter.h index f826d8553..e7d9eea28 100644 --- a/vtkm/worklet/contourtree_distributed/HierarchicalAugmenter.h +++ b/vtkm/worklet/contourtree_distributed/HierarchicalAugmenter.h @@ -314,12 +314,15 @@ void HierarchicalAugmenter::Initialize( // get the ascending flag from the superparent's superarc and transfer to the superparent // Array decorator to add the IS_ASCENDING flag to our superparent, i.e., // if (isAscending(baseTree->superarcs[superparent])){ superparent |= IS_ASCENDING; } - auto isAscendingSuperparentArr = vtkm::cont::make_ArrayHandleDecorator( + // TODO: FIX The copy call fails bacause VTKm can't get the storage flag fomr the Permutted Array in the ArrayHandleDecorator + throw std::logic_error( + "The last copy call in HierarchicalAugmenter::Initalize is not compiling yet"); + /*auto isAscendingSuperparentArr = vtkm::cont::make_ArrayHandleDecorator( superparents.GetNumberOfValues(), vtkm::worklet::contourtree_distributed::hierarchical_augmenter::IsAscendingDecorator{}, superparents, this->BaseTree->Superarcs); - vtkm::cont::Algorithm::Copy(isAscendingSuperparentArr, superparents); + vtkm::cont::Algorithm::Copy(isAscendingSuperparentArr, superparents);*/ } // clean up memory