AnasaziConfigDefs.hpp

Go to the documentation of this file.
00001 // @HEADER
00002 // ***********************************************************************
00003 //
00004 //                 Anasazi: Block Eigensolvers Package
00005 //                 Copyright (2004) Sandia Corporation
00006 //
00007 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
00008 // license for use of this work by or on behalf of the U.S. Government.
00009 //
00010 // This library is free software; you can redistribute it and/or modify
00011 // it under the terms of the GNU Lesser General Public License as
00012 // published by the Free Software Foundation; either version 2.1 of the
00013 // License, or (at your option) any later version.
00014 //
00015 // This library is distributed in the hope that it will be useful, but
00016 // WITHOUT ANY WARRANTY; without even the implied warranty of
00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018 // Lesser General Public License for more details.
00019 //
00020 // You should have received a copy of the GNU Lesser General Public
00021 // License along with this library; if not, write to the Free Software
00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00023 // USA
00024 // Questions? Contact Michael A. Heroux (maherou@sandia.gov)
00025 //
00026 // ***********************************************************************
00027 // @HEADER
00028 
00034 #ifndef ANASAZI_CONFIGDEFS_HPP
00035 #define ANASAZI_CONFIGDEFS_HPP
00036 
00037 #ifndef __cplusplus
00038 #define __cplusplus
00039 #endif
00040 
00041 #ifdef HAVE_CONFIG_H
00042 
00043 /*
00044  * The macros PACKAGE, PACKAGE_NAME, etc, get defined for each package and need to
00045  * be undef'd here to avoid warnings when this file is included from another package.
00046  * KL 11/25/02
00047  */
00048 #ifdef PACKAGE
00049 #undef PACKAGE
00050 #endif
00051 
00052 #ifdef PACKAGE_NAME
00053 #undef PACKAGE_NAME
00054 #endif
00055 
00056 #ifdef PACKAGE_BUGREPORT
00057 #undef PACKAGE_BUGREPORT
00058 #endif
00059 
00060 #ifdef PACKAGE_STRING
00061 #undef PACKAGE_STRING
00062 #endif
00063 
00064 #ifdef PACKAGE_TARNAME
00065 #undef PACKAGE_TARNAME
00066 #endif
00067 
00068 #ifdef PACKAGE_VERSION
00069 #undef PACKAGE_VERSION
00070 #endif
00071 
00072 #ifdef VERSION
00073 #undef VERSION
00074 #endif
00075 
00076 #include <Anasazi_config.h>
00077 
00078 #ifdef HAVE_MPI
00079 #ifndef EPETRA_MPI
00080 #define EPETRA_MPI
00081 #endif
00082 #endif
00083 
00084 #ifdef HAVE_CSTDLIB
00085 #include <cstdlib>
00086 #else
00087 #include <stdlib.h>
00088 #endif
00089 
00090 #ifdef HAVE_CSTDIO
00091 #include <cstdio>
00092 #else
00093 #include <stdio.h>
00094 #endif
00095 
00096 #ifdef HAVE_CASSERT
00097 #include <cassert>
00098 #else
00099 #include <assert.h>
00100 #endif
00101 
00102 #ifdef HAVE_STRING
00103 #include <string>
00104 #else
00105 #include <string.h>
00106 #endif
00107 
00108 #ifdef HAVE_VECTOR
00109 #include <vector>
00110 #else
00111 #include <vector.h>
00112 #endif
00113 
00114 #ifdef HAVE_COMPLEX
00115 #include <complex>
00116 #else
00117 #include <complex.h>
00118 #endif
00119 
00120 #ifdef HAVE_IOSTREAM
00121 #include <iostream>
00122 #else
00123 #include <iostream.h>
00124 #endif
00125 
00126 #ifdef HAVE_ITERATOR
00127 #include <iterator>
00128 #else
00129 #include <iterator.h>
00130 #endif
00131 
00132 #if HAVE_STDEXCEPT
00133 #include <stdexcept>
00134 #elif HAVE_STDEXCEPT_H
00135 #include <stdexcept.h>
00136 #endif
00137 
00138 #ifndef JANUS_STLPORT
00139 #ifdef HAVE_CMATH
00140 #include <cmath>
00141 #else
00142 #include <math.h>
00143 #endif
00144 #else /* JANUS_STLPORT */
00145 #include <math.h>
00146 #endif /* JANUS_STLPORT */
00147 
00148 using namespace std;
00149 
00150 #else /*HAVE_CONFIG_H is not defined*/
00151 
00152 #include <iterator>
00153 #include <iostream>
00154 #include <string>
00155 
00156 #if defined(SGI) || defined(SGI64) || defined(SGI32) || defined(CPLANT) || defined (TFLOP)
00157 
00158 #include <stdlib.h>
00159 #include <stdio.h>
00160 #include <assert.h>
00161 #include <math.h>
00162 
00163 #else
00164 
00165 #include <cstdlib>
00166 #include <cstdio>
00167 #include <cassert>
00168 #include <cmath>
00169 
00170 #endif
00171 
00172 #include <vector>
00173 #include <map>
00174 #include <deque>
00175 #include <algorithm>
00176 
00177 using namespace std;
00178 
00179 #endif /*HAVE_CONFIG_H*/
00180 
00181 /* Define some macros */
00182 #define ANASAZI_MAX(x,y) (( (x) > (y) ) ? (x)  : (y) )     /* max function  */
00183 #define ANASAZI_MIN(x,y) (( (x) < (y) ) ? (x)  : (y) )     /* min function  */
00184 #define ANASAZI_SGN(x)   (( (x) < 0.0 ) ? -1.0 : 1.0 )     /* sign function */
00185 
00186 /*
00187  * Anasazi_Version() method 
00188  */
00189 namespace Anasazi {
00190   string Anasazi_Version();
00191 }
00192 
00193 #endif /*ANASAZI_CONFIGDEFS_HPP*/

Generated on Thu Sep 18 12:31:36 2008 for Anasazi by doxygen 1.3.9.1