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 #ifndef NOX_COMMON_H
00043 #define NOX_COMMON_H
00044
00045
00046
00047 #ifdef PACKAGE
00048 #undef PACKAGE
00049 #endif
00050
00051 #ifdef PACKAGE_NAME
00052 #undef PACKAGE_NAME
00053 #endif
00054
00055 #ifdef PACKAGE_BUGREPORT
00056 #undef PACKAGE_BUGREPORT
00057 #endif
00058
00059 #ifdef PACKAGE_STRING
00060 #undef PACKAGE_STRING
00061 #endif
00062
00063 #ifdef PACKAGE_TARNAME
00064 #undef PACKAGE_TARNAME
00065 #endif
00066
00067 #ifdef PACKAGE_VERSION
00068 #undef PACKAGE_VERSION
00069 #endif
00070
00071 #ifdef VERSION
00072 #undef VERSION
00073 #endif
00074
00075 #ifndef TRILINOS_NO_CONFIG_H
00076 #include "NOX_Config.h"
00077 #endif
00078
00079 #ifdef HAVE_CSTDLIB
00080 #include <cstdlib>
00081 #elif defined(HAVE_STDLIB_H)
00082 #include <stdlib.h>
00083 #else
00084
00085 #include <stdlib.h>
00086 #endif
00087
00088 #ifdef HAVE_CSTDIO
00089 #include <cstdio>
00090 #elif defined(HAVE_STDIO_H)
00091 #include <stdio.h>
00092 #else
00093
00094 #include <stdio.h>
00095 #endif
00096
00097 #ifdef HAVE_CASSERT
00098 #include <cassert>
00099 #elif defined(HAVE_ASSERT_H)
00100 #include <assert.h>
00101 #else
00102
00103 #include <assert.h>
00104 #endif
00105
00106 #ifdef HAVE_CMATH
00107 #include <cmath>
00108 #elif defined(HAVE_MATH_H)
00109 #include <math.h>
00110 #else
00111
00112 #include <math.h>
00113 #endif
00114
00115 #ifdef HAVE_IOMANIP
00116 #include <iomanip>
00117 #elif defined(HAVE_IOMANIP_H)
00118 #include <iomanip.h>
00119 #else
00120
00121 #include <iomanip>
00122 #endif
00123
00124 #ifdef HAVE_IOSTREAM
00125 #include <iostream>
00126 #elif defined(HAVE_IOSTREAM_H)
00127 #include <iostream.h>
00128 #else
00129
00130 #include <iostream>
00131 #endif
00132
00133 #ifdef HAVE_STRING
00134 #include <string>
00135 #elif defined(HAVE_STRING_H)
00136 #include <string.h>
00137 #else
00138
00139 #include <string>
00140 #endif
00141
00142 #ifdef HAVE_MAP
00143 #include <map>
00144 #elif defined(HAVE_MAP_H)
00145 #include <map.h>
00146 #else
00147
00148 #include <map>
00149 #endif
00150
00151
00152 #ifdef HAVE_VECTOR
00153 #include <vector>
00154 #include <deque>
00155 #elif defined(HAVE_VECTOR_H)
00156 #include <vector.h>
00157 #include <deque.h>
00158 #else
00159
00160 #include <vector>
00161 #include <deque>
00162 #endif
00163
00164 #ifdef HAVE_ALGORITHM
00165 #include <algorithm>
00166 #elif defined(HAVE_ALGO_H)
00167 #include <algo.h>
00168 #elif defined(HAVE_ALGORITHM_H)
00169 #include <algorithm.h>
00170 #else
00171
00172 #include <algorithm>
00173 #endif
00174
00175 #if HAVE_SSTREAM
00176 #include <sstream>
00177 #elif HAVE_SSTREAM_H
00178 #include <sstream.h>
00179 #elif HAVE_STRSTREAM
00180 #include <strstream>
00181 #elif HAVE_STRSTREAM_H
00182 #include <strstream.h>
00183 #else
00184
00185 #include <sstream>
00186 #endif
00187
00188 #ifdef HAVE_FSTREAM
00189 #include <fstream>
00190 #elif defined(HAVE_FSTREAM_H)
00191 #include <fstream.h>
00192 #else
00193
00194 #include <fstream>
00195 #endif
00196
00197 using namespace std;
00198
00199
00200
00201 #ifndef NO_USING_STD_OSTREAM
00202 using std::ostream;
00203 #endif
00204
00205 using std::map;
00206 using std::vector;
00207
00208 #define NOX_MAX(a,b) ((a)>(b)) ? (a) : (b)
00209 #define NOX_MIN(a,b) ((a)<(b)) ? (a) : (b)
00210
00211 #endif