
Public Member Functions | |
| Moments (const vesselbase::VesselOptions &da) | |
| std::string | description () |
| Return a description of the vessel contents. More... | |
| void | resize () |
| Do all resizing of data. More... | |
| void | finish (const std::vector< double > &buffer) |
| Final step in gathering data. More... | |
| bool | applyForce (std::vector< double > &forces) |
| Forces on vectors should always be applied elsewhere. More... | |
| virtual unsigned | getNumberOfStoredValues () const |
| Get the number of values that have been stored. More... | |
| unsigned | getStoreIndex (const unsigned &) const |
| Get the index to store a particular index inside. More... | |
| virtual void | recalculateStoredQuantity (const unsigned &myelm, MultiValue &myvals) |
| Recalculate one of the base quantities. More... | |
| void | setHardCutoffOnWeight (const double &mytol) |
| Set a hard cutoff on the weight of an element. More... | |
| void | addActionThatUses (ActionWithVessel *actionThatUses) |
| Add an action that uses this data. More... | |
| unsigned | getNumberOfComponents () const |
| Return the number of components in the vector. More... | |
| void | retrieveSequentialValue (const unsigned &myelem, const bool &normed, std::vector< double > &values) const |
| Get the values of all the components in the vector. More... | |
| void | retrieveValueWithIndex (const unsigned &myelem, const bool &normed, std::vector< double > &values) const |
| double | retrieveWeightWithIndex (const unsigned &myelem) const |
| virtual void | retrieveDerivatives (const unsigned &myelem, const bool &normed, MultiValue &myvals) |
| Get the derivatives for one of the components in the vector. More... | |
| unsigned | getNumberOfDerivatives (const unsigned &) |
| Get the number of derivatives for the ith value. More... | |
| unsigned | getSizeOfDerivativeList () const |
| Get the size of the derivative list. More... | |
| virtual void | calculate (const unsigned ¤t, MultiValue &myvals, std::vector< double > &buffer, std::vector< unsigned > &der_index) const |
| This stores the data when not using lowmem. More... | |
| bool | storedValueIsActive (const unsigned &iatom) const |
| Is a particular stored value active at the present time. More... | |
| void | setActiveValsAndDerivatives (const std::vector< unsigned > &der_index) |
| Set the active values. More... | |
| virtual void | activateIndices (ActionWithVessel *) |
| Activate indexes (this is used at end of chain rule) More... | |
| unsigned | getNumberOfDataUsers () const |
| Get the number of data users. More... | |
| ActionWithVessel * | getDataUser (const unsigned &) |
| Get one of the ith data user. More... | |
| void | resizeTemporyMultiValues (const unsigned &nvals) |
| Set the number of tempory multivalues we need. More... | |
| MultiValue & | getTemporyMultiValue (const unsigned &ind) |
| Return a tempory multi value - we do this so as to avoid vector resizing. 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... | |
| virtual void | setBufferStart (unsigned &start) |
| Set the start of the buffer. More... | |
| virtual void | prepare () |
| Do something before the loop. More... | |
| virtual MultiValue & | transformDerivatives (const unsigned ¤t, MultiValue &myvals, MultiValue &bvals) |
| This is replaced in bridges so we can transform the derivatives. More... | |
Static Public Member Functions | |
| static void | registerKeywords (Keywords &keys) |
| static void | reserveKeyword (Keywords &keys) |
| static std::string | transformName (const std::string &name) |
| Convert the name to the label of the component. More... | |
Public Attributes | |
| Log & | log |
| Reference to the log on which to output details. More... | |
Protected Member Functions | |
| bool | weightHasDerivatives () |
| Is the weight differentiable. More... | |
| bool | usingLowMem () |
| Are we using low mem option. More... | |
| void | completeSetup (const unsigned &, const unsigned &) |
| Finish the setup of the storage object by setting how much data has to be stored. More... | |
| unsigned | getNumberOfDerivativeSpacesPerComponent () const |
| Return value of nspace. More... | |
| void | storeValues (const unsigned &, MultiValue &, std::vector< double > &) const |
| Retrieve the values from the underlying ActionWithVessel. More... | |
| void | storeDerivatives (const unsigned &, MultiValue &myvals, std::vector< double > &, std::vector< unsigned > &) const |
| This stores the data we get from the calculation. More... | |
| double | getLocalDerivative (const unsigned &ibuf) |
| Get the ibuf'th local derivative value. More... | |
| void | setLocalDerivative (const unsigned &ibuf, const double &val) |
| Set the ibuf'th local derivative 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 () const |
| 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... | |
Protected Attributes | |
| unsigned | bufstart |
| The start of this Vessel's buffer in buffer in the underlying ActionWithVessel. More... | |
| Communicator & | comm |
| A copy of the communicator. More... | |
Private Attributes | |
| std::vector< unsigned > | powers |
| std::vector< Value * > | value_out |
|
explicit |
|
inlinevirtualinherited |
Activate indexes (this is used at end of chain rule)
|
inherited |
Add an action that uses this data.
|
virtual |
Forces on vectors should always be applied elsewhere.
Reimplemented from PLMD::vesselbase::StoreDataVessel.
|
virtualinherited |
This stores the data when not using lowmem.
Implements PLMD::vesselbase::Vessel.
|
inherited |
Check that readin was fine.
|
protectedinherited |
Finish the setup of the storage object by setting how much data has to be stored.
|
virtual |
Return a description of the vessel contents.
Reimplemented from PLMD::vesselbase::StoreDataVessel.
|
protectedinherited |
Report an error.
|
virtual |
Final step in gathering data.
Reimplemented from PLMD::vesselbase::StoreDataVessel.
|
inlineprotectedinherited |
Return a pointer to the action we are working in.
|
protectedinherited |
This returns the whole input line (it is used for less_than/more_than/between)
|
inlineinherited |
Get one of the ith data user.
|
inherited |
Return the label.
|
protectedinherited |
Get the ibuf'th local derivative value.
|
inherited |
Return the name.
|
inlineprotectedinherited |
Return the value of the neighbor list tolerance.
|
inlineinherited |
Return the number of components in the vector.
|
inlineinherited |
Get the number of data users.
|
inherited |
Get the number of derivatives for the ith value.
|
inlineprotectedinherited |
Return value of nspace.
|
inlinevirtualinherited |
Get the number of values that have been stored.
|
inlineprotectedinherited |
Return the numerical label.
|
inlineinherited |
Get the size of the derivative list.
|
inlineinherited |
Get the index to store a particular index inside.
|
inherited |
Return a tempory multi value - we do this so as to avoid vector resizing.
|
inlineprotectedinherited |
Return the value of the tolerance.
|
protectedinherited |
Parse something from the input.
|
protectedinherited |
Parse one keyword as boolean flag.
|
protectedinherited |
Parse one keyword as std::vector.
|
inlinevirtualinherited |
Do something before the loop.
Reimplemented in PLMD::vesselbase::BridgeVessel, and PLMD::mapping::SpathVessel.
|
inlinevirtualinherited |
Recalculate one of the base quantities.
Reimplemented in PLMD::adjmat::AdjacencyMatrixVessel.
|
static |
|
static |
|
virtual |
Do all resizing of data.
Reimplemented from PLMD::vesselbase::StoreDataVessel.
|
inlineprotectedinherited |
Set the size of the data buffer.
|
inherited |
Set the number of tempory multivalues we need.
|
virtualinherited |
Get the derivatives for one of the components in the vector.
Reimplemented in PLMD::adjmat::AdjacencyMatrixVessel.
|
inherited |
Get the values of all the components in the vector.
|
inherited |
|
inherited |
|
inherited |
Set the active values.
|
inlinevirtualinherited |
Set the start of the buffer.
Reimplemented in PLMD::vesselbase::BridgeVessel.
|
inherited |
Set a hard cutoff on the weight of an element.
|
protectedinherited |
Set the ibuf'th local derivative value.
|
protectedinherited |
This stores the data we get from the calculation.
|
inlineinherited |
Is a particular stored value active at the present time.
|
protectedinherited |
Retrieve the values from the underlying ActionWithVessel.
|
inlinevirtualinherited |
This is replaced in bridges so we can transform the derivatives.
Reimplemented in PLMD::vesselbase::BridgeVessel.
|
staticinherited |
Convert the name to the label of the component.
|
inlineprotectedinherited |
Are we using low mem option.
|
inlineprotectedinherited |
Is the weight differentiable.
|
protectedinherited |
The start of this Vessel's buffer in buffer in the underlying ActionWithVessel.
|
protectedinherited |
A copy of the communicator.
|
inherited |
Reference to the log on which to output details.
|
private |
|
private |
Hosted by GitHub
|
1.8.14
|