Go to the documentation of this file.
36 #include "vtkMultiPieceDataSet.h"
37 #include "vtkPolyData.h"
38 #include "vtkSmartPointer.h"
49 multiPiece->SetNumberOfPieces(Pstream::nProcs());
51 if (!needsCollective())
64 else if (Pstream::master())
85 int slave=Pstream::firstSlave();
86 slave<=Pstream::lastSlave();
90 IPstream fromSlave(Pstream::commsTypes::scheduled, slave);
95 fromSlave >>
points >> faces;
113 Pstream::commsTypes::scheduled,
140 multiPiece->SetNumberOfPieces(Pstream::nProcs());
142 if (!needsCollective())
155 multiPiece->SetPiece(Pstream::myProcNo(), geom);
158 else if (Pstream::master())
171 multiPiece->SetPiece(Pstream::myProcNo(), geom);
179 int slave=Pstream::firstSlave();
180 slave<=Pstream::lastSlave();
184 IPstream fromSlave(Pstream::commsTypes::scheduled, slave);
206 Pstream::commsTypes::scheduled,
vectorField pointField
pointField is a vectorField.
vtkSmartPointer< vtkMultiPieceDataSet > gatherFaceCentres(const polySurface *surf) const
Output inter-processor communications stream.
A surface mesh consisting of general polygon faces and capable of holding fields.
virtual label nFaces() const
Return the number of faces.
virtual const pointField & points() const
Return points.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
vtkSmartPointer< vtkMultiPieceDataSet > gatherSurfacePieces(const polySurface *surf) const
List< face > faceList
A List of faces.
const Field< PointType > & faceCentres() const
Return face centres for patch.
void clear()
Clear the list, i.e. set size to zero.
virtual const faceList & faces() const
Return faces.
Input inter-processor communications stream.