deal.II version GIT relicensing-6842-g793a97d2aa 2026-10-02 14:00:01+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_epetra_communication_pattern.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2016 - 2026 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13#ifndef dealii_trilinos_epetra_communication_pattern_h
14#define dealii_trilinos_epetra_communication_pattern_h
15
16
17#include <deal.II/base/config.h>
18
19#ifdef DEAL_II_TRILINOS_WITH_EPETRA
20
22
24# include <Epetra_Import.h>
26
27# include <memory>
28
29#endif
30
32
33#ifdef DEAL_II_TRILINOS_WITH_EPETRA
34namespace LinearAlgebra
35{
36 namespace EpetraWrappers
37 {
44 "Transition to functionality provided in TrilinosWrappers or TpetraWrappers!")
46 {
47 public:
61 CommunicationPattern(const IndexSet &locally_owned_indices,
62 const IndexSet &ghost_indices,
63 const MPI_Comm communicator);
64
78 virtual void
79 reinit(const IndexSet &locally_owned_indices,
80 const IndexSet &ghost_indices,
81 const MPI_Comm communicator) override;
82
86 virtual MPI_Comm
87 get_mpi_communicator() const override;
88
92 const Epetra_Import &
93 get_epetra_import() const;
94
95 private:
99 std::shared_ptr<const MPI_Comm> comm;
100
104 std::unique_ptr<Epetra_Import> importer;
105 };
106 } // end of namespace EpetraWrappers
107} // end of namespace LinearAlgebra
108
109#endif
110
112
113#endif
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
Definition config.h:636
#define DEAL_II_DEPRECATED_WITH_COMMENT(comment)
Definition config.h:295
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
#define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
Definition config.h:680