mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use List clear() instead of setSize(0), resize(0)
- adds some consistency
This commit is contained in:
committed by
Andrew Heather
parent
9ac0f03963
commit
524c953af3
@ -200,7 +200,7 @@ int main(int argc, char *argv[])
|
||||
)
|
||||
{
|
||||
patchMasterBlocks[patchi] = -1;
|
||||
rawPatches[patchi].setSize(0);
|
||||
rawPatches[patchi].clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
@ -71,8 +71,8 @@ bool uniform::sizeLocations
|
||||
scalarField& shapeSizes
|
||||
) const
|
||||
{
|
||||
shapePts.setSize(0);
|
||||
shapeSizes.setSize(0);
|
||||
shapePts.clear();
|
||||
shapeSizes.clear();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user