22 #include "core/ActionPilot.h"
23 #include "core/ActionWithArguments.h"
24 #include "core/ActionRegister.h"
75 static void registerKeywords(
Keywords& keys);
81 PLUMED_REGISTER_ACTION(Print,
"PRINT")
84 Action::registerKeywords(keys);
85 ActionPilot::registerKeywords(keys);
86 ActionWithArguments::registerKeywords(keys);
88 keys.add(
"compulsory",
"STRIDE",
"1",
"the frequency with which the quantities of interest should be output");
89 keys.add(
"optional",
"FILE",
"the name of the file on which to output these quantities");
90 keys.add(
"optional",
"FMT",
"the format that should be used to output real numbers");
91 keys.add(
"hidden",
"_ROTATE",
"some funky thing implemented by GBussi");
Log & log
Reference to the log stream.
This is used to create PLMD::Action objects that are run with some set frequency. ...
void requestArguments(const std::vector< Value * > &arg)
Setup the dependencies.
OFile & fmtField(const std::string &)
Set the format for writing double precision fields.
void checkRead()
Check if Action was properly read.
Value * getPntrToArgument(const unsigned n)
Return a pointer to specific argument.
This is used to create PLMD::Action objects that take the output from some other Action as input...
void calculate()
Calculate 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.
OFile & link(OFile &)
Allows linking this OFile to another one.
double getTime() const
Return the present time.
int printf(const char *fmt,...)
Formatted output with explicit format - a la printf.
Base class for all the input Actions.
double getArgument(const unsigned n) const
Returns the value of an argument.
void apply()
Apply an Action.
Provides the keyword PRINT
OFile & printField(const std::string &, double)
Set the value of a double precision field.
unsigned getNumberOfArguments() const
Returns the number of arguments.
OFile & open(const std::string &name)
Opens the file using automatic append/backup.
OFile & setupPrintValue(Value *val)
Used to setup printing of values.
void prepare()
Prepare an Action for calculation This can be used by Action if they need some special preparation be...
vector< Value * > rotateArguments