Changed checking UList from direct memory access to .empty()

This commit is contained in:
Dominik Christ 2014-01-16 13:06:00 +00:00
parent 8d34057e52
commit 4440a34bf9

View file

@ -52,7 +52,7 @@ void Foam::cuttingPlane::calcCutCells
const edgeList& edges = mesh.edges();
label listSize = cellEdges.size();
if (&cellIdLabels)
if (!cellIdLabels.empty())
{
listSize = cellIdLabels.size();
}
@ -65,7 +65,7 @@ void Foam::cuttingPlane::calcCutCells
for (label listI = 0; listI < listSize; ++listI)
{
label cellI = listI;
if (&cellIdLabels)
if (!cellIdLabels.empty())
{
cellI = cellIdLabels[listI];
}
@ -402,7 +402,7 @@ void Foam::cuttingPlane::remapFaces
)
{
// recalculate the cells cut
if (&faceMap && faceMap.size())
if (!faceMap.empty())
{
MeshStorage::remapFaces(faceMap);