Reference documentation for deal.II version 9.5.0
\(\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_epetra_communication_pattern.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2015 - 2023 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
16#ifndef dealii_trilinos_epetra_communication_pattern_h
17#define dealii_trilinos_epetra_communication_pattern_h
18
19
20#include <deal.II/base/config.h>
21
22#ifdef DEAL_II_WITH_TRILINOS
23
25
26# include <Epetra_Import.h>
27
28# include <memory>
29
31
32namespace LinearAlgebra
33{
34 namespace EpetraWrappers
35 {
42 {
43 public:
51 CommunicationPattern(const IndexSet &vector_space_vector_index_set,
52 const IndexSet &read_write_vector_index_set,
53 const MPI_Comm communicator);
54
58 virtual void
59 reinit(const IndexSet &vector_space_vector_index_set,
60 const IndexSet &read_write_vector_index_set,
61 const MPI_Comm communicator) override;
62
66 virtual MPI_Comm
67 get_mpi_communicator() const override;
68
72 const Epetra_Import &
73 get_epetra_import() const;
74
75 private:
79 std::shared_ptr<const MPI_Comm> comm;
80
84 std::unique_ptr<Epetra_Import> importer;
85 };
86 } // end of namespace EpetraWrappers
87} // end of namespace LinearAlgebra
88
90
91#endif
92
93#endif
virtual void reinit(const IndexSet &vector_space_vector_index_set, const IndexSet &read_write_vector_index_set, const MPI_Comm communicator) override
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473