From 523d311f64b660fa002fa713cc302248e4f657c5 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Sat, 9 Feb 2019 22:16:24 -0500 Subject: fixed size of analanche record --- 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 324313c..360b825 100644 --- a/src/measurements.cpp +++ b/src/measurements.cpp @@ -255,7 +255,7 @@ void ma::bond_broken(const network& net, const current_info& cur, unsigned i) { avalanches_trunc++; } } - Sa[avalanches_trunc]++; + Sa[avalanches_trunc - 1]++; autocorrelation(Mx, My, Caa, forward_plan, fftw_forward_in, fftw_forward_out, reverse_plan, fftw_reverse_in, fftw_reverse_out); -- cgit v1.2.3-70-g09d2