22 #include <mxx/comm.hpp>
89 const std::vector<class Method*>& methods,
class CVManager* cvmanager);
Collective variable manager.
Base class for hooks into the simultion engines.
Base class for logging SSAGES data.
Class that handles SSAGES resources for a simulation.
ResourceHandler(mxx::comm &&world, mxx::comm &&comm, size_t walkerid, const std::vector< class Method * > &methods, class CVManager *cvmanager)
Constructor.
size_t GetWalkerID() const
Returns processor-specific walker ID.
class Snapshot * snapshot_
Snapshot of system state (pointer).
size_t walkerid_
Walker ID for specific driver.
class CVManager * cvmanager_
Collective variable manager.
~ResourceHandler()
Destructor.
size_t nwalkers_
Number of walkers.
class Hook * hook_
Hook pointer.
std::vector< class Method * > methods_
Vector of advanced sampling methods.
mxx::comm comm_
MPI communicator containing processors for specific walker.
class Logger * logger_
CV logger.
void ConfigureHook(class Hook *hook)
Configure the Hook from given resources.
size_t GetNumWalkers() const
Returns the total number of walkers across all processors.
mxx::comm world_
MPI communicator containing all processors.
std::vector< std::string > inputs_
Input file vector.
MPI_Comm GetWorldComm() const
Returns world (all processors) MPI communicator.
static ResourceHandler * Build(const Json::Value &json, const MPI_Comm &world)
Build a new ResourceHandler from JSON.
std::string GetInput() const
Returns inputs of the walker for the current processor.
MPI_Comm GetLocalComm() const
Returns local (walker-specific) MPI communicator.
const mxx::comm & GetWorldMxxComm() const
Returns world (all processors) mxx communicator.
const mxx::comm & GetLocalMxxComm() const
Returns local (walker-specific) mxx communicator.
Class containing a snapshot of the current simulation in time.