covid-sim
Constants.h
1 #ifndef COVIDSIM_CONSTANTS_H_INCLUDED_
2 #define COVIDSIM_CONSTANTS_H_INCLUDED_
3 
14 constexpr double PI = 3.1415926535; // full double precision: 3.14159265358979323846
15 
23 constexpr int NMI = 1852;
24 
30 constexpr int ARCMINUTES_PER_DEGREE = 60;
31 
37 constexpr int DEGREES_PER_TURN = 360;
38 
45 constexpr int EARTH_CIRCUMFERENCE = NMI * ARCMINUTES_PER_DEGREE * DEGREES_PER_TURN;
46 
50 constexpr double EARTH_DIAMETER = EARTH_CIRCUMFERENCE / PI;
51 
64 constexpr double EARTHRADIUS = EARTH_DIAMETER / 2;
65 
66 const int OUTPUT_DIST_SCALE = 1000;
67 const int MAX_PLACE_SIZE = 20000;
68 const int MAX_NUM_SEED_LOCATIONS = 10000;
69 
70 const int CDF_RES = 20;
71 const int INFPROF_RES = 56;
72 
73 const int NUM_AGE_GROUPS = 17;
74 const int AGE_GROUP_WIDTH = 5;
75 const int DAYS_PER_YEAR = 364;
76 const int INFECT_TYPE_MASK = 16;
77 const int MAX_GEN_REC = 20;
78 const int MAX_SEC_REC = 500;
79 const int INF_QUEUE_SCALE = 5;
80 const int MAX_TRAVEL_TIME = 14;
81 
82 const int MAX_INFECTIOUS_STEPS = 2550;
83 
84 // define maximum number of contacts
85 const int MAX_CONTACTS = 500;
86 
87 const int MAX_DUR_IMPORT_PROFILE = 10245;
88 
89 const int MAX_AIRPORTS = 5000;
90 const 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
93 const int MIN_HOTELS_PER_AIRPORT = 20;
94 const int HOTELS_PER_1000PASSENGER = 10;
95 
96 const 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_