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 () |
Final step in gathering data. More... | |
bool | applyForce (std::vector< double > &forces) |
Forces on vectors should always be applied elsewhere. More... | |
double | getValue (const unsigned &) |
void | chainRule (const unsigned &, const std::vector< double > &) |
Chain rule and store output in local array called final_derivatives with vectors this does chain rule for dot products. More... | |
unsigned | getNumberOfComponents () const |
Return the number of components in the vector. More... | |
void | prepare () |
Clear certain data before start of main loop. More... | |
unsigned | getNumberOfDerivatives (const unsigned &) |
Get the number of derivatives for the ith value. More... | |
unsigned | getStoredIndex (const unsigned &, const unsigned &) |
Get one of the stored indexes. More... | |
double | getComponent (const unsigned &, const unsigned &) |
Get a component of the stored vector. More... | |
virtual void | recompute (const unsigned &, const unsigned &) |
Recalculate a vector - used in lowmem mode. More... | |
virtual void | performTask (const unsigned &) |
This reperforms the task in the underlying action. More... | |
virtual void | finishTask (const unsigned &) |
This reperforms the task. More... | |
double | getFinalDerivative (const unsigned &ider) const |
Get the ider'th final derivative value. More... | |
bool | calculate () |
This stores the data when not using lowmem. More... | |
void | storeDerivativesLowMem (const unsigned &) |
This stores the data we get from the calculation. More... | |
void | storeDerivativesHighMem (const unsigned &) |
This stores the data we get from the calculation. More... | |
virtual void | activateIndices (ActionWithVessel *) |
Activate indexes (this is used at end of chain rule) More... | |
virtual void | getIndexList (const unsigned &, const unsigned &, const unsigned &, std::vector< unsigned > &) |
Get the list of indices that we are storing data for. 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... | |
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 &) |
Retrieve the values from the underlying ActionWithVessel. More... | |
void | setTaskToRecompute (const unsigned &ivec) |
Set the Task that needs redoing. More... | |
void | setComponent (const unsigned &, const unsigned &, const double &) |
Set a component of one of the vectors. More... | |
double | chainRule (const unsigned &, const unsigned &, const std::vector< double > &) |
This is the proper chain rule for vectors. More... | |
void | chainRule (const unsigned &, const std::vector< double > &, Value *) |
Chain rule the vector and output derivatives to a value. 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 () |
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... | |
Protected Attributes | |
Communicator & | comm |
A copy of the communicator. More... | |
Private Attributes | |
std::vector< unsigned > | powers |
std::vector< Value * > | value_out |
PLMD::vesselbase::Moments::Moments | ( | const vesselbase::VesselOptions & | da | ) |
|
inlinevirtualinherited |
Activate indexes (this is used at end of chain rule)
|
inlineinherited |
Add something to the ith element in the buffer.
|
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.
|
protectedinherited |
This is the proper chain rule for vectors.
|
protectedinherited |
Chain rule the vector and output derivatives to a value.
|
inherited |
Chain rule and store output in local array called final_derivatives with vectors this does chain rule for dot products.
|
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::StoreValueVessel.
|
protectedinherited |
Report an error.
|
virtual |
Final step in gathering data.
Reimplemented from PLMD::vesselbase::StoreDataVessel.
|
inlinevirtualinherited |
This reperforms the task.
Reimplemented in PLMD::multicolvar::StoreCentralAtomsVessel.
|
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)
|
inlineprotectedinherited |
Get the value in the ith element of the buffer.
|
inlineinherited |
Get a component of the stored vector.
|
inlineinherited |
Get the ider'th final derivative value.
|
virtualinherited |
Get the list of indices that we are storing data for.
Reimplemented in PLMD::multicolvar::StoreCentralAtomsVessel.
|
inherited |
Return the label.
|
inlineprotectedinherited |
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 derivatives for the ith value.
|
inlineprotectedinherited |
Return value of nspace.
|
inlineprotectedinherited |
Return the numerical label.
|
inlineinherited |
Get one of the stored indexes.
|
inlineprotectedinherited |
Return the value of the tolerance.
|
inlineinherited |
|
protectedinherited |
Parse something from the input.
|
protectedinherited |
Parse one keyword as boolean flag.
|
protectedinherited |
Parse one keyword as std::vector.
|
inlinevirtualinherited |
This reperforms the task in the underlying action.
Reimplemented in PLMD::multicolvar::StoreCentralAtomsVessel.
|
virtualinherited |
Clear certain data before start of main loop.
Reimplemented from PLMD::vesselbase::Vessel.
|
virtualinherited |
Recalculate a vector - used in lowmem mode.
Reimplemented in PLMD::crystallization::StoreVectorsVessel, and PLMD::multicolvar::AdjacencyMatrixVessel.
|
static |
|
static |
|
virtual |
Do all resizing of data.
Reimplemented from PLMD::vesselbase::StoreDataVessel.
|
inlineprotectedinherited |
Set the size of the data buffer.
|
inlineprotectedinherited |
Set the value of the ith element in the buffer.
|
inlineprotectedinherited |
Set a component of one of the vectors.
|
inlineprotectedinherited |
Set the ibuf'th local derivative value.
|
protectedinherited |
Set the Task that needs redoing.
|
inherited |
This stores the data we get from the calculation.
|
inherited |
This stores the data we get from the calculation.
|
protectedinherited |
Retrieve the values from the underlying ActionWithVessel.
|
staticinherited |
Convert the name to the label of the component.
|
inlineprotectedinherited |
Are we using low mem option.
|
inlineprotectedinherited |
Is the weight differentiable.
|
inlineinherited |
Set all the buffer elements to zero.
|
protectedinherited |
A copy of the communicator.
|
inherited |
Reference to the log on which to output details.
|
private |
|
private |
Hosted by GitHub | 1.8.7 |