All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Xpetra_UseShortNamesOrdinal.hpp
Go to the documentation of this file.
00001 // @HEADER
00002 //
00003 // ***********************************************************************
00004 //
00005 //             Xpetra: A linear algebra interface package
00006 //                  Copyright 2012 Sandia Corporation
00007 //
00008 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00009 // the U.S. Government retains certain rights in this software.
00010 //
00011 // Redistribution and use in source and binary forms, with or without
00012 // modification, are permitted provided that the following conditions are
00013 // met:
00014 //
00015 // 1. Redistributions of source code must retain the above copyright
00016 // notice, this list of conditions and the following disclaimer.
00017 //
00018 // 2. Redistributions in binary form must reproduce the above copyright
00019 // notice, this list of conditions and the following disclaimer in the
00020 // documentation and/or other materials provided with the distribution.
00021 //
00022 // 3. Neither the name of the Corporation nor the names of the
00023 // contributors may be used to endorse or promote products derived from
00024 // this software without specific prior written permission.
00025 //
00026 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
00027 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00028 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00029 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
00030 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00031 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00032 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00033 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00034 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00035 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00036 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00037 //
00038 // Questions? Contact
00039 //                    Jonathan Hu       (jhu@sandia.gov)
00040 //                    Andrey Prokopenko (aprokop@sandia.gov)
00041 //                    Ray Tuminaro      (rstumin@sandia.gov)
00042 //
00043 // ***********************************************************************
00044 //
00045 // @HEADER
00046 // Get rid of template parameters
00047 
00048 #include <Xpetra_Map.hpp>
00049 
00050 // New definition of types using the types LocalOrdinal, GlobalOrdinal, Node of the current context.
00051 #ifdef XPETRA_MAP_SHORT
00052 typedef ::Xpetra::Map<LocalOrdinal, GlobalOrdinal, Node> Map;
00053 #endif
00054 
00055 #ifdef XPETRA_MAPFACTORY_SHORT
00056 typedef ::Xpetra::MapFactory<LocalOrdinal, GlobalOrdinal, Node> MapFactory;
00057 #endif
00058 
00059 #ifdef XPETRA_CRSGRAPH_SHORT
00060 typedef ::Xpetra::CrsGraph<LocalOrdinal, GlobalOrdinal, Node> CrsGraph;
00061 #endif
00062 
00063 #ifdef XPETRA_CRSGRAPHFACTORY_SHORT
00064 typedef ::Xpetra::CrsGraphFactory<LocalOrdinal, GlobalOrdinal, Node> CrsGraphFactory;
00065 #endif
00066 
00067 #ifdef XPETRA_VECTOR_SHORT
00068 typedef ::Xpetra::Vector<LocalOrdinal, LocalOrdinal, GlobalOrdinal, Node> LocalOrdinalVector;
00069 typedef ::Xpetra::Vector<GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node> GlobalOrdinalVector;
00070 typedef LocalOrdinalVector  LOVector;
00071 typedef GlobalOrdinalVector GOVector;
00072 #endif
00073 
00074 #ifdef XPETRA_MULTIVECTOR_SHORT
00075 typedef ::Xpetra::MultiVector<LocalOrdinal, LocalOrdinal, GlobalOrdinal, Node> LocalOrdinalMultiVector;
00076 typedef ::Xpetra::MultiVector<GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node> GlobalOrdinalMultiVector;
00077 typedef LocalOrdinalMultiVector  LOMultiVector;
00078 typedef GlobalOrdinalMultiVector GOMultiVector;
00079 #endif
00080 
00081 #ifdef XPETRA_VECTORFACTORY_SHORT
00082 typedef ::Xpetra::VectorFactory<LocalOrdinal, LocalOrdinal, GlobalOrdinal, Node> LocalOrdinalVectorFactory;
00083 typedef ::Xpetra::VectorFactory<GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node> GlobalOrdinalVectorFactory;
00084 typedef LocalOrdinalVectorFactory  LOVectorFactory;
00085 typedef GlobalOrdinalVectorFactory GOVectorFactory;
00086 #endif
00087 
00088 #ifdef XPETRA_MULTIVECTORFACTORY_SHORT
00089 typedef ::Xpetra::MultiVectorFactory<LocalOrdinal, LocalOrdinal, GlobalOrdinal, Node> LocalOrdinalMultiVectorFactory;
00090 typedef ::Xpetra::MultiVectorFactory<GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node> GlobalOrdinalMultiVectorFactory;
00091 typedef LocalOrdinalMultiVectorFactory  LOMultiVectorFactory;
00092 typedef GlobalOrdinalMultiVectorFactory GOMultiVectorFactory;
00093 #endif
00094 
00095 #ifdef XPETRA_IMPORT_SHORT
00096 typedef ::Xpetra::Import<LocalOrdinal, GlobalOrdinal, Node> Import;
00097 #endif
00098 
00099 #ifdef XPETRA_EXPORT_SHORT
00100 typedef ::Xpetra::Export<LocalOrdinal, GlobalOrdinal, Node> Export;
00101 #endif
00102 
00103 #ifdef XPETRA_IMPORTFACTORY_SHORT
00104 typedef ::Xpetra::ImportFactory<LocalOrdinal, GlobalOrdinal, Node> ImportFactory;
00105 #endif
00106 
00107 #ifdef XPETRA_EXPORTFACTORY_SHORT
00108 typedef ::Xpetra::ExportFactory<LocalOrdinal, GlobalOrdinal, Node> ExportFactory;
00109 #endif
00110 
00111 #ifdef XPETRA_TPETRAMAP_SHORT
00112 typedef ::Xpetra::TpetraMap<LocalOrdinal, GlobalOrdinal, Node> TpetraMap;
00113 #endif
00114 
00115 #ifdef XPETRA_TPETRACRSGRAPH_SHORT
00116 typedef ::Xpetra::TpetraCrsGraph<LocalOrdinal, GlobalOrdinal, Node> TpetraCrsGraph;
00117 #endif
00118 
00119 #ifdef XPETRA_STRIDEDMAP_SHORT
00120 typedef ::Xpetra::StridedMap<LocalOrdinal, GlobalOrdinal, Node> StridedMap;
00121 #endif
00122 
00123 #ifdef XPETRA_STRIDEDMAPFACTORY_SHORT
00124 typedef ::Xpetra::StridedMapFactory<LocalOrdinal, GlobalOrdinal, Node> StridedMapFactory;
00125 #endif
00126 
00127 // Note: There is no #ifndef/#define/#end in this header file because it can be included more than once (it can be included in methods templated by Scalar, LocalOrdinal, GlobalOrdinal, Node).
00128 
00129 // TODO: add namespace {} for shortcut types
00130 
00131 // Define convenient shortcut for data types
00132 typedef LocalOrdinal  LO;
00133 typedef GlobalOrdinal GO;
00134 typedef Node          NO;
00135 
00136 // TODO: do the same for Epetra object (problem of namespace)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines