BUG: extractEulerianParticles - corrected patch index. Fixes #2707

This commit is contained in:
Andrew Heather
2024-06-07 12:22:07 +01:00
parent 790de0f98e
commit b2532e7769

View File

@ -43,7 +43,7 @@ Type Foam::functionObjects::extractEulerianParticles::faceValue
{
label patchi = patchIDs_[localFacei];
label pFacei = patchFaceIDs_[localFacei];
if (patchi != 0)
if (patchi != -1)
{
return field.boundaryField()[patchi][pFacei];
}