All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Xpetra_UseShortNamesScalar.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 // New definition of types using the types Scalar, LocalOrdinal, GlobalOrdinal, Node of the current context.
00049 
00050 // 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).
00051 
00052 #ifdef XPETRA_CRSMATRIX_SHORT
00053 typedef ::Xpetra::CrsMatrix<Scalar, LocalOrdinal, GlobalOrdinal, Node> CrsMatrix;
00054 #endif
00055 
00056 #ifdef XPETRA_VECTOR_SHORT
00057 typedef ::Xpetra::Vector<Scalar, LocalOrdinal, GlobalOrdinal, Node> Vector;
00058 #endif
00059 
00060 #ifdef XPETRA_MULTIVECTOR_SHORT
00061 typedef ::Xpetra::MultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node> MultiVector;
00062 #endif
00063 
00064 #ifdef XPETRA_MATRIX_SHORT
00065 typedef ::Xpetra::Matrix<Scalar, LocalOrdinal, GlobalOrdinal, Node> Matrix;
00066 #endif
00067 
00068 #ifdef XPETRA_BLOCKEDCRSMATRIX_SHORT
00069 typedef ::Xpetra::BlockedCrsMatrix<Scalar, LocalOrdinal, GlobalOrdinal, Node> BlockedCrsMatrix;
00070 #endif
00071 
00072 #ifdef XPETRA_CRSMATRIXWRAP_SHORT
00073 typedef ::Xpetra::CrsMatrixWrap<Scalar, LocalOrdinal, GlobalOrdinal, Node> CrsMatrixWrap;
00074 #endif
00075 
00076 #ifdef XPETRA_VECTORFACTORY_SHORT
00077 typedef ::Xpetra::VectorFactory<Scalar, LocalOrdinal, GlobalOrdinal, Node> VectorFactory;
00078 #endif
00079 
00080 #ifdef XPETRA_CRSMATRIXFACTORY_SHORT
00081 typedef ::Xpetra::CrsMatrixFactory<Scalar, LocalOrdinal, GlobalOrdinal, Node> CrsMatrixFactory;
00082 #endif
00083 
00084 #ifdef XPETRA_MULTIVECTORFACTORY_SHORT
00085 typedef ::Xpetra::MultiVectorFactory<Scalar, LocalOrdinal, GlobalOrdinal, Node> MultiVectorFactory;
00086 #endif
00087 
00088 #ifdef XPETRA_MATRIXFACTORY_SHORT
00089 typedef ::Xpetra::MatrixFactory<Scalar, LocalOrdinal, GlobalOrdinal, Node> MatrixFactory;
00090 #endif
00091 
00092 #ifdef XPETRA_MATRIXFACTORY2_SHORT
00093 typedef ::Xpetra::MatrixFactory2<Scalar, LocalOrdinal, GlobalOrdinal, Node> MatrixFactory2;
00094 #endif
00095 
00096 #ifdef XPETRA_TPETRACRSMATRIX_SHORT
00097 typedef ::Xpetra::TpetraCrsMatrix<Scalar, LocalOrdinal, GlobalOrdinal, Node> TpetraCrsMatrix;
00098 #endif
00099 
00100 #ifdef XPETRA_EPETRACRSMATRIX_SHORT
00101 #ifndef XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES
00102 typedef ::Xpetra::EpetraCrsMatrix EpetraCrsMatrix;
00103 #endif
00104 #endif
00105 
00106 #ifdef XPETRA_TPETRAMULTIVECTOR_SHORT
00107 typedef ::Xpetra::TpetraMultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node> TpetraMultiVector;
00108 #endif
00109 
00110 #ifdef XPETRA_TPETRAVECTOR_SHORT
00111 typedef ::Xpetra::TpetraVector<Scalar, LocalOrdinal, GlobalOrdinal, Node> TpetraVector;
00112 #endif
00113 
00114 #ifdef XPETRA_MAPEXTRACTOR_SHORT
00115 typedef ::Xpetra::MapExtractor<Scalar, LocalOrdinal, GlobalOrdinal, Node> MapExtractor;
00116 #endif
00117 
00118 #ifdef XPETRA_MAPEXTRACTORFACTORY_SHORT
00119 typedef ::Xpetra::MapExtractorFactory<Scalar, LocalOrdinal, GlobalOrdinal, Node> MapExtractorFactory;
00120 #endif
00121 
00122 // TODO: add namespace {} for shortcut types
00123 
00124 // Define convenient shortcut for data types
00125 typedef Scalar    SC;
00126 // TODO: do the same for Epetra object (problem of namespace)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines