An abstract base class for processor coupled interfaces. More...
#include <processorLduInterface.H>

Public Member Functions | |
| TypeNameNoDebug ("processorLduInterface") | |
| Runtime type information. | |
| processorLduInterface () noexcept=default | |
| Default construct. | |
| virtual | ~processorLduInterface ()=default |
| Destructor. | |
| virtual label | comm () const =0 |
| Return communicator used for parallel communication. | |
| virtual int | myProcNo () const =0 |
| Return processor number (rank in communicator). | |
| virtual int | neighbProcNo () const =0 |
| Return neighbour processor number (rank in communicator). | |
| virtual const tensorField & | forwardT () const =0 |
| Return face transformation tensor. | |
| virtual int | tag () const =0 |
| Return message tag used for sending. | |
| template<class Type> | |
| void | send (const UPstream::commsTypes commsType, const UList< Type > &f) const |
| Raw send function. | |
| template<class Type> | |
| void | receive (const UPstream::commsTypes commsType, UList< Type > &f) const |
| Raw receive function. | |
| template<class Type> | |
| tmp< Field< Type > > | receive (const UPstream::commsTypes commsType, const label size) const |
| Raw receive function returning field. | |
| template<class Type> | |
| void | compressedSend (const UPstream::commsTypes commsType, const UList< Type > &f) const |
| Raw send function with data compression. | |
| template<class Type> | |
| void | compressedReceive (const UPstream::commsTypes commsType, UList< Type > &f) const |
| Raw receive function with data compression. | |
| template<class Type> | |
| tmp< Field< Type > > | compressedReceive (const UPstream::commsTypes commsType, const label size) const |
| Raw receive function with data compression returning field. | |
| 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.
References Foam::noexcept.
Referenced by calculatedProcessorGAMGInterface::calculatedProcessorGAMGInterface(), processorGAMGInterface::processorGAMGInterface(), and ~processorLduInterface().

|
virtualdefault |
| TypeNameNoDebug | ( | "processorLduInterface" | ) |
Runtime type information.
|
pure virtual |
Return communicator used for parallel communication.
Implemented in calculatedProcessorGAMGInterface, lduPrimitiveProcessorInterface, processorFaPatch, processorFvPatch, and processorGAMGInterface.
References comm().
Referenced by comm(), compressedReceive(), compressedSend(), receive(), and send().


|
pure virtual |
Return processor number (rank in communicator).
Implemented in calculatedProcessorGAMGInterface, lduPrimitiveProcessorInterface, processorFaPatch, processorFvPatch, and processorGAMGInterface.
References myProcNo().
Referenced by lduPrimitiveMesh::lduPrimitiveMesh(), myProcNo(), and oversetFvMeshBase::write().


|
pure virtual |
Return neighbour processor number (rank in communicator).
Implemented in calculatedProcessorGAMGInterface, lduPrimitiveProcessorInterface, processorFaPatch, processorFvPatch, and processorGAMGInterface.
References neighbProcNo().
Referenced by compressedReceive(), compressedSend(), lduPrimitiveMesh::lduPrimitiveMesh(), neighbProcNo(), receive(), send(), and oversetFvMeshBase::write().


|
pure virtual |
Return face transformation tensor.
Implemented in calculatedProcessorGAMGInterface, lduPrimitiveProcessorInterface, processorCyclicFvPatch, processorFaPatch, processorFvPatch, and processorGAMGInterface.
References forwardT().
Referenced by forwardT().


|
pure virtual |
Return message tag used for sending.
Implemented in calculatedProcessorGAMGInterface, lduPrimitiveProcessorInterface, processorCyclicFvPatch, processorFaPatch, processorFvPatch, and processorGAMGInterface.
References f(), receive(), send(), and tag().
Referenced by compressedReceive(), compressedSend(), receive(), send(), and tag().


| void send | ( | const UPstream::commsTypes | commsType, |
| const UList< Type > & | f ) const |
Raw send function.
Definition at line 29 of file processorLduInterfaceTemplates.C.
References Foam::abort(), UPstream::buffered, comm(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, fld(), Foam::is_contiguous_v, neighbProcNo(), UPstream::nonBlocking, UIPstream::read(), UPstream::scheduled, tag(), and UOPstream::write().
Referenced by compressedSend(), calculatedProcessorGAMGInterface::initInternalFieldTransfer(), lduPrimitiveProcessorInterface::initInternalFieldTransfer(), lduPrimitiveProcessorInterface::initInternalFieldTransfer(), processorFaPatch::initInternalFieldTransfer(), processorFvPatch::initInternalFieldTransfer(), processorFvPatch::initInternalFieldTransfer(), processorGAMGInterface::initInternalFieldTransfer(), processorGAMGInterface::initInternalFieldTransfer(), processorFaPatch::initTransfer(), and tag().


| void receive | ( | const UPstream::commsTypes | commsType, |
| UList< Type > & | f ) const |
Raw receive function.
Definition at line 105 of file processorLduInterfaceTemplates.C.
References Foam::abort(), UPstream::buffered, comm(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, fld(), Foam::is_contiguous_v, neighbProcNo(), UPstream::nonBlocking, UIPstream::read(), UPstream::scheduled, and tag().
Referenced by compressedReceive(), calculatedProcessorGAMGInterface::internalFieldTransfer(), lduPrimitiveProcessorInterface::internalFieldTransfer(), processorFaPatch::internalFieldTransfer(), processorFaPatch::internalFieldTransfer(), processorFvPatch::internalFieldTransfer(), processorGAMGInterface::internalFieldTransfer(), receive(), tag(), and processorFaPatch::transfer().


| tmp< Field< Type > > receive | ( | const UPstream::commsTypes | commsType, |
| const label | size ) const |
Raw receive function returning field.
References compressedReceive(), compressedSend(), f(), and receive().

| void compressedSend | ( | const UPstream::commsTypes | commsType, |
| const UList< Type > & | f ) const |
Raw send function with data compression.
Definition at line 165 of file processorLduInterfaceTemplates.C.
References UPstream::buffered, comm(), Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, UPstream::floatTransfer, neighbProcNo(), UPstream::nonBlocking, UIPstream::read(), UPstream::scheduled, send(), tag(), and UOPstream::write().
Referenced by receive().


| void compressedReceive | ( | const UPstream::commsTypes | commsType, |
| UList< Type > & | f ) const |
Raw receive function with data compression.
Definition at line 254 of file processorLduInterfaceTemplates.C.
References UPstream::buffered, comm(), Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, UPstream::floatTransfer, neighbProcNo(), UPstream::nonBlocking, UIPstream::read(), receive(), UPstream::scheduled, and tag().
Referenced by compressedReceive(), and receive().


| tmp< Field< Type > > compressedReceive | ( | const UPstream::commsTypes | commsType, |
| const label | size ) const |
Raw receive function with data compression returning field.
References compressedReceive().

| Foam::tmp< Foam::Field< Type > > receive | ( | const UPstream::commsTypes | commsType, |
| const label | size ) const |
Definition at line 152 of file processorLduInterfaceTemplates.C.
References Foam::New(), and receive().

| Foam::tmp< Foam::Field< Type > > compressedReceive | ( | const UPstream::commsTypes | commsType, |
| const label | size ) const |
Definition at line 320 of file processorLduInterfaceTemplates.C.
References compressedReceive(), and Foam::New().
