-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.h
58 lines (47 loc) · 1.71 KB
/
settings.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
50
51
52
53
54
55
56
57
58
#ifndef SETTINGS_H
#define SETTINGS_H
#include "constants.h"
#include <boost/program_options.hpp>
#include <iosfwd>
// Also, make the interpolation type changeable - degree for
enum GabbleSampleInterpolator {
GABBLE_INTERPOLATOR_LINEAR,
GABBLE_INTERPOLATOR_SPLINE_2,
GABBLE_INTERPOLATOR_SPLINE_3,
GABBLE_INTERPOLATOR_SPLINE_4,
GABBLE_INTERPOLATOR_SPLINE_5
};
const unsigned GabbleSplineOrder = 1;
#define GABBLE_INTERPOLATOR GABBLE_INTERPOLATOR_LINEAR
#define GABBLE_INTERPOLATOR_IS_LINEAR 1
//#define GABBLE_INTERPOLATOR_IS_SPLINE 0
// #if GABBLE_INTERPOLATOR == GABBLE_INTERPOLATOR_SPLINE_2
// # warning GABBLE_INTERPOLATOR_SPLINE_2
// # warning "SPLINE-2"
// # define GABBLE_INTERPOLATOR_IS_SPLINE 1
// const unsigned GabbleSplineOrder = 2;
// #elif GABBLE_INTERPOLATOR == GABBLE_INTERPOLATOR_SPLINE_3
// # warning "SPLINE-3"
// # define GABBLE_INTERPOLATOR_IS_SPLINE 1
// const unsigned GabbleSplineOrder = 3;
// #elif GABBLE_INTERPOLATOR == GABBLE_INTERPOLATOR_SPLINE_4
// # warning "SPLINE-4"
// # define GABBLE_INTERPOLATOR_IS_SPLINE 1
// const unsigned GabbleSplineOrder = 4;
// #elif GABBLE_INTERPOLATOR == GABBLE_INTERPOLATOR_SPLINE_5
// # warning "SPLINE-5"
// # define GABBLE_INTERPOLATOR_IS_SPLINE 1
// const unsigned GabbleSplineOrder = 5;
// #else
// # define GABBLE_INTERPOLATOR_IS_LINEAR 1
// #endif
#define WANT_GRID_BOUNDS_CHECKING 0
//#define WANT_GRID_BOUNDS_CHECKING 1
//#define WANT_SNAPSHOTS 0
#define WANT_SNAPSHOTS 1
namespace po = boost::program_options;
extern po::variables_map g_vm;
extern po::variables_map& set_up_options(
int argc, char** argv, po::options_description& config);
extern void dump_settings(po::variables_map const& vm, std::ostream& os);
#endif // SETTINGS_H