Mesh: remove trailing whitespace

This commit is contained in:
luz paz
2022-11-10 06:41:42 -05:00
committed by Chris Hennes
parent 356faf94da
commit c174e063f3
102 changed files with 632 additions and 633 deletions

View File

@@ -60,11 +60,11 @@ void MeshBuilder::Initialize (size_t ctFacets, bool deletion)
{
// Clear the mesh structure and free all memory
_meshKernel.Clear();
// Allocate new memory that is needed later on. If AddFacet() gets called exactly ctFacets times there is no wastage of memory
// otherwise the vector reallocates ~50% of its future memory usage.
// Note: A feature of the std::vector implementation is that it can hold more memory (capacity) than it actually needs (size).
// This usually happens if its elements are added without specifying its final size. Later on it's a bit tricky to free the wasted
// This usually happens if its elements are added without specifying its final size. Later on it's a bit tricky to free the wasted
// memory. So we're strived to avoid the wastage of memory.
_meshKernel._aclFacetArray.reserve(ctFacets);