23 #include "core/ActionRegister.h"
24 #include "core/ActionAtomistic.h"
25 #include "core/Atoms.h"
85 static void registerKeywords(
Keywords& keys );
90 PLUMED_REGISTER_ACTION(Group,
"GROUP")
96 vector<AtomNumber> atoms;
97 parseAtomList(
"ATOMS",atoms);
98 this->atoms.insertGroup(getLabel(),atoms);
99 log.printf(
" of atoms ");
100 for(
unsigned i=0;i<atoms.size();i++) log.printf(
" %d",atoms[i].serial());
105 Action::registerKeywords( keys );
106 ActionAtomistic::registerKeywords( keys );
107 keys.
add(
"atoms",
"ATOMS",
"the numerical indexes for the set of atoms in the group");
111 atoms.removeGroup(getLabel());
Provides the keyword GROUP
void calculate()
Calculate an Action.
void add(const std::string &t, const std::string &k, const std::string &d)
Add a new keyword of type t with name k and description d.
This class holds the keywords and their documentation.
This class is used to bring the relevant information to the Action constructor.
Action used to create objects that access the positions of the atoms from the MD code.
Base class for all the input Actions.
void apply()
Apply an Action.