mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: remove unneeded UPstream::listEq
- was only used in Pstream::combineReduce(...) with a full list, which should have been avoided in most cases anyhow. Much more efficient to simply gather the sizes directly
This commit is contained in:
@ -86,8 +86,8 @@ SourceFiles
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef ListListOps_H
|
||||
#define ListListOps_H
|
||||
#ifndef Foam_ListListOps_H
|
||||
#define Foam_ListListOps_H
|
||||
|
||||
#include "labelList.H"
|
||||
|
||||
|
||||
@ -184,22 +184,6 @@ public:
|
||||
friend Ostream& operator<<(Ostream&, const commsStruct&);
|
||||
};
|
||||
|
||||
//- combineReduce operator for lists. Used for counting.
|
||||
struct listEq
|
||||
{
|
||||
template<class T>
|
||||
void operator()(T& x, const T& y) const
|
||||
{
|
||||
forAll(y, i)
|
||||
{
|
||||
if (y[i].size())
|
||||
{
|
||||
x[i] = y[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user