From b43301e0bd766c1822bbde296b83fb9406443bc3 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Fri, 26 Apr 2019 12:45:34 -0400 Subject: fixed dumb error --- src/measurements.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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]++; -- cgit v1.2.3-70-g09d2