Reference documentation for deal.II version Git 32ab9f15fd 2020-11-24 23:04:10 -0500
\(\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\}}\)
Public Member Functions | Private Attributes | List of all members
LinearAlgebra::EpetraWrappers::CommunicationPattern Class Reference

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

Inheritance diagram for LinearAlgebra::EpetraWrappers::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 const MPI_Commget_mpi_communicator () const override
 
const Epetra_Import & get_epetra_import () const
 

Private Attributes

std::shared_ptr< const MPI_Commcomm
 
std::unique_ptr< Epetra_Import > importer
 

Detailed Description

This class implements a wrapper to a Trilinos Epetra_Import object, for use in places where a CommunicationPatternBase object is required.

Definition at line 42 of file trilinos_epetra_communication_pattern.h.

Constructor & Destructor Documentation

◆ CommunicationPattern()

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

Initialize 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 34 of file trilinos_epetra_communication_pattern.cc.

Member Function Documentation

◆ reinit()

void LinearAlgebra::EpetraWrappers::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 LinearAlgebra::CommunicationPatternBase.

Definition at line 50 of file trilinos_epetra_communication_pattern.cc.

◆ get_mpi_communicator()

const MPI_Comm & LinearAlgebra::EpetraWrappers::CommunicationPattern::get_mpi_communicator ( ) const
overridevirtual

Return the underlying MPI communicator.

Implements LinearAlgebra::CommunicationPatternBase.

Definition at line 71 of file trilinos_epetra_communication_pattern.cc.

◆ get_epetra_import()

const Epetra_Import & LinearAlgebra::EpetraWrappers::CommunicationPattern::get_epetra_import ( ) const

Return the underlying Epetra_Import object.

Definition at line 79 of file trilinos_epetra_communication_pattern.cc.

Member Data Documentation

◆ comm

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

Shared pointer to the MPI communicator used.

Definition at line 80 of file trilinos_epetra_communication_pattern.h.

◆ importer

std::unique_ptr<Epetra_Import> LinearAlgebra::EpetraWrappers::CommunicationPattern::importer
private

Shared pointer to the Epetra_Import object used.

Definition at line 85 of file trilinos_epetra_communication_pattern.h.


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