NAMD
|
#include <ComputeQM.h>
Public Member Functions | |
ComputeQM (ComputeID c) | |
virtual | ~ComputeQM () |
void | initialize () |
void | doWork () |
void | saveResults (QMForceMsg *) |
void | processFullQM (QMCoordMsg *) |
Public Member Functions inherited from ComputeHomePatches | |
ComputeHomePatches (ComputeID c) | |
virtual | ~ComputeHomePatches () |
virtual void | atomUpdate () |
Flags * | getFlags (void) |
Public Member Functions inherited from Compute | |
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 | |
Public Attributes inherited from Compute | |
const ComputeID | cid |
LDObjHandle | ldObjHandle |
LocalWorkMsg *const | localWorkMsg |
Protected Member Functions inherited from Compute | |
void | enqueueWork () |
Protected Attributes inherited from ComputeHomePatches | |
int | useAvgPositions |
int | hasPatchZero |
ComputeHomePatchList | patchList |
PatchMap * | patchMap |
Protected Attributes inherited from Compute | |
int | computeType |
int | basePriority |
int | gbisPhase |
int | gbisPhasePriority [3] |
Definition at line 114 of file ComputeQM.h.
ComputeQM::ComputeQM | ( | ComputeID | c | ) |
Definition at line 599 of file ComputeQM.C.
References ReductionMgr::Object(), REDUCTIONS_BASIC, and ReductionMgr::willSubmit().
|
virtual |
Definition at line 609 of file ComputeQM.C.
Reimplemented from Compute.
Definition at line 675 of file ComputeQM.C.
References ResizeArrayIter< Type >::begin(), ComputeQMAtom::charge, charge, QMCoordMsg::coord, DebugM, ResizeArrayIter< Type >::end(), SortedArray< Type >::find(), ComputeQMAtom::homeIndx, ComputeQMAtom::id, CompAtomExt::id, QMCoordMsg::numAtoms, ComputeHomePatches::patchList, ComputeQMAtom::position, ComputeQMAtom::qmGrpID, ResizeArray< T >::size(), QMCoordMsg::sourceNode, QMCoordMsg::timestep, CompAtom::vdwType, ComputeQMAtom::vdwType, and x.
Reimplemented from ComputeHomePatches.
Definition at line 615 of file ComputeQM.C.
References SortedArray< Type >::add(), ResizeArray< T >::add(), SimParameters::cutoff, Molecule::get_noPC(), Molecule::get_numQMAtoms(), Molecule::get_qmAtmChrg(), Molecule::get_qmAtmIndx(), Molecule::get_qmAtomGroup(), Molecule::get_qmCustomPCIdxs(), Molecule::get_qmCustPCSizes(), Molecule::get_qmGrpID(), Molecule::get_qmMeMMindx(), Molecule::get_qmMeNumBonds(), Molecule::get_qmMeQMGrp(), Molecule::get_qmNumGrps(), Molecule::get_qmTotCustPCs(), ComputeHomePatches::initialize(), Node::molecule, Node::Object(), SimParameters::qmCustomPCSel, ResizeArray< T >::resize(), and Node::simParameters.
void ComputeQM::processFullQM | ( | QMCoordMsg * | qmFullMsg | ) |
Definition at line 1292 of file ComputeQM.C.
References ResizeArray< T >::add(), CompAtom::charge, charge, ResizeArray< T >::clear(), QMCoordMsg::coord, DebugM, Lattice::delta(), SortedArray< Type >::find(), CompAtomExt::id, Vector::length(), SortedArray< Type >::load(), FullAtom::mass, QMCoordMsg::numAtoms, QMCoordMsg::numPCIndxs, ComputeHomePatches::patchList, QMCoordMsg::pcIndxs, PCMODECUSTOMSEL, PCMODEUPDATEPOS, PCMODEUPDATESEL, QMCoordMsg::pcSelMode, ComputeQMAtom::position, ComputeQMAtom::qmGrpID, ResizeArray< T >::size(), SortedArray< Type >::sort(), QMCoordMsg::sourceNode, QMPntChrgMsg::sourceNode, CompAtom::vdwType, and x.
Referenced by ComputeQMMgr::recvFullQM().
void ComputeQM::saveResults | ( | QMForceMsg * | fmsg | ) |
Definition at line 2673 of file ComputeQM.C.
References ResizeArrayIter< Type >::begin(), QMForce::charge, DebugM, ResizeArrayIter< Type >::end(), QMForceMsg::energy, Results::f, QMForce::force, QMForceMsg::force, ExtForce::force, Molecule::get_numQMAtoms(), Molecule::get_qmAtmChrg(), Molecule::get_qmAtmIndx(), Molecule::get_qmAtomGroup(), Molecule::get_qmNumGrps(), getComputes(), QMForce::homeIndx, QMForce::id, SubmitReduction::item(), Node::molecule, Results::normal, QMForceMsg::numForces, Node::Object(), ComputeHomePatches::patchList, QMForceMsg::PMEOn, REDUCTION_MISC_ENERGY, QMForce::replace, ExtForce::replace, ResizeArray< T >::size(), SubmitReduction::submit(), and QMForceMsg::virial.
Referenced by ComputeQMMgr::recvForce().