Revision: | 153 |
Committed: | Tue Oct 22 22:12:39 2002 UTC (22 years, 6 months ago) by mmeineke |
Content type: | text/plain |
File size: | 485 byte(s) |
Log Message: | started work on a global error handling scheme |
# | User | Rev | Content |
---|---|---|---|
1 | mmeineke | 153 | #ifndef __SIMERROR_H__ |
2 | #define __SIMERROR_H__ | ||
3 | |||
4 | #define MAX_SIM_ERROR_MSG_LENGTH 2000 | ||
5 | |||
6 | struct errorStruct { | ||
7 | char errMsg[MAX_SIM_ERROR_MSG_LENGTH]; | ||
8 | int isFatal; | ||
9 | |||
10 | #ifdef IS_MPI | ||
11 | int isEventLoop; | ||
12 | #endif // IS_MPI | ||
13 | |||
14 | } painCave; | ||
15 | |||
16 | |||
17 | #ifdef __cplusplus | ||
18 | extern "C" { | ||
19 | #endif // __cplusplus | ||
20 | |||
21 | int simError( void ); // returns 1 if handled. 0 otherwise. | ||
22 | |||
23 | #ifdef IS_MPI | ||
24 | |||
25 | void checkMPIError( void ); | ||
26 | |||
27 | #endif // IS_MPI | ||
28 | |||
29 | #ifdef __cplusplus | ||
30 | } | ||
31 | #endif //__cplusplus | ||
32 | |||
33 | #endif // __SIMERROR_H__ |