diff --git a/src/immersedBoundary/immersedBoundary/immersedBoundaryFvPatch/immersedBoundaryFvPatchTriAddressing.C b/src/immersedBoundary/immersedBoundary/immersedBoundaryFvPatch/immersedBoundaryFvPatchTriAddressing.C index c7f669bd2..a85e1c516 100644 --- a/src/immersedBoundary/immersedBoundary/immersedBoundaryFvPatch/immersedBoundaryFvPatchTriAddressing.C +++ b/src/immersedBoundary/immersedBoundary/immersedBoundaryFvPatch/immersedBoundaryFvPatchTriAddressing.C @@ -132,7 +132,7 @@ void Foam::immersedBoundaryFvPatch::makeTriAddressing() const // Discard tri if already visited if (visited[curTri]) continue; - visited.insert(curTri); + visited[curTri] = true; const triFace& curTriPoints = triPatch[curTri];