FEI  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
NodeCommMgr Class Reference

#include <fei_NodeCommMgr.hpp>

Inheritance diagram for NodeCommMgr:
Inheritance graph
[legend]

Public Member Functions

std::vector< int > & getSendProcs ()
 
std::vector< int > & getRecvProcs ()
 
int getSendMessageLength (int destProc, int &messageLength)
 
int getSendMessage (int destProc, std::vector< int > &message)
 
int processRecvMessage (int srcProc, std::vector< int > &message)
 

Detailed Description

NodeCommMgr (Node communication manager) is responsible for keeping track of nodes that require communication (shared nodes).

All shared nodes are put into this class through the addSharedNodes function. When they've all been put in, initComplete() is called, which allocates a list of pointer-to-NodeDescriptors.

Before initComplete is called, all nodes that appear in local element- connectivities should be passed to NodeCommMgr using the informLocal function.

The communication that must then happen is this:

For all nodes that we own, we must send their field-IDs and (global) equation numbers to the remote processors that share the node.

For all nodes that we don't own, we need to receive the field-IDs and equation numbers.

Definition at line 37 of file fei_NodeCommMgr.hpp.

Member Function Documentation

std::vector< int > & NodeCommMgr::getSendProcs ( )
virtual

Get the list of processors to which messages are to be sent in a sparse data exchange.

Implements fei::MessageHandler< int >.

Definition at line 185 of file fei_NodeCommMgr.cpp.

std::vector< int > & NodeCommMgr::getRecvProcs ( )
virtual
Get the list of processors from which messages are to be received in

a sparse data exchange.

Implements fei::MessageHandler< int >.

Definition at line 191 of file fei_NodeCommMgr.cpp.

int NodeCommMgr::getSendMessageLength ( int  destProc,
int &  messageLength 
)
virtual
Get the length of a message that is to be send to the specified

destination processor.

Implements fei::MessageHandler< int >.

Definition at line 197 of file fei_NodeCommMgr.cpp.

int NodeCommMgr::getSendMessage ( int  destProc,
std::vector< int > &  message 
)
virtual
Prepare (pack) a message that is to be sent to the specified

destination processor.

Implements fei::MessageHandler< int >.

Definition at line 214 of file fei_NodeCommMgr.cpp.

int NodeCommMgr::processRecvMessage ( int  srcProc,
std::vector< int > &  message 
)
virtual
Process a message that has been received from the specified source

processor.

Implements fei::MessageHandler< int >.

Definition at line 234 of file fei_NodeCommMgr.cpp.


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