covid-sim
Loading...
Searching...
No Matches
Constants.h
1#ifndef COVIDSIM_CONSTANTS_H_INCLUDED_
2#define COVIDSIM_CONSTANTS_H_INCLUDED_
3
14constexpr double PI = 3.1415926535; // full double precision: 3.14159265358979323846
15
23constexpr int NMI = 1852;
24
30constexpr int ARCMINUTES_PER_DEGREE = 60;
31
37constexpr int DEGREES_PER_TURN = 360;
38
45constexpr int EARTH_CIRCUMFERENCE = NMI * ARCMINUTES_PER_DEGREE * DEGREES_PER_TURN;
46
50constexpr double EARTH_DIAMETER = EARTH_CIRCUMFERENCE / PI;
51
64constexpr double EARTHRADIUS = EARTH_DIAMETER / 2;
65
66const int OUTPUT_DIST_SCALE = 1000;
67const int MAX_PLACE_SIZE = 20000;
68const int MAX_NUM_SEED_LOCATIONS = 10000;
69
70const int CDF_RES = 20;
71const int INFPROF_RES = 56;
72
73const int NUM_AGE_GROUPS = 17;
74const int AGE_GROUP_WIDTH = 5;
75const int DAYS_PER_YEAR = 364;
76const int INFECT_TYPE_MASK = 16;
77const int MAX_GEN_REC = 20;
78const int MAX_SEC_REC = 500;
79const int INF_QUEUE_SCALE = 5;
80const int MAX_TRAVEL_TIME = 14;
81
82const int MAX_INFECTIOUS_STEPS = 2550;
83
84// define maximum number of contacts
85const int MAX_CONTACTS = 500;
86
87const int MAX_DUR_IMPORT_PROFILE = 10245;
88
89const int MAX_AIRPORTS = 5000;
90const int NNA = 10;
91// Need to use define for MAX_DIST_AIRPORT_TO_HOTEL to avoid differences between GCC and clang in requirements to share const doubles in OpenMP default(none) pragmas
92#define MAX_DIST_AIRPORT_TO_HOTEL 200000.0
93const int MIN_HOTELS_PER_AIRPORT = 20;
94const int HOTELS_PER_1000PASSENGER = 10;
95
96const int MAX_NUM_INTERVENTION_CHANGE_TIMES = 100; // may want to make this intervention-specifc, but keep simple for now.
97
98#endif // COVIDSIM_CONSTANTS_H_INCLUDED_