ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/utils/simError.h
(Generate patch)

Comparing trunk/src/utils/simError.h (file contents):
Revision 507 by gezelter, Fri Apr 15 22:04:00 2005 UTC vs.
Revision 1782 by gezelter, Wed Aug 22 02:28:28 2012 UTC

# Line 1 | Line 1
1
2 #ifndef __FORTRAN90
1   #ifndef UTILS_SIMERROR_H
2   #define UTILS_SIMERROR_H
3  
4   #define MAX_SIM_ERROR_MSG_LENGTH 2000
5  
6 < #define OOPSE_ERROR   1
7 < #define OOPSE_WARNING 2
8 < #define OOPSE_INFO    3
6 > #define OPENMD_ERROR   1
7 > #define OPENMD_WARNING 2
8 > #define OPENMD_INFO    3
9  
10   typedef struct{
11    char errMsg[MAX_SIM_ERROR_MSG_LENGTH];
12    int isFatal;
13    int severity;
16 #ifdef IS_MPI
14    int isEventLoop;
18 #endif // IS_MPI
15   } errorStruct;
16  
17   extern errorStruct painCave;
18  
23 #ifdef IS_MPI
24
19   extern char checkPointMsg[MAX_SIM_ERROR_MSG_LENGTH];
20  
21   extern int worldRank;
28 #endif
22  
23   #ifdef __cplusplus
24   extern "C" {
25 < #endif // __cplusplus
25 > #endif
26    
27 <  int simError( void ); // returns 1 if handled. 0 otherwise.
27 >  int simError( void );
28  
29 <  void initSimError( void ); // needed to be called from main before anything
37 <                             // goes wrong.
29 >  void initSimError( void );
30  
31 < #ifdef IS_MPI
32 <  
41 <  void MPIcheckPoint( void );
42 <  
43 < #endif // IS_MPI
44 <
31 >  void errorCheckPoint( void );
32 >                            
33   #ifdef __cplusplus
34   }
35 < #endif //__cplusplus
35 > #endif
36  
37 < #endif // __SIMERROR_H__
50 <
51 < #else // __FORTRAN90
52 <
53 <  INTEGER, PARAMETER:: OOPSE_ERROR   = 1
54 <  INTEGER, PARAMETER:: OOPSE_WARNING = 2
55 <  INTEGER, PARAMETER:: OOPSE_INFO    = 3
56 <  INTEGER, PARAMETER:: MAX_SIM_ERROR_MSG_LENGTH = 2000
57 <  
58 <  type, public :: errorStruct
59 <    PRIVATE
60 <    SEQUENCE
61 <    character(len = MAX_SIM_ERROR_MSG_LENGTH) :: errMsg
62 <    logical :: isFatal
63 <    integer :: severity
64 < #ifdef IS_MPI
65 <    logical :: isEventLoop;
66 < #endif // IS_MPI
67 <  end type errorStruct
68 <
69 <  type (errorStruct), public, save :: painCave
70 <
71 < #endif // __FORTRAN90
37 > #endif

Comparing trunk/src/utils/simError.h (property svn:keywords):
Revision 507 by gezelter, Fri Apr 15 22:04:00 2005 UTC vs.
Revision 1782 by gezelter, Wed Aug 22 02:28:28 2012 UTC

# Line 0 | Line 1
1 + Author Id Revision Date

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines