22 #include <mxx/comm.hpp>
24 #include "EventListener.h"
69 Logger(
unsigned int frequency,
const std::string& filename,
const MPI_Comm& world,
const MPI_Comm& comm) :
128 const MPI_Comm& world,
129 const MPI_Comm& comm,
130 const std::string& path);
Collective variable manager.
Base abstract class for listening in to events fired by "Hook".
Base class for logging SSAGES data.
mxx::comm comm_
Local MPI communicator.
std::vector< unsigned int > cvmask_
Mask which identifies which CVs to log.
void SetAppend(bool append)
Set append mode.
void SetCVMask(const std::vector< unsigned int > &mask)
Sets the collective variable mask.
Logger(unsigned int frequency, const std::string &filename, const MPI_Comm &world, const MPI_Comm &comm)
Constructor.
std::ofstream log_
Log file stream.
virtual void PostIntegration(Snapshot *snapshot, const class CVManager &cvmanager) override
Logger call post integration.
virtual ~Logger()
Destructor.
virtual void PreSimulation(Snapshot *snapshot, const class CVManager &cvmanager) override
Logger call prior to simulation initiation.
mxx::comm world_
Global MPI communicator.
std::string filename_
Name of logfile.
static Logger * Build(const Json::Value &json, const MPI_Comm &world, const MPI_Comm &comm, const std::string &path)
Build a Logger from JSON node.
virtual void PostSimulation(Snapshot *snapshot, const class CVManager &cvmanager) override
Logger call post simulation.
Class containing a snapshot of the current simulation in time.