FEI
Version of the Day
|
#include <fei_NodeCommMgr.hpp>
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) |
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.
|
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.
|
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.
|
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.
|
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.
|
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.