ENH: fvMatrix: avoid whichPatch. See #3233

This commit is contained in:
mattijs 2024-10-03 18:22:42 +01:00
parent cd2d81b79a
commit 5836d280b9

View File

@ -258,7 +258,9 @@ void Foam::fvMatrix<Type>::setValuesFromList
for (const label facei : cells[celli])
{
if (mesh.isInternalFace(facei))
const label patchi = mesh.boundaryMesh().patchID(facei);
if (patchi == -1)
{
if (symmetric())
{
@ -290,8 +292,6 @@ void Foam::fvMatrix<Type>::setValuesFromList
}
else
{
const label patchi = mesh.boundaryMesh().whichPatch(facei);
if (internalCoeffs_[patchi].size())
{
const label patchFacei =