8 |
|
#include "AbstractClasses.hpp" |
9 |
|
#include "MakeStamps.hpp" |
10 |
|
|
11 |
+ |
#define __C |
12 |
+ |
#include "fSimulation.h" |
13 |
+ |
|
14 |
+ |
|
15 |
|
class SimInfo{ |
16 |
|
|
17 |
|
public: |
21 |
|
|
22 |
|
int n_atoms; // the number of atoms |
23 |
|
Atom **atoms; // the array of atom objects |
24 |
+ |
|
25 |
+ |
double tau[9]; // the stress tensor |
26 |
|
|
27 |
|
unsigned int n_bonds; // number of bends |
28 |
|
unsigned int n_bends; // number of bends |
47 |
|
|
48 |
|
double box_x, box_y, box_z; // the periodic boundry conditions |
49 |
|
double rList, rCut; // variables for the neighborlist |
50 |
+ |
double usePBC; // whether we use periodic boundry conditions. |
51 |
|
|
52 |
|
double dt, run_time; // the time step and total time |
53 |
|
double sampleTime, statusTime; // the position and energy dump frequencies |
63 |
|
LinkedMolStamp* headStamp; // list of stamps used in the simulation |
64 |
|
|
65 |
|
|
66 |
< |
|
66 |
> |
char ensemble[100]; // the enesemble of the simulation (NVT, NVE, etc. ) |
67 |
> |
char mixingRule[100]; // the mixing rules for Lennard jones/van der walls |
68 |
|
Integrator *the_integrator; // the integrator of the simulation |
69 |
|
|
70 |
|
char finalName[300]; // the name of the eor file to be written |
72 |
|
char statusName[300]; // the name of the stat file to be written |
73 |
|
|
74 |
|
|
75 |
< |
// refreshes the sim if things get changed (lode balanceing, volume |
75 |
> |
// refreshes the sim if things get changed (load balanceing, volume |
76 |
|
// adjustment, etc.) |
77 |
|
|
78 |
|
void refreshSim( void ); |
80 |
|
|
81 |
|
// sets the internal function pointer to fortran. |
82 |
|
|
83 |
< |
void setInternal( void (*fSetup)( int*, double*, double*, double*) ){ |
83 |
> |
void setInternal( void (*fSetup)( simtype*, int* ) ){ |
84 |
|
setFsimulation = fSetup; |
85 |
|
} |
86 |
|
|
90 |
|
void wrapMe(); |
91 |
|
|
92 |
|
// private function to initialize the fortran side of the simulation |
93 |
< |
void (*setFsimulation)(int* nLocal, double *boxSizeArray, |
86 |
< |
double* rList, double* rCut ); |
93 |
> |
void (*setFsimulation)( simtype* the_Info, int* isError ); |
94 |
|
|
95 |
|
|
96 |
|
}; |