diff --git a/MeshGeoToolsLib/MeshNodeSearcher.cpp b/MeshGeoToolsLib/MeshNodeSearcher.cpp index 21a3ccd39863cb5165fbe0be03805192f238600e..b60200744ff0bca922216ab21c06893697b0861e 100644 --- a/MeshGeoToolsLib/MeshNodeSearcher.cpp +++ b/MeshGeoToolsLib/MeshNodeSearcher.cpp @@ -162,7 +162,8 @@ MeshNodeSearcher const& MeshNodeSearcher::getMeshNodeSearcher( if (_mesh_node_searchers[mesh_id]) { auto const& m = *_mesh_node_searchers[mesh_id]; - // recreate searcher if search length algorithm does not fit + // return searcher if search length algorithm and the returned search + // lenght are the same, else recreate the searcher if (typeid(m._search_length_algorithm) == typeid(search_length_algorithm) && m._search_length_algorithm.getSearchLength() ==