--- trunk/OOPSE/libmdtools/SimInfo.cpp 2003/04/08 22:38:43 482 +++ trunk/OOPSE/libmdtools/SimInfo.cpp 2003/04/11 15:16:59 490 @@ -9,6 +9,10 @@ #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,20 +166,18 @@ void SimInfo::refreshSim(){ excl = Exclude::getArray(); +#ifdef IS_MPI + n_global = mpiSim->getTotAtoms(); +#else + n_global = n_atoms; +#endif + isError = 0; -// fInfo; -// n_atoms; -// identArray; -// n_exclude; -// excludes; -// nGlobalExcludes; -// globalExcludes; -// isError; + setFsimulation( &fInfo, &n_global, &n_atoms, identArray, &n_exclude, excl, + &nGlobalExcludes, globalExcludes, molMembershipArray, + &isError ); - setFsimulation( &fInfo, &n_atoms, identArray, &n_exclude, excl, - &nGlobalExcludes, globalExcludes, &isError ); - if( isError ){ sprintf( painCave.errMsg,