NAMD
|
#include <CollectionMaster.h>
Classes | |
class | CollectVectorInstance |
class | CollectVectorInstanceDcdSelection |
class | CollectVectorSequence |
class | CollectVectorSequenceDcdSelection |
Public Types | |
enum | OperationStatus { NOT_PROCESSED, IN_PROCESS, HAS_PROCESSED } |
Public Member Functions | |
CollectionMaster () | |
~CollectionMaster (void) | |
void | receivePositions (CollectVectorMsg *msg) |
void | receivePositionsDcdSelection (CollectVectorMsg *msg) |
void | receiveVelocities (CollectVectorMsg *msg) |
void | receiveForces (CollectVectorMsg *msg) |
void | receiveDataStream (DataStreamMsg *msg) |
void | enqueuePositions (int seq, Lattice &lattice) |
void | enqueuePositionsDcdSelection (int seq, Lattice &lattice) |
void | enqueueVelocities (int seq) |
void | enqueueForces (int seq) |
void | disposePositions (CollectVectorInstance *c) |
void | disposeVelocities (CollectVectorInstance *c) |
void | disposeForces (CollectVectorInstance *c) |
void | blockPositions () |
void | unblockPositions () |
void | receiveOutputPosReady (int seq) |
void | receiveOutputVelReady (int seq) |
void | receiveOutputForceReady (int seq) |
void | startNextRoundOutputPos (double totalT) |
void | startNextRoundOutputVel (double totalT) |
void | startNextRoundOutputForce (double totalT) |
void | wrapCoorFinished () |
Static Public Member Functions | |
static CollectionMaster * | Object () |
Definition at line 43 of file CollectionMaster.h.
CollectionMaster::CollectionMaster | ( | ) |
Definition at line 22 of file CollectionMaster.C.
References DebugM.
CollectionMaster::~CollectionMaster | ( | void | ) |
Definition at line 45 of file CollectionMaster.C.
|
inline |
Definition at line 69 of file CollectionMaster.h.
References CollectionMaster::CollectVectorSequence::block().
Referenced by sendReplicaDcdData(), and sendReplicaDcdInit().
void CollectionMaster::disposeForces | ( | CollectVectorInstance * | c | ) |
Definition at line 215 of file CollectionMaster.C.
References ResizeArray< Elem >::begin(), CollectionMaster::CollectVectorInstance::data, DebugM, Output::force(), CollectionMaster::CollectVectorInstance::free(), memusage_MB(), Node::Object(), Node::output, CollectionMaster::CollectVectorInstance::seq, and ResizeArray< Elem >::size().
Referenced by enqueueForces(), and receiveForces().
void CollectionMaster::disposePositions | ( | CollectVectorInstance * | c | ) |
Definition at line 107 of file CollectionMaster.C.
References ResizeArray< Elem >::begin(), Output::coordinate(), CollectionMaster::CollectVectorInstance::data, DebugM, CollectionMaster::CollectVectorInstance::fdata, CollectionMaster::CollectVectorInstance::free(), CollectionMaster::CollectVectorInstance::lattice, memusage_MB(), Node::Object(), Node::output, CollectionMaster::CollectVectorInstance::seq, and ResizeArray< Elem >::size().
Referenced by enqueuePositions(), enqueuePositionsDcdSelection(), receivePositions(), and receivePositionsDcdSelection().
void CollectionMaster::disposeVelocities | ( | CollectVectorInstance * | c | ) |
Definition at line 162 of file CollectionMaster.C.
References ResizeArray< Elem >::begin(), CollectionMaster::CollectVectorInstance::data, DebugM, CollectionMaster::CollectVectorInstance::free(), memusage_MB(), Node::Object(), Node::output, CollectionMaster::CollectVectorInstance::seq, ResizeArray< Elem >::size(), and Output::velocity().
Referenced by enqueueVelocities(), and receiveVelocities().
void CollectionMaster::enqueueForces | ( | int | seq | ) |
Definition at line 203 of file CollectionMaster.C.
References disposeForces(), CollectionMaster::CollectVectorSequence::enqueue(), and CollectionMaster::CollectVectorSequence::removeReady().
Referenced by Controller::enqueueCollections().
void CollectionMaster::enqueuePositions | ( | int | seq, |
Lattice & | lattice | ||
) |
Definition at line 80 of file CollectionMaster.C.
References DebugM, disposePositions(), CollectionMaster::CollectVectorSequence::enqueue(), and CollectionMaster::CollectVectorSequence::removeReady().
Referenced by Controller::enqueueCollections().
void CollectionMaster::enqueuePositionsDcdSelection | ( | int | seq, |
Lattice & | lattice | ||
) |
Definition at line 93 of file CollectionMaster.C.
References DebugM, disposePositions(), CollectionMaster::CollectVectorSequence::enqueue(), and CollectionMaster::CollectVectorSequenceDcdSelection::removeReady().
Referenced by Controller::enqueueCollections().
void CollectionMaster::enqueueVelocities | ( | int | seq | ) |
Definition at line 150 of file CollectionMaster.C.
References disposeVelocities(), CollectionMaster::CollectVectorSequence::enqueue(), and CollectionMaster::CollectVectorSequence::removeReady().
Referenced by Controller::enqueueCollections().
|
inlinestatic |
Definition at line 46 of file CollectionMaster.h.
Referenced by recvReplicaDcdAck(), sendReplicaDcdData(), and sendReplicaDcdInit().
void CollectionMaster::receiveDataStream | ( | DataStreamMsg * | msg | ) |
Definition at line 245 of file CollectionMaster.C.
References SimParameters::auxFilename, ResizeArray< Elem >::begin(), DataStreamMsg::data, NAMD_backup_file(), NAMD_die(), Node::Object(), and Node::simParameters.
void CollectionMaster::receiveForces | ( | CollectVectorMsg * | msg | ) |
Definition at line 192 of file CollectionMaster.C.
References disposeForces(), Node::Object(), CollectionMaster::CollectVectorSequence::removeReady(), and CollectionMaster::CollectVectorSequence::submitData().
Referenced by CollectionMgr::submitForces().
void CollectionMaster::receiveOutputForceReady | ( | int | seq | ) |
Definition at line 285 of file CollectionMaster.C.
References CollectionMaster::CollectVectorSequence::submitData().
void CollectionMaster::receiveOutputPosReady | ( | int | seq | ) |
void CollectionMaster::receiveOutputVelReady | ( | int | seq | ) |
Definition at line 278 of file CollectionMaster.C.
References CollectionMaster::CollectVectorSequence::submitData().
void CollectionMaster::receivePositions | ( | CollectVectorMsg * | msg | ) |
Definition at line 52 of file CollectionMaster.C.
References DebugM, disposePositions(), Node::Object(), CollectionMaster::CollectVectorSequence::removeReady(), and CollectionMaster::CollectVectorSequence::submitData().
Referenced by CollectionMgr::submitPositions().
void CollectionMaster::receivePositionsDcdSelection | ( | CollectVectorMsg * | msg | ) |
Definition at line 66 of file CollectionMaster.C.
References DebugM, disposePositions(), CollectVectorMsg::index, CollectionMaster::CollectVectorSequenceDcdSelection::index, Node::Object(), CollectionMaster::CollectVectorSequenceDcdSelection::removeReady(), and CollectionMaster::CollectVectorSequenceDcdSelection::submitData().
Referenced by CollectionMgr::submitPositions().
void CollectionMaster::receiveVelocities | ( | CollectVectorMsg * | msg | ) |
Definition at line 139 of file CollectionMaster.C.
References disposeVelocities(), Node::Object(), CollectionMaster::CollectVectorSequence::removeReady(), and CollectionMaster::CollectVectorSequence::submitData().
Referenced by CollectionMgr::submitVelocities().
void CollectionMaster::startNextRoundOutputForce | ( | double | totalT | ) |
Definition at line 361 of file CollectionMaster.C.
References CollectionMaster::CollectVectorInstance::free(), IN_PROCESS, memusage_MB(), Node::Object(), and CollectionMaster::CollectVectorInstance::seq.
void CollectionMaster::startNextRoundOutputPos | ( | double | totalT | ) |
Definition at line 293 of file CollectionMaster.C.
References CollectionMaster::CollectVectorInstance::free(), IN_PROCESS, memusage_MB(), Node::Object(), and CollectionMaster::CollectVectorInstance::seq.
void CollectionMaster::startNextRoundOutputVel | ( | double | totalT | ) |
Definition at line 329 of file CollectionMaster.C.
References CollectionMaster::CollectVectorInstance::free(), IN_PROCESS, memusage_MB(), Node::Object(), and CollectionMaster::CollectVectorInstance::seq.
|
inline |
Definition at line 70 of file CollectionMaster.h.
References CollectionMaster::CollectVectorSequence::unblock().
Referenced by recvReplicaDcdAck().
void CollectionMaster::wrapCoorFinished | ( | ) |
Definition at line 394 of file CollectionMaster.C.
References Node::Object(), and CollectionMaster::CollectVectorInstance::seq.