FEI Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
snl_fei::BlkSizeMsgHandler Class Reference

#include <snl_fei_BlkSizeMsgHandler.hpp>

Inheritance diagram for snl_fei::BlkSizeMsgHandler:
Inheritance graph
[legend]

Public Member Functions

 BlkSizeMsgHandler (fei::VectorSpace *vspace, fei::Graph *graph, MPI_Comm comm)
 
virtual ~BlkSizeMsgHandler ()
 
int do_the_exchange ()
 
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)
 
- Public Member Functions inherited from fei::MessageHandler< int >
virtual ~MessageHandler ()
 

Private Attributes

fei::comm_mapremote_colIndices_
 
fei::comm_maplocal_colIndices_
 
fei::VectorSpacevecSpace_
 
snl_fei::PointBlockMapptBlkMap_
 
fei::Graphgraph_
 
MPI_Comm comm_
 
std::vector< int > sendProcs_
 
std::vector< int > recvProcs_
 
bool firstExchange_
 

Detailed Description

MessageHandler implementation for block-size data.

Definition at line 21 of file snl_fei_BlkSizeMsgHandler.hpp.

Constructor & Destructor Documentation

snl_fei::BlkSizeMsgHandler::BlkSizeMsgHandler ( fei::VectorSpace vspace,
fei::Graph graph,
MPI_Comm  comm 
)
snl_fei::BlkSizeMsgHandler::~BlkSizeMsgHandler ( )
virtual

destructor

Definition at line 53 of file snl_fei_BlkSizeMsgHandler.cpp.

Member Function Documentation

int snl_fei::BlkSizeMsgHandler::do_the_exchange ( )
std::vector< int > & snl_fei::BlkSizeMsgHandler::getSendProcs ( )
virtual

Get list of procs to send to.

Implements fei::MessageHandler< int >.

Definition at line 114 of file snl_fei_BlkSizeMsgHandler.cpp.

std::vector< int > & snl_fei::BlkSizeMsgHandler::getRecvProcs ( )
virtual

Get list of procs to recv from.

Implements fei::MessageHandler< int >.

Definition at line 125 of file snl_fei_BlkSizeMsgHandler.cpp.

int snl_fei::BlkSizeMsgHandler::getSendMessageLength ( int  destProc,
int &  messageLength 
)
virtual

Get length of message for specified destination proc.

Implements fei::MessageHandler< int >.

Definition at line 136 of file snl_fei_BlkSizeMsgHandler.cpp.

int snl_fei::BlkSizeMsgHandler::getSendMessage ( int  destProc,
std::vector< int > &  message 
)
virtual

Get message to send to specified destination proc.

Implements fei::MessageHandler< int >.

Definition at line 152 of file snl_fei_BlkSizeMsgHandler.cpp.

References CHK_ERR, and fei::copySetToArray().

int snl_fei::BlkSizeMsgHandler::processRecvMessage ( int  srcProc,
std::vector< int > &  message 
)
virtual

process message received from specified source proc.

Implements fei::MessageHandler< int >.

Definition at line 182 of file snl_fei_BlkSizeMsgHandler.cpp.

References CHK_ERR.

Member Data Documentation

fei::comm_map* snl_fei::BlkSizeMsgHandler::remote_colIndices_
private

Definition at line 46 of file snl_fei_BlkSizeMsgHandler.hpp.

Referenced by BlkSizeMsgHandler().

fei::comm_map* snl_fei::BlkSizeMsgHandler::local_colIndices_
private

Definition at line 47 of file snl_fei_BlkSizeMsgHandler.hpp.

Referenced by BlkSizeMsgHandler().

fei::VectorSpace* snl_fei::BlkSizeMsgHandler::vecSpace_
private

Definition at line 48 of file snl_fei_BlkSizeMsgHandler.hpp.

snl_fei::PointBlockMap* snl_fei::BlkSizeMsgHandler::ptBlkMap_
private

Definition at line 49 of file snl_fei_BlkSizeMsgHandler.hpp.

Referenced by BlkSizeMsgHandler().

fei::Graph* snl_fei::BlkSizeMsgHandler::graph_
private

Definition at line 50 of file snl_fei_BlkSizeMsgHandler.hpp.

MPI_Comm snl_fei::BlkSizeMsgHandler::comm_
private

Definition at line 51 of file snl_fei_BlkSizeMsgHandler.hpp.

std::vector<int> snl_fei::BlkSizeMsgHandler::sendProcs_
private

Definition at line 52 of file snl_fei_BlkSizeMsgHandler.hpp.

std::vector<int> snl_fei::BlkSizeMsgHandler::recvProcs_
private

Definition at line 53 of file snl_fei_BlkSizeMsgHandler.hpp.

bool snl_fei::BlkSizeMsgHandler::firstExchange_
private

Definition at line 55 of file snl_fei_BlkSizeMsgHandler.hpp.


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