-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
31 lines (26 loc) · 859 Bytes
/
main.cpp
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
#include "gfun.h"
#include "input.h"
#include "ext.h"
#include "pdf.h"
#include "pdf2d.h"
#include "msd.h"
int main(int argc, char **argv)
{
//read in the parameters.
//INPUT has been generated in input.cpp
INPUT.Init("INPUT",argc);
// The program has several subroutines.
// Each subroutine has its unit function.
// Until now, there are just PDF and MSD can be choosed.
if(INPUT.calculation == "pdf"){PDF pdf; pdf.Routine();}
else if(INPUT.calculation == "msd"){MSD msd; msd.Routine();}
else
{
cout << " calculation=" <<INPUT.calculation << endl;
QUIT("No 'calculation' available");
}
cout << " -------------- " << endl;
cout << " Finish " << endl;
cout << " -------------- " << endl;
return 0;
}