1#ifndef GLOBALMASTERCOLVARS_H
2#define GLOBALMASTERCOLVARS_H
6#include "GlobalMaster.h"
20 void calculate()
override;
22 inline void requestTotalForcePublic(
bool yesno =
true)
24 requestTotalForce(yesno);
27 inline AtomIDList &modifyRequestedAtomsPublic()
29 return modifyRequestedAtoms();
32 inline AtomIDList &modifyForcedAtomsPublic()
34 return modifyForcedAtoms();
37 inline ForceList &modifyAppliedForcesPublic()
39 return modifyAppliedForces();
42 inline ResizeArray<AtomIDList>
const &getRequestedGroups()
const
47 inline ResizeArray<AtomIDList> &modifyRequestedGroupsPublic()
49 return modifyRequestedGroups();
52 inline ForceList &modifyGroupForcesPublic()
54 return modifyGroupForces();
57 inline IntList
const &getRequestedGridObjects()
const
62 inline IntList &modifyRequestedGridObjectsPublic()
64 return modifyRequestedGridObjects();
67 inline BigRealList &modifyGridObjForcesPublic()
69 return modifyGridObjForces();
72 inline AtomIDList::const_iterator getAtomIdBeginPublic()
74 return getAtomIdBegin();
77 inline AtomIDList::const_iterator getAtomIdEndPublic()
79 return getAtomIdEnd();
82 inline PositionList::const_iterator getAtomPositionBeginPublic()
84 return getAtomPositionBegin();
87 inline PositionList::const_iterator getGroupPositionBeginPublic()
89 return getGroupPositionBegin();
92 inline PositionList::const_iterator getGroupPositionEndPublic()
94 return getGroupPositionEnd();
97 inline ForceList::const_iterator getGroupTotalForceBeginPublic()
99 return getGroupTotalForceBegin();
102 inline ForceList::const_iterator getGroupTotalForceEndPublic()
104 return getGroupTotalForceEnd();
107 inline IntList::const_iterator getGridObjIndexBeginPublic()
109 return getGridObjIndexBegin();
112 inline IntList::const_iterator getGridObjIndexEndPublic()
114 return getGridObjIndexEnd();
117 inline BigRealList::const_iterator getGridObjValueBeginPublic()
119 return getGridObjValueBegin();
122 inline BigRealList::const_iterator getGridObjValueEndPublic()
124 return getGridObjValueEnd();
127 inline AtomIDList::const_iterator getForceIdBeginPublic()
129 return getForceIdBegin();
132 inline AtomIDList::const_iterator getForceIdEndPublic()
134 return getForceIdEnd();
137 inline ForceList::const_iterator getTotalForcePublic()
139 return getTotalForce();
142 inline void addReductionEnergyPublic(
int reductionTag, BigReal energy)
144 addReductionEnergy(reductionTag, energy);
147 inline Lattice
const *get_lattice()
const
154 std::unique_ptr<colvarproxy_namd> proxy;
160 constexpr int32_t GLOBAL_MASTER_CKLOOP_CALC_ITEM = 2000;
161 constexpr int32_t GLOBAL_MASTER_CKLOOP_CALC_BIASES = 2001;
162 constexpr int32_t GLOBAL_MASTER_CKLOOP_CALC_SCRIPTED_BIASES = 2002;
Definition: GlobalMasterColvars.h:11
Communication between colvars and NAMD (implementation of colvarproxy)
Definition: colvarproxy_namd.h:39