--- trunk/mdtools/BASS_parse/BASS_parse.c 2002/10/16 21:07:02 138 +++ trunk/mdtools/BASS_parse/BASS_parse.c 2002/10/30 22:38:22 160 @@ -3,17 +3,16 @@ #include #include "BASS_parse.h" - +#include "../headers/simError.h" #ifdef IS_MPI #define __is_lex__ #include "../headers/mpiBASS.h" #endif #define HASH_SIZE 211 // the size of the hash table -#define SHIFT 4 // the bit shift for the hash index calculation +#define SHIFT 4 // the bit shift for the hash index - //*** Global functions, variables, and structures ************ unsigned short is_initialized = 0; // tells whether to init the linked list @@ -184,11 +183,10 @@ char* get_definition( char* defined ){ // search failed, therefore there is an error - fprintf( stderr, "%s was not found in the defined list\n", defined ); -#ifdef IS_MPI - mpiInterfaceExit(); -#endif - exit(0); + sprintf( painCave.errMsg, "%s was not found in the defined list\n", + defined ); + painCave.isFatal = 1; + simError(); return NULL; } @@ -270,12 +268,10 @@ int hash ( char* text ){ // if the key is less than zero, we've had an overflow error - fprintf( stderr, - "There has been an overflow error in the hash key."); -#ifdef IS_MPI - mpiInterfaceExit(); -#endif - exit(0); + sprintf( painCave.errMsg, + "Bass Parse: There has been an overflow error in the hash key."); + painCave.isFatal =1; + simError(); } return key;