--- trunk/mdtools/interface_implementation/Globals.cpp 2002/09/25 22:51:14 118 +++ trunk/mdtools/interface_implementation/Globals.cpp 2002/11/18 21:24:02 178 @@ -3,6 +3,10 @@ #include #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 @@ -793,9 +797,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; @@ -812,4 +822,4 @@ void Globals::addHash( char* text, int token ){ key = hash( text ); the_element->setNext( command_table[key] ); command_table[key] = the_element; -}; +}