// @HEADER // ***************************************************************************** // Xpetra: A linear algebra interface package // // Copyright 2012 NTESS and the Xpetra contributors. // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER // Get rid of template parameters // New definition of types using the types Scalar, LocalOrdinal, GlobalOrdinal, Node of the current context. // 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). #ifdef XPETRA_CRSMATRIX_SHORT using CrsMatrix [[maybe_unused]] = Xpetra::CrsMatrix; #endif #ifdef XPETRA_IO_SHORT using IO [[maybe_unused]] = Xpetra::IO; #endif #ifdef XPETRA_ITERATOROPS_SHORT using IteratorOps [[maybe_unused]] = Xpetra::IteratorOps; #endif #ifdef XPETRA_VECTOR_SHORT using Vector [[maybe_unused]] = Xpetra::Vector; #endif #ifdef XPETRA_BLOCKEDVECTOR_SHORT using BlockedVector [[maybe_unused]] = Xpetra::BlockedVector; #endif #ifdef XPETRA_MULTIVECTOR_SHORT using MultiVector [[maybe_unused]] = Xpetra::MultiVector; #endif #ifdef XPETRA_MATRIX_SHORT using Matrix [[maybe_unused]] = Xpetra::Matrix; #endif #ifdef XPETRA_MATRIXMATRIX_SHORT using MatrixMatrix [[maybe_unused]] = Xpetra::MatrixMatrix; #endif #ifdef XPETRA_TRIPLEMATRIXMULTIPLY_SHORT using TripleMatrixMultiply [[maybe_unused]] = Xpetra::TripleMatrixMultiply; #endif #ifdef XPETRA_MATRIXUTILS_SHORT using MatrixUtils [[maybe_unused]] = Xpetra::MatrixUtils; #endif #ifdef XPETRA_OPERATOR_SHORT using Operator [[maybe_unused]] = Xpetra::Operator; #endif #ifdef XPETRA_TPETRAOPERATOR_SHORT using TpetraOperator [[maybe_unused]] = Xpetra::TpetraOperator; #endif #ifdef XPETRA_TPETRAHALFPRECISIONOPERATOR_SHORT using TpetraHalfPrecisionOperator [[maybe_unused]] = Xpetra::TpetraHalfPrecisionOperator; #endif #ifdef XPETRA_BLOCKEDCRSMATRIX_SHORT using BlockedCrsMatrix [[maybe_unused]] = Xpetra::BlockedCrsMatrix; #endif #ifdef XPETRA_BLOCKEDMULTIVECTOR_SHORT using BlockedMultiVector [[maybe_unused]] = Xpetra::BlockedMultiVector; #endif #ifdef XPETRA_REORDEREDBLOCKEDMULTIVECTOR_SHORT using ReorderedBlockedMultiVector [[maybe_unused]] = Xpetra::ReorderedBlockedMultiVector; #endif #ifdef XPETRA_REORDEREDBLOCKEDCRSMATRIX_SHORT using ReorderedBlockedCrsMatrix [[maybe_unused]] = Xpetra::ReorderedBlockedCrsMatrix; #endif #ifdef HAVE_XPETRA_THYRA #ifdef XPETRA_THYRAUTILS_SHORT using ThyraUtils [[maybe_unused]] = Xpetra::ThyraUtils; #endif #endif #ifdef XPETRA_CRSMATRIXWRAP_SHORT using CrsMatrixWrap [[maybe_unused]] = Xpetra::CrsMatrixWrap; #endif #ifdef XPETRA_VECTORFACTORY_SHORT using VectorFactory [[maybe_unused]] = Xpetra::VectorFactory; #endif #ifdef XPETRA_CRSMATRIXFACTORY_SHORT using CrsMatrixFactory [[maybe_unused]] = Xpetra::CrsMatrixFactory; #endif #ifdef XPETRA_MULTIVECTORFACTORY_SHORT using MultiVectorFactory [[maybe_unused]] = Xpetra::MultiVectorFactory; #endif #ifdef XPETRA_MATRIXFACTORY_SHORT using MatrixFactory [[maybe_unused]] = Xpetra::MatrixFactory; #endif #ifdef XPETRA_MATRIXFACTORY2_SHORT using MatrixFactory2 [[maybe_unused]] = Xpetra::MatrixFactory2; #endif #ifdef XPETRA_TPETRACRSMATRIX_SHORT using TpetraCrsMatrix [[maybe_unused]] = Xpetra::TpetraCrsMatrix; #endif #ifdef XPETRA_TPETRABLOCKCRSMATRIX_SHORT using TpetraBlockCrsMatrix [[maybe_unused]] = Xpetra::TpetraBlockCrsMatrix; #endif // TODO remove this #ifdef XPETRA_EPETRACRSMATRIX_SHORT #ifndef XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES using EpetraCrsMatrix64 [[maybe_unused]] = Xpetra::EpetraCrsMatrixT; #endif using EpetraCrsMatrix [[maybe_unused]] = Xpetra::EpetraCrsMatrixT; // do we need this??? #endif // TODO remove above entries #ifdef XPETRA_TPETRAMULTIVECTOR_SHORT using TpetraMultiVector [[maybe_unused]] = Xpetra::TpetraMultiVector; #endif #ifdef XPETRA_TPETRAVECTOR_SHORT using TpetraVector [[maybe_unused]] = Xpetra::TpetraVector; #endif #ifdef XPETRA_MAPEXTRACTOR_SHORT using MapExtractor [[maybe_unused]] = Xpetra::MapExtractor; #endif #ifdef XPETRA_MAPEXTRACTORFACTORY_SHORT using MapExtractorFactory [[maybe_unused]] = Xpetra::MapExtractorFactory; #endif // TODO: add namespace {} for shortcut types // Define convenient shortcut for data types using SC [[maybe_unused]] = Scalar; // TODO: do the same for Epetra object (problem of namespace)