From 885a2f77289ac2738f6e8e02c8039f7e26ee7828 Mon Sep 17 00:00:00 2001 From: David Parkhurst Date: Wed, 24 Mar 2021 08:45:20 -0600 Subject: [PATCH] Fix memory bug in ex13_impl, tweak Makefile. --- transport.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/transport.cpp b/transport.cpp index 0eb53ba1..23e45859 100644 --- a/transport.cpp +++ b/transport.cpp @@ -2806,11 +2806,11 @@ diffuse_implicit(LDBLE DDt, int stagnant) } cell_data[i + 1].potV = cell_data[i].potV + dVc; } - if (!dV_dcell || fix_current) - { - dVc = current_cells[i].R * (current_x - current_cells[i].dif); - cell_data[i + 1].potV = cell_data[i].potV + dVc; - } + //if (!dV_dcell || fix_current) + //{ + // dVc = current_cells[i].R * (current_x - current_cells[i].dif); + // cell_data[i + 1].potV = cell_data[i].potV + dVc; + //} for (cp = 0; cp < comp; cp++) {