--- trunk/mdtools/BASS_parse/BASS_parse.c 2002/09/24 22:10:55 117 +++ trunk/mdtools/BASS_parse/BASS_parse.c 2002/10/11 15:09:01 133 @@ -4,6 +4,11 @@ #include "BASS_parse.h" +#ifdef IS_MPI +#define __is_lex__ +#include "../headers/mpiInterface.h" +#endif + #define HASH_SIZE 211 // the size of the hash table #define SHIFT 4 // the bit shift for the hash index calculation @@ -180,7 +185,11 @@ char* get_definition( char* defined ){ // search failed, therefore there is an error fprintf( stderr, "%s was not found in the defined list\n", defined ); - exit(1); +#ifdef IS_MPI + mpiInterfaceExit(); +#endif + exit(0); + return NULL; } /* @@ -263,6 +272,9 @@ int hash ( char* text ){ fprintf( stderr, "There has been an overflow error in the hash key."); +#ifdef IS_MPI + mpiInterfaceExit(); +#endif exit(0); }