ENH: identityOp as equivalent to std::identity (C++20)

- similar to how noOp was defined, but with perfect forwarding

STYLE: combine Swap into stdFoam

STYLE: capitalize FileOp, NegateOp template parameters
This commit is contained in:
Mark Olesen
2022-03-13 18:12:58 +01:00
parent ed73bcbc33
commit 327c43f3e8
39 changed files with 221 additions and 305 deletions

View File

@ -1385,7 +1385,7 @@ void Foam::distributedTriSurfaceMesh::surfaceSide
mapDistributeBase::distribute
(
Pstream::commsTypes::nonBlocking,
List<labelPair>(0),
List<labelPair>(),
nearestInfo.size(),
map.constructMap(),
map.constructHasFlip(),
@ -1394,7 +1394,7 @@ void Foam::distributedTriSurfaceMesh::surfaceSide
volType,
zero,
volumeCombineOp(),
noOp(), // no flipping
identityOp(), // No flipping
UPstream::msgType(),
map.comm()
);
@ -3197,7 +3197,7 @@ void Foam::distributedTriSurfaceMesh::findNearest
mapDistributeBase::distribute
(
Pstream::commsTypes::nonBlocking,
List<labelPair>(0),
List<labelPair>(),
samples.size(),
map1.constructMap(),
map1.constructHasFlip(),
@ -3206,7 +3206,7 @@ void Foam::distributedTriSurfaceMesh::findNearest
nearestInfo,
nearestZero,
nearestEqOp(),
noOp(), // no flipping
identityOp(), // No flipping
UPstream::msgType(),
map1.comm()
);
@ -3357,7 +3357,7 @@ void Foam::distributedTriSurfaceMesh::findNearest
mapDistributeBase::distribute
(
Pstream::commsTypes::nonBlocking,
List<labelPair>(0),
List<labelPair>(),
samples.size(),
map2.constructMap(),
map2.constructHasFlip(),
@ -3366,7 +3366,7 @@ void Foam::distributedTriSurfaceMesh::findNearest
localBest,
nearestZero,
nearestEqOp(),
noOp(), // no flipping
identityOp(), // No flipping
UPstream::msgType(),
map2.comm()
);
@ -4191,7 +4191,7 @@ void Foam::distributedTriSurfaceMesh::getVolumeType
mapDistributeBase::distribute
(
Pstream::commsTypes::nonBlocking,
List<labelPair>(0),
List<labelPair>(),
samples.size(),
map.constructMap(),
map.constructHasFlip(),
@ -4200,7 +4200,7 @@ void Foam::distributedTriSurfaceMesh::getVolumeType
volType,
zero,
volumeCombineOp(),
noOp(), // no flipping
identityOp(), // No flipping
UPstream::msgType(),
map.comm()
);