24 #include "core/PlumedMain.h"
25 #include "core/Atoms.h"
71 PLUMED_REGISTER_ACTION(
Constant,
"CONSTANT")
78 addValueWithDerivatives();
81 std::vector<AtomNumber> atoms;
89 keys.
remove(
"NUMERICAL_DERIVATIVES");
90 keys.
add(
"compulsory",
"VALUE",
"The value of the constant");
static void registerKeywords(Keywords &keys)
Register all the relevant keywords for the action.
static void registerKeywords(Keywords &keys)
void add(const std::string &t, const std::string &k, const std::string &d)
Add a new keyword of type t with name k and description d.
#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 ...
static void registerKeywords(Keywords &keys)
Register all the relevant keywords for the action.
Provides the keyword CONSTANT
virtual void calculate()
Calculate an Action.
void remove(const std::string &k)
Remove the keyword with name k.
Constant(const ActionOptions &)
static void registerKeywords(Keywords &keys)