summaryrefslogtreecommitdiff
path: root/src/get_conductivity.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/get_conductivity.c')
-rw-r--r--src/get_conductivity.c4
1 files changed, 2 insertions, 2 deletions
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];