Amesos2 - Direct Sparse Solver Interfaces  Version of the Day
Amesos2_ExplicitInstantiationHelpers.hpp
1 // @HEADER
2 // *****************************************************************************
3 // Amesos2: Templated Direct Sparse Solver Package
4 //
5 // Copyright 2011 NTESS and the Amesos2 contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 
11 #ifndef AMESOS2_EXPLICITINSTANTIATIONHELPER_HPP
12 #define AMESOS2_EXPLICITINSTANTIATIONHELPER_HPP
13 
14 #include <Tpetra_CrsMatrix.hpp>
15 
16 #ifdef HAVE_AMESOS2_EPETRA
17 #include <Epetra_CrsMatrix.h>
18 
19 #define AMESOS2_SOLVER_EPETRA_INST(SOLVERNAME) \
20  template class SOLVERNAME<Epetra_CrsMatrix, Epetra_MultiVector>
21 #endif // HAVE_AMESOS2_EPETRA
22 
23 #define AMESOS2_SOLVER_TPETRA_INST(SOLVERNAME,S,LO,GO) \
24  template class SOLVERNAME<Tpetra::CrsMatrix<S, LO, GO>, Tpetra::MultiVector<S, LO, GO> >
25 
26 #endif // AMESOS2_EXPLICITINSTANTIATIONHELPER_HPP