diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2019-04-26 12:45:34 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2019-04-26 12:45:34 -0400 |
commit | b43301e0bd766c1822bbde296b83fb9406443bc3 (patch) | |
tree | 42df0be57cb0bf25cfd4097885bb764fd295b710 | |
parent | 62c9955c37b2f9729d964093b129934ff8287cd4 (diff) | |
download | fuse_networks-b43301e0bd766c1822bbde296b83fb9406443bc3.tar.gz fuse_networks-b43301e0bd766c1822bbde296b83fb9406443bc3.tar.bz2 fuse_networks-b43301e0bd766c1822bbde296b83fb9406443bc3.zip |
fixed dumb error
-rw-r--r-- | src/measurements.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/measurements.cpp b/src/measurements.cpp index 00643b3..fa5189f 100644 --- a/src/measurements.cpp +++ b/src/measurements.cpp @@ -172,7 +172,7 @@ void ma::pre_fracture(const network&) { } void ma::bond_broken(const network& net, const current_info& cur, unsigned i) { - long double c = n.thresholds[i] - logl(fabs(cur.currents[i])); + long double c = net.thresholds[i] - logl(fabs(cur.currents[i])); if (c > lv) { if (avalanches.size() > 0) { sa[avalanches.back().size() - 1]++; |