00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 #ifndef _IFPACK_CONFIGDEFS_H_
00044 #define _IFPACK_CONFIGDEFS_H_
00045
00046
00047
00048
00049
00050
00051 #ifdef PACKAGE
00052 #undef PACKAGE
00053 #endif
00054
00055 #ifdef PACKAGE_NAME
00056 #undef PACKAGE_NAME
00057 #endif
00058
00059 #ifdef PACKAGE_BUGREPORT
00060 #undef PACKAGE_BUGREPORT
00061 #endif
00062
00063 #ifdef PACKAGE_STRING
00064 #undef PACKAGE_STRING
00065 #endif
00066
00067 #ifdef PACKAGE_TARNAME
00068 #undef PACKAGE_TARNAME
00069 #endif
00070
00071 #ifdef PACKAGE_VERSION
00072 #undef PACKAGE_VERSION
00073 #endif
00074
00075 #ifdef VERSION
00076 #undef VERSION
00077 #endif
00078
00079 #include <Ifpack_config.h>
00080
00081 #ifdef PACKAGE
00082 #undef PACKAGE
00083 #endif
00084
00085 #ifdef PACKAGE_NAME
00086 #undef PACKAGE_NAME
00087 #endif
00088
00089 #ifdef PACKAGE_BUGREPORT
00090 #undef PACKAGE_BUGREPORT
00091 #endif
00092
00093 #ifdef PACKAGE_STRING
00094 #undef PACKAGE_STRING
00095 #endif
00096
00097 #ifdef PACKAGE_TARNAME
00098 #undef PACKAGE_TARNAME
00099 #endif
00100
00101 #ifdef PACKAGE_VERSION
00102 #undef PACKAGE_VERSION
00103 #endif
00104
00105 #ifdef VERSION
00106 #undef VERSION
00107 #endif
00108
00109 #ifdef HAVE_MPI
00110
00111 #ifndef EPETRA_MPI
00112 #define EPETRA_MPI
00113 #endif
00114
00115 #endif
00116
00117 #include <cstdio>
00118 #include <string>
00119 #include <iostream>
00120 #include <algorithm>
00121 #include <vector>
00122 using std::string;
00123 using std::istream;
00124 using std::ostream;
00125 using std::cerr;
00126 using std::cout;
00127 using std::endl;
00128
00129
00130
00131 #define IFPACK_CHK_ERR(ifpack_err) \
00132 { if (ifpack_err < 0) { \
00133 std::cerr << "IFPACK ERROR " << ifpack_err << ", " \
00134 << __FILE__ << ", line " << __LINE__ << std::endl; \
00135 return(ifpack_err); } }
00136
00137
00138
00139 #define IFPACK_CHK_ERRV(ifpack_err) \
00140 { if (ifpack_err < 0) { \
00141 std::cerr << "IFPACK ERROR " << ifpack_err << ", " \
00142 << __FILE__ << ", line " << __LINE__ << std::endl; \
00143 return; } }
00144
00145 #define IFPACK_RETURN(ifpack_err) \
00146 { if (ifpack_err < 0) { \
00147 std::cerr << "IFPACK ERROR " << ifpack_err << ", " \
00148 << __FILE__ << ", line " << __LINE__ << std::endl; \
00149 } return(ifpack_err); }
00150
00151 #define IFPACK_SGN(x) (((x) < 0.0) ? -1.0 : 1.0)
00152 #define IFPACK_ABS(x) (((x) > 0.0) ? (x) : (-x))
00153
00154 #endif