Merge pull request #2504 from akva2/fix_broadcast

fixed: broadcasting an int and receiving as a size_t is a very bad idea
This commit is contained in:
Arne Morten Kvarving
2020-03-30 12:23:29 +02:00
committed by GitHub

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);