| 1 | // ------------------------------------------------------------------------ |
| 2 | // |
| 3 | // SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 | // Copyright (C) 2024 - 2025 by the deal.II authors |
| 5 | // |
| 6 | // This file is part of the deal.II library. |
| 7 | // |
| 8 | // Part of the source code is dual licensed under Apache-2.0 WITH |
| 9 | // LLVM-exception OR LGPL-2.1-or-later. Detailed license information |
| 10 | // governing the source code and code contributions can be found in |
| 11 | // LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II. |
| 12 | // |
| 13 | // ------------------------------------------------------------------------ |
| 14 | |
| 15 | #include <deal.II/base/config.h> |
| 16 | |
| 17 | #ifdef DEAL_II_TRILINOS_WITH_TPETRA |
| 18 | |
| 19 | # include <deal.II/lac/trilinos_tpetra_block_sparse_matrix.templates.h> |
| 20 | |
| 21 | DEAL_II_NAMESPACE_OPEN |
| 22 | |
| 23 | # ifndef DOXYGEN |
| 24 | // explicit instantiations |
| 25 | namespace LinearAlgebra |
| 26 | { |
| 27 | namespace TpetraWrappers |
| 28 | { |
| 29 | template class BlockSparseMatrix<double, MemorySpace::Host>; |
| 30 | |
| 31 | template void |
| 32 | BlockSparseMatrix<double, MemorySpace::Host>::reinit( |
| 33 | const ::dealii::BlockDynamicSparsityPattern &); |
| 34 | |
| 35 | template void |
| 36 | BlockSparseMatrix<double, MemorySpace::Host>::reinit< |
| 37 | ::dealii::BlockDynamicSparsityPattern>( |
| 38 | const std::vector<dealii::IndexSet> &, |
| 39 | const ::dealii::BlockDynamicSparsityPattern &, |
| 40 | MPI_Comm, |
| 41 | bool); |
| 42 | |
| 43 | template void |
| 44 | BlockSparseMatrix<double, MemorySpace::Host>::vmult( |
| 45 | TpetraWrappers::Vector<double, MemorySpace::Host> &, |
| 46 | const TpetraWrappers::Vector<double, MemorySpace::Host> &) const; |
| 47 | |
| 48 | template void |
| 49 | BlockSparseMatrix<double, MemorySpace::Host>::Tvmult( |
| 50 | TpetraWrappers::Vector<double, MemorySpace::Host> &, |
| 51 | const TpetraWrappers::Vector<double, MemorySpace::Host> &) const; |
| 52 | |
| 53 | template void |
| 54 | BlockSparseMatrix<double, MemorySpace::Host>::vmult( |
| 55 | TpetraWrappers::BlockVector<double, MemorySpace::Host> &, |
| 56 | const TpetraWrappers::BlockVector<double, MemorySpace::Host> &) const; |
| 57 | |
| 58 | template void |
| 59 | BlockSparseMatrix<double, MemorySpace::Host>::Tvmult( |
| 60 | TpetraWrappers::BlockVector<double, MemorySpace::Host> &, |
| 61 | const TpetraWrappers::BlockVector<double, MemorySpace::Host> &) const; |
| 62 | } // namespace TpetraWrappers |
| 63 | } // namespace LinearAlgebra |
| 64 | # endif // DOXYGEN |
| 65 | |
| 66 | DEAL_II_NAMESPACE_CLOSE |
| 67 | |
| 68 | #endif // DEAL_II_TRILINOS_WITH_TPETRA |