su2hmc
Loading...
Searching...
No Matches
errorcodes.h File Reference

This header is intended to be a useful reference for error codes and their meanings. More...

This graph shows which files directly or indirectly include this file:

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
 

Detailed Description

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.

Macro Definition Documentation

◆ ARGERROR

#define ARGERROR   10004

Definition at line 33 of file errorcodes.h.

◆ ARGWARN

#define ARGWARN   10104

Definition at line 40 of file errorcodes.h.

◆ ARRAYLEN

#define ARRAYLEN   11004

Definition at line 52 of file errorcodes.h.

◆ BLOCKALERT

#define BLOCKALERT   15201

Definition at line 112 of file errorcodes.h.

◆ BLOCKERROR

#define BLOCKERROR   15001

Definition at line 104 of file errorcodes.h.

◆ BLOCKWARN

#define BLOCKWARN   15101

Definition at line 108 of file errorcodes.h.

◆ BOUNDERROR

#define BOUNDERROR   11003

Definition at line 51 of file errorcodes.h.

◆ BOUNDWARN

#define BOUNDWARN   11103

Definition at line 56 of file errorcodes.h.

◆ BROADERR

#define BROADERR   12008

Definition at line 71 of file errorcodes.h.

◆ CANTRECV

#define CANTRECV   12007

Definition at line 70 of file errorcodes.h.

◆ CANTSEND

#define CANTSEND   12006

Definition at line 69 of file errorcodes.h.

◆ COORDTOIND

#define COORDTOIND   11002

Definition at line 50 of file errorcodes.h.

◆ CPYERROR

#define CPYERROR   11005

Definition at line 53 of file errorcodes.h.

◆ CPYWARN

#define CPYWARN   11105

Definition at line 58 of file errorcodes.h.

◆ DIFNPROC

#define DIFNPROC   12101

Definition at line 76 of file errorcodes.h.

◆ DIVZERO

#define DIVZERO   14001

Definition at line 89 of file errorcodes.h.

◆ FITWARN

#define FITWARN   14102

Definition at line 94 of file errorcodes.h.

◆ GATHERR

#define GATHERR   12010

Definition at line 73 of file errorcodes.h.

◆ HALOLIM

#define HALOLIM   13002

Definition at line 83 of file errorcodes.h.

◆ INDTOCOORD

#define INDTOCOORD   11001

Definition at line 49 of file errorcodes.h.

◆ ITERLIM

#define ITERLIM   14101

Definition at line 93 of file errorcodes.h.

◆ LAYERROR

#define LAYERROR   13001

Definition at line 82 of file errorcodes.h.

◆ LIMWARN

#define LIMWARN   11104

Definition at line 57 of file errorcodes.h.

◆ NO_MPI_INIT

#define NO_MPI_INIT   12001

Definition at line 64 of file errorcodes.h.

◆ NO_MPI_RANK

#define NO_MPI_RANK   12002

Definition at line 65 of file errorcodes.h.

◆ NO_MPI_SIZE

#define NO_MPI_SIZE   12003

Definition at line 66 of file errorcodes.h.

◆ NOINIT

#define NOINIT   14201

Definition at line 98 of file errorcodes.h.

◆ NUMELEM

#define NUMELEM   12005

Definition at line 68 of file errorcodes.h.

◆ OPENERROR

#define OPENERROR   10001

Definition at line 30 of file errorcodes.h.

◆ OPENWARN

#define OPENWARN   10101

Definition at line 37 of file errorcodes.h.

◆ READERROR

#define READERROR   10002

Definition at line 31 of file errorcodes.h.

◆ READWARN

#define READWARN   10102

Definition at line 38 of file errorcodes.h.

◆ REDUCERR

#define REDUCERR   12009

Definition at line 72 of file errorcodes.h.

◆ SIZEPROC

#define SIZEPROC   12004

Definition at line 67 of file errorcodes.h.

◆ WRITERROR

#define WRITERROR   10003

Definition at line 32 of file errorcodes.h.

◆ WRITEWARN

#define WRITEWARN   10103

Definition at line 39 of file errorcodes.h.