Commit 68d879b5 authored by Henry Weller's avatar Henry Weller Committed by Andrew Heather
Browse files

GAMG: removed warnComm

parent e3baecec
......@@ -374,10 +374,6 @@ void Foam::GAMGAgglomeration::procAgglomerateLduAddressing
const lduMesh& myMesh = meshLevels_[levelIndex-1];
label oldWarn = UPstream::warnComm;
UPstream::warnComm = meshComm;
procAgglomMap_.set(levelIndex, new labelList(procAgglomMap));
agglomProcIDs_.set(levelIndex, new labelList(procIDs));
procCommunicator_[levelIndex] = allMeshComm;
......@@ -435,8 +431,6 @@ void Foam::GAMGAgglomeration::procAgglomerateLduAddressing
{
clearLevel(levelIndex);
}
UPstream::warnComm = oldWarn;
}
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -253,13 +253,6 @@ Foam::GAMGSolver::GAMGSolver
if (matrixLevels_.set(coarsestLevel))
{
const lduMesh& coarsestMesh =
matrixLevels_[coarsestLevel].mesh();
label coarseComm = coarsestMesh.comm();
label oldWarn = UPstream::warnComm;
UPstream::warnComm = coarseComm;
coarsestLUMatrixPtr_.set
(
new LUscalarMatrix
......@@ -269,8 +262,6 @@ Foam::GAMGSolver::GAMGSolver
interfaceLevels_[coarsestLevel]
)
);
UPstream::warnComm = oldWarn;
}
}
}
......
......@@ -433,14 +433,8 @@ void Foam::GAMGSolver::procAgglomerateMatrix
interfaceLevelsIntCoeffs_[levelI];
const lduMesh& coarsestMesh = coarsestMatrix.mesh();
label coarseComm = coarsestMesh.comm();
label oldWarn = UPstream::warnComm;
UPstream::warnComm = coarseComm;
// Gather all matrix coefficients onto agglomProcIDs[0]
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......@@ -731,7 +725,6 @@ void Foam::GAMGSolver::procAgglomerateMatrix
// }
//}
}
UPstream::warnComm = oldWarn;
}
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
......@@ -556,8 +556,6 @@ void Foam::GAMGSolver::solveCoarsestLevel
const label coarsestLevel = matrixLevels_.size() - 1;
label coarseComm = matrixLevels_[coarsestLevel].mesh().comm();
label oldWarn = UPstream::warnComm;
UPstream::warnComm = coarseComm;
if (directSolveCoarsest_)
{
......@@ -595,9 +593,6 @@ void Foam::GAMGSolver::solveCoarsestLevel
// //solverPerformance coarseSolverPerf;
//
// label solveComm = agglomeration_.procCommunicator(coarsestLevel);
// label oldWarn = UPstream::warnComm;
// UPstream::warnComm = solveComm;
//
//
// coarsestCorrField = 0;
// solverPerformance coarseSolverPerf;
......@@ -645,7 +640,6 @@ void Foam::GAMGSolver::solveCoarsestLevel
// }
// }
//
// UPstream::warnComm = oldWarn;
// Pout<< "done master solve." << endl;
//
// //// Scatter to all processors
......@@ -709,8 +703,6 @@ void Foam::GAMGSolver::solveCoarsestLevel
coarseSolverPerf.print(Info.masterStream(coarseComm));
}
}
UPstream::warnComm = oldWarn;
}
......
......@@ -100,9 +100,6 @@ void Foam::processorGAMGInterfaceField::initInterfaceMatrixUpdate
const Pstream::commsTypes commsType
) const
{
label oldWarn = UPstream::warnComm;
UPstream::warnComm = comm();
procInterface_.interfaceInternalField(psiInternal, scalarSendBuf_);
if
......@@ -141,8 +138,6 @@ void Foam::processorGAMGInterfaceField::initInterfaceMatrixUpdate
}
const_cast<processorGAMGInterfaceField&>(*this).updatedMatrix() = false;
UPstream::warnComm = oldWarn;
}
......@@ -161,9 +156,6 @@ void Foam::processorGAMGInterfaceField::updateInterfaceMatrix
return;
}
label oldWarn = UPstream::warnComm;
UPstream::warnComm = comm();
if
(
commsType == Pstream::commsTypes::nonBlocking
......@@ -203,8 +195,6 @@ void Foam::processorGAMGInterfaceField::updateInterfaceMatrix
}
const_cast<processorGAMGInterfaceField&>(*this).updatedMatrix() = true;
UPstream::warnComm = oldWarn;
}
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -190,12 +190,7 @@ void Foam::processorGAMGInterface::initInternalFieldTransfer
const labelUList& iF
) const
{
label oldWarn = UPstream::warnComm;
UPstream::warnComm = comm();
send(commsType, interfaceInternalField(iF)());
UPstream::warnComm = oldWarn;
}
......@@ -205,13 +200,8 @@ Foam::tmp<Foam::labelField> Foam::processorGAMGInterface::internalFieldTransfer
const labelUList& iF
) const
{
label oldWarn = UPstream::warnComm;
UPstream::warnComm = comm();
tmp<Field<label>> tfld(receive<label>(commsType, this->size()));
UPstream::warnComm = oldWarn;
return tfld;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment