Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit 2c29a4d

Browse files
committed
fix bug in compute_active_minimum_distance
1 parent 557dbb0 commit 2c29a4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ipc/smooth_contact/smooth_collisions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ double SmoothCollisions<dim>::compute_active_minimum_distance(
302302
const double dist = collisions[i]->compute_distance(
303303
collisions[i]->dof(vertices, edges, faces));
304304

305-
if (dist < local_min_dist) {
305+
if (collisions[i]->is_active() && dist < local_min_dist) {
306306
local_min_dist = dist;
307307
}
308308
}

0 commit comments

Comments
 (0)