diff --git a/drama/src/rev-mc.c b/drama/src/rev-mc.c index 46b9bab..dd462de 100644 --- a/drama/src/rev-mc.c +++ b/drama/src/rev-mc.c @@ -363,6 +363,9 @@ find_row_mask(std::vector &sets, cnt.load(std::memory_order_relaxed), step_count, g_cur_pos.load()); } } + + if (found) { break; } + step_count -= std::min(step_count, step); if (my_pos > g_base_pos.load(std::memory_order_relaxed)) {