Merge pull request #2284 from akva2/fix_comm_size

fixed: 0 processes is too 'special' a special case
This commit is contained in:
Arne Morten Kvarving 2020-01-17 13:08:39 +01:00 committed by GitHub
commit 821e4386bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -763,7 +763,7 @@ ADD_PACK_PROTOTYPES(WListManager)
template<class T, class C>
const T& packAndSend(const T& in, const C& comm)
{
if (comm.size() == 0)
if (comm.size() == 1)
return in;
std::size_t size = packSize(in, comm);