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 #ifndef TRILINOS_NO_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 #include "Teuchos_ConfigDefs.hpp"
00084
00085 #else
00086
00087 #include <iostream>
00088 #include <string>
00089 #include <stdexcept>
00090 #include <vector>
00091
00092 #if defined(SGI) || defined(SGI64) || defined(SGI32) || defined(CPLANT) || defined(TFLOP)
00093
00094 #include <stdlib.h>
00095 #include <stdio.h>
00096 #include <assert.h>
00097 #include <math.h>
00098 #include <complex.h>
00099
00100 #else
00101
00102 #include <cstdlib>
00103 #include <cstdio>
00104 #include <cassert>
00105 #include <cmath>
00106 #include <complex>
00107
00108 #endif
00109
00110 #endif
00111
00112
00113
00114 #define BELOS_MAX(x,y) (( (x) > (y) ) ? (x) : (y) )
00115 #define BELOS_MIN(x,y) (( (x) < (y) ) ? (x) : (y) )
00116 #define BELOS_SGN(x) (( (x) < 0.0 ) ? -1.0 : 1.0 )
00117
00118 namespace Belos { std::string Belos_Version(); }
00119
00120 #endif