ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE_old/src/mdtools/libBASS/simError.h
Revision: 267
Committed: Thu Feb 13 20:37:36 2003 UTC (21 years, 6 months ago) by mmeineke
Content type: text/plain
File size: 691 byte(s)
Log Message:
Successfully added all the source for libBASS

File Contents

# User Rev Content
1 mmeineke 267 #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__