mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-19 10:35:42 +00:00
ScatterIdentity::GetVisitArray parameters are now named properly
Now it is clear you pass in the input range and you will get the output range
This commit is contained in:
parent
86ecad659a
commit
85084f2ca1
@ -53,14 +53,14 @@ struct ScatterIdentity
|
|||||||
|
|
||||||
typedef vtkm::cont::ArrayHandleConstant<vtkm::IdComponent> VisitArrayType;
|
typedef vtkm::cont::ArrayHandleConstant<vtkm::IdComponent> VisitArrayType;
|
||||||
VTKM_CONT_EXPORT
|
VTKM_CONT_EXPORT
|
||||||
VisitArrayType GetVisitArray(vtkm::Id outputRange) const
|
VisitArrayType GetVisitArray(vtkm::Id inputRange) const
|
||||||
{
|
{
|
||||||
return VisitArrayType(1, outputRange);
|
return VisitArrayType(1, inputRange);
|
||||||
}
|
}
|
||||||
VTKM_CONT_EXPORT
|
VTKM_CONT_EXPORT
|
||||||
VisitArrayType GetVisitArray(vtkm::Id3 outputRange) const
|
VisitArrayType GetVisitArray(vtkm::Id3 inputRange) const
|
||||||
{
|
{
|
||||||
return this->GetVisitArray(outputRange[0]*outputRange[1]*outputRange[2]);
|
return this->GetVisitArray(inputRange[0]*inputRange[1]*inputRange[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename RangeType>
|
template<typename RangeType>
|
||||||
|
Loading…
Reference in New Issue
Block a user