diff --git a/MeshLib/Elements/Utils.h b/MeshLib/Elements/Utils.h index 388a1d8bb01e999a97d22ba4ccab39e1e63aad57..248a88b70d5c8405926e4311e2d5c8a98f9de400 100644 --- a/MeshLib/Elements/Utils.h +++ b/MeshLib/Elements/Utils.h @@ -33,7 +33,9 @@ inline std::vector<Node*> getBaseNodes(std::vector<Element*> const& elements) std::back_inserter(base_nodes)); } - BaseLib::makeVectorUnique(base_nodes); + BaseLib::makeVectorUnique(base_nodes, [](Node const* a, Node* b) { + return a->getID() < b->getID(); + }); return base_nodes; }