summaryrefslogtreecommitdiff
path: root/src/perc_meas.cpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2019-05-27 22:26:21 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2019-05-27 22:26:21 -0400
commitae6ad8569615d81fd4b4a8f13318c8f90a768a37 (patch)
treee8580c1fb0c4112cebc4a2caf2b661b2af853bbb /src/perc_meas.cpp
parent1e939e597964fa081b347e40af2be1069867b906 (diff)
downloadfuse_networks-ae6ad8569615d81fd4b4a8f13318c8f90a768a37.tar.gz
fuse_networks-ae6ad8569615d81fd4b4a8f13318c8f90a768a37.tar.bz2
fuse_networks-ae6ad8569615d81fd4b4a8f13318c8f90a768a37.zip
refactored much of the fracture library and fixed some percolation measurements
Diffstat (limited to 'src/perc_meas.cpp')
-rw-r--r--src/perc_meas.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/perc_meas.cpp b/src/perc_meas.cpp
index 4220a93..ec7746e 100644
--- a/src/perc_meas.cpp
+++ b/src/perc_meas.cpp
@@ -159,7 +159,9 @@ void pm::post_fracture(network &n) {
} else {
ss[components[i].size() - 1]++;
}
- sn[p][components[i].size() - 1]++;
+ for (unsigned j = p; j < sn.size(); j++) {
+ sn[j][components[i].size() - 1]++;
+ }
}
sp[p - 1]++;