From 6e95af8efdf723ee1f527ae6290f7855b3ad215e Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <dmitri.naumov@ufz.de>
Date: Tue, 20 Aug 2024 14:54:20 +0200
Subject: [PATCH] [MeL] Shrink return vector size

---
 MeshLib/Elements/Utils.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/MeshLib/Elements/Utils.h b/MeshLib/Elements/Utils.h
index e78c4190ced..5174dcff86b 100644
--- a/MeshLib/Elements/Utils.h
+++ b/MeshLib/Elements/Utils.h
@@ -36,6 +36,7 @@ inline std::vector<Node*> getBaseNodes(std::vector<Element*> const& elements)
 
     BaseLib::makeVectorUnique(base_nodes, MeshLib::idsComparator<Node*>);
 
+    base_nodes.shrink_to_fit();
     return base_nodes;
 }
 
-- 
GitLab