Reference documentation for deal.II version GIT relicensing-1062-gc06da148b8 2024-07-15 19:20:02+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
Public Types | 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:
Inheritance graph
[legend]

Public Types

using MemorySpace = ::MemorySpace::Host
 

Public Member Functions

 CommunicationPattern (const IndexSet &locally_owned_indices, const IndexSet &ghost_indices, const MPI_Comm communicator)
 
virtual void reinit (const IndexSet &locally_owned_indices, const IndexSet &ghost_indices, const MPI_Comm communicator) override
 
virtual MPI_Comm get_mpi_communicator () const override
 
const TpetraTypes::ImportType< MemorySpace > & get_tpetra_import () const
 
Teuchos::RCP< TpetraTypes::ImportType< MemorySpace > > get_tpetra_import_rcp () const
 
const TpetraTypes::ExportType< MemorySpace > & get_tpetra_export () const
 
Teuchos::RCP< TpetraTypes::ExportType< MemorySpace > > get_tpetra_export_rcp () const
 

Private Attributes

Teuchos::RCP< const MPI_Commcomm
 
Teuchos::RCP< TpetraTypes::ImportType< MemorySpace > > tpetra_import
 
Teuchos::RCP< TpetraTypes::ExportType< MemorySpace > > tpetra_export
 

Detailed Description

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

Definition at line 43 of file trilinos_tpetra_communication_pattern.h.

Member Typedef Documentation

◆ MemorySpace

Definition at line 46 of file trilinos_tpetra_communication_pattern.h.

Constructor & Destructor Documentation

◆ CommunicationPattern()

LinearAlgebra::TpetraWrappers::CommunicationPattern::CommunicationPattern ( const IndexSet locally_owned_indices,
const IndexSet ghost_indices,
const MPI_Comm  communicator 
)

Initialize the communication pattern.

Parameters
[in]locally_owned_indicesThe set of indices of elements in the array mentioned in the class documentation that are stored on the current process.
[in]ghost_indicesThe set of indices of elements in the array mentioned in the class documentation that the current process will need to be able to import.
[in]communicatorThe MPI communicator used to describe the entire set of processes that participate in the storage and access to elements of the array.

Definition at line 34 of file trilinos_tpetra_communication_pattern.cc.

Member Function Documentation

◆ reinit()

void LinearAlgebra::TpetraWrappers::CommunicationPattern::reinit ( const IndexSet locally_owned_indices,
const IndexSet ghost_indices,
const MPI_Comm  communicator 
)
overridevirtual

Reinitialize the communication pattern.

Parameters
[in]locally_owned_indicesThe set of indices of elements in the array mentioned in the class documentation that are stored on the current process.
[in]ghost_indicesThe set of indices of elements in the array mentioned in the class documentation that the current process will need to be able to import.
[in]communicatorThe MPI communicator used to describe the entire set of processes that participate in the storage and access to elements of the array.

Implements Utilities::MPI::CommunicationPatternBase.

Definition at line 50 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_import_rcp()

Teuchos::RCP< TpetraTypes::ImportType<::MemorySpace::Host > > LinearAlgebra::TpetraWrappers::CommunicationPattern::get_tpetra_import_rcp ( ) const

Return a Teuchos::RCP to the underlying Tpetra::Import object.

Definition at line 91 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 99 of file trilinos_tpetra_communication_pattern.cc.

◆ get_tpetra_export_rcp()

Teuchos::RCP< TpetraTypes::ExportType<::MemorySpace::Host > > LinearAlgebra::TpetraWrappers::CommunicationPattern::get_tpetra_export_rcp ( ) const

Return a Teuchos::RCP to the underlying Tpetra::Export object.

Definition at line 107 of file trilinos_tpetra_communication_pattern.cc.

Member Data Documentation

◆ comm

Teuchos::RCP<const MPI_Comm> LinearAlgebra::TpetraWrappers::CommunicationPattern::comm
private

Teuchos::RCP to the MPI communicator used.

Definition at line 116 of file trilinos_tpetra_communication_pattern.h.

◆ tpetra_import

Teuchos::RCP<TpetraTypes::ImportType<MemorySpace> > LinearAlgebra::TpetraWrappers::CommunicationPattern::tpetra_import
private

Teuchos::RCP to the Tpetra::Import object used.

Definition at line 121 of file trilinos_tpetra_communication_pattern.h.

◆ tpetra_export

Teuchos::RCP<TpetraTypes::ExportType<MemorySpace> > LinearAlgebra::TpetraWrappers::CommunicationPattern::tpetra_export
private

Teuchos::RCP to the Tpetra::Export object used.

Definition at line 126 of file trilinos_tpetra_communication_pattern.h.


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