38 template<
class>
class FaceList,
44 const scalar mergeDist,
55 gatheredPoints[Pstream::myProcNo()] = p.
points();
57 Pstream::gatherList(gatheredPoints);
59 if (Pstream::master())
67 mergedPoints = ListListOps::combine<Field<PointType> >
79 gatheredFaces[Pstream::myProcNo()] =
p;
80 Pstream::gatherList(gatheredFaces);
82 if (Pstream::master())
86 ListListOps::combineOffset<List<Face> >
97 if (Pstream::master())
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
static void gatherAndMerge(const scalar mergeDist, const PrimitivePatch< Face, FaceList, PointField, PointType > &p, Field< PointType > &mergedPoints, List< Face > &mergedFaces, labelList &pointMergeMap)
Gather points and faces onto master and merge into single patch.
A list of faces which address into the list of points.
label mergePoints(const UList< Type > &points, const scalar mergeTol, const bool verbose, labelList &pointMap, const Type &origin=Type::zero)
Sorts and merges points. All points closer than/equal mergeTol get merged.
labelList subSizes(const List< T > &, AccessOp aop=accessOp< T >())
Gets sizes of sublists.
void inplaceRenumber(const labelUList &oldToNew, ListType &)
Inplace renumber the values of a list.
const Field< PointType > & points() const
Return reference to global points.