From f6d2fd9fd10cf95d9a5557881b067a7857f62f8e Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Fri, 2 Dec 2016 14:03:54 -0500 Subject: fixed the new damage measure again --- src/fracture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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]++; -- cgit v1.2.3-70-g09d2