NAMD
|
#include <CollectionMaster.h>
Classes | |
class | CollectVectorInstance |
class | CollectVectorSequence |
Public Types | |
enum | OperationStatus { NOT_PROCESSED, IN_PROCESS, HAS_PROCESSED } |
Public Member Functions | |
CollectionMaster () | |
~CollectionMaster (void) | |
void | receivePositions (CollectVectorMsg *msg) |
void | receiveVelocities (CollectVectorMsg *msg) |
void | receiveForces (CollectVectorMsg *msg) |
void | receiveDataStream (DataStreamMsg *msg) |
void | enqueuePositions (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 40 of file CollectionMaster.h.
CollectionMaster::CollectionMaster | ( | ) |
Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.
Definition at line 22 of file CollectionMaster.C.
References DebugM.
CollectionMaster::~CollectionMaster | ( | void | ) |
Definition at line 42 of file CollectionMaster.C.
|
inline |
Definition at line 64 of file CollectionMaster.h.
References CollectionMaster::CollectVectorSequence::block().
Referenced by sendReplicaDcdData(), and sendReplicaDcdInit().
void CollectionMaster::disposeForces | ( | CollectVectorInstance * | c | ) |
Definition at line 157 of file CollectionMaster.C.
References ResizeArray< T >::begin(), CollectionMaster::CollectVectorInstance::data, DebugM, Output::force(), CollectionMaster::CollectVectorInstance::free(), memusage_MB(), Node::Object(), Node::output, CollectionMaster::CollectVectorInstance::seq, and ResizeArray< T >::size().
Referenced by enqueueForces(), and receiveForces().
void CollectionMaster::disposePositions | ( | CollectVectorInstance * | c | ) |
Definition at line 69 of file CollectionMaster.C.
References ResizeArray< T >::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< T >::size().
Referenced by enqueuePositions(), and receivePositions().
void CollectionMaster::disposeVelocities | ( | CollectVectorInstance * | c | ) |
Definition at line 114 of file CollectionMaster.C.
References ResizeArray< T >::begin(), CollectionMaster::CollectVectorInstance::data, DebugM, CollectionMaster::CollectVectorInstance::free(), memusage_MB(), Node::Object(), Node::output, CollectionMaster::CollectVectorInstance::seq, ResizeArray< T >::size(), and Output::velocity().
Referenced by enqueueVelocities(), and receiveVelocities().
void CollectionMaster::enqueueForces | ( | int | seq | ) |
Definition at line 145 of file CollectionMaster.C.
References disposeForces(), dummy(), CollectionMaster::CollectVectorSequence::enqueue(), and CollectionMaster::CollectVectorSequence::removeReady().
Referenced by Controller::enqueueCollections().
Definition at line 57 of file CollectionMaster.C.
References disposePositions(), CollectionMaster::CollectVectorSequence::enqueue(), and CollectionMaster::CollectVectorSequence::removeReady().
Referenced by Controller::enqueueCollections().
void CollectionMaster::enqueueVelocities | ( | int | seq | ) |
Definition at line 102 of file CollectionMaster.C.
References disposeVelocities(), dummy(), CollectionMaster::CollectVectorSequence::enqueue(), and CollectionMaster::CollectVectorSequence::removeReady().
Referenced by Controller::enqueueCollections().
|
inlinestatic |
Definition at line 43 of file CollectionMaster.h.
Referenced by recvReplicaDcdAck(), sendReplicaDcdData(), and sendReplicaDcdInit().
void CollectionMaster::receiveDataStream | ( | DataStreamMsg * | msg | ) |
Definition at line 177 of file CollectionMaster.C.
References SimParameters::auxFilename, ResizeArray< T >::begin(), DataStreamMsg::data, NAMD_backup_file(), NAMD_die(), Node::Object(), and Node::simParameters.
void CollectionMaster::receiveForces | ( | CollectVectorMsg * | msg | ) |
Definition at line 134 of file CollectionMaster.C.
References disposeForces(), Node::Object(), CollectionMaster::CollectVectorSequence::removeReady(), and CollectionMaster::CollectVectorSequence::submitData().
void CollectionMaster::receiveOutputForceReady | ( | int | seq | ) |
Definition at line 217 of file CollectionMaster.C.
References CollectionMaster::CollectVectorSequence::submitData().
void CollectionMaster::receiveOutputPosReady | ( | int | seq | ) |
void CollectionMaster::receiveOutputVelReady | ( | int | seq | ) |
Definition at line 210 of file CollectionMaster.C.
References CollectionMaster::CollectVectorSequence::submitData().
void CollectionMaster::receivePositions | ( | CollectVectorMsg * | msg | ) |
Definition at line 46 of file CollectionMaster.C.
References disposePositions(), Node::Object(), CollectionMaster::CollectVectorSequence::removeReady(), and CollectionMaster::CollectVectorSequence::submitData().
void CollectionMaster::receiveVelocities | ( | CollectVectorMsg * | msg | ) |
Definition at line 91 of file CollectionMaster.C.
References disposeVelocities(), Node::Object(), CollectionMaster::CollectVectorSequence::removeReady(), and CollectionMaster::CollectVectorSequence::submitData().
void CollectionMaster::startNextRoundOutputForce | ( | 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::startNextRoundOutputPos | ( | double | totalT | ) |
Definition at line 225 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 261 of file CollectionMaster.C.
References CollectionMaster::CollectVectorInstance::free(), IN_PROCESS, memusage_MB(), Node::Object(), and CollectionMaster::CollectVectorInstance::seq.
|
inline |
Definition at line 65 of file CollectionMaster.h.
References CollectionMaster::CollectVectorSequence::unblock().
Referenced by recvReplicaDcdAck().
void CollectionMaster::wrapCoorFinished | ( | ) |
Definition at line 326 of file CollectionMaster.C.
References Node::Object(), and CollectionMaster::CollectVectorInstance::seq.