22 #include "core/ActionRegister.h"
23 #include "core/ActionPilot.h"
24 #include "core/ActionSet.h"
25 #include "core/PlumedMain.h"
59 static void registerKeywords(
Keywords& keys );
64 PLUMED_REGISTER_ACTION(Debug,
"DEBUG")
67 Action::registerKeywords( keys );
68 ActionPilot::registerKeywords(keys);
69 keys.add(
"compulsory",
"STRIDE",
"1",
"the frequency with which this action is to be performed");
70 keys.addFlag(
"logActivity",
false,
"write in the log which actions are inactive and which are inactive");
71 keys.addFlag(
"logRequestedAtoms",
false,
"write in the log which atoms have been requested at a given time");
72 keys.addFlag(
"NOVIRIAL",
false,
"switch off the virial contribution for the entirity of the simulation");
73 keys.addFlag(
"DETAILED_TIMERS",
false,
"switch on detailed timers");
80 logRequestedAtoms(false),
91 plumed.detailedTimers=
true;
99 for(ActionSet::const_iterator p=actionSet.begin();p!=actionSet.end();++p){
100 if(dynamic_cast<Debug*>(*p))
continue;
101 if((*p)->isActive()) a++;
105 for(ActionSet::const_iterator p=actionSet.begin();p!=actionSet.end();++p){
106 if(dynamic_cast<Debug*>(*p))
continue;
117 plumed.cmd(
"createFullList",&n);
118 plumed.cmd(
"getFullList",&l);
121 plumed.cmd(
"clearFullList");
void parseFlag(const std::string &key, bool &t)
Parse one keyword as boolean flag.
Log & log
Reference to the log stream.
void calculate()
Calculate an Action.
std::vector containing the sequence of Action to be done.
This is used to create PLMD::Action objects that are run with some set frequency. ...
void checkRead()
Check if Action was properly read.
This class holds the keywords and their documentation.
This class is used to bring the relevant information to the Action constructor.
int printf(const char *fmt,...)
Formatted output with explicit format - a la printf.
Base class for all the input Actions.
Provides the keyword DEBUG
long int getStep() const
Return the present timestep.
void apply()
Apply an Action.