BUG: Correct EP ID 693. Avoid sum flux over proc patches twice
This commit is contained in:
parent
67d4736a16
commit
ea4c4f1b2f
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2017-2018 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -121,19 +121,11 @@ bool Foam::oversetAdjustPhi
|
|||||||
(ownType == cellCellStencil::CALCULATED)
|
(ownType == cellCellStencil::CALCULATED)
|
||||||
&& (neiType == cellCellStencil::INTERPOLATED);
|
&& (neiType == cellCellStencil::INTERPOLATED);
|
||||||
|
|
||||||
bool neiCalc =
|
|
||||||
(ownType == cellCellStencil::INTERPOLATED)
|
|
||||||
&& (neiType == cellCellStencil::CALCULATED);
|
|
||||||
|
|
||||||
|
if (ownCalc)
|
||||||
if (ownCalc || neiCalc)
|
|
||||||
{
|
{
|
||||||
// Calculate flux w.r.t. calculated cell
|
// Calculate flux w.r.t. calculated cell
|
||||||
scalar flux = phip[i];
|
scalar flux = phip[i];
|
||||||
if (neiCalc)
|
|
||||||
{
|
|
||||||
flux = -flux;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (flux < 0.0)
|
if (flux < 0.0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user