4 |
|
|
5 |
|
#include "BASS_parse.h" |
6 |
|
|
7 |
+ |
#ifdef IS_MPI |
8 |
+ |
#define __is_lex__ |
9 |
+ |
#include "../headers/mpiInterface.h" |
10 |
+ |
#endif |
11 |
+ |
|
12 |
|
#define HASH_SIZE 211 // the size of the hash table |
13 |
|
#define SHIFT 4 // the bit shift for the hash index calculation |
14 |
|
|
185 |
|
// search failed, therefore there is an error |
186 |
|
|
187 |
|
fprintf( stderr, "%s was not found in the defined list\n", defined ); |
188 |
< |
exit(1); |
188 |
> |
#ifdef IS_MPI |
189 |
> |
mpiInterfaceExit(); |
190 |
> |
#endif |
191 |
> |
exit(0); |
192 |
> |
return NULL; |
193 |
|
} |
194 |
|
|
195 |
|
/* |
272 |
|
|
273 |
|
fprintf( stderr, |
274 |
|
"There has been an overflow error in the hash key."); |
275 |
+ |
#ifdef IS_MPI |
276 |
+ |
mpiInterfaceExit(); |
277 |
+ |
#endif |
278 |
|
exit(0); |
279 |
|
} |
280 |
|
|