67 if (!isA<processorFvPatch>(
p))
72 ) <<
"patch " << this->
patch().
index() <<
" not processor type. "
73 <<
"Patch type = " << p.type()
91 if (!isA<processorFvPatch>(this->
patch()))
94 <<
"Field type does not correspond to patch type for patch "
97 <<
"Patch type: " << this->
patch().type()
134 receiveBuf_.setSize(this->size());
139 procPatch_.neighbProcNo(),
140 reinterpret_cast<char*
>(receiveBuf_.begin()),
141 receiveBuf_.byteSize(),
150 procPatch_.neighbProcNo(),
151 reinterpret_cast<const char*
>(this->begin()),
171 receiveBuf_.setSize(this->size());
176 procPatch_.neighbProcNo(),
177 reinterpret_cast<char*
>(receiveBuf_.begin()),
178 receiveBuf_.byteSize(),
184 procPatch_.transform().transform(receiveBuf_, receiveBuf_);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Pre-declare SubField and related Field type.
static const char *const typeName
static label read(const commsTypes commsType, const int fromProcNo, char *buf, const std::streamsize bufSize, const int tag=UPstream::msgType(), const label communicator=0)
Read into given buffer from given processor and return the.
static bool write(const commsTypes commsType, const int toProcNo, const char *buf, const std::streamsize bufSize, const int tag=UPstream::msgType(), const label communicator=0)
Write given buffer to given processor.
commsTypes
Types of communications.
static bool & parRun()
Is this a parallel run?
Foam::coupledFvsPatchField.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base class for field mapping.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
label index() const
Return the index of this patch in the fvBoundaryMesh.
const fvPatch & patch() const
Return patch.
Foam::processorFvsPatchField.
processorFvsPatchField(const fvPatch &, const DimensionedField< Type, surfaceMesh > &)
Construct from patch and internal field.
virtual tmp< Field< Type > > patchNeighbourField(const Pstream::commsTypes commsType) const
Return patchField on the opposite patch of a coupled patch.
virtual ~processorFvsPatchField()
Destructor.
virtual void initPatchNeighbourField(const Pstream::commsTypes commsType) const
Initialise return of the patchField on the opposite patch of a.
A class for managing temporary objects.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
To & refCast(From &r)
Reference type cast template function.
Ostream & endl(Ostream &os)
Add newline and flush stream.