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