| 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 | 
< | 
//   fInfo; | 
| 178 | 
< | 
//   n_atoms;  | 
| 179 | 
< | 
//   identArray; | 
| 169 | 
< | 
//   n_exclude; | 
| 170 | 
< | 
//   excludes; | 
| 171 | 
< | 
//   nGlobalExcludes; | 
| 172 | 
< | 
//   globalExcludes; | 
| 173 | 
< | 
//   isError; | 
| 177 | 
> | 
  setFsimulation( &fInfo, &n_global, &n_atoms, identArray, &n_exclude, excl,  | 
| 178 | 
> | 
                  &nGlobalExcludes, globalExcludes, molMembershipArray,  | 
| 179 | 
> | 
                  &isError ); | 
| 180 | 
  | 
 | 
| 175 | 
– | 
  setFsimulation( &fInfo, &n_atoms, identArray, &n_exclude, excl,  | 
| 176 | 
– | 
                  &nGlobalExcludes, globalExcludes, &isError ); | 
| 177 | 
– | 
 | 
| 181 | 
  | 
  if( isError ){ | 
| 182 | 
  | 
 | 
| 183 | 
  | 
    sprintf( painCave.errMsg, |