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 564 by tim, Wed Jul 13 15:54:00 2005 UTC vs.
Revision 1390 by gezelter, Wed Nov 25 20:02:06 2009 UTC

# Line 5 | Line 5
5  
6   #define MAX_SIM_ERROR_MSG_LENGTH 2000
7  
8 < #define OOPSE_ERROR   1
9 < #define OOPSE_WARNING 2
10 < #define OOPSE_INFO    3
8 > #define OPENMD_ERROR   1
9 > #define OPENMD_WARNING 2
10 > #define OPENMD_INFO    3
11  
12   typedef struct{
13    char errMsg[MAX_SIM_ERROR_MSG_LENGTH];
14    int isFatal;
15    int severity;
16 #ifdef IS_MPI
16    int isEventLoop;
18 #endif
17   } errorStruct;
18  
19   extern errorStruct painCave;
20  
23 #ifdef IS_MPI
24
21   extern char checkPointMsg[MAX_SIM_ERROR_MSG_LENGTH];
22  
23   extern int worldRank;
28 #endif
24  
25   #ifdef __cplusplus
26   extern "C" {
# Line 34 | Line 29 | extern "C" {
29    int simError( void );
30  
31    void initSimError( void );
37                            
32  
33 < #ifdef IS_MPI
34 <  
41 <  void MPIcheckPoint( void );
42 <  
43 < #endif
44 <
33 >  void errorCheckPoint( void );
34 >                            
35   #ifdef __cplusplus
36   }
37   #endif
# Line 50 | Line 40 | extern "C" {
40  
41   #else
42  
43 <  INTEGER, PARAMETER:: OOPSE_ERROR   = 1
44 <  INTEGER, PARAMETER:: OOPSE_WARNING = 2
45 <  INTEGER, PARAMETER:: OOPSE_INFO    = 3
43 >  INTEGER, PARAMETER:: OPENMD_ERROR   = 1
44 >  INTEGER, PARAMETER:: OPENMD_WARNING = 2
45 >  INTEGER, PARAMETER:: OPENMD_INFO    = 3
46    INTEGER, PARAMETER:: MAX_SIM_ERROR_MSG_LENGTH = 2000
47    
48    type, public :: errorStruct
# Line 61 | Line 51 | extern "C" {
51      character(len = MAX_SIM_ERROR_MSG_LENGTH) :: errMsg
52      logical :: isFatal
53      integer :: severity
64 #ifdef IS_MPI
54      logical :: isEventLoop;
66 #endif
55    end type errorStruct
56  
57    type (errorStruct), public, save :: painCave

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines