-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
38 lines (33 loc) · 1.18 KB
/
main.cpp
File metadata and controls
38 lines (33 loc) · 1.18 KB
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
#include <iostream>
#include "include/Cube.h"
#include "Area.h"
#include <limits>
#include <math.h>
using namespace std;
int main() {
Area MA;
//cout << "Please enter the path of the file you want to load : " << endl;
//string path = "area_templates/11_40_vulcano.wsim";
string path = "area_templates/11_40_vulcano.wsim";
//cin >> path;
MA.LoadAreaStructureTemplate(path);
cout << "Loaded area-structure-template successfully." << endl;
MA.initSimulation();
double simulationTimeStep = 10;
double displayTimeStep = 1;
bool printEveryCalc = false;
cout << "Started Simulation" << endl;
MA.simulate(simulationTimeStep,displayTimeStep,printEveryCalc);
/*
double *simulationValuesAr = MA.simulateTimeStep(simulationTimeStep,1);
int CubesCountLength = simulationValuesAr[0];
int CubesCountWidth = simulationValuesAr[1];
cout << CubesCountLength << endl;
cout << CubesCountWidth << endl;
int CounterMax = CubesCountLength * CubesCountWidth + 2;
for (int Counter = 2; Counter < CounterMax; Counter++) {
cout << simulationValuesAr[Counter];
}*/
cout << "Simulation has ended" << endl;
MA.DestroyArea();
}