]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix two places where we used too large numbers in communication channel 9050/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 14 Nov 2019 20:24:03 +0000 (21:24 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 14 Nov 2019 20:24:03 +0000 (21:24 +0100)
include/deal.II/lac/la_parallel_block_vector.templates.h
include/deal.II/matrix_free/matrix_free.h

index 663e2421f865997ed0e04154cd3af7a7f4557b3a..9666fe25e0b4af3424cb463d3bb84b44336869be 100644 (file)
@@ -289,10 +289,10 @@ namespace LinearAlgebra
 
           // In order to avoid conflict with possible other ongoing
           // communication requests (from LA::distributed::Vector that supports
-          // unfinished requests), add an arbitrary number 9923 to the
-          // communication tag
+          // unfinished requests), add 100 to the communication tag (the first
+          // 100 can be used by normal vectors)
           for (unsigned int block = start; block < end; ++block)
-            this->block(block).update_ghost_values_start(block - start + 9923);
+            this->block(block).update_ghost_values_start(block - start + 100);
           for (unsigned int block = start; block < end; ++block)
             this->block(block).update_ghost_values_finish();
         }
index ef0003be65a1fe76edae4abde64ab05fb4a390b5..4ccd2b38cdc1630ee59dc8c9313617dfd26d628d 100644 (file)
@@ -2923,10 +2923,12 @@ namespace internal
   template <int dim, typename Number, typename VectorizedArrayType>
   struct VectorDataExchange
   {
-    // An arbitrary shift for communication to reduce the risk for accidental
+    // A shift for the MPI messages to reduce the risk for accidental
     // interaction with other open communications that a user program might
-    // set up
-    static constexpr unsigned int channel_shift = 103;
+    // set up (parallel vectors support unfinished communication). We let
+    // the other vectors use the first 20 assigned numbers and start the
+    // matrix-free communication.
+    static constexpr unsigned int channel_shift = 20;
 
 
 

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.