mirror of
https://github.com/boostorg/mpi.git
synced 2026-01-19 04:22:10 +00:00
Merge pull request #153 from boostorg/138-assertion-inside-scatterv-failed-when-input-==-nullptr
Autorise empty imput in scatterv
This commit is contained in:
@@ -29,7 +29,7 @@ scatterv_impl(const communicator& comm, const T* in_values, T* out_values, int o
|
||||
const int* sizes, const int* displs, int root, mpl::true_)
|
||||
{
|
||||
assert(!sizes || out_size == sizes[comm.rank()]);
|
||||
assert(bool(sizes) == bool(in_values));
|
||||
assert(!bool(in_values) || bool(sizes));
|
||||
|
||||
scoped_array<int> new_offsets_mem(make_offsets(comm, sizes, displs, root));
|
||||
if (new_offsets_mem) displs = new_offsets_mem.get();
|
||||
|
||||
Reference in New Issue
Block a user