summaryrefslogtreecommitdiff
path: root/src/fracture.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fracture.c')
-rw-r--r--src/fracture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fracture.c b/src/fracture.c
index c0a4a8b..34470a0 100644
--- a/src/fracture.c
+++ b/src/fracture.c
@@ -329,7 +329,7 @@ int main(int argc, char *argv[]) {
for (uint_t j = 0; j < g->ne; j++) {
bool broken = net->fuses[j];
bool under_thres = net->thres[j] < net->thres[data->break_list[max_pos]];
- bool zero_field = tmp_current[j] < inf;
+ bool zero_field = fabs(tmp_current[j]) < cutoff;
if (!broken && under_thres && zero_field) would_break++;
}
damage[net->num_broken + would_break]++;