--- trunk/mdtools/interface_implementation/Globals.cpp 2002/10/30 22:38:22 160 +++ trunk/mdtools/interface_implementation/Globals.cpp 2002/11/18 21:24:02 178 @@ -4,6 +4,9 @@ #include "Globals.hpp" #include "simError.h" +#ifdef IS_MPI +#include "mpiBASS.h" +#endif // is_mpi /* * The following section lists all of the defined tokens for the @@ -798,6 +801,11 @@ int Globals::hash( char* text ){ "There has been an overflow error in the Globals' hash key."); painCave.isFatal = 1; simError(); +#ifdef IS_MPI + if( painCave.isEventLoop ){ + if( worldRank == 0 ) mpiInterfaceExit(); + } +#endif //is_mpi } return key;