STYLE: use List clear() instead of setSize(0), resize(0)

- adds some consistency
This commit is contained in:
Mark Olesen
2023-09-27 17:04:22 +02:00
committed by Andrew Heather
parent 9ac0f03963
commit 524c953af3
15 changed files with 47 additions and 54 deletions

View File

@ -200,7 +200,7 @@ int main(int argc, char *argv[])
)
{
patchMasterBlocks[patchi] = -1;
rawPatches[patchi].setSize(0);
rawPatches[patchi].clear();
}
else
{

View File

@ -1211,7 +1211,7 @@ int main(int argc, char *argv[])
{
meshMod.addPoint(points[pointi], pointi, -1, true);
}
points.setSize(0);
points.clear();
// Add all cells
for (label celli = 0; celli < nCells; celli++)
@ -1411,9 +1411,9 @@ int main(int argc, char *argv[])
}
// Reclaim storage
faces.setSize(0);
owner.setSize(0);
neighbour.setSize(0);
faces.clear();
owner.clear();
neighbour.clear();
// Modify mesh

View File

@ -1059,7 +1059,7 @@ int main(int argc, char *argv[])
}
}
patchFaces.setSize(0); // Assume that this is no patch at all
patchFaces.clear(); // Assume that this is no patch at all
if (cellCorrespondence[faceIndices[0]] >= 0)
{

View File

@ -71,8 +71,8 @@ bool uniform::sizeLocations
scalarField& shapeSizes
) const
{
shapePts.setSize(0);
shapeSizes.setSize(0);
shapePts.clear();
shapeSizes.clear();
return true;
}