mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ignore status
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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
|
||||
)
|
||||
)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user