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;
|
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])
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user