summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2019-04-26 12:45:34 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2019-04-26 12:45:34 -0400
commitb43301e0bd766c1822bbde296b83fb9406443bc3 (patch)
tree42df0be57cb0bf25cfd4097885bb764fd295b710 /src
parent62c9955c37b2f9729d964093b129934ff8287cd4 (diff)
downloadfuse_networks-b43301e0bd766c1822bbde296b83fb9406443bc3.tar.gz
fuse_networks-b43301e0bd766c1822bbde296b83fb9406443bc3.tar.bz2
fuse_networks-b43301e0bd766c1822bbde296b83fb9406443bc3.zip
fixed dumb error
Diffstat (limited to 'src')
-rw-r--r--src/measurements.cpp2
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]++;