From 86ecad659a3cabf78152af31284cb5af9cb461fc Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Tue, 15 Mar 2016 16:20:37 -0400 Subject: [PATCH] ScatterIdentity::GetOutputToInputMap parameters are now named properly Now it is clear you pass in the input range and you will get the output range. --- vtkm/worklet/ScatterIdentity.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vtkm/worklet/ScatterIdentity.h b/vtkm/worklet/ScatterIdentity.h index 49b2d488c..7865f19ef 100644 --- a/vtkm/worklet/ScatterIdentity.h +++ b/vtkm/worklet/ScatterIdentity.h @@ -40,15 +40,15 @@ struct ScatterIdentity { typedef vtkm::cont::ArrayHandleIndex OutputToInputMapType; VTKM_CONT_EXPORT - OutputToInputMapType GetOutputToInputMap(vtkm::Id outputRange) const + OutputToInputMapType GetOutputToInputMap(vtkm::Id inputRange) const { - return OutputToInputMapType(outputRange); + return OutputToInputMapType(inputRange); } VTKM_CONT_EXPORT - OutputToInputMapType GetOutputToInputMap(vtkm::Id3 outputRange) const + OutputToInputMapType GetOutputToInputMap(vtkm::Id3 inputRange) const { return this->GetOutputToInputMap( - outputRange[0]*outputRange[1]*outputRange[2]); + inputRange[0]*inputRange[1]*inputRange[2]); } typedef vtkm::cont::ArrayHandleConstant VisitArrayType;