Skip to content

Commit

Permalink
mpidummy: fix some returned error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
germasch committed May 29, 2019
1 parent 1282d4d commit da9f59f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/adios2/helper/mpidummy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ int MPI_Gather(const void *sendbuf, int sendcnt, MPI_Datatype sendtype,
size_t nsent = 0, nrecv = 0;
if (!sendbuf && !recvbuf)
{
return ier;
return MPI_ERR_BUFFER;
}
if (comm == MPI_COMM_NULL || root)
{
Expand Down Expand Up @@ -153,7 +153,7 @@ int MPI_Gatherv(const void *sendbuf, int sendcnt, MPI_Datatype sendtype,
int ier = MPI_SUCCESS;
if (*recvcnts != sendcnt)
{
ier = MPI_ERR_BUFFER;
ier = MPI_ERR_COUNT;
return ier;
}

Expand Down

0 comments on commit da9f59f

Please sign in to comment.