Choose to initialize ghost elements with reinit(partitioner).
void
reinit(
const std::shared_ptr<const Utilities::MPI::Partitioner> &partitioner,
- const MPI_Comm &comm_sm = MPI_COMM_SELF);
+ const MPI_Comm comm_sm = MPI_COMM_SELF);
+ /**
+ * This function exists purely for reasons of compatibility with the
+ * PETScWrappers::MPI::Vector and TrilinosWrappers::MPI::Vector classes.
+ *
+ * It calls the function above, and ignores the parameter @p make_ghosted.
+ */
+ void
+ reinit(
+ const std::shared_ptr<const Utilities::MPI::Partitioner> &partitioner,
+ const bool make_ghosted,
+ const MPI_Comm &comm_sm = MPI_COMM_SELF);
+
/**
* Initialize vector with @p local_size locally-owned and @p ghost_size
* ghost degrees of freedoms.
*/
void
reinit(
- const std::shared_ptr<const Utilities::MPI::Partitioner> &partitioner);
+ const std::shared_ptr<const Utilities::MPI::Partitioner> &partitioner,
+ const bool make_ghosted = true);
- /**
- * Return a reference to the MPI communicator object in use with this
- * vector.
- */
- const MPI_Comm &
- get_mpi_communicator() const override;
-
/**
* Print to a stream. @p precision denotes the desired precision with
* which values shall be printed, @p scientific whether scientific
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams