mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
Response to code review.
This commit is contained in:
parent
4e7d85094e
commit
b1c0f46ac0
@ -192,11 +192,8 @@ VTKM_CONT void CellSetExtrude::GetIndices(vtkm::Id index,
|
|||||||
|
|
||||||
VTKM_CONT void CellSetExtrude::GetIndices(vtkm::Id index,
|
VTKM_CONT void CellSetExtrude::GetIndices(vtkm::Id index,
|
||||||
vtkm::cont::ArrayHandle<vtkm::Id>& ids) const
|
vtkm::cont::ArrayHandle<vtkm::Id>& ids) const
|
||||||
{
|
|
||||||
if (ids.GetNumberOfValues() < 6)
|
|
||||||
{
|
{
|
||||||
ids.Allocate(6);
|
ids.Allocate(6);
|
||||||
}
|
|
||||||
auto outIdPortal = ids.WritePortal();
|
auto outIdPortal = ids.WritePortal();
|
||||||
vtkm::cont::Token token;
|
vtkm::cont::Token token;
|
||||||
auto conn = this->PrepareForInput(vtkm::cont::DeviceAdapterTagSerial{},
|
auto conn = this->PrepareForInput(vtkm::cont::DeviceAdapterTagSerial{},
|
||||||
|
Loading…
Reference in New Issue
Block a user