Public Member Functions | |
tetMeshChunk () | |
~tetMeshChunk () | |
void | allocate (const meshState &s, int nSend, int nTet, int nPt) |
Allocate a new outgoing message with this size:. | |
int | messageSizeXfer (void) const |
Return the number of doubles in this message:. | |
double * | messageBuf (void) const |
void | receive (const meshState &s, xfer_t *buf_, int msgLen) |
Set up our pointers into this message, which is then owned by and will be deleted by this object. | |
int * | getSendTets (void) |
Return the list of tets that are being sent:. | |
int | nSendTets (void) const |
int | nTets (void) const |
Return the number of tets included in this message:. | |
int * | getTetConn (const meshState &s, int t) |
Return the connectivity array associated with this tet:. | |
xfer_t * | getTetData (const meshState &s, int t) |
Return the user data associated with this tet:. | |
int | nPts (void) const |
Return the number of points included in this message:. | |
xfer_t * | getPtLoc (const meshState &s, int n) |
Return the coordinate data for this point:. | |
xfer_t * | getPtData (const meshState &s, int n) |
Return the user data for this point:. | |
Private Member Functions | |
int | headerSize () const |
int | sendTetsSize (const meshState &s, int nSend) const |
int | tetDataRecordSize (const meshState &s) const |
int | tetDataSize (const meshState &s, int nTet) const |
int | ptDataRecordSize (const meshState &s) const |
int | ptDataSize (const meshState &s, int nPt) const |
void | setupPointers (const meshState &s, int msgLen) |
Private Attributes | |
xfer_t * | buf |
header_t * | header |
int * | sendTets |
xfer_t * | tetData |
xfer_t * | ptData |
Data Structures | |
struct | header_t |
The on-the-wire mesh format looks like this:
Definition at line 207 of file paralleltransfer.C.
tetMeshChunk::tetMeshChunk | ( | ) | [inline] |
tetMeshChunk::~tetMeshChunk | ( | ) | [inline] |
int tetMeshChunk::headerSize | ( | ) | const [inline, private] |
Definition at line 218 of file paralleltransfer.C.
References bytesToXfer().
Referenced by allocate(), and setupPointers().
Definition at line 222 of file paralleltransfer.C.
References bytesToXfer().
Referenced by allocate(), and setupPointers().
Definition at line 226 of file paralleltransfer.C.
References bytesToXfer(), and meshState::tetVal.
Referenced by getTetConn(), getTetData(), and tetDataSize().
Definition at line 228 of file paralleltransfer.C.
References tetDataRecordSize().
Referenced by allocate(), and setupPointers().
Definition at line 232 of file paralleltransfer.C.
References meshState::ptVal.
Referenced by getPtData(), getPtLoc(), and ptDataSize().
Definition at line 234 of file paralleltransfer.C.
References ptDataRecordSize().
Referenced by allocate(), and setupPointers().
Allocate a new outgoing message with this size:.
Definition at line 242 of file paralleltransfer.C.
References buf, header, headerSize(), tetMeshChunk::header_t::nPt, tetMeshChunk::header_t::nSend, tetMeshChunk::header_t::nTet, tetMeshChunk::header_t::nXfer, ptDataSize(), sendTetsSize(), setupPointers(), and tetDataSize().
Referenced by tetSender::putTet().
int tetMeshChunk::messageSizeXfer | ( | void | ) | const [inline] |
Return the number of doubles in this message:.
Definition at line 254 of file paralleltransfer.C.
References header, and tetMeshChunk::header_t::nXfer.
Referenced by tetSender::isend().
double* tetMeshChunk::messageBuf | ( | void | ) | const [inline] |
Definition at line 255 of file paralleltransfer.C.
References buf.
Referenced by tetSender::isend().
Set up our pointers into this message, which is then owned by and will be deleted by this object.
Definition at line 260 of file paralleltransfer.C.
References buf, and setupPointers().
Referenced by tetReceiver::recv().
int* tetMeshChunk::getSendTets | ( | void | ) | [inline] |
Return the list of tets that are being sent:.
Definition at line 267 of file paralleltransfer.C.
References sendTets.
Referenced by tetReceiver::getTet(), and tetSender::putTet().
int tetMeshChunk::nSendTets | ( | void | ) | const [inline] |
Definition at line 268 of file paralleltransfer.C.
References header, and tetMeshChunk::header_t::nSend.
int tetMeshChunk::nTets | ( | void | ) | const [inline] |
Return the number of tets included in this message:.
Definition at line 271 of file paralleltransfer.C.
References header, and tetMeshChunk::header_t::nTet.
Return the connectivity array associated with this tet:.
Definition at line 273 of file paralleltransfer.C.
References tetData, and tetDataRecordSize().
Referenced by tetSender::putTet().
Return the user data associated with this tet:.
Definition at line 277 of file paralleltransfer.C.
References bytesToXfer(), tetData, and tetDataRecordSize().
Referenced by tetReceiver::getTet(), and tetSender::putTet().
int tetMeshChunk::nPts | ( | void | ) | const [inline] |
Return the number of points included in this message:.
Definition at line 282 of file paralleltransfer.C.
References header, and tetMeshChunk::header_t::nPt.
Return the coordinate data for this point:.
Definition at line 284 of file paralleltransfer.C.
References ptData, and ptDataRecordSize().
Referenced by tetSender::putTet().
Return the user data for this point:.
Definition at line 288 of file paralleltransfer.C.
References ptData, and ptDataRecordSize().
Referenced by tetSender::putTet().
Definition at line 294 of file paralleltransfer.C.
References PUP::b, buf, header, headerSize(), tetMeshChunk::header_t::nPt, tetMeshChunk::header_t::nSend, tetMeshChunk::header_t::nTet, tetMeshChunk::header_t::nXfer, ptData, ptDataSize(), sendTets, sendTetsSize(), tetData, and tetDataSize().
Referenced by allocate(), and receive().
xfer_t* tetMeshChunk::buf [private] |
Definition at line 208 of file paralleltransfer.C.
Referenced by allocate(), messageBuf(), receive(), setupPointers(), tetMeshChunk(), and ~tetMeshChunk().
header_t* tetMeshChunk::header [private] |
Definition at line 217 of file paralleltransfer.C.
Referenced by allocate(), messageSizeXfer(), nPts(), nSendTets(), nTets(), and setupPointers().
int* tetMeshChunk::sendTets [private] |
Definition at line 221 of file paralleltransfer.C.
Referenced by getSendTets(), and setupPointers().
xfer_t* tetMeshChunk::tetData [private] |
Definition at line 225 of file paralleltransfer.C.
Referenced by getTetConn(), getTetData(), and setupPointers().
xfer_t* tetMeshChunk::ptData [private] |
Definition at line 231 of file paralleltransfer.C.
Referenced by getPtData(), getPtLoc(), and setupPointers().