23 #include "../EventListener.h"
24 #include <mxx/comm.hpp>
61 Method(
unsigned int frequency,
const MPI_Comm& world,
const MPI_Comm& comm) :
99 void SetCVMask(
const std::vector<unsigned int>& mask)
119 const MPI_Comm& world,
120 const MPI_Comm& comm,
121 const std::string& path);
Collective variable manager.
Base abstract class for listening in to events fired by "Hook".
Interface for Method implementations.
mxx::comm comm_
Local MPI communicator.
static Method * BuildMethod(const Json::Value &json, const MPI_Comm &world, const MPI_Comm &comm, const std::string &path)
Build a derived method from JSON node.
std::vector< unsigned int > cvmask_
Mask which identifies which CVs to act on.
void SetCVMask(const std::vector< unsigned int > &mask)
Sets the collective variable mask.
virtual void PostSimulation(Snapshot *snapshot, const class CVManager &cvmanager) override=0
Method call post simulation.
virtual void PreSimulation(Snapshot *snapshot, const class CVManager &cvmanager) override=0
Method call prior to simulation initiation.
mxx::comm world_
Global MPI communicator.
virtual ~Method()
Destructor.
Method(unsigned int frequency, const MPI_Comm &world, const MPI_Comm &comm)
Constructor.
virtual void PostIntegration(Snapshot *snapshot, const class CVManager &cvmanager) override=0
Method call post integration.
Class containing a snapshot of the current simulation in time.