summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2019-02-09 22:16:24 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2019-02-09 22:16:24 -0500
commit523d311f64b660fa002fa713cc302248e4f657c5 (patch)
tree5d76444a7b2511f04534420abe8e5129bc33b80a
parent578652bf9d57a94a362b4c8a6d36c1755a214863 (diff)
downloadfuse_networks-523d311f64b660fa002fa713cc302248e4f657c5.tar.gz
fuse_networks-523d311f64b660fa002fa713cc302248e4f657c5.tar.bz2
fuse_networks-523d311f64b660fa002fa713cc302248e4f657c5.zip
fixed size of analanche record
-rw-r--r--src/measurements.cpp2
1 files changed, 1 insertions, 1 deletions
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);