1 |
#include <iostream> |
2 |
#include <fstream> |
3 |
#include <cstdlib> |
4 |
#include <cmath> |
5 |
#include <cstring> |
6 |
|
7 |
|
8 |
#include "../../inc/SimSetup.hpp" |
9 |
#include "../../inc/SimInfo.hpp" |
10 |
#include "../../inc/Atom.hpp" |
11 |
#include "../../inc/Integrator.hpp" |
12 |
#include "../../inc/Thermo.hpp" |
13 |
#include "../../inc/ReadWrite.hpp" |
14 |
|
15 |
char* program_name; |
16 |
using namespace std; |
17 |
|
18 |
int main(int argc,char* argv[]){ |
19 |
|
20 |
int i; |
21 |
unsigned int n_atoms, eo, xo; |
22 |
char* in_name; |
23 |
SimSetup* startMe; |
24 |
SimInfo* entry_plug; |
25 |
Thermo* tStats; |
26 |
int hand_made = 0; |
27 |
|
28 |
Atom** atoms; |
29 |
SRI** the_sris; |
30 |
LRI** the_lris; |
31 |
|
32 |
int n_bonds; |
33 |
int n_bends; |
34 |
int n_torsions; |
35 |
int n_SRI; |
36 |
int n_LRI; |
37 |
int n_exclude; |
38 |
|
39 |
|
40 |
srand48( 1337 ); // initialize the random number generator. |
41 |
|
42 |
|
43 |
program_name = argv[0]; /*save the program name in case we need it*/ |
44 |
if( argc < 2 ){ |
45 |
cerr<< "Error, bass file is needed to run.\n"; |
46 |
exit(8); |
47 |
} |
48 |
|
49 |
|
50 |
in_name = argv[1]; |
51 |
entry_plug = new SimInfo; |
52 |
|
53 |
startMe = new SimSetup; |
54 |
startMe->setSimInfo( entry_plug ); |
55 |
startMe->parseFile( in_name ); |
56 |
startMe->createSim(); |
57 |
|
58 |
delete startMe; |
59 |
|
60 |
entry_plug->the_integrator->integrate(); |
61 |
|
62 |
return 0 ; |
63 |
} |
64 |
|
65 |
|