ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/headers/simError.h
Revision: 155
Committed: Thu Oct 24 20:40:49 2002 UTC (21 years, 9 months ago) by mmeineke
Content type: text/plain
File size: 607 byte(s)
Log Message:
finished work on the error handling struct and functions

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 __cplusplus
17 extern "C" {
18 #endif // __cplusplus
19
20 int simError( void ); // returns 1 if handled. 0 otherwise.
21
22 void initSimError( void ); // needed to be called from main before anything
23 // goes wrong.
24
25 #ifdef IS_MPI
26
27 void checkMPIError( void );
28
29 #endif // IS_MPI
30
31 #ifdef __cplusplus
32 }
33 #endif //__cplusplus
34
35 #endif // __SIMERROR_H__