Skip to content

Commit 22519e6

Browse files
committed
Fix neighbor cache corruption due to missing clear before re-population
Signed-off-by: atharrva01 <atharvaborade568@gmail.com>
1 parent b8aa228 commit 22519e6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/core/execution_context/in_place_exec_ctxt.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ void InPlaceExecutionContext::ForEachNeighbor(
276276
// Store the search radius to check validity of cache in consecutive use of
277277
// ForEachNeighbor
278278
cached_squared_search_radius_ = squared_radius;
279+
neighbor_cache_.clear();
279280

280281
// Populate the cache and execute the lambda for each neighbor
281282
auto for_each = L2F([&](Agent* agent, real_t squared_distance) {

0 commit comments

Comments
 (0)