--- trunk/OOPSE/libmdtools/SimInfo.cpp 2003/04/10 20:08:56 489 +++ trunk/OOPSE/libmdtools/SimInfo.cpp 2003/04/11 15:16:59 490 @@ -9,6 +9,10 @@ SimInfo* currentInfo; #include "fortranWrappers.hpp" +#ifdef IS_MPI +#include "mpiSimulation.hpp" +#endif + SimInfo* currentInfo; SimInfo::SimInfo(){ @@ -128,6 +132,7 @@ void SimInfo::refreshSim(){ simtype fInfo; int isError; + int n_global; int* excl; fInfo.rrf = 0.0; @@ -161,9 +166,15 @@ void SimInfo::refreshSim(){ excl = Exclude::getArray(); +#ifdef IS_MPI + n_global = mpiSim->getTotAtoms(); +#else + n_global = n_atoms; +#endif + isError = 0; - setFsimulation( &fInfo, &n_atoms, identArray, &n_exclude, excl, + setFsimulation( &fInfo, &n_global, &n_atoms, identArray, &n_exclude, excl, &nGlobalExcludes, globalExcludes, molMembershipArray, &isError );