| 3 |
|
#include <cstring> |
| 4 |
|
|
| 5 |
|
#include "Globals.hpp" |
| 6 |
+ |
#include "mpiBASS.h" |
| 7 |
+ |
#include "simError.h" |
| 8 |
|
|
| 9 |
|
/* |
| 10 |
|
* The following section lists all of the defined tokens for the |
| 795 |
|
|
| 796 |
|
// if the key is less than zero, we've had an overflow error |
| 797 |
|
|
| 798 |
< |
fprintf( stderr, |
| 798 |
> |
sprintf( painCave.errMsg, |
| 799 |
|
"There has been an overflow error in the Globals' hash key."); |
| 800 |
< |
exit(0); |
| 800 |
> |
painCave.isFatal = 1; |
| 801 |
> |
simError(); |
| 802 |
> |
#ifdef IS_MPI |
| 803 |
> |
if( painCave.isEventLoop ){ |
| 804 |
> |
if( worldRank == 0 ) mpiInterfaceExit(); |
| 805 |
> |
} |
| 806 |
> |
#endif //is_mpi |
| 807 |
|
} |
| 808 |
|
|
| 809 |
|
return key; |
| 820 |
|
key = hash( text ); |
| 821 |
|
the_element->setNext( command_table[key] ); |
| 822 |
|
command_table[key] = the_element; |
| 823 |
< |
}; |
| 823 |
> |
} |