STYLE: remove unused code references to Pstream::procID()

This commit is contained in:
Mark Olesen
2018-09-18 14:33:56 +02:00
parent 48cb2de4eb
commit ad8ac2fcd0

View File

@ -56,9 +56,9 @@ void Foam::allReduce
{ {
for for
( (
int slave=UPstream::firstSlave(); int proci=UPstream::firstSlave();
slave<=UPstream::lastSlave(communicator); proci<=UPstream::lastSlave(communicator);
slave++ ++proci
) )
{ {
Type value; Type value;
@ -70,7 +70,7 @@ void Foam::allReduce
&value, &value,
MPICount, MPICount,
MPIType, MPIType,
slave, //UPstream::procID(slave), proci,
tag, tag,
PstreamGlobals::MPICommunicators_[communicator], PstreamGlobals::MPICommunicators_[communicator],
MPI_STATUS_IGNORE MPI_STATUS_IGNORE
@ -94,7 +94,7 @@ void Foam::allReduce
&Value, &Value,
MPICount, MPICount,
MPIType, MPIType,
UPstream::masterNo(),//UPstream::procID(masterNo()), UPstream::masterNo(),
tag, tag,
PstreamGlobals::MPICommunicators_[communicator] PstreamGlobals::MPICommunicators_[communicator]
) )
@ -111,9 +111,9 @@ void Foam::allReduce
{ {
for for
( (
int slave=UPstream::firstSlave(); int proci=UPstream::firstSlave();
slave<=UPstream::lastSlave(communicator); proci<=UPstream::lastSlave(communicator);
slave++ ++proci
) )
{ {
if if
@ -123,7 +123,7 @@ void Foam::allReduce
&Value, &Value,
MPICount, MPICount,
MPIType, MPIType,
slave, //UPstream::procID(slave), proci,
tag, tag,
PstreamGlobals::MPICommunicators_[communicator] PstreamGlobals::MPICommunicators_[communicator]
) )
@ -144,7 +144,7 @@ void Foam::allReduce
&Value, &Value,
MPICount, MPICount,
MPIType, MPIType,
UPstream::masterNo(),//UPstream::procID(masterNo()), UPstream::masterNo(),
tag, tag,
PstreamGlobals::MPICommunicators_[communicator], PstreamGlobals::MPICommunicators_[communicator],
MPI_STATUS_IGNORE MPI_STATUS_IGNORE