Ifpack Package Browser (Single Doxygen Collection) Development
Loading...
Searching...
No Matches
Macros
macros_dh.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FMAX(a, b)   ((FABS(a)) > (FABS(b)) ? (FABS(a)) : (FABS(b)))
 
#define MAX(a, b)   ((a) > (b) ? (a) : (b))
 
#define MIN(a, b)   ((a)<(b)?(a):(b))
 
#define ABS(x)   (((x)<0)?(-(x)):(x))
 
#define FABS(a)   ((a) < 0 ? -(a) : a)
 
#define _MATLAB_ZERO_   1e-100
 
#define ASSERT_DH(ptr)
 
#define CHECK_MPI_V_ERROR(errCode)
 
#define CHECK_MPI_ERROR(errCode)
 
#define SET_V_ERROR(msg)
 
#define SET_ERROR(retval, msg)
 
#define CHECK_V_ERROR
 
#define CHECK_ERROR(retval)
 
#define SET_INFO(msg)   setInfo_dh(msg, __FUNC__, __FILE__, __LINE__);
 
#define START_FUNC_DH
 
#define END_FUNC_DH
 
#define START_FUNC_DH_2
 
#define END_FUNC_DH_2
 
#define END_FUNC_VAL(retval)
 
#define END_FUNC_VAL_2(retval)
 

Macro Definition Documentation

◆ FMAX

#define FMAX ( a,
b )   ((FABS(a)) > (FABS(b)) ? (FABS(a)) : (FABS(b)))

Definition at line 47 of file macros_dh.h.

◆ MAX

#define MAX ( a,
b )   ((a) > (b) ? (a) : (b))

Definition at line 51 of file macros_dh.h.

◆ MIN

#define MIN ( a,
b )   ((a)<(b)?(a):(b))

Definition at line 55 of file macros_dh.h.

◆ ABS

#define ABS ( x)    (((x)<0)?(-(x)):(x))

Definition at line 59 of file macros_dh.h.

◆ FABS

#define FABS ( a)    ((a) < 0 ? -(a) : a)

Definition at line 63 of file macros_dh.h.

◆ _MATLAB_ZERO_

#define _MATLAB_ZERO_   1e-100

Definition at line 67 of file macros_dh.h.

◆ ASSERT_DH

#define ASSERT_DH ( ptr)
Value:
{ \
if (ptr == NULL) { \
sprintf(msgBuf_dh, "%s is NULL", ptr); \
SET_V_ERROR(msgBuf_dh); \
} \
}
char msgBuf_dh[MSG_BUF_SIZE_DH]

Definition at line 77 of file macros_dh.h.

◆ CHECK_MPI_V_ERROR

#define CHECK_MPI_V_ERROR ( errCode)
Value:
{ \
if (errCode) { \
setError_dh("MPI error!", __FUNC__, __FILE__, __LINE__); \
printErrorMsg(stderr); \
MPI_Abort(comm_dh, -1); \
} \
}
#define __FUNC__
Definition blas_dh.c:46
MPI_Comm comm_dh

Definition at line 108 of file macros_dh.h.

◆ CHECK_MPI_ERROR

#define CHECK_MPI_ERROR ( errCode)
Value:
{ \
if (errCode) { \
setError_dh("MPI error!", __FUNC__, __FILE__, __LINE__); \
printErrorMsg(stderr); \
MPI_Abort(comm_dh, -1); \
} \
}

Definition at line 117 of file macros_dh.h.

◆ SET_V_ERROR

#define SET_V_ERROR ( msg)
Value:
{ setError_dh(msg, __FUNC__, __FILE__, __LINE__); \
printErrorMsg(stderr); \
MPI_Abort(comm_dh, -1); \
}
void setError_dh(char *msg, char *function, char *file, int line)

Definition at line 126 of file macros_dh.h.

◆ SET_ERROR

#define SET_ERROR ( retval,
msg )
Value:
{ setError_dh(msg, __FUNC__, __FILE__, __LINE__); \
printErrorMsg(stderr); \
MPI_Abort(comm_dh, -1); \
}

Definition at line 132 of file macros_dh.h.

◆ CHECK_V_ERROR

#define CHECK_V_ERROR
Value:
if (errFlag_dh) { \
setError_dh("", __FUNC__, __FILE__, __LINE__); \
printErrorMsg(stderr); \
MPI_Abort(comm_dh, -1); \
}
bool errFlag_dh

Definition at line 138 of file macros_dh.h.

◆ CHECK_ERROR

#define CHECK_ERROR ( retval)
Value:
if (errFlag_dh) { \
setError_dh("", __FUNC__, __FILE__, __LINE__); \
printErrorMsg(stderr); \
MPI_Abort(comm_dh, -1); \
}

Definition at line 145 of file macros_dh.h.

◆ SET_INFO

#define SET_INFO ( msg)    setInfo_dh(msg, __FUNC__, __FILE__, __LINE__);

Definition at line 156 of file macros_dh.h.

◆ START_FUNC_DH

#define START_FUNC_DH
Value:
dh_StartFunc(__FUNC__, __FILE__, __LINE__, 1); \
Error_dhStartFunc(__FUNC__, __FILE__, __LINE__); \
{
bool logFuncsToStderr
void dh_StartFunc(char *function, char *file, int line, int priority)
bool logFuncsToFile

Definition at line 181 of file macros_dh.h.

◆ END_FUNC_DH

#define END_FUNC_DH
Value:
Error_dhEndFunc(__FUNC__); \
return; \
} \
void dh_EndFunc(char *function, int priority)

Definition at line 187 of file macros_dh.h.

◆ START_FUNC_DH_2

#define START_FUNC_DH_2
Value:
dh_StartFunc(__FUNC__, __FILE__, __LINE__, 2); \
Error_dhStartFunc(__FUNC__, __FILE__, __LINE__); \
{

Definition at line 194 of file macros_dh.h.

◆ END_FUNC_DH_2

#define END_FUNC_DH_2
Value:
Error_dhEndFunc(__FUNC__); \
return; \
} \

Definition at line 200 of file macros_dh.h.

◆ END_FUNC_VAL

#define END_FUNC_VAL ( retval)
Value:
Error_dhEndFunc(__FUNC__); \
return(retval); \
} \

Definition at line 208 of file macros_dh.h.

◆ END_FUNC_VAL_2

#define END_FUNC_VAL_2 ( retval)
Value:
Error_dhEndFunc(__FUNC__); \
return(retval); \
} \

Definition at line 215 of file macros_dh.h.