deal.II version GIT relicensing-2169-gec1b43f35b 2024-11-22 07:10:00+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
trilinos_tpetra_vector.cc
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2018 - 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_vector.templates.h>
16
17#ifdef DEAL_II_TRILINOS_WITH_TPETRA
18
20
21namespace 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(
37 static_assert(
39# endif
44 <float>(const ::Vector<float> &);
47 <float>(const ::Vector<float> &);
48 namespace internal
49 {
50 template class VectorReference<float, MemorySpace::Host>;
51 template class VectorReference<float, MemorySpace::Default>;
52 } // namespace internal
53# endif
54
55# ifdef HAVE_TPETRA_INST_DOUBLE
56# ifdef DEAL_II_HAVE_CXX20
57 static_assert(
59 static_assert(
61# endif
66 <double>(const ::Vector<double> &);
69 <double>(const ::Vector<double> &);
70 namespace internal
71 {
72 template class VectorReference<double, MemorySpace::Host>;
73 template class VectorReference<double, MemorySpace::Default>;
74 } // namespace internal
75# endif
76
77# ifdef DEAL_II_WITH_COMPLEX_VALUES
78# ifdef HAVE_TPETRA_INST_COMPLEX_FLOAT
79# ifdef DEAL_II_HAVE_CXX20
84# endif
89 <std::complex<float>>(const ::Vector<std::complex<float>> &);
92 <std::complex<float>>(const ::Vector<std::complex<float>> &);
93 namespace internal
94 {
95 template class VectorReference<std::complex<float>, MemorySpace::Host>;
96 template class VectorReference<std::complex<float>, MemorySpace::Default>;
97 } // namespace internal
98# endif
99
100# ifdef HAVE_TPETRA_INST_COMPLEX_DOUBLE
101# ifdef DEAL_II_HAVE_CXX20
106# endif
111 <std::complex<double>>(const ::Vector<std::complex<double>> &);
114 <std::complex<double>>(const ::Vector<std::complex<double>> &);
115 namespace internal
116 {
117 template class VectorReference<std::complex<double>, MemorySpace::Host>;
118 template class VectorReference<std::complex<double>,
120 } // namespace internal
121# endif
122# endif
123 } // namespace TpetraWrappers
124} // namespace LinearAlgebra
125
127
128#endif
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:498
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:499