NAMD
|
#include <ComputeGlobal.h>
Public Member Functions | |
ComputeGlobal (ComputeID, ComputeMgr *) | |
virtual | ~ComputeGlobal () |
void | doWork () |
void | recvResults (ComputeGlobalResultsMsg *) |
void | saveTotalForces (HomePatch *) |
int | getForceSendActive () const |
![]() | |
ComputeHomePatches (ComputeID c) | |
virtual | ~ComputeHomePatches () |
virtual void | initialize () |
virtual void | atomUpdate () |
Flags * | getFlags (void) |
![]() | |
Compute (ComputeID) | |
int | type () |
virtual | ~Compute () |
void | setNumPatches (int n) |
int | getNumPatches () |
virtual void | patchReady (PatchID, int doneMigration, int seq) |
virtual int | noWork () |
virtual void | finishPatch (int) |
int | sequence (void) |
int | priority (void) |
int | getGBISPhase (void) |
virtual void | gbisP2PatchReady (PatchID, int seq) |
virtual void | gbisP3PatchReady (PatchID, int seq) |
Additional Inherited Members | |
![]() | |
const ComputeID | cid |
LDObjHandle | ldObjHandle |
LocalWorkMsg *const | localWorkMsg |
![]() | |
void | enqueueWork () |
![]() | |
int | useAvgPositions |
int | hasPatchZero |
ComputeHomePatchList | patchList |
PatchMap * | patchMap |
![]() | |
int | computeType |
int | basePriority |
int | gbisPhase |
int | gbisPhasePriority [3] |
Definition at line 36 of file ComputeGlobal.h.
ComputeGlobal::ComputeGlobal | ( | ComputeID | c, |
ComputeMgr * | m | ||
) |
Definition at line 38 of file ComputeGlobal.C.
References SimParameters::colvarsOn, SimParameters::CUDASOAintegrateMode, DebugM, SimParameters::FMAOn, SimParameters::fullDirectOn, SimParameters::GBISOn, SimParameters::GBISserOn, PatchMap::numPatches(), PatchMap::Object(), Node::Object(), ReductionMgr::Object(), SimParameters::PMEOn, PatchData::reduction, REDUCTIONS_BASIC, ResizeArray< Elem >::resize(), Node::simParameters, SimParameters::SOAintegrateOn, SimParameters::tclForcesOn, and ReductionMgr::willSubmit().
|
virtual |
Definition at line 115 of file ComputeGlobal.C.
|
virtual |
Reimplemented from Compute.
Definition at line 532 of file ComputeGlobal.C.
References ResizeArray< Elem >::add(), ResizeArrayIter< T >::begin(), ComputeGlobalDataMsg::count, SimParameters::CUDASOAintegrate, SimParameters::CUDASOAintegrateMode, DebugM, ComputeMgr::enableComputeGlobalResults(), ResizeArrayIter< T >::end(), endi(), SimParameters::globalMasterFrequency, ComputeHomePatches::hasPatchZero, ComputeGlobalDataMsg::lat, Node::Object(), ComputeGlobalDataMsg::patchcount, ComputeHomePatches::patchList, ComputeMgr::recvComputeGlobalResults(), ComputeMgr::sendComputeGlobalData(), Node::simParameters, SimParameters::SOAintegrateOn, and ComputeGlobalDataMsg::step.
|
inline |
Definition at line 47 of file ComputeGlobal.h.
void ComputeGlobal::recvResults | ( | ComputeGlobalResultsMsg * | msg | ) |
Definition at line 268 of file ComputeGlobal.C.
References ADD_TENSOR_OBJECT, ADD_VECTOR_OBJECT, ComputeGlobalResultsMsg::aid, ResizeArray< Elem >::begin(), ResizeArrayIter< T >::begin(), SimParameters::CUDASOAintegrate, SimParameters::CUDASOAintegrateMode, DebugM, ResizeArray< Elem >::end(), ResizeArrayIter< T >::end(), ComputeGlobalResultsMsg::f, ComputeGlobalResultsMsg::gforce, SimParameters::globalMasterFrequency, SimParameters::globalMasterScaleByFrequency, Transform::i, LocalID::index, Transform::j, Transform::k, AtomMap::localID(), FullAtom::mass, NAMD_bug(), ComputeGlobalResultsMsg::newaid, ComputeGlobalResultsMsg::newgdef, ComputeGlobalResultsMsg::newgridobjid, Results::normal, notUsed, AtomMap::Object(), Node::Object(), outer(), ComputeHomePatches::patchList, LocalID::pid, CompAtom::position, ComputeGlobalResultsMsg::reconfig, ComputeGlobalResultsMsg::resendCoordinates, ResizeArray< Elem >::resize(), Lattice::reverse_transform(), Node::simParameters, ResizeArray< Elem >::size(), SimParameters::SOAintegrateOn, SubmitReduction::submit(), ComputeGlobalResultsMsg::totalforces, FullAtom::transform, Vector::x, Vector::y, and Vector::z.
Referenced by ComputeMgr::recvComputeGlobalResults().
void ComputeGlobal::saveTotalForces | ( | HomePatch * | homePatch | ) |
Definition at line 981 of file ComputeGlobal.C.
References SimParameters::accelMDDebugOn, SimParameters::accelMDdihe, SimParameters::accelMDOn, ResizeArray< Elem >::add(), Results::amdf, ResizeArray< Elem >::begin(), SimParameters::CUDASOAintegrateMode, ResizeArray< Elem >::end(), Patch::f, PatchDataSOA::f_normal_x, PatchDataSOA::f_normal_y, PatchDataSOA::f_normal_z, PatchDataSOA::f_saved_nbond_x, PatchDataSOA::f_saved_nbond_y, PatchDataSOA::f_saved_nbond_z, PatchDataSOA::f_saved_slow_x, PatchDataSOA::f_saved_slow_y, PatchDataSOA::f_saved_slow_z, intpair::first, SimParameters::fixedAtomsOn, NAMD_bug(), Results::nbond, Results::normal, Patch::numAtoms, Node::Object(), Patch::patchID, ComputeHomePatches::patchList, intpair::second, Node::simParameters, Results::slow, SimParameters::SOAintegrateOn, Vector::x, Vector::y, and Vector::z.
Referenced by Sequencer::integrate(), Sequencer::integrate_SOA(), and Sequencer::minimize().