const MPI_Comm communicator);
/**
- * Reinitialize the object.
+ * Reinitialize the communication pattern.
+ *
+ * @param[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.
+ * @param[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.
+ * @param[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.
*/
virtual void
- reinit(const IndexSet &vector_space_vector_index_set,
- const IndexSet &read_write_vector_index_set,
+ reinit(const IndexSet &locally_owned_indices,
+ const IndexSet &ghost_indices,
const MPI_Comm communicator) override;
/**
const MPI_Comm communicator);
/**
- * Reinitialize the object.
+ * Reinitialize the communication pattern.
+ *
+ * @param[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.
+ * @param[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.
+ * @param[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.
*/
virtual void
- reinit(const IndexSet &vector_space_vector_index_set,
- const IndexSet &read_write_vector_index_set,
+ reinit(const IndexSet &locally_owned_indices,
+ const IndexSet &ghost_indices,
const MPI_Comm communicator) override;
/**
void
- CommunicationPattern::reinit(const IndexSet &vector_space_vector_index_set,
- const IndexSet &read_write_vector_index_set,
+ CommunicationPattern::reinit(const IndexSet &locally_owned_indices,
+ const IndexSet &ghost_indices,
const MPI_Comm communicator)
{
comm = std::make_shared<const MPI_Comm>(communicator);
Epetra_Map vector_space_vector_map =
- vector_space_vector_index_set.make_trilinos_map(*comm, false);
+ locally_owned_indices.make_trilinos_map(*comm, false);
Epetra_Map read_write_vector_map =
- read_write_vector_index_set.make_trilinos_map(*comm, true);
+ ghost_indices.make_trilinos_map(*comm, true);
// Target map is read_write_vector_map
// Source map is vector_space_vector_map. This map must have uniquely
void
- CommunicationPattern::reinit(const IndexSet &vector_space_vector_index_set,
- const IndexSet &read_write_vector_index_set,
+ CommunicationPattern::reinit(const IndexSet &locally_owned_indices,
+ const IndexSet &ghost_indices,
const MPI_Comm communicator)
{
comm = std::make_shared<const MPI_Comm>(communicator);
auto vector_space_vector_map =
Teuchos::rcp(new Tpetra::Map<int, types::signed_global_dof_index>(
- vector_space_vector_index_set.make_tpetra_map(*comm, false)));
+ locally_owned_indices.make_tpetra_map(*comm, false)));
auto read_write_vector_map =
Teuchos::rcp(new Tpetra::Map<int, types::signed_global_dof_index>(
- read_write_vector_index_set.make_tpetra_map(*comm, true)));
+ ghost_indices.make_tpetra_map(*comm, true)));
// Target map is read_write_vector_map
// Source map is vector_space_vector_map. This map must have uniquely