]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Small updates to the Serial documentation. 13235/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 13 Jan 2022 04:51:39 +0000 (21:51 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 15 Jan 2022 14:07:32 +0000 (07:07 -0700)
include/deal.II/base/mpi_consensus_algorithms.templates.h

index 1fd79d17f3b95bc6b0f58cff60c01c56e8116932..1e216c979a233e2646e9b7d9564bbeb9e4d1994c 100644 (file)
@@ -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<T1> send_buffer;
             std::vector<T2> recv_buffer;
             std::vector<T2> request_buffer;

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


Typeset in Trocchi and Trocchi Bold Sans Serif.