Public Member Functions | |
void | add_force (const std::vector< AtomNumber > &index, const std::vector< unsigned > &i, Value *value) override |
void | add_force (const std::vector< int > &index, Value *value) override |
void | add_force (Value *vv) override |
Pass the force from the value to the output value. More... | |
double | MD2double (const TypesafePtr &) const override |
This convers a number from the MD code into a double. More... | |
void | rescale_force (const unsigned &n, const double &factor, Value *value) override |
Rescale the force on the output value. More... | |
void | saveValueAsDouble (const TypesafePtr &val) override |
This is used when you want to save the passed object to a double variable in PLUMED rather than the pointer this can be used even when you don't pass a pointer from the MD code. More... | |
void | setData (Value *value) override |
This transfers everything to the output. More... | |
void | setForcePointer (const TypesafePtr &p, const std::vector< unsigned > &shape) override |
Set the pointer to the force. More... | |
void | setForceUnit (const double &u) |
Set the unit for the force. More... | |
void | setStart (const unsigned &s) |
void | setStride (const unsigned &s) |
Set the stride to use when getting data from the input array. More... | |
void | setUnit (const double &u) |
Set the unit for the value. More... | |
void | setValuePointer (const TypesafePtr &p, const std::vector< unsigned > &shape, const bool &isconst) override |
Set the pointer to the value. More... | |
void | share_data (const std::vector< AtomNumber > &index, const std::vector< unsigned > &i, Value *value) override |
Share the data and put it in the value from a scattered data. More... | |
void | share_data (const unsigned &j, const unsigned &k, Value *value) override |
Share the data and put it in the value from sequential data. More... | |
void | share_data (std::vector< double > &values) const override |
This gets the data in the pointer and passes it to the output value. More... | |
Static Public Member Functions | |
static std::unique_ptr< DataPassingObject > | create (unsigned n) |
Protected Attributes | |
double | bvalue |
double | funit |
The units of the force on this quantity. More... | |
bool | hasbackup |
The backup value of the quantity (used if the value is passed directly) More... | |
unsigned | start |
The start of the data in the input pointer. More... | |
unsigned | stride |
The spacing between values in the input arrays. More... | |
double | unit |
The units of the quantity. More... | |
Private Attributes | |
TypesafePtr | f |
A pointer to the force. More... | |
TypesafePtr | v |
A pointer to the value. More... | |
|
overridevirtual |
Implements PLMD::DataPassingObject.
|
overridevirtual |
Implements PLMD::DataPassingObject.
|
overridevirtual |
Pass the force from the value to the output value.
Implements PLMD::DataPassingObject.
|
staticinherited |
|
overridevirtual |
This convers a number from the MD code into a double.
Implements PLMD::DataPassingObject.
|
overridevirtual |
Rescale the force on the output value.
Implements PLMD::DataPassingObject.
|
overridevirtual |
This is used when you want to save the passed object to a double variable in PLUMED rather than the pointer this can be used even when you don't pass a pointer from the MD code.
Implements PLMD::DataPassingObject.
|
overridevirtual |
This transfers everything to the output.
Implements PLMD::DataPassingObject.
|
overridevirtual |
Set the pointer to the force.
Implements PLMD::DataPassingObject.
|
inlineinherited |
Set the unit for the force.
|
inlineinherited |
|
inlineinherited |
Set the stride to use when getting data from the input array.
|
inlineinherited |
Set the unit for the value.
|
overridevirtual |
Set the pointer to the value.
Implements PLMD::DataPassingObject.
|
overridevirtual |
Share the data and put it in the value from a scattered data.
Implements PLMD::DataPassingObject.
|
overridevirtual |
Share the data and put it in the value from sequential data.
Implements PLMD::DataPassingObject.
|
overridevirtual |
This gets the data in the pointer and passes it to the output value.
Implements PLMD::DataPassingObject.
|
protectedinherited |
|
private |
A pointer to the force.
|
protectedinherited |
The units of the force on this quantity.
|
protectedinherited |
The backup value of the quantity (used if the value is passed directly)
|
protectedinherited |
The start of the data in the input pointer.
|
protectedinherited |
The spacing between values in the input arrays.
|
protectedinherited |
The units of the quantity.
|
private |
A pointer to the value.
Hosted by GitHub | 1.8.17 |