From 873a9f9bedbbfb07d475e271923a7b86464e515f Mon Sep 17 00:00:00 2001 From: pants Date: Wed, 7 Sep 2016 14:55:30 -0400 Subject: more major refactoring --- src/get_conductivity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/get_conductivity.c') diff --git a/src/get_conductivity.c b/src/get_conductivity.c index 793987e..8c4d228 100644 --- a/src/get_conductivity.c +++ b/src/get_conductivity.c @@ -9,8 +9,8 @@ double get_conductivity(net_t *inst, double *voltage, cholmod_common *c) { if (!inst->fuses[e]) { unsigned int v1 = inst->graph->ev[2*e]; unsigned int v2 = inst->graph->ev[2*e+1]; - double v1y = inst->graph->vert_coords[2 * v1 + 1]; - double v2y = inst->graph->vert_coords[2 * v2 + 1]; + double v1y = inst->graph->vx[2 * v1 + 1]; + double v2y = inst->graph->vx[2 * v2 + 1]; unsigned int s1 = v1y < v2y ? v1 : v2; unsigned int s2 = v1y < v2y ? v2 : v1; tot_cur += voltage[s1] - voltage[s2]; -- cgit v1.2.3-70-g09d2