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 #include <Kokkos_ConfigDefs.hpp>
00071 
00072 // Used in all Tpetra code that explicitly must a type (like a loop index)
00073 // that is used with the Teuchos::Array[View,RCP] classes.
00074 namespace Tpetra { typedef Teuchos_Ordinal Array_size_type; }
00075 
00076 // these make some of the macros in Tpetra_Util.hpp much easier to describe
00077 #ifdef HAVE_TPETRA_THROW_EFFICIENCY_WARNINGS
00078   #define TPETRA_THROWS_EFFICIENCY_WARNINGS 1
00079 #else
00080   #define TPETRA_THROWS_EFFICIENCY_WARNINGS 0
00081 #endif
00082 
00083 #ifdef HAVE_TPETRA_PRINT_EFFICIENCY_WARNINGS
00084   #define TPETRA_PRINTS_EFFICIENCY_WARNINGS 1
00085 #else
00086   #define TPETRA_PRINTS_EFFICIENCY_WARNINGS 0
00087 #endif
00088 
00089 #ifdef HAVE_TPETRA_THROW_ABUSE_WARNINGS
00090   #define TPETRA_THROWS_ABUSE_WARNINGS 1
00091 #else
00092   #define TPETRA_THROWS_ABUSE_WARNINGS 0
00093 #endif
00094 
00095 #ifdef HAVE_TPETRA_PRINT_ABUSE_WARNINGS
00096   #define TPETRA_PRINTS_ABUSE_WARNINGS 1
00097 #else
00098   #define TPETRA_PRINTS_ABUSE_WARNINGS 0
00099 #endif
00100 
00101 namespace Tpetra {
00102   typedef size_t global_size_t;
00103 
00105   enum LocalGlobal {
00106     LocallyReplicated,  
00107     GloballyDistributed 
00108   };
00109 
00111   enum LookupStatus {
00112     AllIDsPresent, 
00113     IDNotPresent   
00114   };
00115 
00117   enum ProfileType {
00118     StaticProfile,  
00119     DynamicProfile  
00120   };
00121 
00123   enum OptimizeOption {
00124     DoOptimizeStorage,   
00125     DoNotOptimizeStorage 
00126   };
00127 
00139   enum CombineMode {
00140     ADD,    
00141     INSERT, 
00142     REPLACE 
00143   };
00144 
00145 }
00146 
00147 #endif // TPETRA_CONFIGDEFS_HPP

Generated on Tue Jul 13 09:39:06 2010 for Tpetra Matrix/Vector Services by  doxygen 1.4.7