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

Go to the source code of this file.

Defines

#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)

Define Documentation

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

Definition at line 34 of file macros_dh.h.

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

Definition at line 38 of file macros_dh.h.

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

Definition at line 42 of file macros_dh.h.

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

Definition at line 46 of file macros_dh.h.

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

Definition at line 50 of file macros_dh.h.

#define _MATLAB_ZERO_   1e-100

Definition at line 54 of file macros_dh.h.

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

Definition at line 64 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); \
        } \
      }

Definition at line 95 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); \
        } \
      }

Definition at line 104 of file macros_dh.h.

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

Definition at line 113 of file macros_dh.h.

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

Definition at line 119 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); \
          }

Definition at line 125 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); \
          }

Definition at line 132 of file macros_dh.h.

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

Definition at line 143 of file macros_dh.h.

#define START_FUNC_DH
Value:
dh_StartFunc(__FUNC__, __FILE__, __LINE__, 1); \
          if (logFuncsToStderr || logFuncsToFile)\
            Error_dhStartFunc(__FUNC__, __FILE__, __LINE__); \
          {

Definition at line 168 of file macros_dh.h.

#define END_FUNC_DH
Value:

Definition at line 174 of file macros_dh.h.

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

Definition at line 181 of file macros_dh.h.

#define END_FUNC_DH_2
Value:

Definition at line 187 of file macros_dh.h.

#define END_FUNC_VAL (   retval)
Value:
dh_EndFunc(__FUNC__, 1); \
          if (logFuncsToStderr || logFuncsToFile) \
            Error_dhEndFunc(__FUNC__); \
          return(retval); \
          } \

Definition at line 195 of file macros_dh.h.

#define END_FUNC_VAL_2 (   retval)
Value:
dh_EndFunc(__FUNC__, 2); \
          if (logFuncsToStderr || logFuncsToFile) \
            Error_dhEndFunc(__FUNC__); \
          return(retval); \
          } \

Definition at line 202 of file macros_dh.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines