44 #ifndef EUCLID_CONF_DH
45 #define EUCLID_CONF_DH
47 #define MAX_MPI_TASKS 50000
50 #define TRIPLES_FORMAT "%i %i %1.8e\n"
53 #undef PRIVATE_TIMING_DH
67 #define EUCLID_EXIT MPI_Abort(comm_dh, -1)
69 #define EUCLID_EXIT exit(-1);
72 #define EXIT_NOW(msg) \
73 { setError_dh(msg, __FUNC__, __FILE__, __LINE__); \
79 setError_dh("", __FUNC__, __FILE__, __LINE__); \
80 if (logFile != NULL) { \
81 printErrorMsg(logFile); \
84 printErrorMsg(stderr); \
86 Mem_dhPrint(mem_dh, stderr, false); \
91 #define ERRCHKA_CHKERRA(ierr) \
93 setError_dh("", __FUNC__, __FILE__, __LINE__); \
94 if (logFile != NULL) { \
95 printErrorMsg(logFile); \
96 fprintf(logFile, "\n[%i] ierr = %i, errFlag_dh = %i\n", myid_dh, ierr, errFlag_dh); \
99 printErrorMsg(stderr); \
100 fprintf(stderr, "\n[%i] ierr = %i, errFlag_dh = %i\n", myid_dh, ierr, errFlag_dh); \
105 #define MAX_SUBDOMAINS 20
114 #define PIVOT_FIX_DEFAULT 1e-3
123 #define MALLOC_DH(s) Mem_dhMalloc(mem_dh, (s))
124 #define FREE_DH(p) Mem_dhFree(mem_dh, p)
130 #define PRIVATE_MALLOC malloc
131 #define PRIVATE_FREE free