From 7c159a7c76f04b3020d2ca635c5fd4ccf57875ce Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 12 Jan 2022 21:51:39 -0700 Subject: [PATCH] Small updates to the Serial documentation. --- .../deal.II/base/mpi_consensus_algorithms.templates.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/deal.II/base/mpi_consensus_algorithms.templates.h b/include/deal.II/base/mpi_consensus_algorithms.templates.h index 1fd79d17f3..1e216c979a 100644 --- a/include/deal.II/base/mpi_consensus_algorithms.templates.h +++ b/include/deal.II/base/mpi_consensus_algorithms.templates.h @@ -610,10 +610,19 @@ namespace Utilities { const auto targets = this->process.compute_targets(); + // The only valid target for a serial program is itself. if (targets.size() != 0) { + Assert(targets.size() == 1, + ExcMessage( + "On a single process, the only valid target " + "is process zero (the process itself), which can only be " + "listed once.")); AssertDimension(targets[0], 0); + // Since the caller indicates that there is a target, and since we + // know that it is the current process, let the process send + // something to itself. std::vector send_buffer; std::vector recv_buffer; std::vector request_buffer; -- 2.39.5