summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2016-12-02 14:03:54 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2016-12-02 14:03:54 -0500
commitf6d2fd9fd10cf95d9a5557881b067a7857f62f8e (patch)
treea128debc3f3a4accabdbaf9d051dedd3ef46c9de /src
parente95adb2026e0fe83e59e4b6f305286805482d4a0 (diff)
downloadfuse_networks-f6d2fd9fd10cf95d9a5557881b067a7857f62f8e.tar.gz
fuse_networks-f6d2fd9fd10cf95d9a5557881b067a7857f62f8e.tar.bz2
fuse_networks-f6d2fd9fd10cf95d9a5557881b067a7857f62f8e.zip
fixed the new damage measure again
Diffstat (limited to 'src')
-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]++;