22 #include "core/Action.h"
23 #include "core/ActionRegister.h"
24 #include "core/PlumedMain.h"
25 #include "tools/Exception.h"
26 #include "core/ExchangePatterns.h"
79 static void registerKeywords(
Keywords& keys );
85 PLUMED_REGISTER_ACTION(RandomExchanges,
"RANDOM_EXCHANGES")
88 Action::registerKeywords(keys);
89 keys.add(
"optional",
"SEED",
"seed for random exchanges");
99 if(seed>=0)
plumed.getExchangePatterns().setSeed(-seed);
void calculate()
Calculate an Action.
Provides the keyword RANDOM_EXCHANGES
void apply()
Apply an Action.
void parse(const std::string &key, T &t)
Parse one keyword as generic type.
This class holds the keywords and their documentation.
This class is used to bring the relevant information to the Action constructor.
Base class for all the input Actions.