ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/headers/simError.h
Revision: 184
Committed: Thu Nov 21 20:33:06 2002 UTC (21 years, 8 months ago) by mmeineke
Content type: text/plain
File size: 712 byte(s)
Log Message:
*** empty log message ***

File Contents

# Content
1 #ifndef __SIMERROR_H__
2 #define __SIMERROR_H__
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;
11
12 #ifdef IS_MPI
13 int isEventLoop;
14 #endif // IS_MPI
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 MPIcheckPoint( void );
36
37 #endif // IS_MPI
38
39 #ifdef __cplusplus
40 }
41 #endif //__cplusplus
42
43 #endif // __SIMERROR_H__