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 #ifndef TEUCHOS_CONFIGDEFS_HPP
00032 #define TEUCHOS_CONFIGDEFS_HPP
00033
00039
00040
00041
00042
00043
00044
00045 #ifdef PACKAGE
00046 #undef PACKAGE
00047 #endif
00048
00049 #ifdef PACKAGE_NAME
00050 #undef PACKAGE_NAME
00051 #endif
00052
00053 #ifdef PACKAGE_BUGREPORT
00054 #undef PACKAGE_BUGREPORT
00055 #endif
00056
00057 #ifdef PACKAGE_STRING
00058 #undef PACKAGE_STRING
00059 #endif
00060
00061 #ifdef PACKAGE_TARNAME
00062 #undef PACKAGE_TARNAME
00063 #endif
00064
00065 #ifdef PACKAGE_VERSION
00066 #undef PACKAGE_VERSION
00067 #endif
00068
00069 #ifdef VERSION
00070 #undef VERSION
00071 #endif
00072
00073 #ifdef HAVE_NUMERIC_LIMITS
00074 #undef HAVE_NUMERIC_LIMITS
00075 #endif
00076
00077 #include "Teuchos_config.h"
00078
00079 #ifdef HAVE_TEUCHOS_DEBUG
00080 # define TEUCHOS_DEBUG
00081 # define HAVE_TEUCHOS_ARRAY_BOUNDSCHECK
00082 #endif
00083
00084 #ifdef __cplusplus
00085
00086 #include <cstdio>
00087 #include <cstdarg>
00088 #include <cerrno>
00089 #include <climits>
00090 #include <cstdlib>
00091 #include <string>
00092 #include <cstring>
00093 #include <cmath>
00094 #include <iostream>
00095 #include <iomanip>
00096 #include <fstream>
00097 #include <sstream>
00098 #include <stdexcept>
00099 #include <cassert>
00100 #include <complex>
00101 #include <map>
00102 #include <vector>
00103 #include <deque>
00104 #include <algorithm>
00105 #include <list>
00106 #include <set>
00107 #include <typeinfo>
00108 #include <limits>
00109 #include <memory>
00110
00111 namespace Teuchos { class DummyDummyClass; }
00112
00113
00114
00115 const double Teuchos_MinDouble = 1.0E-100;
00116 const double Teuchos_MaxDouble = 1.0E+100;
00117 const double Teuchos_Overflow = 1.79E308;
00118 const double Teuchos_Underflow = 2.23E-308;
00119
00120
00121
00122
00123 #define TEUCHOS_OSTRINGSTREAM_GET_C_STR(OSS) (OSS).str().c_str()
00124 typedef std::ostringstream TeuchosOStringStream;
00125
00126 #endif
00127
00128
00129
00130 #ifdef TEUCHOS_CHK_ERR
00131 #undef TEUCHOS_CHK_ERR
00132 #endif
00133 #ifdef TEUCHOS_CHK_PTR
00134 #undef TEUCHOS_CHK_PTR
00135 #endif
00136 #ifdef TEUCHOS_CHK_REF
00137 #undef TEUCHOS_CHK_REF
00138 #endif
00139
00140
00141 typedef int Teuchos_Index;
00142
00143
00144
00145 #define TEUCHOS_CHK_ERR(a) { if (a != 0) return(a);}
00146 #define TEUCHOS_CHK_PTR(a) { return(a);}
00147 #define TEUCHOS_CHK_REF(a) { return(a);}
00148
00149 #ifdef __cplusplus
00150 const int Teuchos_DefaultTracebackMode = 1;
00151 #endif
00152
00153
00154 #define TEUCHOS_MAX(x,y) (( (x) > (y) ) ? (x) : (y) )
00155 #define TEUCHOS_MIN(x,y) (( (x) < (y) ) ? (x) : (y) )
00156 #define TEUCHOS_SGN(x) (( (x) < 0.0 ) ? -1.0 : 1.0 )
00157
00158 #endif