Page MenuHomec4science

system_evolution.hh
No OneTemporary

File Metadata

Created
Fri, Mar 29, 13:50

system_evolution.hh

#ifndef __SYSTEM_EVOLUTION__HH__
#define __SYSTEM_EVOLUTION__HH__
/* -------------------------------------------------------------------------- */
#include "compute.hh"
#include "system.hh"
/* -------------------------------------------------------------------------- */
//! Manager for system evolution
class SystemEvolution {
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public:
//! Construct using existing system (takes ownership)
SystemEvolution(std::unique_ptr<System> system);
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public:
//! Evolve all time steps
void evolve();
//! Add compute to list of computes
void addCompute(const std::shared_ptr<Compute>& compute);
//! Get the system object
System& getSystem();
void setNSteps(UInt nsteps);
void setDumpFreq(UInt freq);
/* ------------------------------------------------------------------------ */
/* Members */
/* ------------------------------------------------------------------------ */
protected:
std::vector<std::shared_ptr<Compute>> computes;
std::unique_ptr<System> system;
UInt nsteps, freq;
};
/* -------------------------------------------------------------------------- */
#endif //__SYSTEM_EVOLUTION__HH__

Event Timeline