diff --git a/applications/utilities/mesh/manipulation/createPatch/createPatch.C b/applications/utilities/mesh/manipulation/createPatch/createPatch.C index 9a8dcd47db..f15ad18ce1 100644 --- a/applications/utilities/mesh/manipulation/createPatch/createPatch.C +++ b/applications/utilities/mesh/manipulation/createPatch/createPatch.C @@ -606,7 +606,7 @@ void syncPoints pointField nbrPatchInfo(procPatch.nPoints()); { // We do not know the number of points on the other side - // so cannot use Pstream::read. + // so cannot use UIPstream::read IPstream fromNbr ( Pstream::commsTypes::blocking, diff --git a/src/OpenFOAM/db/IOobjects/decomposedBlockData/decomposedBlockData.C b/src/OpenFOAM/db/IOobjects/decomposedBlockData/decomposedBlockData.C index 31003c8293..61b8732963 100644 --- a/src/OpenFOAM/db/IOobjects/decomposedBlockData/decomposedBlockData.C +++ b/src/OpenFOAM/db/IOobjects/decomposedBlockData/decomposedBlockData.C @@ -789,7 +789,7 @@ bool Foam::decomposedBlockData::writeBlocks for (label proci = 1; proci < nProcs; ++proci) { elems.resize(recvSizes[proci]); - IPstream::read + UIPstream::read ( UPstream::commsTypes::scheduled, proci, diff --git a/src/OpenFOAM/fields/pointPatchFields/constraint/processorCyclic/processorCyclicPointPatchField.C b/src/OpenFOAM/fields/pointPatchFields/constraint/processorCyclic/processorCyclicPointPatchField.C index 0e4ab1e9e5..5abd549408 100644 --- a/src/OpenFOAM/fields/pointPatchFields/constraint/processorCyclic/processorCyclicPointPatchField.C +++ b/src/OpenFOAM/fields/pointPatchFields/constraint/processorCyclic/processorCyclicPointPatchField.C @@ -119,7 +119,7 @@ void Foam::processorCyclicPointPatchField::initSwapAddSeparated if (commsType == Pstream::commsTypes::nonBlocking) { receiveBuf_.setSize(pf.size()); - IPstream::read + UIPstream::read ( commsType, procPatch_.neighbProcNo(), @@ -129,7 +129,7 @@ void Foam::processorCyclicPointPatchField::initSwapAddSeparated procPatch_.comm() ); } - OPstream::write + UOPstream::write ( commsType, procPatch_.neighbProcNo(), @@ -155,7 +155,7 @@ void Foam::processorCyclicPointPatchField::swapAddSeparated if (commsType != Pstream::commsTypes::nonBlocking) { receiveBuf_.setSize(this->size()); - IPstream::read + UIPstream::read ( commsType, procPatch_.neighbProcNo(), diff --git a/src/OpenFOAM/matrices/LUscalarMatrix/LUscalarMatrix.C b/src/OpenFOAM/matrices/LUscalarMatrix/LUscalarMatrix.C index a8e5666060..65468a617c 100644 --- a/src/OpenFOAM/matrices/LUscalarMatrix/LUscalarMatrix.C +++ b/src/OpenFOAM/matrices/LUscalarMatrix/LUscalarMatrix.C @@ -86,7 +86,7 @@ Foam::LUscalarMatrix::LUscalarMatrix if (Pstream::master(comm_)) { - for (const int slave : Pstream::subProcs(comm_)) + for (const int proci : Pstream::subProcs(comm_)) { lduMatrices.set ( @@ -96,7 +96,7 @@ Foam::LUscalarMatrix::LUscalarMatrix IPstream ( Pstream::commsTypes::scheduled, - slave, + proci, 0, // bufSize Pstream::msgType(), comm_ diff --git a/src/OpenFOAM/matrices/LUscalarMatrix/LUscalarMatrixTemplates.C b/src/OpenFOAM/matrices/LUscalarMatrix/LUscalarMatrixTemplates.C index 159a6af98f..568275e54c 100644 --- a/src/OpenFOAM/matrices/LUscalarMatrix/LUscalarMatrixTemplates.C +++ b/src/OpenFOAM/matrices/LUscalarMatrix/LUscalarMatrixTemplates.C @@ -54,17 +54,17 @@ void Foam::LUscalarMatrix::solve SubList(X, x.size()) = x; - for (const int slave : Pstream::subProcs(comm_)) + for (const int proci : Pstream::subProcs(comm_)) { - IPstream::read + UIPstream::read ( Pstream::commsTypes::scheduled, - slave, + proci, reinterpret_cast ( - &(X[procOffsets_[slave]]) + &(X[procOffsets_[proci]]) ), - (procOffsets_[slave+1]-procOffsets_[slave])*sizeof(Type), + (procOffsets_[proci+1]-procOffsets_[proci])*sizeof(Type), Pstream::msgType(), comm_ ); @@ -72,7 +72,7 @@ void Foam::LUscalarMatrix::solve } else { - OPstream::write + UOPstream::write ( Pstream::commsTypes::scheduled, Pstream::masterNo(), @@ -89,17 +89,17 @@ void Foam::LUscalarMatrix::solve x = SubList(X, x.size()); - for (const int slave : Pstream::subProcs(comm_)) + for (const int proci : Pstream::subProcs(comm_)) { - OPstream::write + UOPstream::write ( Pstream::commsTypes::scheduled, - slave, + proci, reinterpret_cast ( - &(X[procOffsets_[slave]]) + &(X[procOffsets_[proci]]) ), - (procOffsets_[slave+1]-procOffsets_[slave])*sizeof(Type), + (procOffsets_[proci+1]-procOffsets_[proci])*sizeof(Type), Pstream::msgType(), comm_ ); @@ -107,7 +107,7 @@ void Foam::LUscalarMatrix::solve } else { - IPstream::read + UIPstream::read ( Pstream::commsTypes::scheduled, Pstream::masterNo(), diff --git a/src/OpenFOAM/matrices/lduMatrix/lduAddressing/lduInterface/processorLduInterfaceTemplates.C b/src/OpenFOAM/matrices/lduMatrix/lduAddressing/lduInterface/processorLduInterfaceTemplates.C index fa2292c6e5..875d202faa 100644 --- a/src/OpenFOAM/matrices/lduMatrix/lduAddressing/lduInterface/processorLduInterfaceTemplates.C +++ b/src/OpenFOAM/matrices/lduMatrix/lduAddressing/lduInterface/processorLduInterfaceTemplates.C @@ -47,7 +47,7 @@ void Foam::processorLduInterface::send || commsType == Pstream::commsTypes::scheduled ) { - OPstream::write + UOPstream::write ( commsType, neighbProcNo(), @@ -61,7 +61,7 @@ void Foam::processorLduInterface::send { resizeBuf(receiveBuf_, nBytes); - IPstream::read + UIPstream::read ( commsType, neighbProcNo(), @@ -77,7 +77,7 @@ void Foam::processorLduInterface::send static_cast(sendBuf_.data()), f.cdata(), nBytes ); - OPstream::write + UOPstream::write ( commsType, neighbProcNo(), @@ -109,7 +109,7 @@ void Foam::processorLduInterface::receive || commsType == Pstream::commsTypes::scheduled ) { - IPstream::read + UIPstream::read ( commsType, neighbProcNo(), @@ -181,7 +181,7 @@ void Foam::processorLduInterface::compressedSend || commsType == Pstream::commsTypes::scheduled ) { - OPstream::write + UOPstream::write ( commsType, neighbProcNo(), @@ -195,7 +195,7 @@ void Foam::processorLduInterface::compressedSend { resizeBuf(receiveBuf_, nBytes); - IPstream::read + UIPstream::read ( commsType, neighbProcNo(), @@ -205,7 +205,7 @@ void Foam::processorLduInterface::compressedSend comm() ); - OPstream::write + UOPstream::write ( commsType, neighbProcNo(), @@ -252,7 +252,7 @@ void Foam::processorLduInterface::compressedReceive { resizeBuf(receiveBuf_, nBytes); - IPstream::read + UIPstream::read ( commsType, neighbProcNo(), diff --git a/src/OpenFOAM/matrices/lduMatrix/solvers/GAMG/GAMGSolverAgglomerateMatrix.C b/src/OpenFOAM/matrices/lduMatrix/solvers/GAMG/GAMGSolverAgglomerateMatrix.C index 6e0a01f9cd..a6dc781272 100644 --- a/src/OpenFOAM/matrices/lduMatrix/solvers/GAMG/GAMGSolverAgglomerateMatrix.C +++ b/src/OpenFOAM/matrices/lduMatrix/solvers/GAMG/GAMGSolverAgglomerateMatrix.C @@ -318,7 +318,7 @@ void Foam::GAMGSolver::gatherMatrices { label otherI = proci-1; - IPstream fromSlave + IPstream fromProc ( Pstream::commsTypes::scheduled, procIDs[proci], @@ -327,14 +327,14 @@ void Foam::GAMGSolver::gatherMatrices meshComm ); - otherMats.set(otherI, new lduMatrix(dummyMesh, fromSlave)); + otherMats.set(otherI, new lduMatrix(dummyMesh, fromProc)); // Receive number of/valid interfaces boolList& procTransforms = otherTransforms[otherI]; List