summaryrefslogtreecommitdiff
path: root/src/sample.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sample.cpp')
-rw-r--r--src/sample.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sample.cpp b/src/sample.cpp
index 488d20d..febff19 100644
--- a/src/sample.cpp
+++ b/src/sample.cpp
@@ -58,8 +58,8 @@ void sample::pre_fracture(const network& n) {
}
void sample::bond_broken(const network& net, const current_info& cur, unsigned i) {
- long double c = logl(cur.conductivity / fabs(cur.currents[i])) + net.thresholds[i];
- sample_file << "{" << i << "," << c << "," << cur.conductivity << "},";
+ long double c = logl(cur.conductivity[0] / fabs(cur.currents[i])) + net.thresholds[i];
+ sample_file << "{" << i << "," << c << "," << cur.conductivity[0] << "},";
}
void sample::post_fracture(network &n) {