Loading...
Searching...
No Matches
43#ifndef _IFPACK_CONFIGDEFS_H_
44#define _IFPACK_CONFIGDEFS_H_
46#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS)
48#warning "The Ifpack package is deprecated"
65#ifdef PACKAGE_BUGREPORT
66#undef PACKAGE_BUGREPORT
85#include <Ifpack_config.h>
95#ifdef PACKAGE_BUGREPORT
96#undef PACKAGE_BUGREPORT
103#ifdef PACKAGE_TARNAME
104#undef PACKAGE_TARNAME
107#ifdef PACKAGE_VERSION
108#undef PACKAGE_VERSION
131#define IFPACK_CHK_ERR(ifpack_err) \
132{ if (ifpack_err < 0) { \
133 std::cerr << "IFPACK ERROR " << ifpack_err << ", " \
134 << __FILE__ << ", line " << __LINE__ << std::endl; \
135 return(ifpack_err); } }
139#define IFPACK_CHK_ERRV(ifpack_err) \
140{ if (ifpack_err < 0) { \
141 std::cerr << "IFPACK ERROR " << ifpack_err << ", " \
142 << __FILE__ << ", line " << __LINE__ << std::endl; \
146#define IFPACK_CHK_ERRB(ifpack_err) \
147{ if (ifpack_err < 0) { \
148 std::cerr << "IFPACK ERROR " << ifpack_err << ", " \
149 << __FILE__ << ", line " << __LINE__ << std::endl; \
152#define IFPACK_RETURN(ifpack_err) \
153{ if (ifpack_err < 0) { \
154 std::cerr << "IFPACK ERROR " << ifpack_err << ", " \
155 << __FILE__ << ", line " << __LINE__ << std::endl; \
156 } return(ifpack_err); }
159#define IFPACK_CHK_GLOBAL_ERR(ifpack_err) \
160{ int local_err = ifpack_err; \
161 int global_min_err = 0; \
162 Comm().MinAll(&local_err, &global_min_err, 1); \
163 if (global_min_err < 0) { \
164 return global_min_err; \
167#define IFPACK_SGN(x) (((x) < 0.0) ? -1.0 : 1.0)
168#define IFPACK_ABS(x) (((x) > 0.0) ? (x) : (-x))