An abstract base class for processor coupled interfaces. More...
Public Member Functions | |
TypeNameNoDebug ("processorLduInterface") | |
Runtime type information. More... | |
processorLduInterface () noexcept=default | |
Default construct. More... | |
virtual | ~processorLduInterface ()=default |
Destructor. More... | |
virtual label | comm () const =0 |
Return communicator used for parallel communication. More... | |
virtual int | myProcNo () const =0 |
Return processor number (rank in communicator) More... | |
virtual int | neighbProcNo () const =0 |
Return neighbour processor number (rank in communicator) More... | |
virtual const tensorField & | forwardT () const =0 |
Return face transformation tensor. More... | |
virtual int | tag () const =0 |
Return message tag used for sending. More... | |
template<class Type > | |
void | send (const UPstream::commsTypes commsType, const UList< Type > &f) const |
Raw send function. More... | |
template<class Type > | |
void | receive (const UPstream::commsTypes commsType, UList< Type > &f) const |
Raw receive function. More... | |
template<class Type > | |
tmp< Field< Type > > | receive (const UPstream::commsTypes commsType, const label size) const |
Raw receive function returning field. More... | |
template<class Type > | |
void | compressedSend (const UPstream::commsTypes commsType, const UList< Type > &f) const |
Raw send function with data compression. More... | |
template<class Type > | |
void | compressedReceive (const UPstream::commsTypes commsType, UList< Type > &f) const |
Raw receive function with data compression. More... | |
template<class Type > | |
tmp< Field< Type > > | compressedReceive (const UPstream::commsTypes commsType, const label size) const |
Raw receive function with data compression returning field. More... | |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | receive (const UPstream::commsTypes commsType, const label size) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | compressedReceive (const UPstream::commsTypes commsType, const label size) const |
An abstract base class for processor coupled interfaces.
Definition at line 49 of file processorLduInterface.H.
|
defaultnoexcept |
Default construct.
|
virtualdefault |
Destructor.
TypeNameNoDebug | ( | "processorLduInterface" | ) |
Runtime type information.
|
pure virtual |
Return communicator used for parallel communication.
Implemented in processorFaPatch, lduPrimitiveProcessorInterface, calculatedProcessorGAMGInterface, processorGAMGInterface, and processorFvPatch.
Referenced by procLduInterface::procLduInterface().
|
pure virtual |
Return processor number (rank in communicator)
Implemented in processorFaPatch, lduPrimitiveProcessorInterface, calculatedProcessorGAMGInterface, processorGAMGInterface, and processorFvPatch.
Referenced by lduPrimitiveMesh::lduPrimitiveMesh(), procLduInterface::procLduInterface(), and oversetFvMeshBase::write().
|
pure virtual |
Return neighbour processor number (rank in communicator)
Implemented in processorFaPatch, lduPrimitiveProcessorInterface, calculatedProcessorGAMGInterface, processorGAMGInterface, and processorFvPatch.
Referenced by lduPrimitiveMesh::lduPrimitiveMesh(), procLduInterface::procLduInterface(), and oversetFvMeshBase::write().
|
pure virtual |
Return face transformation tensor.
Implemented in processorFaPatch, lduPrimitiveProcessorInterface, calculatedProcessorGAMGInterface, processorGAMGInterface, processorFvPatch, and processorCyclicFvPatch.
|
pure virtual |
Return message tag used for sending.
Implemented in processorFaPatch, lduPrimitiveProcessorInterface, calculatedProcessorGAMGInterface, processorGAMGInterface, processorFvPatch, and processorCyclicFvPatch.
Referenced by procLduInterface::procLduInterface().
void send | ( | const UPstream::commsTypes | commsType, |
const UList< Type > & | f | ||
) | const |
Raw send function.
Definition at line 30 of file processorLduInterfaceTemplates.C.
References Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, Foam::blockMeshTools::read(), and Foam::vtk::write().
void receive | ( | const UPstream::commsTypes | commsType, |
UList< Type > & | f | ||
) | const |
Raw receive function.
Definition at line 100 of file processorLduInterfaceTemplates.C.
References Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, and Foam::blockMeshTools::read().
tmp<Field<Type> > receive | ( | const UPstream::commsTypes | commsType, |
const label | size | ||
) | const |
Raw receive function returning field.
void compressedSend | ( | const UPstream::commsTypes | commsType, |
const UList< Type > & | f | ||
) | const |
Raw send function with data compression.
Definition at line 154 of file processorLduInterfaceTemplates.C.
References Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, Foam::blockMeshTools::read(), and Foam::vtk::write().
void compressedReceive | ( | const UPstream::commsTypes | commsType, |
UList< Type > & | f | ||
) | const |
Raw receive function with data compression.
Definition at line 244 of file processorLduInterfaceTemplates.C.
References Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, and Foam::blockMeshTools::read().
tmp<Field<Type> > compressedReceive | ( | const UPstream::commsTypes | commsType, |
const label | size | ||
) | const |
Raw receive function with data compression returning field.
Foam::tmp<Foam::Field<Type> > receive | ( | const UPstream::commsTypes | commsType, |
const label | size | ||
) | const |
Definition at line 141 of file processorLduInterfaceTemplates.C.
References Foam::New().
Foam::tmp<Foam::Field<Type> > compressedReceive | ( | const UPstream::commsTypes | commsType, |
const label | size | ||
) | const |
Definition at line 311 of file processorLduInterfaceTemplates.C.
References Foam::New().