Reference documentation for deal.II version 9.3.3
\(\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\}}\)
read_write_vector.cc
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2015 - 2021 by the deal.II authors
4//
5// This file is part of the deal.II library.
6//
7// The deal.II library is free software; you can use it, redistribute
8// it, and/or modify it under the terms of the GNU Lesser General
9// Public License as published by the Free Software Foundation; either
10// version 2.1 of the License, or (at your option) any later version.
11// The full text of the license can be found in the file LICENSE.md at
12// the top level directory of deal.II.
13//
14// ---------------------------------------------------------------------
15
17#include <deal.II/lac/read_write_vector.templates.h>
18
20
21#include "read_write_vector.inst"
22
23namespace LinearAlgebra
24{
25 // do a few functions that currently don't fit the scheme because they have
26 // two template arguments that need to be different (the case of same
27 // arguments is covered by the default copy constructor and copy operator that
28 // is declared separately)
29
30#define TEMPL_COPY_CONSTRUCTOR(S1, S2) \
31 template ReadWriteVector<S1> &ReadWriteVector<S1>::operator= \
32 <S2>(const ReadWriteVector<S2> &)
33
34 TEMPL_COPY_CONSTRUCTOR(double, float);
35 TEMPL_COPY_CONSTRUCTOR(float, double);
36#ifdef DEAL_II_WITH_COMPLEX_VALUES
37 TEMPL_COPY_CONSTRUCTOR(std::complex<double>, std::complex<float>);
38 TEMPL_COPY_CONSTRUCTOR(std::complex<float>, std::complex<double>);
39#endif
40
41#undef TEMPL_COPY_CONSTRUCTOR
42
43#ifndef DOXYGEN
44 template void
46 const distributed::Vector<float, ::MemorySpace::Host> &,
48 const std::shared_ptr<const Utilities::MPI::CommunicationPatternBase> &);
49
50 template void
52 const distributed::Vector<double, ::MemorySpace::Host> &,
54 const std::shared_ptr<const Utilities::MPI::CommunicationPatternBase> &);
55# ifdef DEAL_II_WITH_COMPLEX_VALUES
56 template void
57 ReadWriteVector<std::complex<float>>::import(
58 const distributed::Vector<std::complex<float>, ::MemorySpace::Host>
59 &,
61 const std::shared_ptr<const Utilities::MPI::CommunicationPatternBase> &);
62
63 template void
64 ReadWriteVector<std::complex<double>>::import(
65 const distributed::Vector<std::complex<double>, ::MemorySpace::Host>
66 &,
68 const std::shared_ptr<const Utilities::MPI::CommunicationPatternBase> &);
69# endif
70#endif
71} // namespace LinearAlgebra
72
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:402
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:403
void import(const ::Vector< Number > &vec, VectorOperation::values operation, const std::shared_ptr< const Utilities::MPI::CommunicationPatternBase > &communication_pattern={})
TEMPL_COPY_CONSTRUCTOR(double, float)