fixed: broadcasting an int and receiving as a size_t is a very bad idea

pointy-hat: me
This commit is contained in:
Arne Morten Kvarving 2020-03-30 11:47:19 +02:00
parent f425758c25
commit a456b7dff5

View File

@ -179,7 +179,8 @@ public:
if (m_comm.rank() == 0) {
pack(data);
m_comm.broadcast(&m_position, 1, 0);
m_packSize = m_position;
m_comm.broadcast(&m_packSize, 1, 0);
m_comm.broadcast(m_buffer.data(), m_position, 0);
} else {
m_comm.broadcast(&m_packSize, 1, 0);