Response to code review.

This commit is contained in:
Nick Thompson 2021-03-12 21:14:50 +00:00
parent 4e7d85094e
commit b1c0f46ac0

@ -193,10 +193,7 @@ VTKM_CONT void CellSetExtrude::GetIndices(vtkm::Id index,
VTKM_CONT void CellSetExtrude::GetIndices(vtkm::Id index,
vtkm::cont::ArrayHandle<vtkm::Id>& ids) const
{
if (ids.GetNumberOfValues() < 6)
{
ids.Allocate(6);
}
ids.Allocate(6);
auto outIdPortal = ids.WritePortal();
vtkm::cont::Token token;
auto conn = this->PrepareForInput(vtkm::cont::DeviceAdapterTagSerial{},