Reference documentation for deal.II version 9.2.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\}}\)
trilinos_epetra_communication_pattern.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2015 - 2018 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 
24 # ifdef DEAL_II_WITH_MPI
25 
27 
28 # include <Epetra_Import.h>
29 
30 # include <memory>
31 
33 
34 namespace LinearAlgebra
35 {
36  namespace EpetraWrappers
37  {
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 const 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> import;
85  };
86  } // end of namespace EpetraWrappers
87 } // end of namespace LinearAlgebra
88 
90 
91 # endif
92 
93 #endif
94 
95 #endif
LinearAlgebra::EpetraWrappers::CommunicationPattern::CommunicationPattern
CommunicationPattern(const IndexSet &vector_space_vector_index_set, const IndexSet &read_write_vector_index_set, const MPI_Comm &communicator)
Definition: trilinos_epetra_communication_pattern.cc:36
IndexSet
Definition: index_set.h:74
LinearAlgebra
Definition: communication_pattern_base.h:30
LinearAlgebra::EpetraWrappers::CommunicationPattern::reinit
virtual void reinit(const IndexSet &vector_space_vector_index_set, const IndexSet &read_write_vector_index_set, const MPI_Comm &communicator) override
Definition: trilinos_epetra_communication_pattern.cc:52
LinearAlgebra::EpetraWrappers::CommunicationPattern
Definition: trilinos_epetra_communication_pattern.h:41
MPI_Comm
LinearAlgebra::EpetraWrappers::CommunicationPattern::comm
std::shared_ptr< const MPI_Comm > comm
Definition: trilinos_epetra_communication_pattern.h:79
communication_pattern_base.h
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
config.h
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
LinearAlgebra::EpetraWrappers::CommunicationPattern::get_epetra_import
const Epetra_Import & get_epetra_import() const
Definition: trilinos_epetra_communication_pattern.cc:81
LinearAlgebra::CommunicationPatternBase
Definition: communication_pattern_base.h:42
LinearAlgebra::EpetraWrappers::CommunicationPattern::get_mpi_communicator
virtual const MPI_Comm & get_mpi_communicator() const override
Definition: trilinos_epetra_communication_pattern.cc:73