diff options
-rw-r--r-- | src/fracture.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fracture.c b/src/fracture.c index e11d352..d155b02 100644 --- a/src/fracture.c +++ b/src/fracture.c @@ -330,9 +330,11 @@ int main(int argc, char *argv[]) { bool broken = net->fuses[j]; bool under_thres = net->thres[j] < net->thres[data->break_list[max_pos]]; bool zero_field = fabs(tmp_current[j]) < cutoff; - if (!broken && under_thres && zero_field) would_break++; + if (!broken && under_thres && zero_field) { + break_edge(net, j, &c); + } } - damage[net->num_broken + would_break]++; + damage[net->num_broken]++; free(tmp_current); } |