| 1 | // ------------------------------------------------------------------------ |
| 2 | // |
| 3 | // SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 | // Copyright (C) 2024 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/lac/trilinos_tpetra_block_vector.templates.h> |
| 16 | |
| 17 | #ifdef DEAL_II_TRILINOS_WITH_TPETRA |
| 18 | |
| 19 | DEAL_II_NAMESPACE_OPEN |
| 20 | |
| 21 | namespace LinearAlgebra |
| 22 | { |
| 23 | namespace TpetraWrappers |
| 24 | { |
| 25 | // Instantiate these vectors types for specific scalar types. |
| 26 | // |
| 27 | // While there: |
| 28 | // Check that the class we declare here satisfies the |
| 29 | // vector-space-vector concept. If we catch it here, |
| 30 | // any mistake in the vector class declaration would |
| 31 | // show up in uses of this class later on as well. |
| 32 | |
| 33 | # ifdef HAVE_TPETRA_INST_FLOAT |
| 34 | # ifdef DEAL_II_HAVE_CXX20 |
| 35 | static_assert( |
| 36 | concepts::is_vector_space_vector<BlockVector<float, MemorySpace::Host>>); |
| 37 | static_assert(concepts::is_vector_space_vector< |
| 38 | BlockVector<float, MemorySpace::Default>>); |
| 39 | # endif |
| 40 | template class BlockVector<float, MemorySpace::Host>; |
| 41 | template class BlockVector<float, MemorySpace::Default>; |
| 42 | # endif |
| 43 | # ifdef HAVE_TPETRA_INST_DOUBLE |
| 44 | # ifdef DEAL_II_HAVE_CXX20 |
| 45 | static_assert( |
| 46 | concepts::is_vector_space_vector<BlockVector<double, MemorySpace::Host>>); |
| 47 | static_assert(concepts::is_vector_space_vector< |
| 48 | BlockVector<double, MemorySpace::Default>>); |
| 49 | # endif |
| 50 | template class BlockVector<double, MemorySpace::Host>; |
| 51 | template class BlockVector<double, MemorySpace::Default>; |
| 52 | # endif |
| 53 | # ifdef DEAL_II_WITH_COMPLEX_VALUES |
| 54 | # ifdef HAVE_TPETRA_INST_COMPLEX_FLOAT |
| 55 | # ifdef DEAL_II_HAVE_CXX20 |
| 56 | static_assert(concepts::is_vector_space_vector< |
| 57 | BlockVector<std::complex<float>, MemorySpace::Host>>); |
| 58 | static_assert(concepts::is_vector_space_vector< |
| 59 | BlockVector<std::complex<float>, MemorySpace::Default>>); |
| 60 | # endif |
| 61 | template class BlockVector<std::complex<float>, MemorySpace::Host>; |
| 62 | template class BlockVector<std::complex<float>, MemorySpace::Default>; |
| 63 | # endif |
| 64 | # ifdef HAVE_TPETRA_INST_COMPLEX_DOUBLE |
| 65 | # ifdef DEAL_II_HAVE_CXX20 |
| 66 | static_assert(concepts::is_vector_space_vector< |
| 67 | BlockVector<std::complex<double>, MemorySpace::Host>>); |
| 68 | static_assert(concepts::is_vector_space_vector< |
| 69 | BlockVector<std::complex<double>, MemorySpace::Default>>); |
| 70 | # endif |
| 71 | template class BlockVector<std::complex<double>, MemorySpace::Host>; |
| 72 | template class BlockVector<std::complex<double>, MemorySpace::Default>; |
| 73 | # endif |
| 74 | # endif |
| 75 | } // namespace TpetraWrappers |
| 76 | } // namespace LinearAlgebra |
| 77 | |
| 78 | DEAL_II_NAMESPACE_CLOSE |
| 79 | |
| 80 | #endif // DEAL_II_TRILINOS_WITH_TPETRA |