ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/headers/simError.h
Revision: 189
Committed: Tue Nov 26 21:04:43 2002 UTC (21 years, 7 months ago) by mmeineke
Content type: text/plain
File size: 691 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 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 #ifdef IS_MPI
17 char checkPointMsg[MAX_SIM_ERROR_MSG_LENGTH];
18
19 int worldRank;
20 #endif
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif // __cplusplus
25
26 int simError( void ); // returns 1 if handled. 0 otherwise.
27
28 void initSimError( void ); // needed to be called from main before anything
29 // goes wrong.
30
31 #ifdef IS_MPI
32
33 void MPIcheckPoint( void );
34
35 #endif // IS_MPI
36
37 #ifdef __cplusplus
38 }
39 #endif //__cplusplus
40
41 #endif // __SIMERROR_H__