OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
simError.h
1#ifndef UTILS_SIMERROR_H
2#define UTILS_SIMERROR_H
3
4#define MAX_SIM_ERROR_MSG_LENGTH 2000
5
6#define OPENMD_ERROR 1
7#define OPENMD_WARNING 2
8#define OPENMD_INFO 3
9
10typedef struct{
11 char errMsg[MAX_SIM_ERROR_MSG_LENGTH];
12 int isFatal;
13 int severity;
14 int isEventLoop;
16
17extern errorStruct painCave;
18
19extern char checkPointMsg[MAX_SIM_ERROR_MSG_LENGTH];
20
21extern int worldRank;
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27 int simError( void );
28
29 void initSimError( void );
30
31 void errorCheckPoint( void );
32
33#ifdef __cplusplus
34}
35#endif
36
37#endif