blob: 7ffda0dabd4ca4c37334b4fcbe9af7d40804dec4 (
plain)
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
50
51
52
53
54
55
|
// -*- mode: c++ -*-
//
// Purpose: Read-in functionality to define parameters at runtime
// Based on the implementation of Morales-Hernandez /et al./'s SERGHEI
//
#ifndef PARSER_HPP
#define PARSER_HPP
#include "header.hpp"
class ParserLine
{
public:
std::string line;
std::string key;
std::stringstream value;
void parse();
};
class Parser
{
public:
std::string surface_mesh_file;
std::string surface_data_file;
std::string subsurface_mesh_file;
std::string subsurface_data_file;
std::vector<std::string> surface_data_group;
std::vector<double> surface_time;
std::vector<std::string> subsurface_data_group;
std::vector<double> subsurface_time;
int n_agent;
int n_iteration;
int seed;
int surface_np;
int subsurface_np;
double fuzz;
void read_options(std::string fname);
};
#endif
|