su2hmc
Loading...
Searching...
No Matches
errorcodes.h
Go to the documentation of this file.
1
23#ifndef ERRORCODES
24#define ERRORCODES
25
26//File I/O Errors. Leading digits are 10
27//======================================
28//Errors:
29//-------
30#define OPENERROR 10001
31#define READERROR 10002
32#define WRITERROR 10003
33#define ARGERROR 10004
34
35//Warnings:
36//---------
37#define OPENWARN 10101
38#define READWARN 10102
39#define WRITEWARN 10103
40#define ARGWARN 10104
41
42/*
43 * @section memerr Memory Errors.
44 * Leading digits are 11
45 */
46//======================================
47//Errors:
48//-------
49#define INDTOCOORD 11001
50#define COORDTOIND 11002
51#define BOUNDERROR 11003
52#define ARRAYLEN 11004
53#define CPYERROR 11005
54 //Warnings:
55 //---------
56#define BOUNDWARN 11103
57#define LIMWARN 11104
58#define CPYWARN 11105
59
60//MPI Errors. Leading digits are 12
61//================================
62//Errors:
63//------
64#define NO_MPI_INIT 12001 //Failed to initialise MPI
65#define NO_MPI_RANK 12002 //Failed to get the rank of the process
66#define NO_MPI_SIZE 12003 //Failed to get the number of ranks
67#define SIZEPROC 12004 //
68#define NUMELEM 12005 //Failed to evaluate the number of elements
69#define CANTSEND 12006 //Couldn't send to another process
70#define CANTRECV 12007 //Couldn't receive from a process
71#define BROADERR 12008 //Couldn't broadcast to the processes
72#define REDUCERR 12009 //Couldn't carry out a reduction
73#define GATHERR 12010 //Couldn't complete a gather
74 //Warnings:
75 //---------
76#define DIFNPROC 12101 //Continuation run on a different number of ranks
77
78//Halo Errors. Leading digits are 13
79//=================================
80//Errors:
81//-------
82#define LAYERROR 13001 //Can't access a layer of a halo
83#define HALOLIM 13002 //Index goes beyond the halo
84
85//Physics/Maths Errors. Leading digits are 14
86//=================================
87//Errors:
88//-------
89#define DIVZERO 14001 //Not quite an indexing error, bu division by zero
90
91//Warnings:
92//--------
93#define ITERLIM 14101 //Exceeded max number of iterations
94#define FITWARN 14102 //Fitting function has repeated x value
95
96//Alerts:
97//------
98#define NOINIT 14201 //Not initialising the lattice
99
100//CUDA Errors. Leading digits are 15
101//==================================
102//Errors:
103//------
104#define BLOCKERROR 15001
105
106//Warnings:
107//------
108#define BLOCKWARN 15101
109
110//ALERT:
111//------
112#define BLOCKALERT 15201
113#endif