Public Member Functions | List of all members
processorLduInterface Class Referenceabstract

An abstract base class for processor coupled interfaces. More...

Inheritance diagram for processorLduInterface:
Inheritance graph
[legend]

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 neigbour processor number (rank in communicator) More...
 
virtual const tensorFieldforwardT () 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 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
 

Detailed Description

An abstract base class for processor coupled interfaces.

Source files

Definition at line 50 of file processorLduInterface.H.

Constructor & Destructor Documentation

Construct null.

Definition at line 53 of file processorLduInterface.C.

~processorLduInterface ( )
virtual

Destructor.

Definition at line 62 of file processorLduInterface.C.

Member Function Documentation

TypeName ( "processorLduInterface"  )

Runtime type information.

virtual label comm ( ) const
pure virtual

Return communicator used for parallel communication.

Implemented in processorGAMGInterface, and processorFvPatch.

Referenced by procLduInterface::procLduInterface(), and lduMesh::thisDb().

Here is the caller graph for this function:

virtual int myProcNo ( ) const
pure virtual

Return processor number (rank in communicator)

Implemented in processorGAMGInterface, and processorFvPatch.

Referenced by lduPrimitiveMesh::lduPrimitiveMesh(), procLduInterface::procLduInterface(), and lduMesh::thisDb().

Here is the caller graph for this function:

virtual int neighbProcNo ( ) const
pure virtual

Return neigbour processor number (rank in communicator)

Implemented in processorGAMGInterface, and processorFvPatch.

Referenced by lduPrimitiveMesh::lduPrimitiveMesh(), procLduInterface::procLduInterface(), and lduMesh::thisDb().

Here is the caller graph for this function:

virtual const tensorField& forwardT ( ) const
pure virtual

Return face transformation tensor.

Implemented in processorGAMGInterface, processorFvPatch, and processorCyclicFvPatch.

virtual int tag ( ) const
pure virtual

Return message tag used for sending.

Implemented in processorGAMGInterface, processorFvPatch, and processorCyclicFvPatch.

Referenced by procLduInterface::procLduInterface().

Here is the caller graph for this function:

void send ( const Pstream::commsTypes  commsType,
const UList< Type > &  f 
) const

Raw send function.

Definition at line 34 of file processorLduInterfaceTemplates.C.

References UList< T >::begin(), UList< T >::byteSize(), Foam::exit(), Foam::FatalError, FatalErrorIn, Foam::read(), processorLduInterface::receive(), and write().

Here is the call graph for this function:

void receive ( const Pstream::commsTypes  commsType,
UList< Type > &  f 
) const

Raw field receive function.

Definition at line 91 of file processorLduInterfaceTemplates.C.

References UList< T >::begin(), UList< T >::byteSize(), Foam::exit(), Foam::FatalError, FatalErrorIn, and Foam::read().

Referenced by processorLduInterface::send().

Here is the call graph for this function:

Here is the caller graph for this function:

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 136 of file processorLduInterfaceTemplates.C.

References UList< T >::begin(), processorLduInterface::compressedReceive(), Foam::exit(), Foam::FatalError, FatalErrorIn, UList< T >::last(), Foam::read(), UList< T >::size(), and write().

Referenced by processorLduInterface::receive().

Here is the call graph for this function:

Here is the caller graph for this function:

void compressedReceive ( const Pstream::commsTypes  commsType,
UList< Type > &  f 
) const

Raw field receive function with data compression.

Definition at line 212 of file processorLduInterfaceTemplates.C.

References UList< T >::begin(), Foam::exit(), f(), Foam::FatalError, FatalErrorIn, UList< T >::last(), Foam::read(), and UList< T >::size().

Referenced by processorLduInterface::compressedSend().

Here is the call graph for this function:

Here is the caller graph for this function:

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 123 of file processorLduInterfaceTemplates.C.

References processorLduInterface::compressedSend(), and tf.

Here is the call graph for this function:

Foam::tmp<Foam::Field<Type> > compressedReceive ( const Pstream::commsTypes  commsType,
const label  size 
) const

Definition at line 265 of file processorLduInterfaceTemplates.C.

References tf.


The documentation for this class was generated from the following files: