mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: polyTopoChange : cell from face creating 2 element list
This commit is contained in:
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user