1 |
|
#ifndef __SIMINFO_H__ |
2 |
|
#define __SIMINFO_H__ |
3 |
|
|
4 |
– |
#include <cstdlib> |
4 |
|
|
5 |
+ |
|
6 |
|
#include "Atom.hpp" |
7 |
|
#include "Molecule.hpp" |
8 |
|
#include "AbstractClasses.hpp" |
12 |
|
|
13 |
|
public: |
14 |
|
|
15 |
< |
SimInfo(){ |
16 |
< |
excludes = NULL; |
17 |
< |
n_constraints = 0; |
18 |
< |
n_oriented = 0; |
19 |
< |
n_dipoles = 0; |
20 |
< |
longRange = NULL; |
21 |
< |
the_integrator = NULL; |
22 |
< |
setTemp = 0; |
23 |
< |
thermalTime = 0.0; |
24 |
< |
} |
15 |
> |
SimInfo(){} |
16 |
|
~SimInfo(){} |
17 |
|
|
18 |
|
int n_atoms; // the number of atoms |
39 |
|
LRI *longRange; // the long range force object |
40 |
|
|
41 |
|
double box_x, box_y, box_z; // the periodic boundry conditions |
42 |
+ |
double rList, rCut; // variables for the neighborlist |
43 |
|
|
44 |
|
double dt, run_time; // the time step and total time |
45 |
|
double sampleTime, statusTime; // the position and energy dump frequencies |
62 |
|
char sampleName[300]; // the name of the dump file to be written |
63 |
|
char statusName[300]; // the name of the stat file to be written |
64 |
|
|
65 |
+ |
|
66 |
+ |
// refreshes the sim if things get changed (lode balanceing, volume |
67 |
+ |
// adjustment, etc.) |
68 |
+ |
|
69 |
+ |
void refreshSim( void ); |
70 |
+ |
|
71 |
+ |
|
72 |
+ |
// sets the internal function pointer to fortran. |
73 |
+ |
|
74 |
+ |
void setInternal( void (*fSetup)( int*, double*, double*, double*) ){ |
75 |
+ |
setFsimulation = fSetup; |
76 |
+ |
} |
77 |
+ |
|
78 |
+ |
private: |
79 |
+ |
|
80 |
+ |
// function to wrap the fortran function |
81 |
+ |
void wrapMe(); |
82 |
+ |
|
83 |
+ |
// private function to initialize the fortran side of the simulation |
84 |
+ |
void (*setFsimulation)(int* nLocal, double *boxSizeArray, |
85 |
+ |
double* rList, double* rCut ); |
86 |
+ |
|
87 |
+ |
|
88 |
|
}; |
89 |
|
|
90 |
|
|