mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #2284 from akva2/fix_comm_size
fixed: 0 processes is too 'special' a special case
This commit is contained in:
commit
821e4386bc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user