deal.II version GIT relicensing-2287-g6548a49e0a 2024-12-20 18:30:00+00:00
|
#include <deal.II/lac/trilinos_tpetra_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 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_Comm > | comm |
Teuchos::RCP< TpetraTypes::ImportType< MemorySpace > > | tpetra_import |
Teuchos::RCP< TpetraTypes::ExportType< MemorySpace > > | tpetra_export |
This class implements a wrapper to Tpetra::Import and Tpetra::Export.
Definition at line 45 of file trilinos_tpetra_communication_pattern.h.
LinearAlgebra::TpetraWrappers::CommunicationPattern< MemorySpace >::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 35 of file trilinos_tpetra_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 52 of file trilinos_tpetra_communication_pattern.cc.
|
overridevirtual |
Return the underlying MPI communicator.
Implements Utilities::MPI::CommunicationPatternBase.
Definition at line 87 of file trilinos_tpetra_communication_pattern.cc.
const Tpetra::Import< int, types::signed_global_dof_index, TpetraTypes::NodeType< MemorySpace > > & LinearAlgebra::TpetraWrappers::CommunicationPattern< MemorySpace >::get_tpetra_import | ( | ) | const |
Return the underlying Tpetra::Import object.
Definition at line 98 of file trilinos_tpetra_communication_pattern.cc.
Teuchos::RCP< TpetraTypes::ImportType< MemorySpace > > LinearAlgebra::TpetraWrappers::CommunicationPattern< MemorySpace >::get_tpetra_import_rcp | ( | ) | const |
Return a Teuchos::RCP to the underlying Tpetra::Import object.
Definition at line 106 of file trilinos_tpetra_communication_pattern.cc.
const Tpetra::Export< int, types::signed_global_dof_index, TpetraTypes::NodeType< MemorySpace > > & LinearAlgebra::TpetraWrappers::CommunicationPattern< MemorySpace >::get_tpetra_export | ( | ) | const |
Return the underlying Tpetra::Export object.
Definition at line 117 of file trilinos_tpetra_communication_pattern.cc.
Teuchos::RCP< TpetraTypes::ExportType< MemorySpace > > LinearAlgebra::TpetraWrappers::CommunicationPattern< MemorySpace >::get_tpetra_export_rcp | ( | ) | const |
Return a Teuchos::RCP to the underlying Tpetra::Export object.
Definition at line 126 of file trilinos_tpetra_communication_pattern.cc.
|
private |
Teuchos::RCP to the MPI communicator used.
Definition at line 120 of file trilinos_tpetra_communication_pattern.h.
|
private |
Teuchos::RCP to the Tpetra::Import object used.
Definition at line 125 of file trilinos_tpetra_communication_pattern.h.
|
private |
Teuchos::RCP to the Tpetra::Export object used.
Definition at line 130 of file trilinos_tpetra_communication_pattern.h.