--- trunk/mdtools/headers/simError.h 2002/10/22 22:12:39 153 +++ trunk/mdtools/headers/simError.h 2002/11/21 20:33:06 184 @@ -3,6 +3,8 @@ #define MAX_SIM_ERROR_MSG_LENGTH 2000 +#define TESTWRITE 2 + struct errorStruct { char errMsg[MAX_SIM_ERROR_MSG_LENGTH]; int isFatal; @@ -13,16 +15,24 @@ struct errorStruct { } painCave; +#ifdef IS_MPI +char checkPointMsg[MAX_SIM_ERROR_MSG_LENGTH]; +int worldRank; +#endif + #ifdef __cplusplus extern "C" { #endif // __cplusplus int simError( void ); // returns 1 if handled. 0 otherwise. + void initSimError( void ); // needed to be called from main before anything + // goes wrong. + #ifdef IS_MPI - void checkMPIError( void ); + void MPIcheckPoint( void ); #endif // IS_MPI