diff --git a/vtkm/worklet/testing/UnitTestScatterAndMaskWithTopology.cxx b/vtkm/worklet/testing/UnitTestScatterAndMaskWithTopology.cxx index dd49fa072..0b3a5fbf6 100644 --- a/vtkm/worklet/testing/UnitTestScatterAndMaskWithTopology.cxx +++ b/vtkm/worklet/testing/UnitTestScatterAndMaskWithTopology.cxx @@ -18,7 +18,7 @@ #include #include -namespace maptopology3d +namespace { class TestWorkletMapTopo : public vtkm::worklet::WorkletVisitPointsWithCells @@ -177,35 +177,36 @@ void TestWorkletMapField3d(vtkm::cont::DeviceAdapterId id) using HandleTypesToTest3D = vtkm::List; + using HandleTypesToTest1D = + vtkm::List; + std::cout << "Testing WorkletMapTopology with ScatterIdentity on device adapter: " << id.GetName() << std::endl; - vtkm::testing::Testing::TryTypes(maptopology3d::DoTestWorklet(), + vtkm::testing::Testing::TryTypes(DoTestWorklet(), HandleTypesToTest3D()); std::cout << "Testing WorkletMapTopology with ScatterUniform on device adapter: " << id.GetName() << std::endl; - vtkm::testing::Testing::TryTypes(maptopology3d::DoTestWorklet(), + vtkm::testing::Testing::TryTypes(DoTestWorklet(), HandleTypesToTest3D()); std::cout << "Testing WorkletMapTopology with MaskNone on device adapter: " << id.GetName() << std::endl; - vtkm::testing::Testing::TryTypes(maptopology3d::DoTestWorklet(), - HandleTypesToTest3D()); + vtkm::testing::Testing::TryTypes(DoTestWorklet(), HandleTypesToTest3D()); std::cout << "Testing WorkletMapTopology with MaskSelect on device adapter: " << id.GetName() << std::endl; - vtkm::testing::Testing::TryTypes(maptopology3d::DoTestWorklet(), - HandleTypesToTest3D()); + vtkm::testing::Testing::TryTypes(DoTestWorklet(), + HandleTypesToTest1D()); } -} // maptopology3d namespace +} // namespace int UnitTestScatterAndMaskWithTopology(int argc, char* argv[]) { - return vtkm::cont::testing::Testing::RunOnDevice( - maptopology3d::TestWorkletMapField3d, argc, argv); + return vtkm::cont::testing::Testing::RunOnDevice(TestWorkletMapField3d, argc, argv); }