OpenAtom  Version1.5a
paircalcInputMsg Class Reference

The new message for sending input data to the PairCalculator. More...

#include <pcMessages.h>

Inheritance diagram for paircalcInputMsg:
CkMcastBaseMsg CMessage_paircalcInputMsg

Public Member Functions

 paircalcInputMsg (const int _sender, const int _nCols, const int _nRows=1)
 Provide the API required by the MessageDataCollator An incomplete constructor just for the collator.
 
int numRows () const
 The number of rows in the data array stored in this msg.
 
int numCols () const
 The number of columns of data units in the data array stored in this msg.
 
int sender () const
 An integer representation of the sender's ID.
 
inputTypedata ()
 A pointer to the message data. No checks on pointer validity. Use with a pinch of salt.
 
 paircalcInputMsg (int _size, int _sender, bool _fromRow, bool _flag_dp, inputType *_points, bool _doPsiV, int _blkSize, int _nRows=1)
 Constructor used to create actual GSpace to PC messages.
 

Public Attributes

inputTypepoints
 
bool fromRow
 
bool flag_dp
 
bool doPsiV
 
int blkSize
 

Private Attributes

int senderID
 
int nCols
 
int nRows
 

Friends

class CMessage_paircalcInputMsg
 

Detailed Description

The new message for sending input data to the PairCalculator.

Implements API as required by MessageDataCollator viz. the sender(), numDataUnits() and data() methods.

Definition at line 117 of file pcMessages.h.

Member Data Documentation

int paircalcInputMsg::blkSize
Todo:
: blkSize is used in paircalc only for dumping data files in the backward path. Also, it cannot be retreived when usng RDMA. Is there an alternative?

Definition at line 149 of file pcMessages.h.

Referenced by PairCalculator::acceptLeftData(), PairCalculator::acceptRightData(), PairCalculator::launchComputations(), and paircalcInputMsg().

inputType* paircalcInputMsg::points
Todo:
: Message data, should slowly be hidden from the world. The sender and end user could become friends

Definition at line 147 of file pcMessages.h.

Referenced by data(), paircalcInputMsg(), cp::gspace::PCCommManager::sendLeftDataMcast(), and cp::gspace::PCCommManager::sendRightDataMcast().


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