Reference documentation for deal.II version 8.5.1
trilinos_epetra_communication_pattern.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2015 - 2016 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 at
12 // the top level of the deal.II distribution.
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 
26 #include <deal.II/base/std_cxx11/shared_ptr.h>
27 #include <deal.II/lac/communication_pattern_base.h>
28 #include "Epetra_Import.h"
29 
30 DEAL_II_NAMESPACE_OPEN
31 
32 namespace LinearAlgebra
33 {
34  namespace EpetraWrappers
35  {
40  {
41  public:
49  CommunicationPattern(const IndexSet &vector_space_vector_index_set,
50  const IndexSet &read_write_vector_index_set,
51  const MPI_Comm &communicator);
52 
56  void reinit(const IndexSet &vector_space_vector_index_set,
57  const IndexSet &read_write_vector_index_set,
58  const MPI_Comm &communicator);
59 
63  const MPI_Comm &get_mpi_communicator() const;
64 
68  const Epetra_Import &get_epetra_import() const;
69 
70  private:
74  std_cxx11::shared_ptr<const MPI_Comm> comm;
75 
79  std_cxx11::shared_ptr<Epetra_Import> import;
80  };
81  } // end of namespace EpetraWrappers
82 } // end of namespace LinearAlgebra
83 
84 DEAL_II_NAMESPACE_CLOSE
85 
86 #endif
87 
88 #endif
89 
90 #endif
void reinit(const IndexSet &vector_space_vector_index_set, const IndexSet &read_write_vector_index_set, const MPI_Comm &communicator)
CommunicationPattern(const IndexSet &vector_space_vector_index_set, const IndexSet &read_write_vector_index_set, const MPI_Comm &communicator)