-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGlobals.h
32 lines (23 loc) · 1.52 KB
/
Globals.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
/*! \file Globals.h
* \brief A file which defines the variables shared throughout the Wator simulation.
*/
#ifndef GLOBALS_H
#define GLOBALS_H
float const WindowHeight = 800.0f; /*!< The height of the window to create. */
float const WindowWidth = 800.0f; /*!< The width of the window to create. */
int numThreads = 8; /*!< The number of threads to use.*/
#define NUMBER_OF_RUNS 3 /*!< The number of times the simulation should run. */
#define GRID_ROWS 4000 /*!< The number of rows in the grid. */
#define GRID_COLUMNS 4000 /*!< The number of columns in the grid. */
#define CYCLES_PER_FRAME 1 /*!< The number of cycles which must complete before an update occurs. */
#define N_SHARKS 16000 /*!< The initial number of sharks. */
#define N_FISH 16000 /*!< The initial number of fish. */
#define FISH_SPAWNRATE 3 /*!< The number of updates which must occur before a fish can spawn. */
#define SHARK_SPAWNRATE 7 /*!< The number of updates which must occur before a shark can spawn. */
#define SHARK_STARVERATE 6 /*!< The number of updates which must occur before a shark will die of starvation. */
#define INACTIVE_VALUE 24 /*!< The value to assign to the spawn counter when a fish or shark is inactive. */
#define DRAW_GRID 0 /*!< Whether the grid should be drawn or not. */
#define SIMULATION_LENGTH 15 /*!< The number of seconds to run for, when benchmarking. */
#define SHARK_LIST_LENGTH (GRID_ROWS*GRID_COLUMNS) /*!< The size of the shark array. */
#define FISH_LIST_LENGTH (GRID_ROWS*GRID_COLUMNS) /*!< size of the fish array. */
#endif