ignore status

This commit is contained in:
mattijs
2008-11-14 13:42:28 +00:00
parent 4d2284c99d
commit 80c19974f1
3 changed files with 8 additions and 20 deletions

View File

@ -193,15 +193,13 @@ void Foam::IPstream::waitRequests()
{
if (IPstream_outstandingRequests_.size() > 0)
{
List<MPI_Status> status(IPstream_outstandingRequests_.size());
if
(
MPI_Waitall
(
IPstream_outstandingRequests_.size(),
IPstream_outstandingRequests_.begin(),
status.begin()
MPI_STATUSES_IGNORE
)
)
{
@ -231,9 +229,7 @@ bool Foam::IPstream::finishedRequest(const label i)
}
int flag;
MPI_Status status;
MPI_Test(&IPstream_outstandingRequests_[i], &flag, &status);
MPI_Test(&IPstream_outstandingRequests_[i], &flag, MPI_STATUS_IGNORE);
return flag != 0;
}

View File

@ -131,15 +131,13 @@ void Foam::OPstream::waitRequests()
{
if (OPstream_outstandingRequests_.size() > 0)
{
List<MPI_Status> status(OPstream_outstandingRequests_.size());
if
(
MPI_Waitall
(
OPstream_outstandingRequests_.size(),
OPstream_outstandingRequests_.begin(),
status.begin()
MPI_STATUSES_IGNORE
)
)
{
@ -169,9 +167,7 @@ bool Foam::OPstream::finishedRequest(const label i)
}
int flag;
MPI_Status status;
MPI_Test(&OPstream_outstandingRequests_[i], &flag, &status);
MPI_Test(&OPstream_outstandingRequests_[i], &flag, MPI_STATUS_IGNORE);
return flag != 0;
}

View File

@ -157,8 +157,6 @@ void Foam::reduce(scalar& Value, const sumOp<scalar>& bop)
if (Pstream::nProcs() <= Pstream::nProcsSimpleSum)
{
MPI_Status status;
if (Pstream::master())
{
for
@ -180,7 +178,7 @@ void Foam::reduce(scalar& Value, const sumOp<scalar>& bop)
Pstream::procID(slave),
Pstream::msgType(),
MPI_COMM_WORLD,
&status
MPI_STATUS_IGNORE
)
)
{
@ -260,7 +258,7 @@ void Foam::reduce(scalar& Value, const sumOp<scalar>& bop)
Pstream::procID(Pstream::masterNo()),
Pstream::msgType(),
MPI_COMM_WORLD,
&status
MPI_STATUS_IGNORE
)
)
{
@ -279,8 +277,6 @@ void Foam::reduce(scalar& Value, const sumOp<scalar>& bop)
Value = sum;
/*
MPI_Status status;
int myProcNo = Pstream::myProcNo();
int nProcs = Pstream::nProcs();
@ -314,7 +310,7 @@ void Foam::reduce(scalar& Value, const sumOp<scalar>& bop)
Pstream::procID(childProcId),
Pstream::msgType(),
MPI_COMM_WORLD,
&status
MPI_STATUS_IGNORE
)
)
{
@ -370,7 +366,7 @@ void Foam::reduce(scalar& Value, const sumOp<scalar>& bop)
Pstream::procID(parentId),
Pstream::msgType(),
MPI_COMM_WORLD,
&status
MPI_STATUS_IGNORE
)
)
{