| 3 |
|
|
| 4 |
|
#define MAX_SIM_ERROR_MSG_LENGTH 2000 |
| 5 |
|
|
| 6 |
+ |
#define TESTWRITE 2 |
| 7 |
+ |
|
| 8 |
|
struct errorStruct { |
| 9 |
|
char errMsg[MAX_SIM_ERROR_MSG_LENGTH]; |
| 10 |
|
int isFatal; |
| 15 |
|
|
| 16 |
|
} painCave; |
| 17 |
|
|
| 18 |
+ |
#ifdef IS_MPI |
| 19 |
+ |
char checkPointMsg[MAX_SIM_ERROR_MSG_LENGTH]; |
| 20 |
|
|
| 21 |
+ |
int worldRank; |
| 22 |
+ |
#endif |
| 23 |
+ |
|
| 24 |
|
#ifdef __cplusplus |
| 25 |
|
extern "C" { |
| 26 |
|
#endif // __cplusplus |
| 27 |
|
|
| 28 |
|
int simError( void ); // returns 1 if handled. 0 otherwise. |
| 29 |
|
|
| 30 |
+ |
void initSimError( void ); // needed to be called from main before anything |
| 31 |
+ |
// goes wrong. |
| 32 |
+ |
|
| 33 |
|
#ifdef IS_MPI |
| 34 |
|
|
| 35 |
< |
void checkMPIError( void ); |
| 35 |
> |
void MPIcheckPoint( void ); |
| 36 |
|
|
| 37 |
|
#endif // IS_MPI |
| 38 |
|
|