43 #ifndef _IFPACK_CONFIGDEFS_H_
44 #define _IFPACK_CONFIGDEFS_H_
59 #ifdef PACKAGE_BUGREPORT
60 #undef PACKAGE_BUGREPORT
67 #ifdef PACKAGE_TARNAME
68 #undef PACKAGE_TARNAME
71 #ifdef PACKAGE_VERSION
72 #undef PACKAGE_VERSION
79 #include <Ifpack_config.h>
89 #ifdef PACKAGE_BUGREPORT
90 #undef PACKAGE_BUGREPORT
97 #ifdef PACKAGE_TARNAME
98 #undef PACKAGE_TARNAME
101 #ifdef PACKAGE_VERSION
102 #undef PACKAGE_VERSION
125 #define IFPACK_CHK_ERR(ifpack_err) \
126 { if (ifpack_err < 0) { \
127 std::cerr << "IFPACK ERROR " << ifpack_err << ", " \
128 << __FILE__ << ", line " << __LINE__ << std::endl; \
129 return(ifpack_err); } }
133 #define IFPACK_CHK_ERRV(ifpack_err) \
134 { if (ifpack_err < 0) { \
135 std::cerr << "IFPACK ERROR " << ifpack_err << ", " \
136 << __FILE__ << ", line " << __LINE__ << std::endl; \
139 #define IFPACK_RETURN(ifpack_err) \
140 { if (ifpack_err < 0) { \
141 std::cerr << "IFPACK ERROR " << ifpack_err << ", " \
142 << __FILE__ << ", line " << __LINE__ << std::endl; \
143 } return(ifpack_err); }
145 #define IFPACK_SGN(x) (((x) < 0.0) ? -1.0 : 1.0)
146 #define IFPACK_ABS(x) (((x) > 0.0) ? (x) : (-x))