NAMD
|
#include <PatchMgr.h>
Static Public Member Functions | |
static PatchMgr * | Object () |
Friends | |
class | PatchMap |
Definition at line 145 of file PatchMgr.h.
PatchMgr::PatchMgr | ( | ) |
Definition at line 34 of file PatchMgr.C.
References PatchMap::Instance(), NAMD_bug(), recvCheckpointAck_handler(), recvCheckpointLoad_handler(), recvCheckpointReq_handler(), recvCheckpointStore_handler(), recvExchangeMsg_handler(), recvExchangeReq_handler(), and PatchMap::registerPatchMgr().
PatchMgr::~PatchMgr | ( | ) |
Definition at line 64 of file PatchMgr.C.
References ResizeArrayIter< Type >::begin(), ResizeArrayIter< Type >::end(), SortedArray< Type >::find(), and HomePatchElem::patch.
void PatchMgr::createHomePatch | ( | PatchID | pid, |
FullAtomList & | a | ||
) |
Definition at line 74 of file PatchMgr.C.
References SortedArray< Type >::load(), and PatchMap::registerPatch().
Referenced by WorkDistrib::createHomePatches(), ParallelIOMgr::createHomePatches(), and recvMovePatches().
Definition at line 165 of file PatchMgr.h.
References SortedArray< Type >::find().
Referenced by sendMovePatches(), and sendOneHomePatch().
void PatchMgr::moveAllBy | ( | MoveAllByMsg * | msg | ) |
Definition at line 244 of file PatchMgr.C.
References Lattice::apply_transform(), ResizeArray< T >::begin(), ResizeArray< T >::end(), FullAtom::fixedPosition, Patch::getNumAtoms(), Patch::lattice, MoveAllByMsg::offset, CompAtom::position, Lattice::reverse_transform(), and FullAtom::transform.
void PatchMgr::moveAtom | ( | MoveAtomMsg * | msg | ) |
Definition at line 226 of file PatchMgr.C.
References Lattice::apply_transform(), MoveAtomMsg::atomid, MoveAtomMsg::coord, FullAtom::fixedPosition, PatchMap::homePatch(), LocalID::index, Patch::lattice, AtomMap::localID(), MoveAtomMsg::moveto, notUsed, AtomMap::Object(), LocalID::pid, CompAtom::position, Lattice::reverse_transform(), and FullAtom::transform.
Definition at line 84 of file PatchMgr.C.
References SortedArray< Type >::load().
Referenced by WorkDistrib::distributeHomePatches().
|
inlinestatic |
Definition at line 152 of file PatchMgr.h.
Referenced by HomePatch::doAtomMigration(), HomePatch::exchangeAtoms(), HomePatch::exchangeCheckpoint(), recvCheckpointAck_handler(), HomePatch::recvCheckpointLoad(), recvCheckpointLoad_handler(), HomePatch::recvCheckpointReq(), recvCheckpointReq_handler(), HomePatch::recvCheckpointStore(), recvCheckpointStore_handler(), recvExchangeMsg_handler(), HomePatch::recvExchangeReq(), and recvExchangeReq_handler().
void PatchMgr::recvAtoms | ( | MovePatchesMsg * | msg | ) |
Definition at line 168 of file PatchMgr.C.
References MovePatchesMsg::atom, PatchMap::homePatch(), and MovePatchesMsg::pid.
void PatchMgr::recvCheckpointAck | ( | CheckpointAtomsReqMsg * | msg | ) |
Definition at line 378 of file PatchMgr.C.
References PatchMap::homePatch(), NAMD_bug(), CheckpointAtomsReqMsg::pid, and HomePatch::recvCheckpointAck().
Referenced by recvCheckpointAck_handler().
void PatchMgr::recvCheckpointLoad | ( | CheckpointAtomsMsg * | msg | ) |
Definition at line 326 of file PatchMgr.C.
References PatchMap::homePatch(), CheckpointAtomsMsg::pid, and HomePatch::recvCheckpointLoad().
Referenced by recvCheckpointLoad_handler().
void PatchMgr::recvCheckpointReq | ( | CheckpointAtomsReqMsg * | msg | ) |
Definition at line 294 of file PatchMgr.C.
References PatchMap::homePatch(), CheckpointAtomsReqMsg::key, NAMD_bug(), PatchMap::node(), CheckpointAtomsReqMsg::pe, CheckpointAtomsReqMsg::pid, HomePatch::recvCheckpointReq(), CheckpointAtomsReqMsg::replica, and CheckpointAtomsReqMsg::task.
Referenced by recvCheckpointReq_handler().
void PatchMgr::recvCheckpointStore | ( | CheckpointAtomsMsg * | msg | ) |
Definition at line 351 of file PatchMgr.C.
References PatchMap::homePatch(), CheckpointAtomsMsg::pid, and HomePatch::recvCheckpointStore().
Referenced by recvCheckpointStore_handler().
void PatchMgr::recvExchangeMsg | ( | ExchangeAtomsMsg * | msg | ) |
Definition at line 433 of file PatchMgr.C.
References PatchMap::homePatch(), ExchangeAtomsMsg::pid, and HomePatch::recvExchangeMsg().
Referenced by recvExchangeMsg_handler().
void PatchMgr::recvExchangeReq | ( | ExchangeAtomsReqMsg * | msg | ) |
Definition at line 405 of file PatchMgr.C.
References ExchangeAtomsReqMsg::dstpe, PatchMap::homePatch(), NAMD_bug(), PatchMap::node(), ExchangeAtomsReqMsg::pid, and HomePatch::recvExchangeReq().
Referenced by recvExchangeReq_handler().
void PatchMgr::recvMigrateAtomsCombined | ( | MigrateAtomsCombinedMsg * | msg | ) |
Definition at line 219 of file PatchMgr.C.
References DebugM, MigrateAtomsCombinedMsg::distribute(), ResizeArray< T >::size(), and MigrateAtomsCombinedMsg::srcPatchID.
void PatchMgr::recvMovePatches | ( | MovePatchesMsg * | msg | ) |
Definition at line 137 of file PatchMgr.C.
References MovePatchesMsg::atom, createHomePatch(), and MovePatchesMsg::pid.
void PatchMgr::sendAtoms | ( | PatchID | pid, |
FullAtomList & | a | ||
) |
Definition at line 157 of file PatchMgr.C.
References MovePatchesMsg::atom, NAMD_bug(), PatchMap::node(), and ResizeArray< T >::shared().
Referenced by WorkDistrib::reinitAtoms().
void PatchMgr::sendCheckpointAck | ( | int | pid, |
int | dst, | ||
int | dstpe | ||
) |
Definition at line 358 of file PatchMgr.C.
References CheckpointAtomsReqMsg::pid.
Referenced by HomePatch::recvCheckpointReq(), and HomePatch::recvCheckpointStore().
void PatchMgr::sendCheckpointLoad | ( | CheckpointAtomsMsg * | msg, |
int | dst, | ||
int | dstpe | ||
) |
void PatchMgr::sendCheckpointReq | ( | int | pid, |
int | remote, | ||
const char * | key, | ||
int | task | ||
) |
Definition at line 270 of file PatchMgr.C.
References CheckpointAtomsReqMsg::key, CheckpointAtomsReqMsg::pe, CheckpointAtomsReqMsg::pid, CheckpointAtomsReqMsg::replica, and CheckpointAtomsReqMsg::task.
Referenced by HomePatch::exchangeCheckpoint().
void PatchMgr::sendCheckpointStore | ( | CheckpointAtomsMsg * | msg, |
int | dst, | ||
int | dstpe | ||
) |
void PatchMgr::sendExchangeMsg | ( | ExchangeAtomsMsg * | msg, |
int | dst, | ||
int | dstpe | ||
) |
Definition at line 417 of file PatchMgr.C.
Referenced by HomePatch::recvExchangeReq().
void PatchMgr::sendExchangeReq | ( | int | pid, |
int | src | ||
) |
Definition at line 386 of file PatchMgr.C.
References ExchangeAtomsReqMsg::dstpe, and ExchangeAtomsReqMsg::pid.
Referenced by HomePatch::exchangeAtoms().
void PatchMgr::sendMigrationMsgs | ( | PatchID | src, |
MigrationInfo * | m, | ||
int | numMsgs | ||
) |
Definition at line 175 of file PatchMgr.C.
References MigrateAtomsCombinedMsg::add(), ResizeArray< T >::add(), DebugM, MigrationInfo::destNodeID, PatchMap::numHomePatches(), ResizeArray< T >::resize(), and ResizeArray< T >::size().
Referenced by HomePatch::doAtomMigration().
void PatchMgr::sendMovePatches | ( | ) |
Definition at line 110 of file PatchMgr.C.
References MovePatchesMsg::atom, ResizeArrayIter< Type >::begin(), SortedArray< Type >::del(), ResizeArrayIter< Type >::end(), homePatch(), NAMD_bug(), ResizeArray< T >::resize(), ResizeArray< T >::shared(), ResizeArray< T >::size(), and PatchMap::unregisterPatch().
Referenced by WorkDistrib::distributeHomePatches().
void PatchMgr::sendOneHomePatch | ( | int | patchId, |
int | nodeId | ||
) |
Definition at line 89 of file PatchMgr.C.
References MovePatchesMsg::atom, SortedArray< Type >::del(), homePatch(), NAMD_bug(), ResizeArray< T >::shared(), and PatchMap::unregisterPatch().
|
inline |
Definition at line 220 of file PatchMgr.h.
References PatchMap::homePatch(), and Patch::setNumFixedAtoms().
void PatchMgr::setLattice | ( | SetLatticeMsg * | msg | ) |
Definition at line 258 of file PatchMgr.C.
References ResizeArray< T >::begin(), ResizeArray< T >::end(), SetLatticeMsg::lattice, Patch::lattice, SimParameters::lattice, Node::Object(), and Node::simParameters.
|
friend |
Definition at line 193 of file PatchMgr.h.