From aaf4be942e4d0a8f598fa6d40aed03a83be4f2aa Mon Sep 17 00:00:00 2001 From: Dave Pugmire Date: Tue, 9 Aug 2022 09:29:43 -0400 Subject: [PATCH] debug dashboards..... --- vtkm/cont/testing/UnitTestCellLocatorTwoLevel.cxx | 5 +++-- vtkm/exec/CellLocatorTwoLevel.h | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/vtkm/cont/testing/UnitTestCellLocatorTwoLevel.cxx b/vtkm/cont/testing/UnitTestCellLocatorTwoLevel.cxx index 9050243c7..404a2df23 100644 --- a/vtkm/cont/testing/UnitTestCellLocatorTwoLevel.cxx +++ b/vtkm/cont/testing/UnitTestCellLocatorTwoLevel.cxx @@ -246,6 +246,7 @@ void TestCellLocator(const vtkm::Vec& dim, vtkm::Id number std::vector lastCell(numberOfPoints); auto lastCellArray = vtkm::cont::make_ArrayHandle(lastCell, vtkm::CopyFlag::On); + //vtkm::cont::printSummary_ArrayHandle(lastCellArray, std::cout); invoker(FindCellWorkletWithLastCell{}, points, locator, cellIds, pcoords, lastCellArray); //Call it again so that it uses the last-cell array. We should get the same results. @@ -284,8 +285,8 @@ void TestingCellLocatorTwoLevel() std::cout << "Seed: " << seed << std::endl; RandomGenerator.seed(seed); - TestCellLocator(vtkm::Id3(8), 512); // 3D dataset - TestCellLocator(vtkm::Id2(18), 512); // 2D dataset + TestCellLocator(vtkm::Id3(8), 8); // 3D dataset + TestCellLocator(vtkm::Id2(18), 8); // 2D dataset } } // anonymous diff --git a/vtkm/exec/CellLocatorTwoLevel.h b/vtkm/exec/CellLocatorTwoLevel.h index d432c98f7..b7b644bcf 100644 --- a/vtkm/exec/CellLocatorTwoLevel.h +++ b/vtkm/exec/CellLocatorTwoLevel.h @@ -284,6 +284,7 @@ private: { lastCell.CellId = cellId; lastCell.LeafIdx = leafIdx; + std::cout << " ::FindCell() " << lastCell.CellId << " " << lastCell.LeafIdx << std::endl; return vtkm::ErrorCode::Success; }