--- trunk/mdtools/interface_implementation/Globals.cpp 2002/10/11 15:09:09 134 +++ trunk/mdtools/interface_implementation/Globals.cpp 2002/11/14 22:00:44 176 @@ -3,6 +3,8 @@ #include #include "Globals.hpp" +#include "mpiBASS.h" +#include "simError.h" /* * The following section lists all of the defined tokens for the @@ -793,9 +795,15 @@ int Globals::hash( char* text ){ // if the key is less than zero, we've had an overflow error - fprintf( stderr, + sprintf( painCave.errMsg, "There has been an overflow error in the Globals' hash key."); - exit(0); + painCave.isFatal = 1; + simError(); +#ifdef IS_MPI + if( painCave.isEventLoop ){ + if( worldRank == 0 ) mpiInterfaceExit(); + } +#endif //is_mpi } return key;