From 97275c88a7ecec54f39a6c9f53c6512d25f2c99c Mon Sep 17 00:00:00 2001 From: pants Date: Tue, 6 Dec 2016 23:21:18 -0500 Subject: changed fracture routine to also make percolation correction to the network for cluster statistics --- src/fracture.c | 6 ++++-- 1 file 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); } -- cgit v1.2.3-70-g09d2