39 void Foam::parFvFieldDistributor::createPatchFaceMaps()
41 const fvBoundaryMesh& fvb = srcMesh_.
boundary();
43 patchFaceMaps_.resize(fvb.size());
47 if (!isA<processorFvPatch>(fvb[patchi]))
58 new mapDistributeBase(distMap_.
faceMap())
61 patchFaceMaps_[patchi].compactRemoteData
79 const fvMesh& srcMesh,
81 const mapDistributePolyMesh& distMap,
82 const bool isWriteProc
88 dummyHandler_(fileOperation::null()),
89 writeHandler_(dummyHandler_),
90 isWriteProc_(isWriteProc)
92 createPatchFaceMaps();
98 const fvMesh& srcMesh,
100 const mapDistributePolyMesh& distMap,
101 refPtr<fileOperation>& writeHandler
107 dummyHandler_(nullptr),
108 writeHandler_(writeHandler),
111 createPatchFaceMaps();
129 if (isWriteProc_.
good())
136 else if (writeHandler_ && writeHandler_->good())
bool good() const noexcept
True if the Switch represents a valid enumeration.
static int verbose_
Output verbosity when writing.
virtual void movePoints(const pointField &)
Move points, returns volumes swept by faces in motion.
refPtr< fileOperation > fileHandler(std::nullptr_t)
Delete current file handler - forwards to fileOperation::handler()
static int & msgType() noexcept
Message tag of standard messages.
labelRange range() const noexcept
The face range for all boundary faces.
label nFaces() const noexcept
Number of mesh faces.
virtual const pointField & points() const
Return raw points.
#define forAll(list, i)
Loop across all elements in list.
Invalid/unknown/error type.
const mapDistribute & pointMap() const noexcept
Point distribute map.
vectorField pointField
pointField is a vectorField.
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
virtual bool write(const bool writeOnProc=true) const
Write mesh using IO settings from time.
DistributedFieldMapper< directFieldMapper > distributedFieldMapper
A directFieldMapper with distributed (with local or remote) quantities.
static const UList< label > & null()
Return a UList reference to a nullObject.
static label commWorld() noexcept
Communicator for all ranks (respecting any local worlds)
void reconstructPoints()
Helper: reconstruct and write mesh points.
parFvFieldDistributor(const parFvFieldDistributor &)=delete
No copy construct.
static bool master(const label communicator=worldComm)
True if process corresponds to the master rank in the communicator.
const fvBoundaryMesh & boundary() const noexcept
Return reference to boundary mesh.
static const fileOperation & fileHandler()
Return the current file handler. Will create the default file handler if necessary.
List< label > labelList
A List of labels.
const mapDistribute & faceMap() const noexcept
Face distribute map.