Skip to content
Snippets Groups Projects
Commit 791796c6 authored by mattijs's avatar mattijs
Browse files

BUG: cellReduce: use boundary values. Fixes #3255

parent b73de97f
Branches
Tags
1 merge request!722RELEASE: develop branch to master
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2013-2016 OpenFOAM Foundation Copyright (C) 2013-2016 OpenFOAM Foundation
Copyright (C) 2024 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -71,15 +72,27 @@ Foam::fvc::cellReduce ...@@ -71,15 +72,27 @@ Foam::fvc::cellReduce
forAll(own, i) forAll(own, i)
{ {
label celli = own[i]; const label celli = own[i];
cop(result[celli], ssf[i]); cop(result[celli], ssf[i]);
} }
forAll(nbr, i) forAll(nbr, i)
{ {
label celli = nbr[i]; const label celli = nbr[i];
cop(result[celli], ssf[i]); cop(result[celli], ssf[i]);
} }
forAll(mesh.boundary(), patchi)
{
const auto& pFaceCells = mesh.boundary()[patchi].faceCells();
const auto& pssf = ssf.boundaryField()[patchi];
forAll(pssf, i)
{
const label celli = pFaceCells[i];
cop(result[celli], pssf[i]);
}
}
result.correctBoundaryConditions(); result.correctBoundaryConditions();
return tresult; return tresult;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment