Skip to content
Snippets Groups Projects
Commit 0d4c02c8 authored by mattijs's avatar mattijs
Browse files

BUG: mergePolyMesh: zone indexing bug

parent f3590edf
Branches
Tags
No related merge requests found
......@@ -203,7 +203,7 @@ void Foam::mergePolyMesh::addMesh(const polyMesh& m)
// Grab zone ID. If a point is not in a zone, it will return -1
zoneID = pz.whichZone(pointI);
if (zoneID > 0)
if (zoneID >= 0)
{
// Translate zone ID into the new index
zoneID = pointZoneIndices[zoneID];
......@@ -240,7 +240,7 @@ void Foam::mergePolyMesh::addMesh(const polyMesh& m)
// Grab zone ID. If a cell is not in a zone, it will return -1
zoneID = cz.whichZone(cellI);
if (zoneID > 0)
if (zoneID >= 0)
{
// Translate zone ID into the new index
zoneID = cellZoneIndices[zoneID];
......@@ -343,7 +343,7 @@ void Foam::mergePolyMesh::addMesh(const polyMesh& m)
newZone = fz.whichZone(faceI);
newZoneFlip = false;
if (newZone > -1)
if (newZone >= 0)
{
newZoneFlip = fz[newZone].flipMap()[fz[newZone].whichFace(faceI)];
......
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