Commit 2bad528b authored by Tomislav Maric's avatar Tomislav Maric

utilities: fully qualified names for UPstream::commsTypes

Using UPstream::commsTypes::blocking everywhere.This should work on other versions besides -dev.
parent 071ab757
......@@ -374,7 +374,7 @@ void extrudeLayer::createNewVertices()
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
globalLabels.byteSize()
);
......@@ -390,7 +390,7 @@ void extrudeLayer::createNewVertices()
labelList receivedData;
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
......
......@@ -1049,7 +1049,7 @@ void refineBoundaryLayers::generateNewFaces()
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
sendData.byteSize()
);
......@@ -1065,7 +1065,7 @@ void refineBoundaryLayers::generateNewFaces()
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
......
......@@ -117,7 +117,7 @@ void decomposeCells::checkFaceConnections(const boolList& decomposeCell)
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
decFace.byteSize()
);
......@@ -132,7 +132,7 @@ void decomposeCells::checkFaceConnections(const boolList& decomposeCell)
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
......
......@@ -79,7 +79,7 @@ void whisperReduce(const ListType& neis, const scatterOp& sop, gatherOp& gop)
{
//- receive the data
List<T> receivedData;
IPstream fromOtherProc(Pstream::blocking, above[aboveI]);
IPstream fromOtherProc(UPstream::commsTypes::blocking, above[aboveI]);
fromOtherProc >> receivedData;
gop(receivedData);
......@@ -94,7 +94,7 @@ void whisperReduce(const ListType& neis, const scatterOp& sop, gatherOp& gop)
sop(dts);
//- send the data
OPstream toOtherProc(Pstream::blocking, neiProc, dts.byteSize());
OPstream toOtherProc(UPstream::commsTypes::blocking, neiProc, dts.byteSize());
toOtherProc << dts;
}
......@@ -104,7 +104,7 @@ void whisperReduce(const ListType& neis, const scatterOp& sop, gatherOp& gop)
{
//- receive the data
List<T> receivedData;
IPstream fromOtherProc(Pstream::blocking, below[belowI]);
IPstream fromOtherProc(UPstream::commsTypes::blocking, below[belowI]);
fromOtherProc >> receivedData;
gop(receivedData);
......@@ -119,7 +119,7 @@ void whisperReduce(const ListType& neis, const scatterOp& sop, gatherOp& gop)
sop(dts);
//- send the data
OPstream toOtherProc(Pstream::blocking, neiProc, dts.byteSize());
OPstream toOtherProc(UPstream::commsTypes::blocking, neiProc, dts.byteSize());
toOtherProc << dts;
}
}
......@@ -143,14 +143,14 @@ void exchangeMap
labelHashSet receiveData;
for(iter=m.begin();iter!=m.end();++iter)
{
OPstream toOtherProc(Pstream::blocking, iter->first, sizeof(label));
OPstream toOtherProc(UPstream::commsTypes::blocking, iter->first, sizeof(label));
toOtherProc << iter->second.size();
}
for(iter=m.begin();iter!=m.end();++iter)
{
IPstream fromOtherProc(Pstream::blocking, iter->first, sizeof(label));
IPstream fromOtherProc(UPstream::commsTypes::blocking, iter->first, sizeof(label));
label s;
fromOtherProc >> s;
......@@ -159,7 +159,7 @@ void exchangeMap
receiveData.insert(iter->first);
}
if( commsType == Pstream::blocking )
if( commsType == UPstream::commsTypes::blocking )
{
//- start with blocking type of send and received operation
......@@ -173,7 +173,7 @@ void exchangeMap
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
iter->first,
dts.byteSize()
);
......@@ -186,11 +186,11 @@ void exchangeMap
if( !receiveData.found(iter->first) )
continue;
IPstream fromOtherProc(Pstream::blocking, iter->first);
IPstream fromOtherProc(UPstream::commsTypes::blocking, iter->first);
data.appendFromStream(fromOtherProc);
}
}
else if( commsType == Pstream::scheduled )
else if( commsType == UPstream::commsTypes::scheduled )
{
//- start with scheduled data transfer
//- this type of transfer is intended for long messages because
......@@ -205,7 +205,7 @@ void exchangeMap
continue;
//List<T> receive;
IPstream fromOtherProc(Pstream::scheduled, iter->first);
IPstream fromOtherProc(UPstream::commsTypes::scheduled, iter->first);
//fromOtherProc >> receive;
data.appendFromStream(fromOtherProc);
......@@ -226,7 +226,7 @@ void exchangeMap
OPstream toOtherProc
(
Pstream::scheduled,
UPstream::commsTypes::scheduled,
iter->first,
dts.byteSize()
);
......@@ -243,7 +243,7 @@ void exchangeMap
if( !receiveData.found(riter->first) )
continue;
IPstream fromOtherProc(Pstream::scheduled, riter->first);
IPstream fromOtherProc(UPstream::commsTypes::scheduled, riter->first);
//List<T> receive;
//fromOtherProc >> receive;
data.appendFromStream(fromOtherProc);
......@@ -265,7 +265,7 @@ void exchangeMap
OPstream toOtherProc
(
Pstream::scheduled,
UPstream::commsTypes::scheduled,
riter->first,
dts.byteSize()
);
......@@ -317,7 +317,7 @@ void exchangeMap
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
iter->first,
dataToSend.byteSize()
);
......@@ -330,7 +330,7 @@ void exchangeMap
mOut.insert(std::make_pair(iter->first, List<T>()));
List<T>& dataToReceive = mOut[iter->first];
IPstream fromOtherProc(Pstream::blocking, iter->first);
IPstream fromOtherProc(UPstream::commsTypes::blocking, iter->first);
fromOtherProc >> dataToReceive;
}
}
......
......@@ -65,7 +65,7 @@ void exchangeMap
(
const std::map<label, ListType>&,
LongList<T>&,
const Pstream::commsTypes commsType = Pstream::blocking
const UPstream::commsTypes commsType = UPstream::commsTypes::blocking
);
//- sends the data stored in a map to other processors and receives the data
......
......@@ -591,7 +591,7 @@ void partTetMesh::updateOrigMesh(boolList* changedFacePtr)
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
pBnd[patchI].neiProcNo(),
sendData.byteSize()
);
......@@ -605,7 +605,7 @@ void partTetMesh::updateOrigMesh(boolList* changedFacePtr)
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
pBnd[patchI].neiProcNo()
);
......
......@@ -88,7 +88,7 @@ void partTetMesh::createPointsAndTets
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
dataToSend.byteSize()
);
......@@ -103,7 +103,7 @@ void partTetMesh::createPointsAndTets
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
......
......@@ -131,7 +131,7 @@ void polyMeshGenAddressing::calcGlobalPointLabels() const
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
dataToSend.byteSize()
);
......@@ -142,7 +142,7 @@ void polyMeshGenAddressing::calcGlobalPointLabels() const
{
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
labelList receivedData;
......@@ -236,7 +236,7 @@ void polyMeshGenAddressing::calcGlobalPointLabels() const
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
dataToSend.byteSize()
);
......@@ -247,7 +247,7 @@ void polyMeshGenAddressing::calcGlobalPointLabels() const
{
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
labelList receivedData;
......@@ -344,7 +344,7 @@ void polyMeshGenAddressing::calcGlobalFaceLabels() const
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
dataToSend.byteSize()
);
......@@ -358,7 +358,7 @@ void polyMeshGenAddressing::calcGlobalFaceLabels() const
{
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
......@@ -529,7 +529,7 @@ void polyMeshGenAddressing::calcGlobalEdgeLabels() const
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
dataToSend.byteSize()
);
......@@ -540,7 +540,7 @@ void polyMeshGenAddressing::calcGlobalEdgeLabels() const
{
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
labelList receivedData;
......@@ -642,7 +642,7 @@ void polyMeshGenAddressing::calcGlobalEdgeLabels() const
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
dataToSend.byteSize()
);
......@@ -653,7 +653,7 @@ void polyMeshGenAddressing::calcGlobalEdgeLabels() const
{
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
labelList receivedData;
......
......@@ -577,7 +577,7 @@ bool checkCellPartTetrahedra
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBnd[patchI].neiProcNo(),
sendData.byteSize()
);
......@@ -591,7 +591,7 @@ bool checkCellPartTetrahedra
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBnd[patchI].neiProcNo()
);
......@@ -678,7 +678,7 @@ void checkFaceDotProduct
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
cCentres.byteSize()
);
......@@ -691,7 +691,7 @@ void checkFaceDotProduct
vectorField otherCentres;
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
......@@ -1087,7 +1087,7 @@ bool checkFacePyramids
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
markedFaces.byteSize()
);
......@@ -1100,7 +1100,7 @@ bool checkFacePyramids
labelList receivedData;
IPstream fromOtheProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
fromOtheProc >> receivedData;
......@@ -1190,7 +1190,7 @@ void checkFaceSkewness
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
cCentres.byteSize()
);
......@@ -1205,7 +1205,7 @@ void checkFaceSkewness
vectorField otherCentres;
IPstream fromOtheProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
......@@ -1433,7 +1433,7 @@ void checkFaceUniformity
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
dst.byteSize()
);
......@@ -1448,7 +1448,7 @@ void checkFaceUniformity
scalarField otherDst;
IPstream fromOtheProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
......@@ -1895,7 +1895,7 @@ bool checkFaceFlatness
{
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
sizeof(label)
);
......@@ -1908,7 +1908,7 @@ bool checkFaceFlatness
{
IPstream fromOtheProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
sizeof(label)
);
......@@ -1924,7 +1924,7 @@ bool checkFaceFlatness
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
markedFaces[patchI].byteSize()
);
......@@ -1940,7 +1940,7 @@ bool checkFaceFlatness
labelList receivedData;
IPstream fromOtheProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
nMarkedOnOtherProcs[patchI]*sizeof(label)
);
......
......@@ -87,7 +87,7 @@ void polyMeshGenModifier::addBufferCells()
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
......@@ -100,7 +100,7 @@ void polyMeshGenModifier::addBufferCells()
List<labelledPoint> receivedPoints;
IPstream fromOtherProc
(
IPstream::blocking,
UIPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
......@@ -154,7 +154,7 @@ void polyMeshGenModifier::addBufferCells()
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
......@@ -171,7 +171,7 @@ void polyMeshGenModifier::addBufferCells()
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
......
......@@ -126,7 +126,7 @@ void polyMeshGenModifier::removeFaces(const boolList& removeFace)
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
removeProcFace.byteSize()
);
......@@ -142,7 +142,7 @@ void polyMeshGenModifier::removeFaces(const boolList& removeFace)
boolList removeOtherProcFace;
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
fromOtherProc >> removeOtherProcFace;
......
......@@ -66,7 +66,7 @@ inline void meshOptimizer::lockCells(const labelListType& l)
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
dataToSend.byteSize()
);
......@@ -80,7 +80,7 @@ inline void meshOptimizer::lockCells(const labelListType& l)
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
......@@ -146,7 +146,7 @@ inline void meshOptimizer::lockFaces(const labelListType& lf)
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
dataToSend.byteSize()
);
......@@ -160,7 +160,7 @@ inline void meshOptimizer::lockFaces(const labelListType& lf)
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
......@@ -235,7 +235,7 @@ inline void meshOptimizer::lockPoints(const labelListType& lp)
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
dataToSend.byteSize()
);
......@@ -249,7 +249,7 @@ inline void meshOptimizer::lockPoints(const labelListType& lp)
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
......
......@@ -300,7 +300,7 @@ void meshOptimizer::laplaceSmoother::updateMeshGeometry
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
pBnd[patchI].neiProcNo(),
sendData.byteSize()
);
......@@ -314,7 +314,7 @@ void meshOptimizer::laplaceSmoother::updateMeshGeometry
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
pBnd[patchI].neiProcNo()
);
......
......@@ -121,7 +121,7 @@ public:
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
groupOwner.byteSize()
);
......@@ -138,7 +138,7 @@ public:
IPstream fromOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo()
);
......
......@@ -232,7 +232,7 @@ bool checkIrregularSurfaceConnections::checkAndFixCellGroupsAtBndVertices
OPstream toOtherProc
(
Pstream::blocking,
UPstream::commsTypes::blocking,
procBoundaries[patchI].neiProcNo(),
globalLabels.byteSize()
);
......@@ -248,7 +248,7 @@ bool checkIrregularSurfaceConnections::checkAndFixCellGroupsAtBndVertices
labelList receivedData;