diff --git a/applications/test/Tuple2/Test-Tuple2.C b/applications/test/Tuple2/Test-Tuple2.C index 27b0fbf6d0..4f02359f03 100644 --- a/applications/test/Tuple2/Test-Tuple2.C +++ b/applications/test/Tuple2/Test-Tuple2.C @@ -39,6 +39,7 @@ Description #include "List.H" #include "ListOps.H" #include "ops.H" +#include "PstreamCombineReduceOps.H" #include using namespace Foam; @@ -121,6 +122,43 @@ int main() Info<< "Unsorted tuples:" << nl << list1 << nl; + // Test minFirst, maxFirst functors + { + indexedScalar minIndexed(labelMax, Zero); + indexedScalar maxIndexed(labelMin, Zero); + + for (const auto& item : list1) + { + minFirstEqOp