30 std::vector<double>
df;
47 keys.
reserveFlag(
"SUM",
false,
"calculate the sum of all the quantities.",
true);
58 return "the sum of all the values";
double getTolerance() const
Return the value of the tolerance.
double getFinalValue(const unsigned &j)
Get the nth value in the distribution.
bool diffweight
Are the derivatives differentiable.
void chainRuleForElementDerivatives(const unsigned &, const unsigned &, const double &, Vessel *)
Merge the derivatives.
std::string function_description()
The rest of the description of what we are calculating.
void setOutputValue(const double &val)
Set the final value.
Objects that inherit from FunctionVessel can be used (in tandem with PLMD::ActionWithVessel) to calcu...
static void registerKeywords(Keywords &keys)
void mergeFinalDerivatives(const std::vector< double > &df)
This does a combination of the product and chain rules.
void addOutputComponent(const std::string &name, const std::string &key, const std::string &descr)
Add a potential component which can be output by this particular action.
static void reserveKeyword(Keywords &keys)
This class holds the keywords and their documentation.
void addValueIgnoringTolerance(const unsigned &jval, const double &val)
Add some value to the accumulator and ignore the tolerance.
#define PLUMED_REGISTER_VESSEL(classname, keyword)
void finish()
Complete the calculation once the loop is finished.
bool calculate()
Calculate the part of the vessel that is done in the loop.
static void registerKeywords(Keywords &keys)
This class is used to pass the input to Vessels.
void reserveFlag(const std::string &k, const bool def, const std::string &d, const bool isvessel=false)
Reserve a flag.
Sum(const VesselOptions &da)
double getElementValue(const unsigned &ival) const
Get the value of this element.
ActionWithVessel * getAction()
Return a pointer to the action we are working in.