--- trunk/mdtools/interface_implementation/Globals.cpp 2002/10/30 22:38:22 160 +++ trunk/mdtools/interface_implementation/Globals.cpp 2002/11/14 22:00:44 176 @@ -3,6 +3,7 @@ #include #include "Globals.hpp" +#include "mpiBASS.h" #include "simError.h" /* @@ -798,6 +799,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;