Skip to content

Fix TBB reduce when reducing 1 value

Kenneth Moreland requested to merge kmorel/vtk-m:tbb-reduce-1-value into master

The first thing the TBB functor for reduce does is to reduce the first two values. This is a problem when trying to "reduce" an array of size

  1. You can potentially get a seg-fault when getting the second value. Added a special case when reducing a range of size 1.

Merge request reports