44 #ifndef EUCLID_CONF_DH
45 #define EUCLID_CONF_DH
47 #if defined(Ifpack_SHOW_DEPRECATED_WARNINGS)
49 #warning "The Ifpack package is deprecated"
53 #define MAX_MPI_TASKS 50000
56 #define TRIPLES_FORMAT "%i %i %1.8e\n"
59 #undef PRIVATE_TIMING_DH
73 #define EUCLID_EXIT MPI_Abort(comm_dh, -1)
75 #define EUCLID_EXIT exit(-1);
78 #define EXIT_NOW(msg) \
79 { setError_dh(msg, __FUNC__, __FILE__, __LINE__); \
85 setError_dh("", __FUNC__, __FILE__, __LINE__); \
86 if (logFile != NULL) { \
87 printErrorMsg(logFile); \
90 printErrorMsg(stderr); \
92 Mem_dhPrint(mem_dh, stderr, false); \
97 #define ERRCHKA_CHKERRA(ierr) \
99 setError_dh("", __FUNC__, __FILE__, __LINE__); \
100 if (logFile != NULL) { \
101 printErrorMsg(logFile); \
102 fprintf(logFile, "\n[%i] ierr = %i, errFlag_dh = %i\n", myid_dh, ierr, errFlag_dh); \
105 printErrorMsg(stderr); \
106 fprintf(stderr, "\n[%i] ierr = %i, errFlag_dh = %i\n", myid_dh, ierr, errFlag_dh); \
111 #define MAX_SUBDOMAINS 20
120 #define PIVOT_FIX_DEFAULT 1e-3
129 #define MALLOC_DH(s) Mem_dhMalloc(mem_dh, (s))
130 #define FREE_DH(p) Mem_dhFree(mem_dh, p)
136 #define PRIVATE_MALLOC malloc
137 #define PRIVATE_FREE free