Main plumed object. More...
#include <PlumedMain.h>
Classes | |
class | DeprecatedAtoms |
struct | plumed_error_handler |
Error handler. More... | |
Public Member Functions | |
PlumedMain () | |
~PlumedMain () | |
void | activateParseOnlyMode () |
Turn on parse only mode to deactivate restart in all actions. More... | |
void | backwardPropagate () |
Perform the backward loop on active actions. More... | |
void | calc () |
Complete PLUMED calculation. More... | |
bool | callErrorHandler (int code, const char *msg) const |
Call error handler. More... | |
std::string | cite (const std::string &) |
Add a citation, returning a string containing the reference number, something like "[10]". More... | |
void | cmd (const char *key, const TypesafePtr &val=nullptr) |
This is needed to avoid ambiguities. More... | |
void | cmd (const char *key, const TypesafePtr &val=nullptr) |
This is needed to avoid ambiguities. More... | |
virtual void | cmd (const std::string &key, const TypesafePtr &val=nullptr) |
This is the legacy method we used in older plumed versions, so it is still possible. More... | |
virtual void | cmd (const std::string &key, const TypesafePtr &val=nullptr) |
This is the legacy method we used in older plumed versions, so it is still possible. More... | |
void | cmd (std::string_view key, const TypesafePtr &val) override |
cmd method, accessible with standard Plumed.h interface. More... | |
void | cmd (std::string_view key, const TypesafePtr &val, const std::size_t *shape) |
void | cmd (std::string_view key, const TypesafePtr &val, const std::size_t *shape) |
template<typename I , typename std::enable_if< std::is_integral< I >::value, int >::type = 0> | |
void | cmd (std::string_view key, const TypesafePtr &val, I nelem, const std::size_t *shape=nullptr) |
template<typename I , typename std::enable_if< std::is_integral< I >::value, int >::type = 0> | |
void | cmd (std::string_view key, const TypesafePtr &val, I nelem, const std::size_t *shape=nullptr) |
void | cmd (std::string_view key, const TypesafePtr &val, std::initializer_list< SizeLike > shape) |
void | cmd (std::string_view key, const TypesafePtr &val, std::initializer_list< SizeLike > shape) |
virtual void | cmd (std::string_view key, const TypesafePtr &val=nullptr) |
This is the preferred method as it avoid allocations of temporaries. More... | |
unsigned | decreaseReferenceCounter () noexcept |
Atomically decrease reference counter and return the new value. More... | |
void | enableNestedExceptions () |
void | eraseFile (FileBase &) |
Erase a file. More... | |
void | exit (int c=0) |
Stop the run. More... | |
int | fclose (FILE *fp) |
Closes a file opened with PlumedMain::fopen() More... | |
void | fflush () |
Flush all files. More... | |
FILE * | fopen (const char *path, const char *mode) |
Opens a file. More... | |
const ActionSet & | getActionSet () const |
Reference to the list of Action's. More... | |
DeprecatedAtoms & | getAtoms () |
double | getBias () const |
get the value of the bias More... | |
bool | getCPT () const |
Check if checkpointing. More... | |
bool | getEndPlumed () const |
Get the value of the end plumed flag. More... | |
ExchangePatterns & | getExchangePatterns () |
Access to exchange patterns. More... | |
bool | getExchangeStep () const |
Get exchangeStep flag. More... | |
template<typename T > | |
unsigned | getGoodNumThreads (const std::vector< T > &v) const |
Get a reasonable number of threads so as to access to vector v;. More... | |
template<typename T > | |
unsigned | getGoodNumThreads (const T *x, unsigned s) const |
Get a reasonable number of threads so as to access to an array of size s located at x. More... | |
int | getGpuDeviceId () const |
Get the value of the gpuDeviceId. More... | |
void | getKeywordsForAction (const std::string &action, Keywords &keys) const |
Get the keywords for a particular action. More... | |
Log & | getLog () |
Referenge to the log stream. More... | |
bool | getNestedExceptions () const |
unsigned | getNumThreads () const |
Get number of threads that can be used by openmp. More... | |
int | getRealPrecision () const |
Get the real preicision. More... | |
bool | getRestart () const |
Check if restarting. More... | |
long long int | getStep () const |
Return the number of the step. More... | |
const std::string & | getSuffix () const |
Get the suffix string. More... | |
const Units & | getUnits () |
Get the units that are being used. More... | |
double | getWork () const |
get the value of the work More... | |
unsigned | increaseReferenceCounter () noexcept |
Atomically increase reference counter and return the new value. More... | |
void | init () |
Initialize the object. More... | |
bool | inputsAreActive () const |
Check if there is active input in the action set. More... | |
void | insertFile (FileBase &) |
Insert a file. More... | |
void | justApply () |
Backward propagate and update. More... | |
void | justCalculate () |
Perform the forward loop on active actions. More... | |
void | load (const std::string &) |
Load a shared library. More... | |
double | MDQuantityToPLUMED (const std::string &unit, const TypesafePtr &m) const |
Take a typesafe pointer from the MD code and convert it to a double. More... | |
bool | parseOnlyMode () const |
This checks if parse only mode is active and turns off any restart. More... | |
void | performCalc () |
Perform the calculation. More... | |
void | performCalcNoForces () |
Perform the calculation without backpropagation nor update() Shortcut for: waitData() + justCalculate() More... | |
void | performCalcNoUpdate () |
Perform the calculation without update() Shortcut for: waitData() + justCalculate() + backwardPropagate() More... | |
void | plumedQuantityToMD (const std::string &unit, const double &eng, const TypesafePtr &m) const |
Take an energy that is calculated by PLUMED and pass it to a typesafe pointer that the MD code can access. More... | |
void | prepareCalc () |
Prepare the calculation. More... | |
void | prepareDependencies () |
Prepare the list of active Actions and needed atoms. More... | |
void | readBinary (std::istream &) |
void | readInputFile (const std::string &str) |
Read an input file. More... | |
void | readInputFile (IFile &ifile) |
Read an input file. More... | |
void | readInputLine (const std::string &str, const bool &before_init=false) |
Read an input string. More... | |
void | readInputLines (const std::string &str) |
Read an input buffer. More... | |
void | readInputWords (const std::vector< std::string > &str, const bool &before_init) |
Read an input string. More... | |
void | resetActive (bool active) |
Enforce active flag. More... | |
void | resetInputs () |
If there are calculations that need to be done at the very end of the calculations this makes sures they are done. More... | |
void | runJobsAtEndOfCalculation () |
void | setEndPlumed () |
Set end of input file. More... | |
void | setEnergyValue (const std::string &name) |
Used to set the name of the action that holds the energy. More... | |
void | setExchangeStep (bool f) |
Set exchangeStep flag. More... | |
void | setInputForce (const std::string &name, const TypesafePtr &val) |
This sets the the forces with a particular name to the pointer to the data in the MD code. More... | |
void | setInputValue (const std::string &name, const unsigned &start, const unsigned &stride, const TypesafePtr &val) |
This sets the the value with a particular name to the pointer to the data in the MD code. More... | |
void | setRestart (bool f) |
Set restart flag. More... | |
void | setSuffix (const std::string &) |
Set the suffix string. More... | |
void | setUnits (const bool &natural, const Units &u) |
This updates the units of the input quantities. More... | |
void | shareAll () |
Ensure that all the atoms are shared. More... | |
void | shareData () |
Share the needed atoms. More... | |
void | stop () |
Stop the calculation cleanly (both the MD code and plumed) More... | |
void | update () |
Call the update() method. More... | |
void | updateFlagsPop () |
Pop a state from update flags. More... | |
void | updateFlagsPush (bool) |
Push a state to update flags. More... | |
bool | updateFlagsTop () |
Get top of update flags. More... | |
unsigned | useCountReferenceCounter () const noexcept |
Report the reference counter. More... | |
bool | usingNaturalUnits () const |
Are we using natural units. More... | |
bool | valueExists (const std::string &name) const |
This determines if the user has created a value to hold the quantity that is being passed. More... | |
void | waitData () |
Scatters the needed atoms. More... | |
void | writeBinary (std::ostream &) const |
Transfer information from input MD code. More... | |
Public Attributes | |
Communicator & | comm =*comm_fwd |
Communicator for plumed. More... | |
bool | detailedTimers =false |
Flag to switch on detailed timers. More... | |
int | gpuDeviceId =-1 |
GpuDevice Identifier. More... | |
Communicator & | multi_sim_comm =*multi_sim_comm_fwd |
bool | novirial =false |
Flag to switch off virial calculation (for debug and MD codes with no barostat) More... | |
std::map< std::string, double > | passMap |
Generic map string -> double intended to pass information across Actions. More... | |
TypesafePtr & | stopFlag =*stopFlag_fwd |
Stuff to make plumed stop the MD code cleanly. More... | |
bool | stopNow =false |
std::stack< bool > | updateFlags |
Stack for update flags. More... | |
Private Member Functions | |
void | setupInterfaceActions () |
This sets up the vector that contains the interface to the MD code. More... | |
void | startStep () |
This sets up the values that are set from the MD code. More... | |
Private Attributes | |
ActionSet & | actionSet =*actionSet_fwd |
Set of actions found in plumed.dat file. More... | |
ForwardDecl< ActionSet > | actionSet_fwd |
Forward declaration. More... | |
bool | active =false |
Condition for plumed to be active. More... | |
double | bias =0.0 |
The total bias (=total energy of the restraints) More... | |
Citations & | citations =*citations_fwd |
tools/Citations.holder More... | |
ForwardDecl< Citations > | citations_fwd |
Forward declaration. More... | |
std::unique_ptr< WithCmd > | cltool |
ForwardDecl< Communicator > | comm_fwd |
Forward declaration. More... | |
DeprecatedAtoms & | datoms =*datoms_fwd |
Object containing old bits of atoms that are used by many folks. More... | |
ForwardDecl< DeprecatedAtoms > | datoms_fwd |
Forward declaration. More... | |
DLLoader & | dlloader =*dlloader_fwd |
ForwardDecl< DLLoader > | dlloader_fwd |
Forward declaration. More... | |
bool | doCheckPoint =false |
Flag for checkpointig. More... | |
bool | doParseOnly =false |
Flag for parse only mode – basically just forces restart to turn off. More... | |
bool | endPlumed =false |
End of input file. More... | |
plumed_error_handler | error_handler = {NULL,NULL} |
ExchangePatterns & | exchangePatterns =*exchangePatterns_fwd |
Class of possible exchange patterns, used for BIASEXCHANGE but also for future parallel tempering. More... | |
ForwardDecl< ExchangePatterns > | exchangePatterns_fwd |
Forward declaration. More... | |
bool | exchangeStep =false |
Set to true if on an exchange step. More... | |
std::set< FileBase * > | files |
Pointers to files opened in actions associated to this object. More... | |
std::unique_ptr< WithCmd > | grex |
bool | initialized =false |
Flag to avoid double initialization. More... | |
std::vector< ActionForInterface * > | inputs |
Vector of actions that are passed data from the MD code. More... | |
Log & | log =*log_fwd |
Log stream. More... | |
ForwardDecl< Log > | log_fwd |
Forward declaration. More... | |
std::string | MDEngine {"mdcode"} |
Name of MD engine. More... | |
ForwardDecl< Communicator > | multi_sim_comm_fwd |
Forward declaration. More... | |
std::string | name_of_energy {""} |
A string that holds the name of the action that gets the energy from the MD code. More... | |
bool | nestedExceptions =false |
std::unique_ptr< DataPassingTools > | passtools |
These are tools to pass data to PLUMED. More... | |
std::vector< ActionPilot * > | pilots |
Set of Pilot actions. More... | |
std::string | plumedDat |
Name of the input file. More... | |
std::atomic< unsigned > | referenceCounter {} |
bool | restart =false |
Flag for restart. More... | |
long long int | step =0 |
Present step number. More... | |
ForwardDecl< TypesafePtr > | stopFlag_fwd |
Forward declaration. More... | |
Stopwatch & | stopwatch =*stopwatch_fwd |
ForwardDecl< Stopwatch > | stopwatch_fwd |
Forward declaration. More... | |
std::string | suffix |
Suffix string for file opening, useful for multiple simulations in the same directory. More... | |
double | work =0.0 |
The total work. More... | |
Main plumed object.
In MD engines this object is not manipulated directly but it is wrapped in plumed or PLMD::Plumed objects. Its main method is cmd(), which defines completely the external plumed interface. It does not contain any static data.
PLMD::PlumedMain::PlumedMain | ( | ) |
PLMD::PlumedMain::~PlumedMain | ( | ) |
void PLMD::PlumedMain::activateParseOnlyMode | ( | ) |
Turn on parse only mode to deactivate restart in all actions.
This is only used by plumed driver –parse-only
void PLMD::PlumedMain::backwardPropagate | ( | ) |
Perform the backward loop on active actions.
Needed to apply the forces back.
void PLMD::PlumedMain::calc | ( | ) |
Complete PLUMED calculation.
Shortcut for prepareCalc() + performCalc()
|
inline |
Call error handler.
Should only be called from plumed_plumedmain_cmd(). If the error handler was not set, returns false.
std::string PLMD::PlumedMain::cite | ( | const std::string & | item | ) |
Add a citation, returning a string containing the reference number, something like "[10]".
|
inlineinherited |
This is needed to avoid ambiguities.
|
inline |
This is needed to avoid ambiguities.
|
inlinevirtualinherited |
This is the legacy method we used in older plumed versions, so it is still possible.
If this is not overridden, it will call the preferred method
|
inline |
This is the legacy method we used in older plumed versions, so it is still possible.
If this is not overridden, it will call the preferred method
|
overridevirtual |
cmd method, accessible with standard Plumed.h interface.
key | The name of the command to be executed. |
val | The argument of the command to be executed. It is called as plumed_cmd() or as PLMD::Plumed::cmd() It is the interpreter for plumed commands. It basically contains the definition of the plumed interface. If you want to add a new functionality to the interface between plumed and an MD engine, this is the right place Notice that this interface should always keep retro-compatibility |
Reimplemented from PLMD::WithCmd.
|
inlineinherited |
|
inline |
|
inlineinherited |
|
inline |
|
inlineinherited |
|
inline |
|
inline |
This is the preferred method as it avoid allocations of temporaries.
If this is not overridded, it will call the legacy method.
|
noexcept |
Atomically decrease reference counter and return the new value.
void PLMD::PlumedMain::enableNestedExceptions | ( | ) |
void PLMD::PlumedMain::eraseFile | ( | FileBase & | f | ) |
Erase a file.
void PLMD::PlumedMain::exit | ( | int | c = 0 | ) |
Stop the run.
int PLMD::PlumedMain::fclose | ( | FILE * | fp | ) |
Closes a file opened with PlumedMain::fopen()
void PLMD::PlumedMain::fflush | ( | ) |
Flush all files.
FILE * PLMD::PlumedMain::fopen | ( | const char * | path, |
const char * | mode | ||
) |
Opens a file.
Similar to plain fopen, but, if it finds an error in opening the file, it also tries with path+suffix. This trick is useful for multiple replica simulations.
|
inline |
Reference to the list of Action's.
PlumedMain::DeprecatedAtoms & PLMD::PlumedMain::getAtoms | ( | ) |
double PLMD::PlumedMain::getBias | ( | ) | const |
get the value of the bias
|
inline |
Check if checkpointing.
|
inline |
Get the value of the end plumed flag.
|
inline |
Access to exchange patterns.
|
inline |
Get exchangeStep flag.
unsigned PLMD::PlumedMain::getGoodNumThreads | ( | const std::vector< T > & | v | ) | const |
Get a reasonable number of threads so as to access to vector v;.
unsigned PLMD::PlumedMain::getGoodNumThreads | ( | const T * | x, |
unsigned | s | ||
) | const |
Get a reasonable number of threads so as to access to an array of size s located at x.
|
inline |
Get the value of the gpuDeviceId.
void PLMD::PlumedMain::getKeywordsForAction | ( | const std::string & | action, |
Keywords & | keys | ||
) | const |
Get the keywords for a particular action.
Log & PLMD::PlumedMain::getLog | ( | ) |
Referenge to the log stream.
|
inline |
unsigned PLMD::PlumedMain::getNumThreads | ( | ) | const |
Get number of threads that can be used by openmp.
int PLMD::PlumedMain::getRealPrecision | ( | ) | const |
Get the real preicision.
|
inline |
Check if restarting.
|
inline |
Return the number of the step.
|
inline |
Get the suffix string.
const Units & PLMD::PlumedMain::getUnits | ( | ) |
Get the units that are being used.
double PLMD::PlumedMain::getWork | ( | ) | const |
get the value of the work
|
noexcept |
Atomically increase reference counter and return the new value.
void PLMD::PlumedMain::init | ( | ) |
Initialize the object.
Should be called once.
bool PLMD::PlumedMain::inputsAreActive | ( | ) | const |
Check if there is active input in the action set.
void PLMD::PlumedMain::insertFile | ( | FileBase & | f | ) |
Insert a file.
void PLMD::PlumedMain::justApply | ( | ) |
Backward propagate and update.
Shortcut for backwardPropagate() + update() I leave it here for backward compatibility
void PLMD::PlumedMain::justCalculate | ( | ) |
Perform the forward loop on active actions.
void PLMD::PlumedMain::load | ( | const std::string & | fileName | ) |
Load a shared library.
double PLMD::PlumedMain::MDQuantityToPLUMED | ( | const std::string & | unit, |
const TypesafePtr & | m | ||
) | const |
Take a typesafe pointer from the MD code and convert it to a double.
bool PLMD::PlumedMain::parseOnlyMode | ( | ) | const |
This checks if parse only mode is active and turns off any restart.
void PLMD::PlumedMain::performCalc | ( | ) |
Perform the calculation.
Shortcut for waitData() + justCalculate() + justApply(). Equivalently: waitData() + justCalculate() + backwardPropagate() + update().
void PLMD::PlumedMain::performCalcNoForces | ( | ) |
Perform the calculation without backpropagation nor update() Shortcut for: waitData() + justCalculate()
void PLMD::PlumedMain::performCalcNoUpdate | ( | ) |
Perform the calculation without update() Shortcut for: waitData() + justCalculate() + backwardPropagate()
void PLMD::PlumedMain::plumedQuantityToMD | ( | const std::string & | unit, |
const double & | eng, | ||
const TypesafePtr & | m | ||
) | const |
Take an energy that is calculated by PLUMED and pass it to a typesafe pointer that the MD code can access.
void PLMD::PlumedMain::prepareCalc | ( | ) |
Prepare the calculation.
Here it is checked which are the active Actions and communication of the relevant atoms is initiated. Shortcut for prepareDependencies() + shareData()
void PLMD::PlumedMain::prepareDependencies | ( | ) |
Prepare the list of active Actions and needed atoms.
Scan the Actions to see which are active and which are not, so as to prepare a list of the atoms needed at this step.
void PLMD::PlumedMain::readBinary | ( | std::istream & | i | ) |
void PLMD::PlumedMain::readInputFile | ( | const std::string & | str | ) |
Read an input file.
str | name of the file |
void PLMD::PlumedMain::readInputFile | ( | IFile & | ifile | ) |
Read an input file.
ifile |
void PLMD::PlumedMain::readInputLine | ( | const std::string & | str, |
const bool & | before_init = false |
||
) |
Read an input string.
str | name of the string At variance with readInputWords(), this is splitting the string into words |
void PLMD::PlumedMain::readInputLines | ( | const std::string & | str | ) |
Read an input buffer.
str | name of the string Same as readInputFile, but first write str on a temporary file and then read that files. At variance with readInputLine, it can take care of comments and continuation lines. |
void PLMD::PlumedMain::readInputWords | ( | const std::vector< std::string > & | str, |
const bool & | before_init | ||
) |
Read an input string.
str | name of the string |
|
inline |
Enforce active flag.
This is a (bit dirty) hack to solve a bug. When there is no active ActionPilot, several shortcuts are used. However, these shortcuts can block GREX module. This function allows to enforce active plumed when doing exchanges, thus fixing the bug.
void PLMD::PlumedMain::resetInputs | ( | ) |
If there are calculations that need to be done at the very end of the calculations this makes sures they are done.
This function does clearInputForces for the list of atoms that have a force on them. This is an optimisation to prevent calling std::fill over a large array
void PLMD::PlumedMain::runJobsAtEndOfCalculation | ( | ) |
|
inline |
Set end of input file.
void PLMD::PlumedMain::setEnergyValue | ( | const std::string & | name | ) |
Used to set the name of the action that holds the energy.
|
inline |
Set exchangeStep flag.
void PLMD::PlumedMain::setInputForce | ( | const std::string & | name, |
const TypesafePtr & | val | ||
) |
This sets the the forces with a particular name to the pointer to the data in the MD code.
void PLMD::PlumedMain::setInputValue | ( | const std::string & | name, |
const unsigned & | start, | ||
const unsigned & | stride, | ||
const TypesafePtr & | val | ||
) |
This sets the the value with a particular name to the pointer to the data in the MD code.
|
inline |
Set restart flag.
|
inline |
Set the suffix string.
void PLMD::PlumedMain::setUnits | ( | const bool & | natural, |
const Units & | u | ||
) |
This updates the units of the input quantities.
|
private |
This sets up the vector that contains the interface to the MD code.
void PLMD::PlumedMain::shareAll | ( | ) |
Ensure that all the atoms are shared.
This is used in GREX to ensure that we transfer all the positions from the MD code to PLUMED.
void PLMD::PlumedMain::shareData | ( | ) |
Share the needed atoms.
In asynchronous implementations, this method sends the required atoms to all the plumed processes, without waiting for the communication to complete.
|
private |
This sets up the values that are set from the MD code.
void PLMD::PlumedMain::stop | ( | ) |
Stop the calculation cleanly (both the MD code and plumed)
void PLMD::PlumedMain::update | ( | ) |
Call the update() method.
|
inline |
Pop a state from update flags.
|
inline |
Push a state to update flags.
|
inline |
Get top of update flags.
|
noexcept |
Report the reference counter.
bool PLMD::PlumedMain::usingNaturalUnits | ( | ) | const |
Are we using natural units.
bool PLMD::PlumedMain::valueExists | ( | const std::string & | name | ) | const |
This determines if the user has created a value to hold the quantity that is being passed.
void PLMD::PlumedMain::waitData | ( | ) |
Scatters the needed atoms.
In asynchronous implementations, this method waits for the communications started in shareData() to be completed. Otherwise, just send around needed atoms.
void PLMD::PlumedMain::writeBinary | ( | std::ostream & | o | ) | const |
Transfer information from input MD code.
|
private |
Set of actions found in plumed.dat file.
|
private |
Forward declaration.
|
private |
Condition for plumed to be active.
At every step, PlumedMain is checking if there are Action's requiring some work. If at least one Action requires some work, this variable is set to true.
|
private |
The total bias (=total energy of the restraints)
|
private |
tools/Citations.holder
|
private |
Forward declaration.
|
private |
Communicator& PLMD::PlumedMain::comm =*comm_fwd |
Communicator for plumed.
Includes all the processors used by plumed.
|
private |
Forward declaration.
|
private |
Object containing old bits of atoms that are used by many folks.
|
private |
Forward declaration.
bool PLMD::PlumedMain::detailedTimers =false |
Flag to switch on detailed timers.
|
private |
|
private |
Forward declaration.
|
private |
Flag for checkpointig.
|
private |
Flag for parse only mode – basically just forces restart to turn off.
|
private |
End of input file.
Set to true to terminate reading
|
private |
|
private |
Class of possible exchange patterns, used for BIASEXCHANGE but also for future parallel tempering.
|
private |
Forward declaration.
|
private |
Set to true if on an exchange step.
|
private |
Pointers to files opened in actions associated to this object.
Notice that with the current implementation this should be at the top of this structure. Indeed, this should be destroyed after all the actions allocated in this PlumedMain object have been destroyed.
int PLMD::PlumedMain::gpuDeviceId =-1 |
GpuDevice Identifier.
|
private |
|
private |
Flag to avoid double initialization.
|
private |
Vector of actions that are passed data from the MD code.
|
private |
Forward declaration.
|
private |
Name of MD engine.
Communicator& PLMD::PlumedMain::multi_sim_comm =*multi_sim_comm_fwd |
|
private |
Forward declaration.
|
private |
A string that holds the name of the action that gets the energy from the MD code.
Set empty if energy is not used.
|
private |
bool PLMD::PlumedMain::novirial =false |
Flag to switch off virial calculation (for debug and MD codes with no barostat)
std::map<std::string,double> PLMD::PlumedMain::passMap |
Generic map string -> double intended to pass information across Actions.
|
private |
These are tools to pass data to PLUMED.
|
private |
Set of Pilot actions.
These are the action the, if they are Pilot::onStep(), can trigger execution
|
private |
Name of the input file.
|
private |
|
private |
Flag for restart.
|
private |
Present step number.
TypesafePtr& PLMD::PlumedMain::stopFlag =*stopFlag_fwd |
Stuff to make plumed stop the MD code cleanly.
|
private |
Forward declaration.
bool PLMD::PlumedMain::stopNow =false |
|
private |
|
private |
Forward declaration.
Should be placed after log since its constructor takes a log reference as an argument.
|
private |
Suffix string for file opening, useful for multiple simulations in the same directory.
std::stack<bool> PLMD::PlumedMain::updateFlags |
Stack for update flags.
Store information used in class generic::UpdateIf
|
private |
The total work.
This computed by accumulating the change in external potentials.
Hosted by GitHub | 1.8.17 |