Fix memory bug in ex13_impl, tweak Makefile.

This commit is contained in:
David Parkhurst 2021-03-24 08:45:20 -06:00
parent 7c538b62a7
commit 885a2f7728

View File

@ -2806,11 +2806,11 @@ diffuse_implicit(LDBLE DDt, int stagnant)
} }
cell_data[i + 1].potV = cell_data[i].potV + dVc; cell_data[i + 1].potV = cell_data[i].potV + dVc;
} }
if (!dV_dcell || fix_current) //if (!dV_dcell || fix_current)
{ //{
dVc = current_cells[i].R * (current_x - current_cells[i].dif); // dVc = current_cells[i].R * (current_x - current_cells[i].dif);
cell_data[i + 1].potV = cell_data[i].potV + dVc; // cell_data[i + 1].potV = cell_data[i].potV + dVc;
} //}
for (cp = 0; cp < comp; cp++) for (cp = 0; cp < comp; cp++)
{ {