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
Public Member Functions | Private Attributes | List of all members
LinearAlgebra::TpetraWrappers::CommunicationPattern Class Reference

#include <deal.II/lac/trilinos_tpetra_communication_pattern.h>

Inheritance diagram for LinearAlgebra::TpetraWrappers::CommunicationPattern:
[legend]

Public Member Functions

 CommunicationPattern (const IndexSet &vector_space_vector_index_set, const IndexSet &read_write_vector_index_set, const MPI_Comm communicator)
 
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
 
const Tpetra::Import< int, types::signed_global_dof_index > & get_tpetra_import () const
 
const Tpetra::Export< int, types::signed_global_dof_index > & get_tpetra_export () const
 

Private Attributes

std::shared_ptr< const MPI_Commcomm
 
std::unique_ptr< Tpetra::Import< int, types::signed_global_dof_index > > tpetra_import
 
std::unique_ptr< Tpetra::Export< int, types::signed_global_dof_index > > tpetra_export
 

Detailed Description

This class implements a wrapper to Tpetra::Import and Tpetra::Export.

Definition at line 40 of file trilinos_tpetra_communication_pattern.h.

Constructor & Destructor Documentation

◆ CommunicationPattern()

LinearAlgebra::TpetraWrappers::CommunicationPattern::CommunicationPattern ( const IndexSet vector_space_vector_index_set,
const IndexSet read_write_vector_index_set,
const MPI_Comm  communicator 
)

Reinitialize the communication pattern. The first argument vector_space_vector_index_set is the index set associated to a VectorSpaceVector object. The second argument read_write_vector_index_set is the index set associated to a ReadWriteVector object.

Definition at line 32 of file trilinos_tpetra_communication_pattern.cc.

Member Function Documentation

◆ reinit()

void LinearAlgebra::TpetraWrappers::CommunicationPattern::reinit ( const IndexSet vector_space_vector_index_set,
const IndexSet read_write_vector_index_set,
const MPI_Comm  communicator 
)
overridevirtual

Reinitialize the object.

Implements Utilities::MPI::CommunicationPatternBase.

Definition at line 48 of file trilinos_tpetra_communication_pattern.cc.

◆ get_mpi_communicator()

MPI_Comm LinearAlgebra::TpetraWrappers::CommunicationPattern::get_mpi_communicator ( ) const
overridevirtual

Return the underlying MPI communicator.

Implements Utilities::MPI::CommunicationPatternBase.

Definition at line 75 of file trilinos_tpetra_communication_pattern.cc.

◆ get_tpetra_import()

const Tpetra::Import< int, types::signed_global_dof_index > & LinearAlgebra::TpetraWrappers::CommunicationPattern::get_tpetra_import ( ) const

Return the underlying Tpetra::Import object.

Definition at line 83 of file trilinos_tpetra_communication_pattern.cc.

◆ get_tpetra_export()

const Tpetra::Export< int, types::signed_global_dof_index > & LinearAlgebra::TpetraWrappers::CommunicationPattern::get_tpetra_export ( ) const

Return the underlying Tpetra::Export object.

Definition at line 91 of file trilinos_tpetra_communication_pattern.cc.

Member Data Documentation

◆ comm

std::shared_ptr<const MPI_Comm> LinearAlgebra::TpetraWrappers::CommunicationPattern::comm
private

Shared pointer to the MPI communicator used.

Definition at line 84 of file trilinos_tpetra_communication_pattern.h.

◆ tpetra_import

std::unique_ptr<Tpetra::Import<int, types::signed_global_dof_index> > LinearAlgebra::TpetraWrappers::CommunicationPattern::tpetra_import
private

Shared pointer to the Tpetra::Import object used.

Definition at line 90 of file trilinos_tpetra_communication_pattern.h.

◆ tpetra_export

std::unique_ptr<Tpetra::Export<int, types::signed_global_dof_index> > LinearAlgebra::TpetraWrappers::CommunicationPattern::tpetra_export
private

Shared pointer to the Tpetra::Export object used.

Definition at line 96 of file trilinos_tpetra_communication_pattern.h.


The documentation for this class was generated from the following files: