24 #include "core/PlumedMain.h"
25 #include "core/Atoms.h"
75 PLUMED_REGISTER_ACTION(
Energy,
"ENERGY")
83 addValueWithDerivatives(); setNotPeriodic();
84 getPntrToValue()->resizeDerivatives(1);
85 log<<
" Bibliography ";
86 log<<
plumed.cite(
"Bartels and Karplus, J. Phys. Chem. B 102, 865 (1998)");
87 log<<
plumed.cite(
"Bonomi and Parrinello, J. Comp. Chem. 30, 1615 (2009)");
95 keys.
remove(
"NUMERICAL_DERIVATIVES");
99 plumed.getAtoms().setCollectEnergy(
true);
104 setValue( getEnergy() );
105 getPntrToComponent(0)->addDerivative(0,1.0);
static void registerKeywords(Keywords &keys)
Register all the relevant keywords for the action.
static void registerKeywords(Keywords &keys)
Provides the keyword ENERGY
#define PLUMED_COLVAR_INIT(ao)
This class holds the keywords and their documentation.
This class is used to bring the relevant information to the Action constructor.
This is the abstract base class to use for implementing new collective variables, within it there is ...
void prepare()
Prepare an Action for calculation This can be used by Action if they need some special preparation be...
static void registerKeywords(Keywords &keys)
Register all the relevant keywords for the action.
Energy(const ActionOptions &)
void remove(const std::string &k)
Remove the keyword with name k.
virtual void calculate()
Calculate an Action.
static void registerKeywords(Keywords &keys)