mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: remove unused code references to Pstream::procID()
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user