PPL Logo

tetMeshChunk Class Reference

Manages the on-the-wire mesh format when sending or receiving tet mesh chunks. More...

Collaboration diagram for tetMeshChunk:

Collaboration graph
[legend]

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.
intgetSendTets (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:.
intgetTetConn (const meshState &s, int t)
 Return the connectivity array associated with this tet:.
xfer_tgetTetData (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_tgetPtLoc (const meshState &s, int n)
 Return the coordinate data for this point:.
xfer_tgetPtData (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_tbuf
header_theader
intsendTets
xfer_ttetData
xfer_tptData

Data Structures

struct  header_t

Detailed Description

Manages the on-the-wire mesh format when sending or receiving tet mesh chunks.

The on-the-wire mesh format looks like this:

Definition at line 207 of file paralleltransfer.C.


Constructor & Destructor Documentation

tetMeshChunk::tetMeshChunk (  )  [inline]

Definition at line 237 of file paralleltransfer.C.

References buf.

tetMeshChunk::~tetMeshChunk (  )  [inline]

Definition at line 238 of file paralleltransfer.C.

References buf.


Member Function Documentation

int tetMeshChunk::headerSize (  )  const [inline, private]

Definition at line 218 of file paralleltransfer.C.

References bytesToXfer().

Referenced by allocate(), and setupPointers().

Here is the call graph for this function:

Here is the caller graph for this function:

int tetMeshChunk::sendTetsSize ( const meshState s,
int  nSend 
) const [inline, private]

Definition at line 222 of file paralleltransfer.C.

References bytesToXfer().

Referenced by allocate(), and setupPointers().

Here is the call graph for this function:

Here is the caller graph for this function:

int tetMeshChunk::tetDataRecordSize ( const meshState s  )  const [inline, private]

Definition at line 226 of file paralleltransfer.C.

References bytesToXfer(), and meshState::tetVal.

Referenced by getTetConn(), getTetData(), and tetDataSize().

Here is the call graph for this function:

Here is the caller graph for this function:

int tetMeshChunk::tetDataSize ( const meshState s,
int  nTet 
) const [inline, private]

Definition at line 228 of file paralleltransfer.C.

References tetDataRecordSize().

Referenced by allocate(), and setupPointers().

Here is the call graph for this function:

Here is the caller graph for this function:

int tetMeshChunk::ptDataRecordSize ( const meshState s  )  const [inline, private]

Definition at line 232 of file paralleltransfer.C.

References meshState::ptVal.

Referenced by getPtData(), getPtLoc(), and ptDataSize().

Here is the caller graph for this function:

int tetMeshChunk::ptDataSize ( const meshState s,
int  nPt 
) const [inline, private]

Definition at line 234 of file paralleltransfer.C.

References ptDataRecordSize().

Referenced by allocate(), and setupPointers().

Here is the call graph for this function:

Here is the caller graph for this function:

void tetMeshChunk::allocate ( const meshState s,
int  nSend,
int  nTet,
int  nPt 
) [inline]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

double* tetMeshChunk::messageBuf ( void   )  const [inline]

Definition at line 255 of file paralleltransfer.C.

References buf.

Referenced by tetSender::isend().

Here is the caller graph for this function:

void tetMeshChunk::receive ( const meshState s,
xfer_t buf_,
int  msgLen 
) [inline]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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.

int* tetMeshChunk::getTetConn ( const meshState s,
int  t 
) [inline]

Return the connectivity array associated with this tet:.

Definition at line 273 of file paralleltransfer.C.

References tetData, and tetDataRecordSize().

Referenced by tetSender::putTet().

Here is the call graph for this function:

Here is the caller graph for this function:

xfer_t* tetMeshChunk::getTetData ( const meshState s,
int  t 
) [inline]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

xfer_t* tetMeshChunk::getPtLoc ( const meshState s,
int  n 
) [inline]

Return the coordinate data for this point:.

Definition at line 284 of file paralleltransfer.C.

References ptData, and ptDataRecordSize().

Referenced by tetSender::putTet().

Here is the call graph for this function:

Here is the caller graph for this function:

xfer_t* tetMeshChunk::getPtData ( const meshState s,
int  n 
) [inline]

Return the user data for this point:.

Definition at line 288 of file paralleltransfer.C.

References ptData, and ptDataRecordSize().

Referenced by tetSender::putTet().

Here is the call graph for this function:

Here is the caller graph for this function:

void tetMeshChunk::setupPointers ( const meshState s,
int  msgLen 
) [inline, private]

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

Definition at line 217 of file paralleltransfer.C.

Referenced by allocate(), messageSizeXfer(), nPts(), nSendTets(), nTets(), and setupPointers().

Definition at line 221 of file paralleltransfer.C.

Referenced by getSendTets(), and setupPointers().

Definition at line 225 of file paralleltransfer.C.

Referenced by getTetConn(), getTetData(), and setupPointers().

Definition at line 231 of file paralleltransfer.C.

Referenced by getPtData(), getPtLoc(), and setupPointers().


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

Generated on Mon Sep 21 08:30:42 2020 for Charm++ by  doxygen 1.5.5