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