![]() |
Reference documentation for deal.II version 9.6.0
|
#include <deal.II/lac/trilinos_epetra_communication_pattern.h>
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 Epetra_Import & | get_epetra_import () const |
Private Attributes | |
std::shared_ptr< const MPI_Comm > | comm |
std::unique_ptr< Epetra_Import > | importer |
This class implements a wrapper to a Trilinos Epetra_Import object, for use in places where a Utilities::MPI::CommunicationPatternBase object is required.
Definition at line 40 of file trilinos_epetra_communication_pattern.h.
LinearAlgebra::EpetraWrappers::CommunicationPattern::CommunicationPattern | ( | const IndexSet & | locally_owned_indices, |
const IndexSet & | ghost_indices, | ||
const MPI_Comm | communicator ) |
Initialize the communication pattern.
[in] | locally_owned_indices | The set of indices of elements in the array mentioned in the class documentation that are stored on the current process. |
[in] | ghost_indices | The 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] | communicator | The 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 31 of file trilinos_epetra_communication_pattern.cc.
|
overridevirtual |
Reinitialize the communication pattern.
[in] | locally_owned_indices | The set of indices of elements in the array mentioned in the class documentation that are stored on the current process. |
[in] | ghost_indices | The 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] | communicator | The 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 47 of file trilinos_epetra_communication_pattern.cc.
|
overridevirtual |
Return the underlying MPI communicator.
Implements Utilities::MPI::CommunicationPatternBase.
Definition at line 68 of file trilinos_epetra_communication_pattern.cc.
const Epetra_Import & LinearAlgebra::EpetraWrappers::CommunicationPattern::get_epetra_import | ( | ) | const |
Return the underlying Epetra_Import object.
Definition at line 76 of file trilinos_epetra_communication_pattern.cc.
|
private |
Shared pointer to the MPI communicator used.
Definition at line 94 of file trilinos_epetra_communication_pattern.h.
|
private |
Shared pointer to the Epetra_Import object used.
Definition at line 99 of file trilinos_epetra_communication_pattern.h.