Tpetra_ConfigDefs.hpp

00001 // @HEADER
00002 // ***********************************************************************
00003 // 
00004 //          Tpetra: Templated Linear Algebra Services Package
00005 //                 Copyright (2008) 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 
00029 #ifndef TPETRA_CONFIGDEFS_HPP
00030 #define TPETRA_CONFIGDEFS_HPP
00031 
00032 #ifndef __cplusplus
00033 #define __cplusplus
00034 #endif // ifndef __cplusplus
00035 
00036 /* this section undefines all the things autotools defines for us that we wish it didn't. */
00037 
00038 #ifdef PACKAGE
00039 #undef PACKAGE
00040 #endif // ifdef PACKAGE
00041 
00042 #ifdef PACKAGE_NAME
00043 #undef PACKAGE_NAME
00044 #endif // ifdef PACKAGE_NAME
00045 
00046 #ifdef PACKAGE_BUGREPORT
00047 #undef PACKAGE_BUGREPORT
00048 #endif // ifdef PACKAGE_BUGREPORT
00049 
00050 #ifdef PACKAGE_STRING
00051 #undef PACKAGE_STRING
00052 #endif // ifdef PACKAGE_STRING
00053 
00054 #ifdef PACKAGE_TARNAME
00055 #undef PACKAGE_TARNAME
00056 #endif // ifdef PACKAGE_TARNAME
00057 
00058 #ifdef PACKAGE_VERSION
00059 #undef PACKAGE_VERSION
00060 #endif // ifdef PACKAGE_VERSION
00061 
00062 #ifdef VERSION
00063 #undef VERSION
00064 #endif // ifdef VERSION
00065 
00066 // end of undoing autoconf's work section
00067 
00068 #include <Tpetra_config.h>
00069 #include <Teuchos_ConfigDefs.hpp>
00070 
00071 // these make some of the macros in Tpetra_Util.hpp much easier to describe
00072 #ifdef HAVE_TPETRA_THROW_EFFICIENCY_WARNINGS
00073   #define TPETRA_THROWS_EFFICIENCY_WARNINGS 1
00074 #else
00075   #define TPETRA_THROWS_EFFICIENCY_WARNINGS 0
00076 #endif
00077 
00078 #ifdef HAVE_TPETRA_PRINT_EFFICIENCY_WARNINGS
00079   #define TPETRA_PRINTS_EFFICIENCY_WARNINGS 1
00080 #else
00081   #define TPETRA_PRINTS_EFFICIENCY_WARNINGS 0
00082 #endif
00083 
00084 #ifdef HAVE_TPETRA_THROW_ABUSE_WARNINGS
00085   #define TPETRA_THROWS_ABUSE_WARNINGS 1
00086 #else
00087   #define TPETRA_THROWS_ABUSE_WARNINGS 0
00088 #endif
00089 
00090 #ifdef HAVE_TPETRA_PRINT_ABUSE_WARNINGS
00091   #define TPETRA_PRINTS_ABUSE_WARNINGS 1
00092 #else
00093   #define TPETRA_PRINTS_ABUSE_WARNINGS 0
00094 #endif
00095 
00096 namespace Tpetra {
00097   typedef size_t global_size_t;
00098 
00100   enum LocalGlobal {
00101     LocallyReplicated,  
00102     GloballyDistributed 
00103   };
00104 
00106   enum LookupStatus {
00107     AllIDsPresent, 
00108     IDNotPresent   
00109   };
00110 
00112   enum ProfileType {
00113     StaticProfile,  
00114     DynamicProfile  
00115   };
00116 
00118   enum OptimizeOption {
00119     DoOptimizeStorage,   
00120     DoNotOptimizeStorage 
00121   };
00122 
00124   enum CombineMode {
00125     ADD,    
00126     INSERT, 
00127     REPLACE 
00128   };
00129 
00130 }
00131 
00132 #endif // TPETRA_CONFIGDEFS_HPP

Generated on Wed May 12 21:40:13 2010 for Tpetra Matrix/Vector Services by  doxygen 1.4.7