Commit 557ec619 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Error checking: check status of collective call.

Ensure we check status for all collective calls correctly.
parent d9555377
......@@ -120,8 +120,11 @@ namespace
int numIterations = static_cast<int>(valuesToRead/_INT_MAX) + 1;
int maxNumIterations;
MPI_Allreduce(&numIterations, &maxNumIterations, 1, mpi_type<int>::type(),
MPI_MAX, *this->Communicator.GetHandle());
if (MPI_Allreduce(&numIterations, &maxNumIterations, 1, mpi_type<int>::type(),
MPI_MAX, *this->Communicator.GetHandle()) != MPI_SUCCESS)
{
throw MPIPlot3DException();
}
vtkTypeUInt64 byteOffset = this->Offset;
// simply use the VTK array for scalars.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment