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 #ifndef _IFPACK_CONFIGDEFS_H_
00031 #define _IFPACK_CONFIGDEFS_H_
00032
00033 #ifndef TRILINOS_NO_CONFIG_H
00034
00035
00036
00037
00038
00039
00040 #ifdef PACKAGE
00041 #undef PACKAGE
00042 #endif
00043
00044 #ifdef PACKAGE_NAME
00045 #undef PACKAGE_NAME
00046 #endif
00047
00048 #ifdef PACKAGE_BUGREPORT
00049 #undef PACKAGE_BUGREPORT
00050 #endif
00051
00052 #ifdef PACKAGE_STRING
00053 #undef PACKAGE_STRING
00054 #endif
00055
00056 #ifdef PACKAGE_TARNAME
00057 #undef PACKAGE_TARNAME
00058 #endif
00059
00060 #ifdef PACKAGE_VERSION
00061 #undef PACKAGE_VERSION
00062 #endif
00063
00064 #ifdef VERSION
00065 #undef VERSION
00066 #endif
00067
00068 #include <Ifpack_config.h>
00069
00070 #ifdef PACKAGE
00071 #undef PACKAGE
00072 #endif
00073
00074 #ifdef PACKAGE_NAME
00075 #undef PACKAGE_NAME
00076 #endif
00077
00078 #ifdef PACKAGE_BUGREPORT
00079 #undef PACKAGE_BUGREPORT
00080 #endif
00081
00082 #ifdef PACKAGE_STRING
00083 #undef PACKAGE_STRING
00084 #endif
00085
00086 #ifdef PACKAGE_TARNAME
00087 #undef PACKAGE_TARNAME
00088 #endif
00089
00090 #ifdef PACKAGE_VERSION
00091 #undef PACKAGE_VERSION
00092 #endif
00093
00094 #ifdef VERSION
00095 #undef VERSION
00096 #endif
00097
00098 #ifdef HAVE_MPI
00099
00100 #ifndef EPETRA_MPI
00101 #define EPETRA_MPI
00102 #endif
00103
00104 #endif
00105
00106
00107
00108
00109
00110
00111
00112
00113 #if HAVE_CSTDIO
00114 #include <cstdio>
00115 #elif HAVE_STDIO_H
00116 #include <stdio.h>
00117 #else
00118 #error "Found neither cstdio nor stdio.h"
00119 #endif
00120
00121 #if HAVE_STRING
00122 #include <string>
00123 #elif HAVE_STRING_H
00124 #include <string.h>
00125 #else
00126 #error "Found neither string nor string.h"
00127 #endif
00128
00129 #if HAVE_IOSTREAM
00130 #include <iostream>
00131 #elif HAVE_IOSTREAM_H
00132 #include <iostream.h>
00133 #else
00134 #error "Found neither iostream nor iostream.h"
00135 #endif
00136
00137 #ifdef HAVE_ALGORITHM
00138 #include <algorithm>
00139 #elif defined(HAVE_ALGO_H)
00140 #include <algo.h>
00141 #elif defined(HAVE_ALGORITHM_H)
00142 #include <algorithm.h>
00143 #else
00144 #error "Did not find algorithm, algo.h or algorithm.h"
00145 #endif
00146
00147 #if HAVE_VECTOR
00148 #include <vector>
00149 #elif HAVE_IOSTREAM_H
00150 #include <vector.h>
00151 #else
00152 #error "Found neither vector nor vector.h"
00153 #endif
00154
00155 #if defined(TFLOP)
00156 #ifdef HAVE_STRING
00157 using std::string;
00158 #endif
00159 #ifdef HAVE_IOSTREAM
00160 using std::istream;
00161 using std::ostream;
00162 using std::cerr;
00163 using std::cout;
00164 using std::endl;
00165 #endif
00166 #else
00167 using namespace std;
00168 #endif
00169
00170 #endif
00171
00172
00173
00174 #define IFPACK_CHK_ERR(ifpack_err) \
00175 { if (ifpack_err < 0) { \
00176 std::cerr << "IFPACK ERROR " << ifpack_err << ", " \
00177 << __FILE__ << ", line " << __LINE__ << std::endl; \
00178 return(ifpack_err); } }
00179
00180
00181
00182 #define IFPACK_CHK_ERRV(ifpack_err) \
00183 { if (ifpack_err < 0) { \
00184 std::cerr << "IFPACK ERROR " << ifpack_err << ", " \
00185 << __FILE__ << ", line " << __LINE__ << std::endl; \
00186 return; } }
00187
00188 #define IFPACK_RETURN(ifpack_err) \
00189 { if (ifpack_err < 0) { \
00190 std::cerr << "IFPACK ERROR " << ifpack_err << ", " \
00191 << __FILE__ << ", line " << __LINE__ << std::endl; \
00192 } return(ifpack_err); }
00193
00194 #define IFPACK_SGN(x) (((x) < 0.0) ? -1.0 : 1.0)
00195 #define IFPACK_ABS(x) (((x) > 0.0) ? (x) : (-x))
00196
00197 #endif