Ifpack Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

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

Definition at line 53 of file macros_dh.h.

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

Definition at line 57 of file macros_dh.h.

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

Definition at line 61 of file macros_dh.h.

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

Definition at line 65 of file macros_dh.h.

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

Definition at line 69 of file macros_dh.h.

#define _MATLAB_ZERO_   1e-100

Definition at line 73 of file macros_dh.h.

#define ASSERT_DH (   ptr)
Value:
{ \
if (ptr == NULL) { \
sprintf(msgBuf_dh, "%s is NULL", ptr); \
} \
}
#define SET_V_ERROR(msg)
Definition: macros_dh.h:132
char msgBuf_dh[MSG_BUF_SIZE_DH]
Definition: globalObjects.c:61

Definition at line 83 of file macros_dh.h.

#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:141
MPI_Comm comm_dh
Definition: globalObjects.c:64
void printErrorMsg(FILE *fp)
void setError_dh(char *msg, char *function, char *file, int line)

Definition at line 114 of file macros_dh.h.

#define CHECK_MPI_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:141
MPI_Comm comm_dh
Definition: globalObjects.c:64
void printErrorMsg(FILE *fp)
void setError_dh(char *msg, char *function, char *file, int line)

Definition at line 123 of file macros_dh.h.

#define SET_V_ERROR (   msg)
Value:
{ setError_dh(msg, __FUNC__, __FILE__, __LINE__); \
printErrorMsg(stderr); \
MPI_Abort(comm_dh, -1); \
}
#define __FUNC__
Definition: blas_dh.c:141
MPI_Comm comm_dh
Definition: globalObjects.c:64
void printErrorMsg(FILE *fp)
void setError_dh(char *msg, char *function, char *file, int line)

Definition at line 132 of file macros_dh.h.

#define SET_ERROR (   retval,
  msg 
)
Value:
{ setError_dh(msg, __FUNC__, __FILE__, __LINE__); \
printErrorMsg(stderr); \
MPI_Abort(comm_dh, -1); \
}
#define __FUNC__
Definition: blas_dh.c:141
MPI_Comm comm_dh
Definition: globalObjects.c:64
void printErrorMsg(FILE *fp)
void setError_dh(char *msg, char *function, char *file, int line)

Definition at line 138 of file macros_dh.h.

#define CHECK_V_ERROR
Value:
if (errFlag_dh) { \
setError_dh("", __FUNC__, __FILE__, __LINE__); \
printErrorMsg(stderr); \
MPI_Abort(comm_dh, -1); \
}
bool errFlag_dh
Definition: globalObjects.c:56
#define __FUNC__
Definition: blas_dh.c:141
MPI_Comm comm_dh
Definition: globalObjects.c:64
void printErrorMsg(FILE *fp)
void setError_dh(char *msg, char *function, char *file, int line)

Definition at line 144 of file macros_dh.h.

#define CHECK_ERROR (   retval)
Value:
if (errFlag_dh) { \
setError_dh("", __FUNC__, __FILE__, __LINE__); \
printErrorMsg(stderr); \
MPI_Abort(comm_dh, -1); \
}
bool errFlag_dh
Definition: globalObjects.c:56
#define __FUNC__
Definition: blas_dh.c:141
MPI_Comm comm_dh
Definition: globalObjects.c:64
void printErrorMsg(FILE *fp)
void setError_dh(char *msg, char *function, char *file, int line)

Definition at line 151 of file macros_dh.h.

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

Definition at line 162 of file macros_dh.h.

#define START_FUNC_DH
Value:
dh_StartFunc(__FUNC__, __FILE__, __LINE__, 1); \
Error_dhStartFunc(__FUNC__, __FILE__, __LINE__); \
{
bool logFuncsToStderr
Definition: globalObjects.c:77
void dh_StartFunc(char *function, char *file, int line, int priority)
#define __FUNC__
Definition: blas_dh.c:141
void Error_dhStartFunc(char *function, char *file, int line)
bool logFuncsToFile
Definition: globalObjects.c:78

Definition at line 187 of file macros_dh.h.

#define END_FUNC_DH
Value:
return; \
} \
bool logFuncsToStderr
Definition: globalObjects.c:77
#define __FUNC__
Definition: blas_dh.c:141
void Error_dhEndFunc(char *function)
void dh_EndFunc(char *function, int priority)
bool logFuncsToFile
Definition: globalObjects.c:78

Definition at line 193 of file macros_dh.h.

#define START_FUNC_DH_2
Value:
dh_StartFunc(__FUNC__, __FILE__, __LINE__, 2); \
Error_dhStartFunc(__FUNC__, __FILE__, __LINE__); \
{
bool logFuncsToStderr
Definition: globalObjects.c:77
void dh_StartFunc(char *function, char *file, int line, int priority)
#define __FUNC__
Definition: blas_dh.c:141
void Error_dhStartFunc(char *function, char *file, int line)
bool logFuncsToFile
Definition: globalObjects.c:78

Definition at line 200 of file macros_dh.h.

#define END_FUNC_DH_2
Value:
return; \
} \
bool logFuncsToStderr
Definition: globalObjects.c:77
#define __FUNC__
Definition: blas_dh.c:141
void Error_dhEndFunc(char *function)
void dh_EndFunc(char *function, int priority)
bool logFuncsToFile
Definition: globalObjects.c:78

Definition at line 206 of file macros_dh.h.

#define END_FUNC_VAL (   retval)
Value:
return(retval); \
} \
bool logFuncsToStderr
Definition: globalObjects.c:77
#define __FUNC__
Definition: blas_dh.c:141
void Error_dhEndFunc(char *function)
void dh_EndFunc(char *function, int priority)
bool logFuncsToFile
Definition: globalObjects.c:78

Definition at line 214 of file macros_dh.h.

#define END_FUNC_VAL_2 (   retval)
Value:
return(retval); \
} \
bool logFuncsToStderr
Definition: globalObjects.c:77
#define __FUNC__
Definition: blas_dh.c:141
void Error_dhEndFunc(char *function)
void dh_EndFunc(char *function, int priority)
bool logFuncsToFile
Definition: globalObjects.c:78

Definition at line 221 of file macros_dh.h.