BUG: polyTopoChange : cell from face creating 2 element list

This commit is contained in:
mattijs
2010-11-16 20:47:55 +00:00
parent b5dddd8980
commit d8dbea4596

View File

@ -1397,7 +1397,7 @@ void Foam::polyTopoChange::calcCellInflationMaps
{
label nCellsFromFaces = 0;
labelList cellsAroundFace(2, -1);
labelList twoCells(2);
// Collect all still existing faces connected to this point.
forAllConstIter(Map<label>, cellFromFace_, iter)
@ -1406,20 +1406,22 @@ void Foam::polyTopoChange::calcCellInflationMaps
if (mesh.isInternalFace(oldFaceI))
{
cellsAroundFace[0] = mesh.faceOwner()[oldFaceI];
cellsAroundFace[1] = mesh.faceNeighbour()[oldFaceI];
twoCells[0] = mesh.faceOwner()[oldFaceI];
twoCells[1] = mesh.faceNeighbour()[oldFaceI];
cellsFromFaces[nCellsFromFaces++] = objectMap
(
iter.key(),
twoCells
);
}
else
{
cellsAroundFace[0] = mesh.faceOwner()[oldFaceI];
cellsAroundFace[1] = -1;
cellsFromFaces[nCellsFromFaces++] = objectMap
(
iter.key(),
labelList(1, mesh.faceOwner()[oldFaceI])
);
}
cellsFromFaces[nCellsFromFaces++] = objectMap
(
iter.key(),
cellsAroundFace
);
}
}