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
1 merge request!722RELEASE: develop branch to master
......@@ -6,6 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2013-2016 OpenFOAM Foundation
Copyright (C) 2024 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -71,15 +72,27 @@ Foam::fvc::cellReduce
forAll(own, i)
{
label celli = own[i];
const label celli = own[i];
cop(result[celli], ssf[i]);
}
forAll(nbr, i)
{
label celli = nbr[i];
const label celli = nbr[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();
return tresult;
......
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