From f62f1755e7a466a4a9ee859ed86f01bd345103ea Mon Sep 17 00:00:00 2001 From: Jeremy Meredith Date: Fri, 28 Aug 2015 16:57:06 -0400 Subject: [PATCH] the value after the name in the cell set constructor is dimensionality, not numcells. --- vtkm/worklet/testing/UnitTestExternalFaces.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vtkm/worklet/testing/UnitTestExternalFaces.cxx b/vtkm/worklet/testing/UnitTestExternalFaces.cxx index 2c7b1ebd8..60a5c3d69 100644 --- a/vtkm/worklet/testing/UnitTestExternalFaces.cxx +++ b/vtkm/worklet/testing/UnitTestExternalFaces.cxx @@ -56,8 +56,7 @@ vtkm::cont::DataSet RunExternalFaces(vtkm::cont::DataSet &ds) } - vtkm::cont::CellSetExplicit<> new_cs(cellset.GetNumberOfPoints(),"cells", - static_cast(output_shapes.GetNumberOfValues())); + vtkm::cont::CellSetExplicit<> new_cs(cellset.GetNumberOfPoints(),"cells", 2); new_cs.Fill(output_shapes, output_numIndices, output_conn); new_ds.AddCellSet(new_cs);