Loading...
Searching...
No Matches
PLMD::Action Class Referenceabstract

Base class for all the input Actions. More...

#include <Action.h>

Inheritance diagram for PLMD::Action:

Public Types

typedef std::vector< Action * > Dependencies
 

Public Member Functions

 Action (const ActionOptions &)
 Standard constructor from ActionOptions.
 
virtual ~Action ()
 Destructor.
 
virtual void activate ()
 Set action to active.
 
void addDependency (Action *)
 Specify that this Action depends on another one.
 
virtual void apply ()=0
 Apply an Action.
 
virtual void beforeUpdate ()
 Before Update.
 
virtual void calculate ()=0
 Calculate an Action.
 
void calculateFromPDB (const PDB &)
 Calculate the action given a pdb file as input.
 
virtual void calculateNumericalDerivatives (ActionWithValue *a=NULL)
 Perform calculation using numerical derivatives N.B.
 
virtual ActionAtomistic * castToActionAtomistic () noexcept
 
virtual ActionForInterface * castToActionForInterface () noexcept
 
virtual ActionShortcut * castToActionShortcut () noexcept
 
virtual ActionToGetData * castToActionToGetData () noexcept
 
virtual ActionToPutData * castToActionToPutData () noexcept
 
virtual ActionWithArguments * castToActionWithArguments () noexcept
 
virtual ActionWithValue * castToActionWithValue () noexcept
 Specialized casts, to make PlumedMain run faster.
 
virtual ActionWithVirtualAtom * castToActionWithVirtualAtom () noexcept
 
virtual DomainDecomposition * castToDomainDecomposition () noexcept
 
virtual PbcAction * castToPbcAction () noexcept
 
bool checkForDependency (Action *)
 Check that this action does not depend on the action in the argument.
 
virtual bool checkNeedsGradients () const
 Check if the action needs gradient.
 
virtual bool checkNumericalDerivatives () const
 Check if numerical derivatives should be performed.
 
void checkRead ()
 Check if Action was properly read.
 
bool checkUpdate () const
 Check if action should be updated.
 
std::string cite (const std::string &s)
 Cite a paper see PlumedMain::cite.
 
void clearDependencies ()
 Clear the dependence list for this Action.
 
virtual void clearOptions ()
 
virtual void deactivate ()
 Set action to inactive.
 
void error (const std::string &msg) const
 Crash calculation and print documentation.
 
void exit (int c=0)
 Exit with error code c.
 
int fclose (FILE *fp)
 Closes a file opened with Action::fclose().
 
void fflush ()
 Tell to the Action to flush open files.
 
FILE * fopen (const char *path, const char *mode)
 Opens a file.
 
bool getCPT () const
 Return true if we are doing at a checkpoint step.
 
std::string getDefaultString () const
 Get the defaults.
 
const Dependencies & getDependencies () const
 Return dependencies.
 
bool getExchangeStep () const
 Check if we are on an exchange step.
 
double getkBT ()
 Get the value of kBT by either reading the TEMP keyword and multiplying the temperature by Boltzmann's constant or get it fro the MD code.
 
std::string getKeyword (const std::string &key)
 Just read one of the keywords and return the whole thing as a string.
 
const std::string & getLabel () const
 Returns the label.
 
const std::string & getName () const
 Returns the name.
 
int getNumberOfReplicas () const
 Number of replicas in a multi-replica simulation (1 otherwise), and the index of this replica.
 
int getReplicaIndex () const
 
bool getRestart () const
 Return true if we are doing a restart.
 
long long int getStep () const
 Return the present timestep.
 
double getTime () const
 Return the present time.
 
double getTimeStep () const
 Return the timestep.
 
bool isActive () const
 Check if action is active.
 
bool isOptionOn (const std::string &s) const
 Check if an option is on.
 
virtual void lockRequests ()
 
template<class T>
void parse (const std::string &key, T &t)
 Parse one keyword as generic type.
 
void parseFlag (const std::string &key, bool &t)
 Parse one keyword as boolean flag.
 
template<class T>
bool parseNumbered (const std::string &key, const int no, T &t)
 Parse one numbered keyword as generic type.
 
template<class T>
bool parseNumberedVector (const std::string &key, const int no, std::vector< T > &t)
 Parse a vector with a number.
 
template<class T>
void parseVector (const std::string &key, std::vector< T > &t)
 Parse one keyword as std::vector.
 
virtual void prepare ()
 Prepare an Action for calculation This can be used by Action if they need some special preparation before calculation.
 
virtual void readAtomsFromPDB (const PDB &)
 This is overwritten in ActionAtomistic so that we can read the atoms from the pdb input file rather than taking them from the MD code.
 
void resetStoredTimestep ()
 Set the timestep that is stored in the action to the correct value.
 
virtual void runFinalJobs ()
 RunFinalJobs This method is called once at the very end of the calculation.
 
virtual void setOption (const std::string &s)
 
void setupConstantValues (const bool &have_atoms)
 This calculates any values that are constant and ensures that we don't calculate these actions on every timestep.
 
virtual void unlockRequests ()
 
virtual void update ()
 Update.
 
void warning (const std::string &msg)
 Issue a warning.
 
virtual std::string writeInGraph () const
 Get the info on what to calculate.
 

Static Public Member Functions

static void registerKeywords (Keywords &keys)
 Register all the relevant keywords for the action.
 

Public Attributes

Communicator & comm
 Communicator of this replica: all the MPI processes running this PLUMED instance (set by the MD code with setMPIComm).
 
std::set< FILE * > files
 
const Keywords & keywords
 
Log & log
 Reference to the log stream.
 
Communicator & multi_sim_comm
 Communicator between replicas, in multiple-replica simulations.
 
PlumedMain & plumed
 Reference to main plumed object.
 

Protected Member Functions

double getKBoltzmann () const
 Get the value of Boltzmann's constant.
 
const Units & getUnits () const
 Get the units that we are operating in.
 
bool usingNaturalUnits () const
 Are we using natural units.
 

Private Types

using KeyMap = TokenizedLine
 

Private Member Functions

 Action (const Action &a)=delete
 Copy constructor is deleted.
 
Action & operator= (const Action &a)=delete
 Assignment operator is deleted.
 

Private Attributes

std::string actionLabel
 Label of the Action, as set with LABEL= in the plumed.dat file.
 
const std::string actionName
 Name of the directive in the plumed.dat file.
 
std::set< std::string > actionOptions
 Option that you might have enabled.
 
bool active
 Switch to activate Action on this step.
 
Dependencies after
 Actions on which this Action depends.
 
std::string defaults
 The set of default arguments that we are using.
 
bool doCheckPoint
 
KeyMap linemap
 Directive line.
 
bool never_activate
 
int replica_index
 
bool restart
 
double timestep
 Save the timestep here.
 
double update_from
 Update only after this time.
 
double update_until
 Update only until this time.
 

Friends

class ActionShortcut
 

Detailed Description

Base class for all the input Actions.

The input Actions are more or less corresponding to the directives in the plumed.dat file and are applied in order at each time-step.

Member Typedef Documentation

◆ Dependencies

typedef std::vector<Action*> PLMD::Action::Dependencies

◆ KeyMap

Constructor & Destructor Documentation

◆ Action() [1/2]

PLMD::Action::Action ( const ActionOptions & ao)
explicit

Standard constructor from ActionOptions.

◆ ~Action()

PLMD::Action::~Action ( )
virtual

Destructor.

◆ Action() [2/2]

PLMD::Action::Action ( const Action & a)
privatedelete

Copy constructor is deleted.

Member Function Documentation

◆ activate()

void PLMD::Action::activate ( )
virtual

Set action to active.

◆ addDependency()

void PLMD::Action::addDependency ( Action * action)

Specify that this Action depends on another one.

◆ apply()

virtual void PLMD::Action::apply ( )
pure virtual

Apply an Action.

This method is called one time per step. The set of all Actions is applied in backward order.

Implemented in PLMD::ActionAnyorder, PLMD::ActionSetup, PLMD::ActionShortcut, PLMD::ActionToGetData, PLMD::ActionToPutData, PLMD::ActionWithVector, PLMD::ActionWithVirtualAtom, PLMD::bias::Bias, PLMD::bias::ReweightBase, PLMD::clusters::ClusterDistribution, PLMD::clusters::ClusteringBase, PLMD::clusters::ClusterWeights, PLMD::Colvar, PLMD::colvar::Colvar, PLMD::colvar::Energy, PLMD::colvar::RMSDVector, PLMD::colvar::SelectMassCharge, PLMD::contour::DistanceFromContourBase, PLMD::contour::DumpContour, PLMD::dimred::ArrangePoints, PLMD::dimred::ProjectPoints, PLMD::DomainDecomposition, PLMD::function::Function, PLMD::function::FunctionWithSingleArgument< T >, PLMD::function::FunctionWithSingleArgument< Highest >, PLMD::function::FunctionWithSingleArgument< Highest >, PLMD::function::FunctionWithSingleArgument< Moments >, PLMD::function::FunctionWithSingleArgument< Moments >, PLMD::function::SortWithSingleArgument, PLMD::function::Sum, PLMD::generic::Accumulate, PLMD::generic::Collect, PLMD::generic::Committor, PLMD::generic::Constant, PLMD::generic::CreateMask, PLMD::generic::Debug, PLMD::generic::DumpAtoms, PLMD::generic::DumpDerivatives, PLMD::generic::DumpForces, PLMD::generic::DumpMassCharge, PLMD::generic::DumpPDB, PLMD::generic::DumpProjections, PLMD::generic::DumpVector, PLMD::generic::EffectiveEnergyDrift, PLMD::generic::EndPlumed, PLMD::generic::FitToTemplate, PLMD::generic::Flush, PLMD::generic::GatherReplicas, PLMD::generic::Include, PLMD::generic::Plumed, PLMD::generic::Print, PLMD::generic::PrintNDX, PLMD::generic::RandomExchanges, PLMD::generic::Read, PLMD::generic::ResetCell, PLMD::generic::Time, PLMD::generic::UpdateIf, PLMD::generic::WholeMolecules, PLMD::generic::WrapAround, PLMD::GenericMolInfo, PLMD::gridtools::DumpGrid, PLMD::gridtools::FindGridOptimum, PLMD::gridtools::GetGridVolumeElement, PLMD::Group, PLMD::isdb::EMMI, PLMD::isdb::MetainferenceBase, PLMD::isdb::Selector, PLMD::landmarks::FarthestPointSampling, PLMD::mapping::PathDisplacements, PLMD::mapping::PathReparameterization, PLMD::matrixtools::InvertMatrix, PLMD::matrixtools::MatrixOperationBase, PLMD::matrixtools::TransposeMatrix, PLMD::metatomic::MetatomicPlumedAction, PLMD::opes::ExpansionCVs, PLMD::sasa::Colvar, PLMD::valtools::Concatenate, PLMD::valtools::Flatten, PLMD::valtools::SelectWithMask, PLMD::valtools::VStack, PLMD::vatom::ActionWithVirtualAtom, PLMD::vatom::ArgsToVatom, PLMD::ves::BasisFunctions, PLMD::ves::Optimizer, PLMD::ves::OutputBasisFunctions, PLMD::ves::OutputFesBias, PLMD::ves::OutputTargetDistribution, PLMD::ves::TargetDistribution, and PLMD::wham::Wham.

◆ beforeUpdate()

virtual void PLMD::Action::beforeUpdate ( )
inlinevirtual

Before Update.

This is a special method that is called just before the update() method. It can be used by actions that want to do something irrespectively of the fact that update() is active or not. In other words, this is always called, even when action is not active.

Reimplemented in PLMD::generic::UpdateIf.

◆ calculate()

virtual void PLMD::Action::calculate ( )
pure virtual

Calculate an Action.

This method is called one or more times per step. The set of all Actions is calculated in forward order.

Implemented in PLMD::ActionAnyorder, PLMD::ActionForInterface, PLMD::ActionSetup, PLMD::ActionShortcut, PLMD::ActionToGetData, PLMD::adjmat::AdjacencyMatrixBase< CV, myPTM >, PLMD::adjmat::AdjacencyMatrixBase< BridgeMatrix >, PLMD::adjmat::AdjacencyMatrixBase< BridgeMatrix >, PLMD::adjmat::AdjacencyMatrixBase< ContactMatrix >, PLMD::adjmat::AdjacencyMatrixBase< ContactMatrix >, PLMD::adjmat::AdjacencyMatrixBase< CV, defaultPTM >, PLMD::adjmat::AdjacencyMatrixBase< DistanceMatrix >, PLMD::adjmat::AdjacencyMatrixBase< DistanceMatrix >, PLMD::adjmat::AdjacencyMatrixBase< HbondMatrix >, PLMD::adjmat::AdjacencyMatrixBase< HbondMatrix >, PLMD::adjmat::AdjacencyMatrixBase< HBPammMatrix >, PLMD::adjmat::AdjacencyMatrixBase< HBPammMatrix >, PLMD::adjmat::AdjacencyMatrixBase< TopologyMatrix >, PLMD::adjmat::AdjacencyMatrixBase< TopologyMatrix >, PLMD::adjmat::Neighbors< T >, PLMD::adjmat::Neighbors< NHighInput >, PLMD::adjmat::Neighbors< NHighInput >, PLMD::adjmat::Neighbors< NLowInput >, PLMD::adjmat::Neighbors< NLowInput >, PLMD::adjmat::Neighbors< OneHighInput >, PLMD::adjmat::Neighbors< OneHighInput >, PLMD::adjmat::Neighbors< OneLowInput >, PLMD::adjmat::Neighbors< OneLowInput >, PLMD::adjmat::TorsionsMatrix, PLMD::bias::ABMD, PLMD::bias::BiasValue, PLMD::bias::ExtendedLagrangian, PLMD::bias::External, PLMD::bias::MaxEnt, PLMD::bias::MetaD, PLMD::bias::MovingRestraint, PLMD::bias::PBMetaD, PLMD::bias::Restraint, PLMD::bias::ReweightBase, PLMD::bias::WallsScalar< W >, PLMD::bias::WallsScalar< WallType::LOWER >, PLMD::bias::WallsScalar< WallType::LOWER >, PLMD::bias::WallsScalar< WallType::UPPER >, PLMD::bias::WallsScalar< WallType::UPPER >, PLMD::clusters::ClusterDistribution, PLMD::clusters::ClusteringBase, PLMD::clusters::ClusterWeights, PLMD::colvar::Angle< T >, PLMD::colvar::Angle< double >, PLMD::colvar::Angle< double >, PLMD::colvar::Cell, PLMD::colvar::ColvarFake, PLMD::colvar::ContactMap, PLMD::colvar::CoordinationBase, PLMD::colvar::DihedralCorrelation< T >, PLMD::colvar::DihedralCorrelation< double >, PLMD::colvar::DihedralCorrelation< double >, PLMD::colvar::Dimer, PLMD::colvar::Dipole< T >, PLMD::colvar::Dipole< double >, PLMD::colvar::Dipole< double >, PLMD::colvar::Distance< T >, PLMD::colvar::Distance< double >, PLMD::colvar::Distance< double >, PLMD::colvar::EEFSolv, PLMD::colvar::ERMSD, PLMD::colvar::Gyration< T >, PLMD::colvar::Gyration< double >, PLMD::colvar::Gyration< double >, PLMD::colvar::MultiColvarTemplate< CV, myPTM >, PLMD::colvar::MultiColvarTemplate< AngleD >, PLMD::colvar::MultiColvarTemplate< AngleD >, PLMD::colvar::MultiColvarTemplate< CV, myPTM >, PLMD::colvar::MultiColvarTemplate< CV, myPTM >, PLMD::colvar::MultiColvarTemplate< DihedralCorrelationD >, PLMD::colvar::MultiColvarTemplate< DihedralCorrelationD >, PLMD::colvar::MultiColvarTemplate< DipoleD >, PLMD::colvar::MultiColvarTemplate< DipoleD >, PLMD::colvar::MultiColvarTemplate< DistanceD >, PLMD::colvar::MultiColvarTemplate< DistanceD >, PLMD::colvar::MultiColvarTemplate< GyrationD >, PLMD::colvar::MultiColvarTemplate< GyrationD >, PLMD::colvar::MultiColvarTemplate< PlaneD >, PLMD::colvar::MultiColvarTemplate< PlaneD >, PLMD::colvar::MultiColvarTemplate< PositionD >, PLMD::colvar::MultiColvarTemplate< PositionD >, PLMD::colvar::MultiColvarTemplate< Quaternion >, PLMD::colvar::MultiColvarTemplate< Quaternion >, PLMD::colvar::MultiColvarTemplate< TorsionD >, PLMD::colvar::MultiColvarTemplate< TorsionD >, PLMD::colvar::PathMSDBase, PLMD::colvar::PCARMSD, PLMD::colvar::Plane< T >, PLMD::colvar::Plane< double >, PLMD::colvar::Plane< double >, PLMD::colvar::Position< T >, PLMD::colvar::Position< double >, PLMD::colvar::Position< double >, PLMD::colvar::ProjectionOnAxis, PLMD::colvar::Puckering, PLMD::colvar::RMSD, PLMD::colvar::RMSDVector, PLMD::colvar::SelectMassCharge, PLMD::colvar::Template, PLMD::colvar::Torsion< T >, PLMD::colvar::Torsion< double >, PLMD::colvar::Torsion< double >, PLMD::colvar::Volume, PLMD::colvar::VoronoiCoordination, PLMD::colvar::VoronoiDistance, PLMD::colvar::VoronoiPosition, PLMD::contour::DistanceFromContour, PLMD::contour::DistanceFromSphericalContour, PLMD::contour::DumpContour, PLMD::contour::FindContour, PLMD::contour::FindContourSurface, PLMD::contour::FindSphericalContour, PLMD::crystdistrib::Quaternion, PLMD::crystdistrib::QuaternionBondProductMatrix, PLMD::dimred::ArrangePoints, PLMD::dimred::ProjectPoints, PLMD::eds::EDS, PLMD::fisst::FISST, PLMD::fourier::FourierTransform, PLMD::function::annfunc::ANN, PLMD::function::Ensemble, PLMD::function::FuncPathGeneral, PLMD::function::FuncPathMSD, PLMD::function::FuncSumHills, PLMD::function::FunctionOfMatrix< CV, myPTM >, PLMD::function::FunctionOfMatrix< Between >, PLMD::function::FunctionOfMatrix< Between >, PLMD::function::FunctionOfMatrix< Combine >, PLMD::function::FunctionOfMatrix< Combine >, PLMD::function::FunctionOfMatrix< Custom >, PLMD::function::FunctionOfMatrix< Custom >, PLMD::function::FunctionOfMatrix< CV, myPTM >, PLMD::function::FunctionOfMatrix< CV, myPTM >, PLMD::function::FunctionOfMatrix< CylindricalHarmonic >, PLMD::function::FunctionOfMatrix< CylindricalHarmonic >, PLMD::function::FunctionOfMatrix< Fccubic< double > >, PLMD::function::FunctionOfMatrix< Fccubic< double > >, PLMD::function::FunctionOfMatrix< LessThan >, PLMD::function::FunctionOfMatrix< LessThan >, PLMD::function::FunctionOfMatrix< MoreThan >, PLMD::function::FunctionOfMatrix< MoreThan >, PLMD::function::FunctionOfMatrix< SphericalHarmonic >, PLMD::function::FunctionOfMatrix< SphericalHarmonic >, PLMD::function::FunctionOfScalar< T >, PLMD::function::FunctionOfScalar< Bessel >, PLMD::function::FunctionOfScalar< Bessel >, PLMD::function::FunctionOfScalar< Between >, PLMD::function::FunctionOfScalar< Between >, PLMD::function::FunctionOfScalar< Combine >, PLMD::function::FunctionOfScalar< Combine >, PLMD::function::FunctionOfScalar< Custom >, PLMD::function::FunctionOfScalar< Custom >, PLMD::function::FunctionOfScalar< Difference >, PLMD::function::FunctionOfScalar< Difference >, PLMD::function::FunctionOfScalar< EvaluateGridFunction >, PLMD::function::FunctionOfScalar< EvaluateGridFunction >, PLMD::function::FunctionOfScalar< Highest >, PLMD::function::FunctionOfScalar< Highest >, PLMD::function::FunctionOfScalar< LessThan >, PLMD::function::FunctionOfScalar< LessThan >, PLMD::function::FunctionOfScalar< Moments >, PLMD::function::FunctionOfScalar< Moments >, PLMD::function::FunctionOfScalar< MoreThan >, PLMD::function::FunctionOfScalar< MoreThan >, PLMD::function::FunctionOfScalar< Piecewise >, PLMD::function::FunctionOfScalar< Piecewise >, PLMD::function::FunctionOfScalar< Sort >, PLMD::function::FunctionOfScalar< Sort >, PLMD::function::FunctionOfVector< CV, myPTM >, PLMD::function::FunctionOfVector< Bessel >, PLMD::function::FunctionOfVector< Bessel >, PLMD::function::FunctionOfVector< Between >, PLMD::function::FunctionOfVector< Between >, PLMD::function::FunctionOfVector< Combine >, PLMD::function::FunctionOfVector< Combine >, PLMD::function::FunctionOfVector< Custom >, PLMD::function::FunctionOfVector< Custom >, PLMD::function::FunctionOfVector< CV, myPTM >, PLMD::function::FunctionOfVector< CV, myPTM >, PLMD::function::FunctionOfVector< Difference >, PLMD::function::FunctionOfVector< Difference >, PLMD::function::FunctionOfVector< EvaluateGridFunction >, PLMD::function::FunctionOfVector< EvaluateGridFunction >, PLMD::function::FunctionOfVector< Highest >, PLMD::function::FunctionOfVector< Highest >, PLMD::function::FunctionOfVector< LessThan >, PLMD::function::FunctionOfVector< LessThan >, PLMD::function::FunctionOfVector< Moments >, PLMD::function::FunctionOfVector< Moments >, PLMD::function::FunctionOfVector< MoreThan >, PLMD::function::FunctionOfVector< MoreThan >, PLMD::function::FunctionOfVector< Sort >, PLMD::function::FunctionOfVector< Sort >, PLMD::function::FunctionWithSingleArgument< T >, PLMD::function::FunctionWithSingleArgument< Highest >, PLMD::function::FunctionWithSingleArgument< Highest >, PLMD::function::FunctionWithSingleArgument< Moments >, PLMD::function::FunctionWithSingleArgument< Moments >, PLMD::function::LocalEnsemble, PLMD::function::SortWithSingleArgument, PLMD::function::Stats, PLMD::function::Sum, PLMD::funnel::Funnel, PLMD::funnel::FUNNEL_PS, PLMD::generic::Accumulate, PLMD::generic::Collect, PLMD::generic::Committor, PLMD::generic::Constant, PLMD::generic::CreateMask, PLMD::generic::Debug, PLMD::generic::DumpAtoms, PLMD::generic::DumpDerivatives, PLMD::generic::DumpForces, PLMD::generic::DumpMassCharge, PLMD::generic::DumpPDB, PLMD::generic::DumpProjections, PLMD::generic::DumpVector, PLMD::generic::EffectiveEnergyDrift, PLMD::generic::EndPlumed, PLMD::generic::FitToTemplate, PLMD::generic::Flush, PLMD::generic::GatherReplicas, PLMD::generic::Include, PLMD::generic::Plumed, PLMD::generic::Print, PLMD::generic::PrintNDX, PLMD::generic::RandomExchanges, PLMD::generic::Read, PLMD::generic::ResetCell, PLMD::generic::Time, PLMD::generic::UpdateIf, PLMD::generic::WholeMolecules, PLMD::generic::WrapAround, PLMD::GenericMolInfo, PLMD::gridtools::DumpGrid, PLMD::gridtools::FindGridOptimum, PLMD::gridtools::FunctionOfGrid< T >, PLMD::gridtools::FunctionOfGrid< function::Custom >, PLMD::gridtools::FunctionOfGrid< function::Custom >, PLMD::gridtools::GetGridVolumeElement, PLMD::gridtools::InterpolateGrid, PLMD::gridtools::KDE< K, P, G >, PLMD::gridtools::KDE< DiagonalKernelParams, DiscreteKernel, KDEGridTools< DiagonalKernelParams, DiscreteKernel > >, PLMD::gridtools::KDE< DiagonalKernelParams, DiscreteKernel, KDEGridTools< DiagonalKernelParams, DiscreteKernel > >, PLMD::gridtools::KDE< DiagonalKernelParams, HistogramBeadKernel, KDEGridTools< DiagonalKernelParams, HistogramBeadKernel > >, PLMD::gridtools::KDE< DiagonalKernelParams, HistogramBeadKernel, KDEGridTools< DiagonalKernelParams, HistogramBeadKernel > >, PLMD::gridtools::KDE< DiagonalKernelParams, RegularKernel< DiagonalKernelParams >, KDEGridTools< DiagonalKernelParams, RegularKernel< DiagonalKernelParams > > >, PLMD::gridtools::KDE< DiagonalKernelParams, RegularKernel< DiagonalKernelParams >, KDEGridTools< DiagonalKernelParams, RegularKernel< DiagonalKernelParams > > >, PLMD::gridtools::KDE< NonDiagonalKernelParams, RegularKernel< NonDiagonalKernelParams >, KDEGridTools< NonDiagonalKernelParams, RegularKernel< NonDiagonalKernelParams > > >, PLMD::gridtools::KDE< NonDiagonalKernelParams, RegularKernel< NonDiagonalKernelParams >, KDEGridTools< NonDiagonalKernelParams, RegularKernel< NonDiagonalKernelParams > > >, PLMD::gridtools::KDE< VonMissesKernelParams, UniversalVonMisses, SphericalKDEGridTools >, PLMD::gridtools::KDE< VonMissesKernelParams, UniversalVonMisses, SphericalKDEGridTools >, PLMD::gridtools::Marginal, PLMD::gridtools::ReadGridInSetup, PLMD::Group, PLMD::isdb::BAIES, PLMD::isdb::Caliber, PLMD::isdb::CS2Backbone, PLMD::isdb::EMMI, PLMD::isdb::FretEfficiency, PLMD::isdb::JCoupling, PLMD::isdb::Metainference, PLMD::isdb::NOE, PLMD::isdb::PRE, PLMD::isdb::RDC, PLMD::isdb::Rescale, PLMD::isdb::SAXS, PLMD::isdb::Select, PLMD::isdb::Selector, PLMD::isdb::Shadow, PLMD::landmarks::FarthestPointSampling, PLMD::logmfd::LogMFD, PLMD::mapping::GeometricPath, PLMD::mapping::PathDisplacements, PLMD::mapping::PathReparameterization, PLMD::matrixtools::DiagonalizeMatrix, PLMD::matrixtools::InvertMatrix, PLMD::matrixtools::MatrixTimesMatrix< CV, myPTM >, PLMD::matrixtools::MatrixTimesMatrix< CV, myPTM >, PLMD::matrixtools::MatrixTimesMatrix< CV, myPTM >, PLMD::matrixtools::MatrixTimesMatrix< Dissimilarities >, PLMD::matrixtools::MatrixTimesMatrix< Dissimilarities >, PLMD::matrixtools::MatrixTimesMatrix< MatrixProduct >, PLMD::matrixtools::MatrixTimesMatrix< MatrixProduct >, PLMD::matrixtools::MatrixTimesVectorBase< CV, myPTM >, PLMD::matrixtools::MatrixTimesVectorBase< CV, myPTM >, PLMD::matrixtools::MatrixTimesVectorBase< CV, myPTM >, PLMD::matrixtools::MatrixTimesVectorBase< MatrixTimesVectorProper< double > >, PLMD::matrixtools::MatrixTimesVectorBase< MatrixTimesVectorProper< double > >, PLMD::matrixtools::MatrixTimesVectorBase< MatrixTimesVectorRowSums< double > >, PLMD::matrixtools::MatrixTimesVectorBase< MatrixTimesVectorRowSums< double > >, PLMD::matrixtools::OuterProductBase< T >, PLMD::matrixtools::OuterProductBase< OutputProductFunc >, PLMD::matrixtools::OuterProductBase< OutputProductFunc >, PLMD::matrixtools::OuterProductBase< OutputProductMax >, PLMD::matrixtools::OuterProductBase< OutputProductMax >, PLMD::matrixtools::OuterProductBase< OutputProductMin >, PLMD::matrixtools::OuterProductBase< OutputProductMin >, PLMD::matrixtools::OuterProductBase< QuaternionProductMatrix >, PLMD::matrixtools::OuterProductBase< QuaternionProductMatrix >, PLMD::matrixtools::TransposeMatrix, PLMD::maze::Loss, PLMD::maze::Optimizer, PLMD::maze::OptimizerBias, PLMD::membranefusion::fusionPoreExpansionP, PLMD::membranefusion::fusionPoreNucleationP, PLMD::membranefusion::memFusionP, PLMD::metatomic::MetatomicPlumedAction, PLMD::opes::ExpansionCVs, PLMD::opes::OPESexpanded, PLMD::opes::OPESmetad< mode >, PLMD::opes::OPESmetad< convergence >, PLMD::opes::OPESmetad< convergence >, PLMD::opes::OPESmetad< exploration >, PLMD::opes::OPESmetad< exploration >, PLMD::pathbias::ConditionalPath, PLMD::pathbias::PathLogMeanExp, PLMD::pathbias::ProbabilityMix, PLMD::pines::PINES, PLMD::piv::PIV, PLMD::refdist::MatrixProductDiagonal, PLMD::s2cm::S2ContactModel, PLMD::sasa::SASA_HASEL, PLMD::sasa::SASA_LCPO, PLMD::secondarystructure::SecondaryStructureBase< T, myPTM >, PLMD::secondarystructure::SecondaryStructureBase< Empty >, PLMD::secondarystructure::SecondaryStructureBase< Empty >, PLMD::secondarystructure::SecondaryStructureBase< SecondaryStructureDRMSDInput< double > >, PLMD::secondarystructure::SecondaryStructureBase< SecondaryStructureDRMSDInput< double > >, PLMD::secondarystructure::SecondaryStructureBase< T, myPTM >, PLMD::secondarystructure::SecondaryStructureBase< T, myPTM >, PLMD::sizeshape::position_linear_proj, PLMD::sizeshape::position_maha_dist, PLMD::symfunc::ThreeBodyGFunctions, PLMD::ttsketch::TTMetaD, PLMD::valtools::Concatenate, PLMD::valtools::Flatten, PLMD::valtools::SelectWithMask, PLMD::valtools::VStack, PLMD::vatom::ArgsToVatom, PLMD::vatom::Center, PLMD::vatom::FixedAtom, PLMD::vatom::Ghost, PLMD::ves::BasisFunctions, PLMD::ves::Optimizer, PLMD::ves::OutputBasisFunctions, PLMD::ves::OutputFesBias, PLMD::ves::OutputTargetDistribution, PLMD::ves::TargetDistribution, PLMD::ves::VesDeltaF, PLMD::ves::VesLinearExpansion, PLMD::volumes::ActionVolume< CV, myPTM >, PLMD::volumes::ActionVolume< CV, myPTM >, PLMD::volumes::ActionVolume< CV, myPTM >, PLMD::volumes::ActionVolume< VolumeAround >, PLMD::volumes::ActionVolume< VolumeAround >, PLMD::volumes::ActionVolume< VolumeCavity >, PLMD::volumes::ActionVolume< VolumeCavity >, PLMD::volumes::ActionVolume< VolumeInCylinder >, PLMD::volumes::ActionVolume< VolumeInCylinder >, PLMD::volumes::ActionVolume< VolumeInEnvelope >, PLMD::volumes::ActionVolume< VolumeInEnvelope >, PLMD::volumes::ActionVolume< VolumeInSphere >, PLMD::volumes::ActionVolume< VolumeInSphere >, PLMD::volumes::ActionVolume< VolumeTetrapore >, PLMD::volumes::ActionVolume< VolumeTetrapore >, and PLMD::wham::Wham.

◆ calculateFromPDB()

void PLMD::Action::calculateFromPDB ( const PDB & pdb)

Calculate the action given a pdb file as input.

This is used to initialize things like distance from a point in CV map space given a pdb as an input file

◆ calculateNumericalDerivatives()

void PLMD::Action::calculateNumericalDerivatives ( ActionWithValue * a = NULL)
virtual

Perform calculation using numerical derivatives N.B.

only pass an ActionWithValue to this routine if you know exactly what you are doing.

Reimplemented in PLMD::ActionAtomistic, PLMD::ActionWithArguments, PLMD::ActionWithVector, PLMD::contour::DistanceFromContourBase, PLMD::generic::DumpAtoms, PLMD::generic::PrintNDX, PLMD::isdb::EMMI, and PLMD::isdb::MetainferenceBase.

◆ castToActionAtomistic()

virtual ActionAtomistic * PLMD::Action::castToActionAtomistic ( )
inlinevirtualnoexcept

Reimplemented in PLMD::ActionAtomistic.

◆ castToActionForInterface()

virtual ActionForInterface * PLMD::Action::castToActionForInterface ( )
inlinevirtualnoexcept

Reimplemented in PLMD::ActionForInterface.

◆ castToActionShortcut()

virtual ActionShortcut * PLMD::Action::castToActionShortcut ( )
inlinevirtualnoexcept

Reimplemented in PLMD::ActionShortcut.

◆ castToActionToGetData()

virtual ActionToGetData * PLMD::Action::castToActionToGetData ( )
inlinevirtualnoexcept

Reimplemented in PLMD::ActionToGetData.

◆ castToActionToPutData()

virtual ActionToPutData * PLMD::Action::castToActionToPutData ( )
inlinevirtualnoexcept

Reimplemented in PLMD::ActionToPutData.

◆ castToActionWithArguments()

virtual ActionWithArguments * PLMD::Action::castToActionWithArguments ( )
inlinevirtualnoexcept

Reimplemented in PLMD::ActionWithArguments.

◆ castToActionWithValue()

virtual ActionWithValue * PLMD::Action::castToActionWithValue ( )
inlinevirtualnoexcept

Specialized casts, to make PlumedMain run faster.

Reimplemented in PLMD::ActionWithValue.

◆ castToActionWithVirtualAtom()

virtual ActionWithVirtualAtom * PLMD::Action::castToActionWithVirtualAtom ( )
inlinevirtualnoexcept

◆ castToDomainDecomposition()

virtual DomainDecomposition * PLMD::Action::castToDomainDecomposition ( )
inlinevirtualnoexcept

Reimplemented in PLMD::DomainDecomposition.

◆ castToPbcAction()

virtual PbcAction * PLMD::Action::castToPbcAction ( )
inlinevirtualnoexcept

Reimplemented in PLMD::PbcAction.

◆ checkForDependency()

bool PLMD::Action::checkForDependency ( Action * action)

Check that this action does not depend on the action in the argument.

◆ checkNeedsGradients()

virtual bool PLMD::Action::checkNeedsGradients ( ) const
inlinevirtual

Check if the action needs gradient.

Reimplemented in PLMD::bias::MetaD, PLMD::bias::PBMetaD, and PLMD::generic::DumpProjections.

◆ checkNumericalDerivatives()

virtual bool PLMD::Action::checkNumericalDerivatives ( ) const
inlinevirtual

Check if numerical derivatives should be performed.

Reimplemented in PLMD::ActionWithValue.

◆ checkRead()

void PLMD::Action::checkRead ( )

Check if Action was properly read.

This checks if Action::line is empty. It must be called after a final Action has been initialized

◆ checkUpdate()

bool PLMD::Action::checkUpdate ( ) const

Check if action should be updated.

◆ cite()

std::string PLMD::Action::cite ( const std::string & s)

Cite a paper see PlumedMain::cite.

◆ clearDependencies()

void PLMD::Action::clearDependencies ( )

Clear the dependence list for this Action.

◆ clearOptions()

void PLMD::Action::clearOptions ( )
virtual

◆ deactivate()

void PLMD::Action::deactivate ( )
inlinevirtual

Set action to inactive.

◆ error()

void PLMD::Action::error ( const std::string & msg) const

Crash calculation and print documentation.

◆ exit()

void PLMD::Action::exit ( int c = 0)

Exit with error code c.

◆ fclose()

int PLMD::Action::fclose ( FILE * fp)

Closes a file opened with Action::fclose().

◆ fflush()

void PLMD::Action::fflush ( )

Tell to the Action to flush open files.

◆ fopen()

FILE * PLMD::Action::fopen ( const char * path,
const char * mode )

Opens a file.

This is similar to plain fopen, but with some extra functionality.

  • When opened for writing, processors other than the one with rank 0 just open /dev/null
  • PlumedMain::fopen is used, so that other tricks may appear (see PlumedMain::fopen)

◆ getCPT()

bool PLMD::Action::getCPT ( ) const

Return true if we are doing at a checkpoint step.

◆ getDefaultString()

std::string PLMD::Action::getDefaultString ( ) const
inline

Get the defaults.

◆ getDependencies()

const Dependencies & PLMD::Action::getDependencies ( ) const
inline

Return dependencies.

◆ getExchangeStep()

bool PLMD::Action::getExchangeStep ( ) const

Check if we are on an exchange step.

◆ getKBoltzmann()

double PLMD::Action::getKBoltzmann ( ) const
protected

Get the value of Boltzmann's constant.

◆ getkBT()

double PLMD::Action::getkBT ( )

Get the value of kBT by either reading the TEMP keyword and multiplying the temperature by Boltzmann's constant or get it fro the MD code.

◆ getKeyword()

std::string PLMD::Action::getKeyword ( const std::string & key)

Just read one of the keywords and return the whole thing as a string.

◆ getLabel()

const std::string & PLMD::Action::getLabel ( ) const
inline

Returns the label.

◆ getName()

const std::string & PLMD::Action::getName ( ) const
inline

Returns the name.

◆ getNumberOfReplicas()

int PLMD::Action::getNumberOfReplicas ( ) const

Number of replicas in a multi-replica simulation (1 otherwise), and the index of this replica.

Prefer these to multi_sim_comm.Get_size() and Get_rank(), which are only correct on the rank that received the inter-replica communicator: with several ranks per replica, the others see a single replica. These are computed once at initialization, so they are correct on every rank and need no communication, which makes them safe to call anywhere, including calculate(). multi_sim_comm is still the communicator to use for exchanging data, and only on the rank that holds it.

◆ getReplicaIndex()

int PLMD::Action::getReplicaIndex ( ) const

◆ getRestart()

bool PLMD::Action::getRestart ( ) const
inline

Return true if we are doing a restart.

◆ getStep()

long long int PLMD::Action::getStep ( ) const

Return the present timestep.

◆ getTime()

double PLMD::Action::getTime ( ) const

Return the present time.

◆ getTimeStep()

double PLMD::Action::getTimeStep ( ) const

Return the timestep.

◆ getUnits()

const Units & PLMD::Action::getUnits ( ) const
protected

Get the units that we are operating in.

◆ isActive()

bool PLMD::Action::isActive ( ) const
inline

Check if action is active.

◆ isOptionOn()

bool PLMD::Action::isOptionOn ( const std::string & s) const
inline

Check if an option is on.

◆ lockRequests()

◆ operator=()

Action & PLMD::Action::operator= ( const Action & a)
privatedelete

Assignment operator is deleted.

◆ parse()

template<class T>
void PLMD::Action::parse ( const std::string & key,
T & t )

Parse one keyword as generic type.

◆ parseFlag()

void PLMD::Action::parseFlag ( const std::string & key,
bool & t )

Parse one keyword as boolean flag.

◆ parseNumbered()

template<class T>
bool PLMD::Action::parseNumbered ( const std::string & key,
const int no,
T & t )

Parse one numbered keyword as generic type.

◆ parseNumberedVector()

template<class T>
bool PLMD::Action::parseNumberedVector ( const std::string & key,
const int no,
std::vector< T > & t )

Parse a vector with a number.

◆ parseVector()

template<class T>
void PLMD::Action::parseVector ( const std::string & key,
std::vector< T > & t )

Parse one keyword as std::vector.

◆ prepare()

void PLMD::Action::prepare ( )
virtual

Prepare an Action for calculation This can be used by Action if they need some special preparation before calculation.

Typical case is for collective variables which would like to change their list of requested atoms. By default (if not overridden) does nothing.

Reimplemented in PLMD::ActionWithVector, PLMD::adjmat::Neighbors< T >, PLMD::adjmat::Neighbors< NHighInput >, PLMD::adjmat::Neighbors< NHighInput >, PLMD::adjmat::Neighbors< NLowInput >, PLMD::adjmat::Neighbors< NLowInput >, PLMD::adjmat::Neighbors< OneHighInput >, PLMD::adjmat::Neighbors< OneHighInput >, PLMD::adjmat::Neighbors< OneLowInput >, PLMD::adjmat::Neighbors< OneLowInput >, PLMD::adjmat::TorsionsMatrix, PLMD::colvar::CoordinationBase, PLMD::colvar::SoftVoronoiBase, PLMD::crystdistrib::QuaternionBondProductMatrix, PLMD::dimred::ArrangePoints, PLMD::dimred::ProjectPoints, PLMD::function::FuncPathGeneral, PLMD::function::FuncPathMSD, PLMD::function::FunctionOfMatrix< CV, myPTM >, PLMD::function::FunctionOfMatrix< Between >, PLMD::function::FunctionOfMatrix< Between >, PLMD::function::FunctionOfMatrix< Combine >, PLMD::function::FunctionOfMatrix< Combine >, PLMD::function::FunctionOfMatrix< Custom >, PLMD::function::FunctionOfMatrix< Custom >, PLMD::function::FunctionOfMatrix< CV, myPTM >, PLMD::function::FunctionOfMatrix< CV, myPTM >, PLMD::function::FunctionOfMatrix< CylindricalHarmonic >, PLMD::function::FunctionOfMatrix< CylindricalHarmonic >, PLMD::function::FunctionOfMatrix< Fccubic< double > >, PLMD::function::FunctionOfMatrix< Fccubic< double > >, PLMD::function::FunctionOfMatrix< LessThan >, PLMD::function::FunctionOfMatrix< LessThan >, PLMD::function::FunctionOfMatrix< MoreThan >, PLMD::function::FunctionOfMatrix< MoreThan >, PLMD::function::FunctionOfMatrix< SphericalHarmonic >, PLMD::function::FunctionOfMatrix< SphericalHarmonic >, PLMD::function::FunctionOfVector< CV, myPTM >, PLMD::function::FunctionOfVector< Bessel >, PLMD::function::FunctionOfVector< Bessel >, PLMD::function::FunctionOfVector< Between >, PLMD::function::FunctionOfVector< Between >, PLMD::function::FunctionOfVector< Combine >, PLMD::function::FunctionOfVector< Combine >, PLMD::function::FunctionOfVector< Custom >, PLMD::function::FunctionOfVector< Custom >, PLMD::function::FunctionOfVector< CV, myPTM >, PLMD::function::FunctionOfVector< CV, myPTM >, PLMD::function::FunctionOfVector< Difference >, PLMD::function::FunctionOfVector< Difference >, PLMD::function::FunctionOfVector< EvaluateGridFunction >, PLMD::function::FunctionOfVector< EvaluateGridFunction >, PLMD::function::FunctionOfVector< Highest >, PLMD::function::FunctionOfVector< Highest >, PLMD::function::FunctionOfVector< LessThan >, PLMD::function::FunctionOfVector< LessThan >, PLMD::function::FunctionOfVector< Moments >, PLMD::function::FunctionOfVector< Moments >, PLMD::function::FunctionOfVector< MoreThan >, PLMD::function::FunctionOfVector< MoreThan >, PLMD::function::FunctionOfVector< Sort >, PLMD::function::FunctionOfVector< Sort >, PLMD::generic::CreateMask, PLMD::generic::DumpMassCharge, PLMD::generic::Plumed, PLMD::generic::Print, PLMD::generic::Read, PLMD::generic::UpdateIf, PLMD::GenericMolInfo, PLMD::gridtools::KDE< K, P, G >, PLMD::gridtools::KDE< DiagonalKernelParams, DiscreteKernel, KDEGridTools< DiagonalKernelParams, DiscreteKernel > >, PLMD::gridtools::KDE< DiagonalKernelParams, DiscreteKernel, KDEGridTools< DiagonalKernelParams, DiscreteKernel > >, PLMD::gridtools::KDE< DiagonalKernelParams, HistogramBeadKernel, KDEGridTools< DiagonalKernelParams, HistogramBeadKernel > >, PLMD::gridtools::KDE< DiagonalKernelParams, HistogramBeadKernel, KDEGridTools< DiagonalKernelParams, HistogramBeadKernel > >, PLMD::gridtools::KDE< DiagonalKernelParams, RegularKernel< DiagonalKernelParams >, KDEGridTools< DiagonalKernelParams, RegularKernel< DiagonalKernelParams > > >, PLMD::gridtools::KDE< DiagonalKernelParams, RegularKernel< DiagonalKernelParams >, KDEGridTools< DiagonalKernelParams, RegularKernel< DiagonalKernelParams > > >, PLMD::gridtools::KDE< NonDiagonalKernelParams, RegularKernel< NonDiagonalKernelParams >, KDEGridTools< NonDiagonalKernelParams, RegularKernel< NonDiagonalKernelParams > > >, PLMD::gridtools::KDE< NonDiagonalKernelParams, RegularKernel< NonDiagonalKernelParams >, KDEGridTools< NonDiagonalKernelParams, RegularKernel< NonDiagonalKernelParams > > >, PLMD::gridtools::KDE< VonMissesKernelParams, UniversalVonMisses, SphericalKDEGridTools >, PLMD::gridtools::KDE< VonMissesKernelParams, UniversalVonMisses, SphericalKDEGridTools >, PLMD::isdb::EMMI, PLMD::landmarks::FarthestPointSampling, PLMD::matrixtools::DiagonalizeMatrix, PLMD::matrixtools::MatrixTimesMatrix< CV, myPTM >, PLMD::matrixtools::MatrixTimesMatrix< CV, myPTM >, PLMD::matrixtools::MatrixTimesMatrix< CV, myPTM >, PLMD::matrixtools::MatrixTimesMatrix< Dissimilarities >, PLMD::matrixtools::MatrixTimesMatrix< Dissimilarities >, PLMD::matrixtools::MatrixTimesMatrix< MatrixProduct >, PLMD::matrixtools::MatrixTimesMatrix< MatrixProduct >, PLMD::matrixtools::MatrixTimesVectorBase< CV, myPTM >, PLMD::matrixtools::MatrixTimesVectorBase< CV, myPTM >, PLMD::matrixtools::MatrixTimesVectorBase< CV, myPTM >, PLMD::matrixtools::MatrixTimesVectorBase< MatrixTimesVectorProper< double > >, PLMD::matrixtools::MatrixTimesVectorBase< MatrixTimesVectorProper< double > >, PLMD::matrixtools::MatrixTimesVectorBase< MatrixTimesVectorRowSums< double > >, PLMD::matrixtools::MatrixTimesVectorBase< MatrixTimesVectorRowSums< double > >, PLMD::matrixtools::OuterProductBase< T >, PLMD::matrixtools::OuterProductBase< OutputProductFunc >, PLMD::matrixtools::OuterProductBase< OutputProductFunc >, PLMD::matrixtools::OuterProductBase< OutputProductMax >, PLMD::matrixtools::OuterProductBase< OutputProductMax >, PLMD::matrixtools::OuterProductBase< OutputProductMin >, PLMD::matrixtools::OuterProductBase< OutputProductMin >, PLMD::matrixtools::OuterProductBase< QuaternionProductMatrix >, PLMD::matrixtools::OuterProductBase< QuaternionProductMatrix >, PLMD::matrixtools::TransposeMatrix, PLMD::maze::Optimizer, PLMD::pines::PINES, PLMD::s2cm::S2ContactModel, PLMD::valtools::SelectWithMask, PLMD::valtools::VStack, and PLMD::wham::Wham.

◆ readAtomsFromPDB()

virtual void PLMD::Action::readAtomsFromPDB ( const PDB & )
inlinevirtual

This is overwritten in ActionAtomistic so that we can read the atoms from the pdb input file rather than taking them from the MD code.

Reimplemented in PLMD::ActionAtomistic.

◆ registerKeywords()

void PLMD::Action::registerKeywords ( Keywords & keys)
static

Register all the relevant keywords for the action.

◆ resetStoredTimestep()

void PLMD::Action::resetStoredTimestep ( )

Set the timestep that is stored in the action to the correct value.

◆ runFinalJobs()

virtual void PLMD::Action::runFinalJobs ( )
inlinevirtual

RunFinalJobs This method is called once at the very end of the calculation.

The set of all Actions in run for the final time in forward order.

◆ setOption()

void PLMD::Action::setOption ( const std::string & s)
virtual

◆ setupConstantValues()

void PLMD::Action::setupConstantValues ( const bool & have_atoms)

This calculates any values that are constant and ensures that we don't calculate these actions on every timestep.

◆ unlockRequests()

◆ update()

◆ usingNaturalUnits()

bool PLMD::Action::usingNaturalUnits ( ) const
protected

Are we using natural units.

◆ warning()

void PLMD::Action::warning ( const std::string & msg)

Issue a warning.

◆ writeInGraph()

std::string PLMD::Action::writeInGraph ( ) const
virtual

Get the info on what to calculate.

Reimplemented in PLMD::adjmat::AdjacencyMatrixBase< CV, myPTM >, PLMD::adjmat::AdjacencyMatrixBase< BridgeMatrix >, PLMD::adjmat::AdjacencyMatrixBase< BridgeMatrix >, PLMD::adjmat::AdjacencyMatrixBase< ContactMatrix >, PLMD::adjmat::AdjacencyMatrixBase< ContactMatrix >, PLMD::adjmat::AdjacencyMatrixBase< CV, defaultPTM >, PLMD::adjmat::AdjacencyMatrixBase< DistanceMatrix >, PLMD::adjmat::AdjacencyMatrixBase< DistanceMatrix >, PLMD::adjmat::AdjacencyMatrixBase< HbondMatrix >, PLMD::adjmat::AdjacencyMatrixBase< HbondMatrix >, PLMD::adjmat::AdjacencyMatrixBase< HBPammMatrix >, PLMD::adjmat::AdjacencyMatrixBase< HBPammMatrix >, PLMD::adjmat::AdjacencyMatrixBase< TopologyMatrix >, PLMD::adjmat::AdjacencyMatrixBase< TopologyMatrix >, PLMD::function::FunctionOfMatrix< CV, myPTM >, PLMD::function::FunctionOfMatrix< CV, myPTM >, PLMD::function::FunctionOfMatrix< CV, myPTM >, PLMD::function::FunctionOfMatrix< Between >, PLMD::function::FunctionOfMatrix< Between >, PLMD::function::FunctionOfMatrix< Between >, PLMD::function::FunctionOfMatrix< Between >, PLMD::function::FunctionOfMatrix< Between >, PLMD::function::FunctionOfMatrix< Between >, PLMD::function::FunctionOfMatrix< Combine >, PLMD::function::FunctionOfMatrix< Combine >, PLMD::function::FunctionOfMatrix< Combine >, PLMD::function::FunctionOfMatrix< Combine >, PLMD::function::FunctionOfMatrix< Combine >, PLMD::function::FunctionOfMatrix< Combine >, PLMD::function::FunctionOfMatrix< Custom >, PLMD::function::FunctionOfMatrix< Custom >, PLMD::function::FunctionOfMatrix< Custom >, PLMD::function::FunctionOfMatrix< Custom >, PLMD::function::FunctionOfMatrix< Custom >, PLMD::function::FunctionOfMatrix< Custom >, PLMD::function::FunctionOfMatrix< CV, myPTM >, PLMD::function::FunctionOfMatrix< CV, myPTM >, PLMD::function::FunctionOfMatrix< CV, myPTM >, PLMD::function::FunctionOfMatrix< CV, myPTM >, PLMD::function::FunctionOfMatrix< CV, myPTM >, PLMD::function::FunctionOfMatrix< CV, myPTM >, PLMD::function::FunctionOfMatrix< CylindricalHarmonic >, PLMD::function::FunctionOfMatrix< CylindricalHarmonic >, PLMD::function::FunctionOfMatrix< CylindricalHarmonic >, PLMD::function::FunctionOfMatrix< CylindricalHarmonic >, PLMD::function::FunctionOfMatrix< CylindricalHarmonic >, PLMD::function::FunctionOfMatrix< CylindricalHarmonic >, PLMD::function::FunctionOfMatrix< Fccubic< double > >, PLMD::function::FunctionOfMatrix< Fccubic< double > >, PLMD::function::FunctionOfMatrix< Fccubic< double > >, PLMD::function::FunctionOfMatrix< Fccubic< double > >, PLMD::function::FunctionOfMatrix< Fccubic< double > >, PLMD::function::FunctionOfMatrix< Fccubic< double > >, PLMD::function::FunctionOfMatrix< LessThan >, PLMD::function::FunctionOfMatrix< LessThan >, PLMD::function::FunctionOfMatrix< LessThan >, PLMD::function::FunctionOfMatrix< LessThan >, PLMD::function::FunctionOfMatrix< LessThan >, PLMD::function::FunctionOfMatrix< LessThan >, PLMD::function::FunctionOfMatrix< MoreThan >, PLMD::function::FunctionOfMatrix< MoreThan >, PLMD::function::FunctionOfMatrix< MoreThan >, PLMD::function::FunctionOfMatrix< MoreThan >, PLMD::function::FunctionOfMatrix< MoreThan >, PLMD::function::FunctionOfMatrix< MoreThan >, PLMD::function::FunctionOfMatrix< SphericalHarmonic >, PLMD::function::FunctionOfMatrix< SphericalHarmonic >, PLMD::function::FunctionOfMatrix< SphericalHarmonic >, PLMD::function::FunctionOfMatrix< SphericalHarmonic >, PLMD::function::FunctionOfMatrix< SphericalHarmonic >, PLMD::function::FunctionOfMatrix< SphericalHarmonic >, PLMD::function::FunctionOfScalar< T >, PLMD::function::FunctionOfScalar< T >, PLMD::function::FunctionOfScalar< T >, PLMD::function::FunctionOfScalar< Bessel >, PLMD::function::FunctionOfScalar< Bessel >, PLMD::function::FunctionOfScalar< Bessel >, PLMD::function::FunctionOfScalar< Bessel >, PLMD::function::FunctionOfScalar< Bessel >, PLMD::function::FunctionOfScalar< Bessel >, PLMD::function::FunctionOfScalar< Between >, PLMD::function::FunctionOfScalar< Between >, PLMD::function::FunctionOfScalar< Between >, PLMD::function::FunctionOfScalar< Between >, PLMD::function::FunctionOfScalar< Between >, PLMD::function::FunctionOfScalar< Between >, PLMD::function::FunctionOfScalar< Combine >, PLMD::function::FunctionOfScalar< Combine >, PLMD::function::FunctionOfScalar< Combine >, PLMD::function::FunctionOfScalar< Combine >, PLMD::function::FunctionOfScalar< Combine >, PLMD::function::FunctionOfScalar< Combine >, PLMD::function::FunctionOfScalar< Custom >, PLMD::function::FunctionOfScalar< Custom >, PLMD::function::FunctionOfScalar< Custom >, PLMD::function::FunctionOfScalar< Custom >, PLMD::function::FunctionOfScalar< Custom >, PLMD::function::FunctionOfScalar< Custom >, PLMD::function::FunctionOfScalar< Difference >, PLMD::function::FunctionOfScalar< Difference >, PLMD::function::FunctionOfScalar< Difference >, PLMD::function::FunctionOfScalar< Difference >, PLMD::function::FunctionOfScalar< Difference >, PLMD::function::FunctionOfScalar< Difference >, PLMD::function::FunctionOfScalar< EvaluateGridFunction >, PLMD::function::FunctionOfScalar< EvaluateGridFunction >, PLMD::function::FunctionOfScalar< EvaluateGridFunction >, PLMD::function::FunctionOfScalar< EvaluateGridFunction >, PLMD::function::FunctionOfScalar< EvaluateGridFunction >, PLMD::function::FunctionOfScalar< EvaluateGridFunction >, PLMD::function::FunctionOfScalar< Highest >, PLMD::function::FunctionOfScalar< Highest >, PLMD::function::FunctionOfScalar< Highest >, PLMD::function::FunctionOfScalar< Highest >, PLMD::function::FunctionOfScalar< Highest >, PLMD::function::FunctionOfScalar< Highest >, PLMD::function::FunctionOfScalar< LessThan >, PLMD::function::FunctionOfScalar< LessThan >, PLMD::function::FunctionOfScalar< LessThan >, PLMD::function::FunctionOfScalar< LessThan >, PLMD::function::FunctionOfScalar< LessThan >, PLMD::function::FunctionOfScalar< LessThan >, PLMD::function::FunctionOfScalar< Moments >, PLMD::function::FunctionOfScalar< Moments >, PLMD::function::FunctionOfScalar< Moments >, PLMD::function::FunctionOfScalar< Moments >, PLMD::function::FunctionOfScalar< Moments >, PLMD::function::FunctionOfScalar< Moments >, PLMD::function::FunctionOfScalar< MoreThan >, PLMD::function::FunctionOfScalar< MoreThan >, PLMD::function::FunctionOfScalar< MoreThan >, PLMD::function::FunctionOfScalar< MoreThan >, PLMD::function::FunctionOfScalar< MoreThan >, PLMD::function::FunctionOfScalar< MoreThan >, PLMD::function::FunctionOfScalar< Piecewise >, PLMD::function::FunctionOfScalar< Piecewise >, PLMD::function::FunctionOfScalar< Piecewise >, PLMD::function::FunctionOfScalar< Piecewise >, PLMD::function::FunctionOfScalar< Piecewise >, PLMD::function::FunctionOfScalar< Piecewise >, PLMD::function::FunctionOfScalar< Sort >, PLMD::function::FunctionOfScalar< Sort >, PLMD::function::FunctionOfScalar< Sort >, PLMD::function::FunctionOfScalar< Sort >, PLMD::function::FunctionOfScalar< Sort >, PLMD::function::FunctionOfScalar< Sort >, PLMD::function::FunctionOfVector< CV, myPTM >, PLMD::function::FunctionOfVector< CV, myPTM >, PLMD::function::FunctionOfVector< CV, myPTM >, PLMD::function::FunctionOfVector< Bessel >, PLMD::function::FunctionOfVector< Bessel >, PLMD::function::FunctionOfVector< Bessel >, PLMD::function::FunctionOfVector< Bessel >, PLMD::function::FunctionOfVector< Bessel >, PLMD::function::FunctionOfVector< Bessel >, PLMD::function::FunctionOfVector< Between >, PLMD::function::FunctionOfVector< Between >, PLMD::function::FunctionOfVector< Between >, PLMD::function::FunctionOfVector< Between >, PLMD::function::FunctionOfVector< Between >, PLMD::function::FunctionOfVector< Between >, PLMD::function::FunctionOfVector< Combine >, PLMD::function::FunctionOfVector< Combine >, PLMD::function::FunctionOfVector< Combine >, PLMD::function::FunctionOfVector< Combine >, PLMD::function::FunctionOfVector< Combine >, PLMD::function::FunctionOfVector< Combine >, PLMD::function::FunctionOfVector< Custom >, PLMD::function::FunctionOfVector< Custom >, PLMD::function::FunctionOfVector< Custom >, PLMD::function::FunctionOfVector< Custom >, PLMD::function::FunctionOfVector< Custom >, PLMD::function::FunctionOfVector< Custom >, PLMD::function::FunctionOfVector< CV, myPTM >, PLMD::function::FunctionOfVector< CV, myPTM >, PLMD::function::FunctionOfVector< CV, myPTM >, PLMD::function::FunctionOfVector< CV, myPTM >, PLMD::function::FunctionOfVector< CV, myPTM >, PLMD::function::FunctionOfVector< CV, myPTM >, PLMD::function::FunctionOfVector< Difference >, PLMD::function::FunctionOfVector< Difference >, PLMD::function::FunctionOfVector< Difference >, PLMD::function::FunctionOfVector< Difference >, PLMD::function::FunctionOfVector< Difference >, PLMD::function::FunctionOfVector< Difference >, PLMD::function::FunctionOfVector< EvaluateGridFunction >, PLMD::function::FunctionOfVector< EvaluateGridFunction >, PLMD::function::FunctionOfVector< EvaluateGridFunction >, PLMD::function::FunctionOfVector< EvaluateGridFunction >, PLMD::function::FunctionOfVector< EvaluateGridFunction >, PLMD::function::FunctionOfVector< EvaluateGridFunction >, PLMD::function::FunctionOfVector< Highest >, PLMD::function::FunctionOfVector< Highest >, PLMD::function::FunctionOfVector< Highest >, PLMD::function::FunctionOfVector< Highest >, PLMD::function::FunctionOfVector< Highest >, PLMD::function::FunctionOfVector< Highest >, PLMD::function::FunctionOfVector< LessThan >, PLMD::function::FunctionOfVector< LessThan >, PLMD::function::FunctionOfVector< LessThan >, PLMD::function::FunctionOfVector< LessThan >, PLMD::function::FunctionOfVector< LessThan >, PLMD::function::FunctionOfVector< LessThan >, PLMD::function::FunctionOfVector< Moments >, PLMD::function::FunctionOfVector< Moments >, PLMD::function::FunctionOfVector< Moments >, PLMD::function::FunctionOfVector< Moments >, PLMD::function::FunctionOfVector< Moments >, PLMD::function::FunctionOfVector< Moments >, PLMD::function::FunctionOfVector< MoreThan >, PLMD::function::FunctionOfVector< MoreThan >, PLMD::function::FunctionOfVector< MoreThan >, PLMD::function::FunctionOfVector< MoreThan >, PLMD::function::FunctionOfVector< MoreThan >, PLMD::function::FunctionOfVector< MoreThan >, PLMD::function::FunctionOfVector< Sort >, PLMD::function::FunctionOfVector< Sort >, PLMD::function::FunctionOfVector< Sort >, PLMD::function::FunctionOfVector< Sort >, PLMD::function::FunctionOfVector< Sort >, PLMD::function::FunctionOfVector< Sort >, PLMD::function::FunctionWithSingleArgument< T >, PLMD::function::FunctionWithSingleArgument< Highest >, PLMD::function::FunctionWithSingleArgument< Highest >, PLMD::function::FunctionWithSingleArgument< Moments >, PLMD::function::FunctionWithSingleArgument< Moments >, PLMD::generic::Print, PLMD::generic::PrintNDX, PLMD::gridtools::FunctionOfGrid< T >, PLMD::gridtools::FunctionOfGrid< T >, PLMD::gridtools::FunctionOfGrid< function::Custom >, PLMD::gridtools::FunctionOfGrid< function::Custom >, PLMD::gridtools::FunctionOfGrid< function::Custom >, PLMD::gridtools::FunctionOfGrid< function::Custom >, PLMD::matrixtools::MatrixTimesVectorBase< CV, myPTM >, PLMD::matrixtools::MatrixTimesVectorBase< CV, myPTM >, PLMD::matrixtools::MatrixTimesVectorBase< CV, myPTM >, PLMD::matrixtools::MatrixTimesVectorBase< MatrixTimesVectorProper< double > >, PLMD::matrixtools::MatrixTimesVectorBase< MatrixTimesVectorProper< double > >, PLMD::matrixtools::MatrixTimesVectorBase< MatrixTimesVectorRowSums< double > >, and PLMD::matrixtools::MatrixTimesVectorBase< MatrixTimesVectorRowSums< double > >.

Friends And Related Symbol Documentation

◆ ActionShortcut

friend class ActionShortcut
friend

Member Data Documentation

◆ actionLabel

std::string PLMD::Action::actionLabel
private

Label of the Action, as set with LABEL= in the plumed.dat file.

◆ actionName

const std::string PLMD::Action::actionName
private

Name of the directive in the plumed.dat file.

◆ actionOptions

std::set<std::string> PLMD::Action::actionOptions
private

Option that you might have enabled.

◆ active

bool PLMD::Action::active
private

Switch to activate Action on this step.

◆ after

Dependencies PLMD::Action::after
private

Actions on which this Action depends.

◆ comm

Communicator& PLMD::Action::comm

Communicator of this replica: all the MPI processes running this PLUMED instance (set by the MD code with setMPIComm).

It is valid on every process.

◆ defaults

std::string PLMD::Action::defaults
private

The set of default arguments that we are using.

◆ doCheckPoint

bool PLMD::Action::doCheckPoint
private

◆ files

std::set<FILE*> PLMD::Action::files

◆ keywords

const Keywords& PLMD::Action::keywords

◆ linemap

KeyMap PLMD::Action::linemap
private

Directive line.

This line is progressively erased during Action construction so as to check if all the present keywords are correct.

◆ log

Log& PLMD::Action::log

Reference to the log stream.

◆ multi_sim_comm

Communicator& PLMD::Action::multi_sim_comm

Communicator between replicas, in multiple-replica simulations.

It holds one process per replica, namely process 0 of comm (set with GREX setMPIIntercomm or setMPImultiSimComm). It is valid only on process 0 of comm. On the other processes it is MPI_COMM_SELF, so Get_size() returns 1 and Get_rank() returns 0 whatever the number of replicas, and communication over it reaches no other replica. Code that needs the number of replicas or the replica index on every process must read them on process 0 of comm and broadcast them over comm:

unsigned nrep=0, irep=0;
if(comm.Get_rank()==0) {
nrep=multi_sim_comm.Get_size();
irep=multi_sim_comm.Get_rank();
}
comm.Bcast(nrep,0);
comm.Bcast(irep,0);
Communicator & multi_sim_comm
Communicator between replicas, in multiple-replica simulations.
Definition Action.h:247
Communicator & comm
Communicator of this replica: all the MPI processes running this PLUMED instance (set by the MD code ...
Definition Action.h:225
void Bcast(Data, int)
Wrapper for MPI_Bcast (data struct)
Definition Communicator.cpp:165

The same applies to communication over multi_sim_comm: do it on process 0 of comm, then broadcast the result over comm. For how MD codes set up these communicators, see Dealing with multiple replicas.

◆ never_activate

bool PLMD::Action::never_activate
private

◆ plumed

PlumedMain& PLMD::Action::plumed

Reference to main plumed object.

◆ replica_index

int PLMD::Action::replica_index
private

◆ restart

bool PLMD::Action::restart
private

◆ timestep

double PLMD::Action::timestep
private

Save the timestep here.

◆ update_from

double PLMD::Action::update_from
private

Update only after this time.

◆ update_until

double PLMD::Action::update_until
private

Update only until this time.


The documentation for this class was generated from the following files: