33 outputForces(getNumberOfArguments(),0.0)
35 if(
getStride()>1)
error(
"Using bias with stride!=1 is not currently supported");
43 keys.
add(
"hidden",
"STRIDE",
"the frequency with which the forces due to the bias should be calculated. This can be used to correctly set up multistep algorithms");
static void registerKeywords(Keywords &keys)
Register all the relevant keywords for the action.
void addForce(double f)
Add some force on this value.
std::vector< double > outputForces
This is used to create PLMD::Action objects that are run with some set frequency. ...
static void registerKeywords(Keywords &keys)
Registers the list of keywords.
void error(const std::string &msg) const
Crash calculation and print documentation.
Value * getPntrToArgument(const unsigned n)
Return a pointer to specific argument.
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.
This is used to create PLMD::Action objects that take the output from some other Action as input...
Bias(const ActionOptions &ao)
Used to create a PLMD::Action that has some scalar or vectorial output that may or may not have some ...
This class holds the keywords and their documentation.
This class is used to bring the relevant information to the Action constructor.
Base class for all the input Actions.
static void registerKeywords(Keywords &keys)
Register all the relevant keywords for the action.
static void registerKeywords(Keywords &keys)
Create the keywords for actionPilot.
void apply()
Apply an Action.
static void registerKeywords(Keywords &)
bool onStep() const
Check if the action is active on this step.
unsigned getNumberOfArguments() const
Returns the number of arguments.