Public Member Functions | |
Moments (const vesselbase::VesselOptions &da) | |
std::string | description () |
Return a description of the vessel contents. More... | |
void | performCalculationUsingAllValues () |
Do the calculation. More... | |
void | local_resizing () |
This makes sure things further down the chain are resized. More... | |
bool | applyForce (std::vector< double > &forces) |
Retrieve the forces on the quantities in the vessel. More... | |
unsigned | getNumberOfTerms () |
Return the number of terms. More... | |
void | resize () |
This does the resizing of the buffer. More... | |
bool | calculate () |
This makes sure all values are stored. More... | |
void | finish () |
Makes sure the dynamic lists are gathered. More... | |
std::string | getName () const |
Return the name. More... | |
std::string | getLabel () const |
Return the label. More... | |
void | checkRead () |
Check that readin was fine. More... | |
void | zero () |
Set all the buffer elements to zero. More... | |
void | addToBufferElement (const unsigned &i, const double &val) |
Add something to the ith element in the buffer. More... | |
virtual void | prepare () |
Do something before the loop. More... | |
Static Public Member Functions | |
static void | registerKeywords (Keywords &keys) |
static void | reserveKeyword (Keywords &keys) |
Public Attributes | |
Log & | log |
Reference to the log on which to output details. More... | |
Protected Member Functions | |
unsigned | getNumberOfStoredColvars () const |
Get the number of stored colvar values. More... | |
double | getValue (const unsigned &) const |
Get the ith value in the vessel. More... | |
double | getWeight (const unsigned &) const |
Get the weight of the ith quantity in the vessel. More... | |
void | addDerivatives (const unsigned &ival, double &pref, Value *value_out) |
Add the derivatives from the value. More... | |
void | addWeightDerivatives (const unsigned &ival, double &pref, Value *value_out) |
Add the derivatives from the weight of the value. More... | |
int | getNumericalLabel () const |
Return the numerical label. More... | |
void | error (const std::string &errmsg) |
Report an error. More... | |
template<class T > | |
void | parse (const std::string &key, T &t) |
Parse something from the input. More... | |
template<class T > | |
void | parseVector (const std::string &key, std::vector< T > &t) |
Parse one keyword as std::vector. More... | |
void | parseFlag (const std::string &key, bool &t) |
Parse one keyword as boolean flag. More... | |
std::string | getAllInput () |
This returns the whole input line (it is used for less_than/more_than/between) More... | |
ActionWithVessel * | getAction () |
Return a pointer to the action we are working in. More... | |
double | getTolerance () const |
Return the value of the tolerance. More... | |
double | getNLTolerance () const |
Return the value of the neighbor list tolerance. More... | |
void | resizeBuffer (const unsigned &n) |
Set the size of the data buffer. More... | |
void | setBufferElement (const unsigned &i, const double &val) |
Set the value of the ith element in the buffer. More... | |
double | getBufferElement (const unsigned &i) const |
Get the value in the ith element of the buffer. More... | |
void | stashBuffers () |
Store everything that is the buffers. More... | |
void | setBufferFromStash () |
Add the contents of the stash to the buffer. More... | |
Protected Attributes | |
bool | diffweight |
Are the weights differentiable. More... | |
Communicator & | comm |
A copy of the communicator. More... | |
Private Attributes | |
std::vector< unsigned > | powers |
std::vector< Value * > | value_out |
Definition at line 33 of file Moments.cpp.
PLMD::multicolvar::Moments::Moments | ( | const vesselbase::VesselOptions & | da | ) |
Definition at line 63 of file Moments.cpp.
|
protectedinherited |
Add the derivatives from the value.
Definition at line 103 of file StoreColvarVessel.cpp.
|
inlineinherited |
|
protectedinherited |
Add the derivatives from the weight of the value.
Definition at line 117 of file StoreColvarVessel.cpp.
|
virtual |
Retrieve the forces on the quantities in the vessel.
Implements PLMD::vesselbase::Vessel.
Definition at line 133 of file Moments.cpp.
|
virtualinherited |
This makes sure all values are stored.
Implements PLMD::vesselbase::Vessel.
Definition at line 62 of file StoreColvarVessel.cpp.
|
inherited |
Check that readin was fine.
Definition at line 111 of file Vessel.cpp.
|
virtual |
Return a description of the vessel contents.
Implements PLMD::vesselbase::Vessel.
Definition at line 87 of file Moments.cpp.
|
protectedinherited |
Report an error.
Definition at line 122 of file Vessel.cpp.
|
virtualinherited |
Makes sure the dynamic lists are gathered.
Implements PLMD::vesselbase::Vessel.
Definition at line 98 of file StoreColvarVessel.cpp.
|
inlineprotectedinherited |
|
protectedinherited |
This returns the whole input line (it is used for less_than/more_than/between)
Definition at line 84 of file Vessel.cpp.
|
inlineprotectedinherited |
|
inherited |
Return the label.
Definition at line 80 of file Vessel.cpp.
|
inherited |
Return the name.
Definition at line 76 of file Vessel.cpp.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
Get the number of stored colvar values.
Definition at line 86 of file StoreColvarVessel.h.
|
inlinevirtualinherited |
Return the number of terms.
Implements PLMD::vesselbase::Vessel.
Definition at line 60 of file StoreColvarVessel.h.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
Get the ith value in the vessel.
Definition at line 74 of file StoreColvarVessel.h.
|
inlineprotectedinherited |
Get the weight of the ith quantity in the vessel.
Definition at line 80 of file StoreColvarVessel.h.
|
virtual |
This makes sure things further down the chain are resized.
Implements PLMD::multicolvar::StoreColvarVessel.
Definition at line 82 of file Moments.cpp.
|
protectedinherited |
|
protectedinherited |
Parse one keyword as boolean flag.
Definition at line 93 of file Vessel.cpp.
|
protectedinherited |
|
virtual |
Do the calculation.
Implements PLMD::multicolvar::StoreColvarVessel.
Definition at line 98 of file Moments.cpp.
|
inlinevirtualinherited |
Do something before the loop.
Reimplemented in PLMD::vesselbase::BridgeVessel.
|
static |
Definition at line 49 of file Moments.cpp.
|
static |
Definition at line 53 of file Moments.cpp.
|
virtualinherited |
This does the resizing of the buffer.
Implements PLMD::vesselbase::Vessel.
Definition at line 46 of file StoreColvarVessel.cpp.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
protectedinherited |
Add the contents of the stash to the buffer.
Definition at line 133 of file Vessel.cpp.
|
protectedinherited |
Store everything that is the buffers.
Definition at line 128 of file Vessel.cpp.
|
inlineinherited |
|
protectedinherited |
|
protectedinherited |
Are the weights differentiable.
Definition at line 44 of file StoreColvarVessel.h.
|
inherited |
|
private |
Definition at line 35 of file Moments.cpp.
|
private |
Definition at line 36 of file Moments.cpp.
Hosted by GitHub
![]() |
![]() |