mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-19 02:25:42 +00:00
Merge topic 'fix-mask-scatter-size'
472528822 Fix the size of Mask and ScatterPermutation arrays Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3037
This commit is contained in:
commit
42b364b416
@ -59,7 +59,10 @@ public:
|
||||
VTKM_CONT OutputToInputMapType GetOutputToInputMap() const { return this->Permutation; }
|
||||
|
||||
VTKM_CONT
|
||||
VisitArrayType GetVisitArray(vtkm::Id inputRange) const { return VisitArrayType(0, inputRange); }
|
||||
VisitArrayType GetVisitArray(vtkm::Id inputRange) const
|
||||
{
|
||||
return VisitArrayType(0, this->GetOutputRange(inputRange));
|
||||
}
|
||||
|
||||
VTKM_CONT
|
||||
VisitArrayType GetVisitArray(vtkm::Id3 inputRange) const
|
||||
|
@ -759,7 +759,7 @@ private:
|
||||
|
||||
// Get the arrays used for masking output elements.
|
||||
typename MaskType::ThreadToOutputMapType threadToOutputMap =
|
||||
this->Mask.GetThreadToOutputMap(inputRange);
|
||||
this->Mask.GetThreadToOutputMap(outputRange);
|
||||
|
||||
// Replace the parameters in the invocation with the execution object and
|
||||
// pass to next step of Invoke. Also add the scatter information.
|
||||
|
Loading…
Reference in New Issue
Block a user