| 9 |
|
|
| 10 |
|
#include "fortranWrappers.hpp" |
| 11 |
|
|
| 12 |
+ |
#ifdef IS_MPI |
| 13 |
+ |
#include "mpiSimulation.hpp" |
| 14 |
+ |
#endif |
| 15 |
+ |
|
| 16 |
|
SimInfo* currentInfo; |
| 17 |
|
|
| 18 |
|
SimInfo::SimInfo(){ |
| 132 |
|
|
| 133 |
|
simtype fInfo; |
| 134 |
|
int isError; |
| 135 |
+ |
int n_global; |
| 136 |
|
int* excl; |
| 137 |
|
|
| 138 |
|
fInfo.rrf = 0.0; |
| 166 |
|
|
| 167 |
|
excl = Exclude::getArray(); |
| 168 |
|
|
| 169 |
+ |
#ifdef IS_MPI |
| 170 |
+ |
n_global = mpiSim->getTotAtoms(); |
| 171 |
+ |
#else |
| 172 |
+ |
n_global = n_atoms; |
| 173 |
+ |
#endif |
| 174 |
+ |
|
| 175 |
|
isError = 0; |
| 176 |
|
|
| 177 |
< |
setFsimulation( &fInfo, &n_atoms, identArray, &n_exclude, excl, |
| 177 |
> |
setFsimulation( &fInfo, &n_global, &n_atoms, identArray, &n_exclude, excl, |
| 178 |
|
&nGlobalExcludes, globalExcludes, molMembershipArray, |
| 179 |
|
&isError ); |
| 180 |
|
|