My Project
main.cpp
Go to the documentation of this file.
1 #include<iostream>
2 #include"simulation.hpp"
3 
4 using namespace std;
5 
6 int main(int argc, char* agrv[]){
7  cout << agrv[2] << endl;
8  if (argc > 2)
9  {
10  // Run only simulation with friction calculated in parallel
11  vector<std::string> args;
12  copy(agrv + 1, agrv + argc, std::back_inserter(args));
13  if(args[1] == "-friction")
14  {
15  Simulation simulation(agrv[1], true);
16  }
17  // Test readParameters
18  else if (argc > 2)
19  {
20  DebugParameters parameters(agrv[1]);
21  parameters.debugTest();
22  }
23  }
24 
25  else if(argc > 1){
26  cout << agrv[1] << endl;
27  DebugSimulation simulation(agrv[1]);
28  simulation.main();
29  }
30 
31 
32  return 0;
33 }
int main(int argc, char *agrv[])
Definition: main.cpp:6