18#ifdef DEAL_II_TRILINOS_WITH_TPETRA
22# include <Tpetra_Map.hpp>
30 namespace TpetraWrappers
33 const IndexSet &vector_space_vector_index_set,
34 const IndexSet &read_write_vector_index_set,
41 read_write_vector_index_set,
49 const IndexSet &read_write_vector_index_set,
52 comm = std::make_shared<const MPI_Comm>(communicator);
54 auto vector_space_vector_map =
55 Teuchos::rcp(
new Tpetra::Map<int, types::signed_global_dof_index>(
57 auto read_write_vector_map =
58 Teuchos::rcp(
new Tpetra::Map<int, types::signed_global_dof_index>(
65 std::make_unique<Tpetra::Import<int, types::signed_global_dof_index>>(
66 read_write_vector_map, vector_space_vector_map);
68 std::make_unique<Tpetra::Export<int, types::signed_global_dof_index>>(
69 read_write_vector_map, vector_space_vector_map);
82 const Tpetra::Import<int, types::signed_global_dof_index> &
90 const Tpetra::Export<int, types::signed_global_dof_index> &
Tpetra::Map< int, types::signed_global_dof_index > make_tpetra_map(const MPI_Comm communicator=MPI_COMM_WORLD, const bool overlapping=false) const
const Tpetra::Export< int, types::signed_global_dof_index > & get_tpetra_export() const
CommunicationPattern(const IndexSet &vector_space_vector_index_set, const IndexSet &read_write_vector_index_set, const MPI_Comm communicator)
std::shared_ptr< const MPI_Comm > comm
virtual void reinit(const IndexSet &vector_space_vector_index_set, const IndexSet &read_write_vector_index_set, const MPI_Comm communicator) override
virtual MPI_Comm get_mpi_communicator() const override
std::unique_ptr< Tpetra::Import< int, types::signed_global_dof_index > > tpetra_import
const Tpetra::Import< int, types::signed_global_dof_index > & get_tpetra_import() const
std::unique_ptr< Tpetra::Export< int, types::signed_global_dof_index > > tpetra_export
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE