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 #ifndef BELOS_CONFIGDEFS_HPP
00030 #define BELOS_CONFIGDEFS_HPP
00031
00036 #ifndef __cplusplus
00037 #define __cplusplus
00038 #endif
00039
00040 #ifdef HAVE_CONFIG_H
00041
00042
00043
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 #include <Belos_config.h>
00076
00077 #ifdef HAVE_MPI
00078 #ifndef EPETRA_MPI
00079 #define EPETRA_MPI
00080 #endif
00081 #endif
00082
00083 #ifdef HAVE_CSTDLIB
00084 #include <cstdlib>
00085 #else
00086 #include <stdlib.h>
00087 #endif
00088
00089 #ifdef HAVE_CSTDIO
00090 #include <cstdio>
00091 #else
00092 #include <stdio.h>
00093 #endif
00094
00095 #ifdef HAVE_CASSERT
00096 #include <cassert>
00097 #else
00098 #include <assert.h>
00099 #endif
00100
00101 #ifdef HAVE_STRING
00102 #include <string>
00103 #else
00104 #include <string.h>
00105 #endif
00106
00107 #ifdef HAVE_IOSTREAM
00108 #include <iostream>
00109 #else
00110 #include <iostream.h>
00111 #endif
00112
00113 #ifdef HAVE_CMATH
00114 #include <cmath>
00115 #else
00116 #include <math.h>
00117 #endif
00118 using namespace std;
00119
00120 #else
00121
00122 #include <iostream>
00123 #include <string>
00124
00125 #if defined(SGI) || defined(SGI64) || defined(SGI32) || defined(CPLANT) || defined (TFLOP)
00126
00127 #include <stdlib.h>
00128 #include <stdio.h>
00129 #include <assert.h>
00130 #include <math.h>
00131
00132 #else
00133
00134 #include <cstdlib>
00135 #include <cstdio>
00136 #include <cassert>
00137 #include <cmath>
00138
00139 #endif
00140
00141 using namespace std;
00142
00143 #endif
00144
00145
00146 #define BELOS_MAX(x,y) (( (x) > (y) ) ? (x) : (y) )
00147 #define BELOS_MIN(x,y) (( (x) < (y) ) ? (x) : (y) )
00148 #define BELOS_SGN(x) (( (x) < 0.0 ) ? -1.0 : 1.0 )
00149
00150
00151
00152
00153 namespace Belos {
00154 string Belos_Version();
00155 }
00156
00157 #endif