]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix ConsensusAlgorithms::Serial 11840/head
authorPeter Munch <peterrmuench@gmail.com>
Wed, 3 Mar 2021 17:37:18 +0000 (18:37 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Wed, 3 Mar 2021 17:37:18 +0000 (18:37 +0100)
include/deal.II/base/mpi_consensus_algorithms.templates.h

index 725c611ea0a3e738cb30d02a00e0d27f3238a529..f969d136e1a3bc4e9772dcaa63262ab25674f905 100644 (file)
@@ -575,11 +575,11 @@ namespace Utilities
         std::vector<T1> send_buffer;
         std::vector<T2> recv_buffer;
         std::vector<T2> request_buffer;
-        std::vector<T1> buffer_recv;
 
         this->process.create_request(0, send_buffer);
         this->process.prepare_buffer_for_answer(0, recv_buffer);
-        this->process.answer_request(0, buffer_recv, request_buffer);
+        this->process.answer_request(0, send_buffer, request_buffer);
+        recv_buffer = request_buffer;
         this->process.read_answer(0, recv_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.