Line | |
---|
1 | #include <iostream> |
---|
2 | #include <vector> |
---|
3 | #include <string> |
---|
4 | #include "simulation.h" |
---|
5 | using namespace std; |
---|
6 | /* |
---|
7 | ################################################################################################################################### |
---|
8 | |
---|
9 | main part who is called at the beginning of a simulation |
---|
10 | |
---|
11 | ################################################################################################################################### |
---|
12 | */ |
---|
13 | |
---|
14 | int main(int argc, char* argv[]) |
---|
15 | { |
---|
16 | |
---|
17 | Simulation simul; |
---|
18 | |
---|
19 | string inputfile; |
---|
20 | |
---|
21 | string outputpath; |
---|
22 | |
---|
23 | if ((argc == 1) || (argc == 2)) { |
---|
24 | cerr << "Warning: you must put the path to the collimator file as first paramenter and the path to the ouptut folder as second parameter!!" << endl; |
---|
25 | } |
---|
26 | |
---|
27 | inputfile = argv[1]; |
---|
28 | outputpath = argv[2]; |
---|
29 | |
---|
30 | |
---|
31 | simul.run(inputfile, outputpath); |
---|
32 | |
---|
33 | return 0; |
---|
34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.