summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2018-12-10 16:33:08 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2018-12-10 16:33:08 -0500
commit0bba9fcee5e67daa482b89b5d813b23d10474b7f (patch)
treee9969773b170939021a126b7d0abaff9beb89453
parentf1825b6ca420f63e17ca69e3c9412b80adcdbb1c (diff)
downloadfuse_networks-0bba9fcee5e67daa482b89b5d813b23d10474b7f.tar.gz
fuse_networks-0bba9fcee5e67daa482b89b5d813b23d10474b7f.tar.bz2
fuse_networks-0bba9fcee5e67daa482b89b5d813b23d10474b7f.zip
fixed initialization error introduced in change to log thresholds—start with the lowest possible long double, not zero
-rw-r--r--src/measurements.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/measurements.cpp b/src/measurements.cpp
index 98795f1..c8cc73c 100644
--- a/src/measurements.cpp
+++ b/src/measurements.cpp
@@ -286,7 +286,7 @@ ma::~ma() {
}
void ma::pre_fracture(const network &) {
- lv = 0;
+ lv = std::numeric_limits<long double>::lowest();
avalanches = {{}};
boost::remove_edge_if(trivial, G);
}