From ea4c4f1b2f87fd897d6f146573148e7af368891f Mon Sep 17 00:00:00 2001 From: sergio Date: Tue, 5 Jun 2018 10:43:46 -0700 Subject: [PATCH] BUG: Correct EP ID 693. Avoid sum flux over proc patches twice --- src/overset/oversetAdjustPhi/oversetAdjustPhi.C | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/overset/oversetAdjustPhi/oversetAdjustPhi.C b/src/overset/oversetAdjustPhi/oversetAdjustPhi.C index 28c533c761..d678e12664 100644 --- a/src/overset/oversetAdjustPhi/oversetAdjustPhi.C +++ b/src/overset/oversetAdjustPhi/oversetAdjustPhi.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2017 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2017-2018 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -121,19 +121,11 @@ bool Foam::oversetAdjustPhi (ownType == cellCellStencil::CALCULATED) && (neiType == cellCellStencil::INTERPOLATED); - bool neiCalc = - (ownType == cellCellStencil::INTERPOLATED) - && (neiType == cellCellStencil::CALCULATED); - - if (ownCalc || neiCalc) + if (ownCalc) { // Calculate flux w.r.t. calculated cell scalar flux = phip[i]; - if (neiCalc) - { - flux = -flux; - } if (flux < 0.0) {