su2hmc
|
This header is intended to be a useful reference for error codes and their meanings. More...
Go to the source code of this file.
Macros | |
#define | OPENERROR 10001 |
#define | READERROR 10002 |
#define | WRITERROR 10003 |
#define | ARGERROR 10004 |
#define | OPENWARN 10101 |
#define | READWARN 10102 |
#define | WRITEWARN 10103 |
#define | ARGWARN 10104 |
#define | INDTOCOORD 11001 |
#define | COORDTOIND 11002 |
#define | BOUNDERROR 11003 |
#define | ARRAYLEN 11004 |
#define | CPYERROR 11005 |
#define | BOUNDWARN 11103 |
#define | LIMWARN 11104 |
#define | CPYWARN 11105 |
#define | NO_MPI_INIT 12001 |
#define | NO_MPI_RANK 12002 |
#define | NO_MPI_SIZE 12003 |
#define | SIZEPROC 12004 |
#define | NUMELEM 12005 |
#define | CANTSEND 12006 |
#define | CANTRECV 12007 |
#define | BROADERR 12008 |
#define | REDUCERR 12009 |
#define | GATHERR 12010 |
#define | DIFNPROC 12101 |
#define | LAYERROR 13001 |
#define | HALOLIM 13002 |
#define | DIVZERO 14001 |
#define | ITERLIM 14101 |
#define | FITWARN 14102 |
#define | NOINIT 14201 |
#define | BLOCKERROR 15001 |
#define | BLOCKWARN 15101 |
#define | BLOCKALERT 15201 |
This header is intended to be a useful reference for error codes and their meanings.
By placing all the error codes in one file I hope to make it easier to diagnose any potential issues that crop up, and create a logical and consistent labelling system for error codes.
Error codes will take the following format: XXYZZ where XX is the category of code (File Related, Index Related etc.) Y is the severity (0 for error, 1 for warning and more to be added later) ZZ is the identifying code.
Hopefully two digits should be enough to cover all possibilities.
The way I intend the codes to be used is fprintf(stderr, "Error %i in %s: Description of what happened\nExiting...\n\n", CODE, funcname,\ anything else to be printed); It goes without saying that the Exiting bit should only be used if actually exiting the programme and can be replaced with other text. Same with the first word Error for warnings etc.
Definition in file errorcodes.h.
#define ARGERROR 10004 |
Definition at line 33 of file errorcodes.h.
#define ARGWARN 10104 |
Definition at line 40 of file errorcodes.h.
#define ARRAYLEN 11004 |
Definition at line 52 of file errorcodes.h.
#define BLOCKALERT 15201 |
Definition at line 112 of file errorcodes.h.
#define BLOCKERROR 15001 |
Definition at line 104 of file errorcodes.h.
#define BLOCKWARN 15101 |
Definition at line 108 of file errorcodes.h.
#define BOUNDERROR 11003 |
Definition at line 51 of file errorcodes.h.
#define BOUNDWARN 11103 |
Definition at line 56 of file errorcodes.h.
#define BROADERR 12008 |
Definition at line 71 of file errorcodes.h.
#define CANTRECV 12007 |
Definition at line 70 of file errorcodes.h.
#define CANTSEND 12006 |
Definition at line 69 of file errorcodes.h.
#define COORDTOIND 11002 |
Definition at line 50 of file errorcodes.h.
#define CPYERROR 11005 |
Definition at line 53 of file errorcodes.h.
#define CPYWARN 11105 |
Definition at line 58 of file errorcodes.h.
#define DIFNPROC 12101 |
Definition at line 76 of file errorcodes.h.
#define DIVZERO 14001 |
Definition at line 89 of file errorcodes.h.
#define FITWARN 14102 |
Definition at line 94 of file errorcodes.h.
#define GATHERR 12010 |
Definition at line 73 of file errorcodes.h.
#define HALOLIM 13002 |
Definition at line 83 of file errorcodes.h.
#define INDTOCOORD 11001 |
Definition at line 49 of file errorcodes.h.
#define ITERLIM 14101 |
Definition at line 93 of file errorcodes.h.
#define LAYERROR 13001 |
Definition at line 82 of file errorcodes.h.
#define LIMWARN 11104 |
Definition at line 57 of file errorcodes.h.
#define NO_MPI_INIT 12001 |
Definition at line 64 of file errorcodes.h.
#define NO_MPI_RANK 12002 |
Definition at line 65 of file errorcodes.h.
#define NO_MPI_SIZE 12003 |
Definition at line 66 of file errorcodes.h.
#define NOINIT 14201 |
Definition at line 98 of file errorcodes.h.
#define NUMELEM 12005 |
Definition at line 68 of file errorcodes.h.
#define OPENERROR 10001 |
Definition at line 30 of file errorcodes.h.
#define OPENWARN 10101 |
Definition at line 37 of file errorcodes.h.
#define READERROR 10002 |
Definition at line 31 of file errorcodes.h.
#define READWARN 10102 |
Definition at line 38 of file errorcodes.h.
#define REDUCERR 12009 |
Definition at line 72 of file errorcodes.h.
#define SIZEPROC 12004 |
Definition at line 67 of file errorcodes.h.
#define WRITERROR 10003 |
Definition at line 32 of file errorcodes.h.
#define WRITEWARN 10103 |
Definition at line 39 of file errorcodes.h.