ENH: fvMatrix: avoid whichPatch. See #3233
This commit is contained in:
parent
cd2d81b79a
commit
5836d280b9
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user