-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSimulation.h
49 lines (36 loc) · 1.01 KB
/
Simulation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef DT_SIMULATION_H
#define DT_SIMULATION_H
#include <map>
#include <ctime>
#include "Triangulation.h"
#include "Observable.h"
class Simulation
{
public:
Simulation(Triangulation * const & triangulation, int ThermalizationSweeps, int SecondsPerOutput, bool output=false );
~Simulation(void);
void AddObservable(Observable * observable, int SweepsPerMeasurement);
void Run();
void Output();
void AddConfigurationInfo(std::string info);
void SetDirectory(const std::string & dir);
std::string GetIdentifier() const;
private:
void setStartTime();
Triangulation * const triangulation_;
int thermalization_sweeps_;
int seconds_per_output_;
bool output_;
int sweeps_;
time_t start_time_;
std::string identifier_;
std::string process_id_;
std::string directory_;
std::string prefix_;
struct MeasurementInfo {
int SweepsPerMeasurement;
};
std::map<Observable *,MeasurementInfo> observables_;
std::vector<std::string> configuration_info_;
};
#endif