An abstract base class for processor coupled interfaces. More...
Public Member Functions | |
TypeName ("processorLduInterface") | |
Runtime type information. More... | |
processorLduInterface () | |
Construct null. More... | |
virtual | ~processorLduInterface () |
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 transformer & | transform () const =0 |
Return transformation between the coupled patches. More... | |
virtual int | tag () const =0 |
Return message tag used for sending. More... | |
template<class Type > | |
void | send (const Pstream::commsTypes commsType, const UList< Type > &) const |
Raw send function. More... | |
template<class Type > | |
void | receive (const Pstream::commsTypes commsType, UList< Type > &) const |
Raw field receive function. More... | |
template<class Type > | |
tmp< Field< Type > > | receive (const Pstream::commsTypes commsType, const label size) const |
Raw field receive function returning field. More... | |
template<class Type > | |
void | compressedSend (const Pstream::commsTypes commsType, const UList< Type > &) const |
Raw field send function with data compression. More... | |
template<class Type > | |
void | compressedReceive (const Pstream::commsTypes commsType, UList< Type > &) const |
Raw field receive function with data compression. More... | |
template<class Type > | |
tmp< Field< Type > > | compressedReceive (const Pstream::commsTypes commsType, const label size) const |
Raw field receive function with data compression returning field. More... | |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | receive (const Pstream::commsTypes commsType, const label size) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | compressedReceive (const Pstream::commsTypes commsType, const label size) const |
An abstract base class for processor coupled interfaces.
Definition at line 51 of file processorLduInterface.H.
Construct null.
Definition at line 53 of file processorLduInterface.C.
|
virtual |
Destructor.
Definition at line 62 of file processorLduInterface.C.
TypeName | ( | "processorLduInterface" | ) |
Runtime type information.
|
pure virtual |
Return communicator used for parallel communication.
Implemented in processorGAMGInterface, and processorFvPatch.
Referenced by procLduInterface::procLduInterface(), and processorLduInterface::send().
|
pure virtual |
Return processor number (rank in communicator)
Implemented in processorGAMGInterface, and processorFvPatch.
Referenced by lduPrimitiveMesh::lduPrimitiveMesh(), and procLduInterface::procLduInterface().
|
pure virtual |
Return neighbour processor number (rank in communicator)
Implemented in processorGAMGInterface, and processorFvPatch.
Referenced by lduPrimitiveMesh::lduPrimitiveMesh(), procLduInterface::procLduInterface(), and processorLduInterface::send().
|
pure virtual |
Return transformation between the coupled patches.
Implemented in processorGAMGInterface, processorCyclicFvPatch, and processorFvPatch.
|
pure virtual |
Return message tag used for sending.
Implemented in processorGAMGInterface, processorCyclicFvPatch, and processorFvPatch.
Referenced by procLduInterface::procLduInterface(), and processorLduInterface::send().
void send | ( | const Pstream::commsTypes | commsType, |
const UList< Type > & | f | ||
) | const |
Raw send function.
Definition at line 33 of file processorLduInterfaceTemplates.C.
References UList< T >::begin(), UPstream::blocking, processorLduInterface::comm(), Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, processorLduInterface::neighbProcNo(), UPstream::nonBlocking, UIPstream::read(), UPstream::scheduled, processorLduInterface::tag(), and UOPstream::write().
void receive | ( | const Pstream::commsTypes | commsType, |
UList< Type > & | f | ||
) | const |
Raw field receive function.
Definition at line 94 of file processorLduInterfaceTemplates.C.
References UList< T >::begin(), UPstream::blocking, UList< T >::byteSize(), Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, UPstream::nonBlocking, UIPstream::read(), and UPstream::scheduled.
tmp<Field<Type> > receive | ( | const Pstream::commsTypes | commsType, |
const label | size | ||
) | const |
Raw field receive function returning field.
void compressedSend | ( | const Pstream::commsTypes | commsType, |
const UList< Type > & | f | ||
) | const |
Raw field send function with data compression.
Definition at line 143 of file processorLduInterfaceTemplates.C.
References UList< T >::begin(), UPstream::blocking, Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, UPstream::floatTransfer, UList< T >::last(), UPstream::nonBlocking, UIPstream::read(), UPstream::scheduled, List< T >::size(), and UOPstream::write().
void compressedReceive | ( | const Pstream::commsTypes | commsType, |
UList< Type > & | f | ||
) | const |
Raw field receive function with data compression.
Definition at line 223 of file processorLduInterfaceTemplates.C.
References UList< T >::begin(), UPstream::blocking, Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, UPstream::floatTransfer, UList< T >::last(), UPstream::nonBlocking, UIPstream::read(), UPstream::scheduled, and List< T >::size().
tmp<Field<Type> > compressedReceive | ( | const Pstream::commsTypes | commsType, |
const label | size | ||
) | const |
Raw field receive function with data compression returning field.
Foam::tmp<Foam::Field<Type> > receive | ( | const Pstream::commsTypes | commsType, |
const label | size | ||
) | const |
Definition at line 130 of file processorLduInterfaceTemplates.C.
References tf.
Foam::tmp<Foam::Field<Type> > compressedReceive | ( | const Pstream::commsTypes | commsType, |
const label | size | ||
) | const |
Definition at line 280 of file processorLduInterfaceTemplates.C.
References tf.