diff options
author | pants <jaron@kent-dobias.com> | 2016-09-07 14:55:30 -0400 |
---|---|---|
committer | pants <jaron@kent-dobias.com> | 2016-09-07 14:55:30 -0400 |
commit | 873a9f9bedbbfb07d475e271923a7b86464e515f (patch) | |
tree | 8c8b8e2ebcd45a9bf9174a7e22153e8c3261f419 /src/get_conductivity.c | |
parent | 805794c6e8b7c16e6219f75076fcbc76221d551d (diff) | |
download | fuse_networks-873a9f9bedbbfb07d475e271923a7b86464e515f.tar.gz fuse_networks-873a9f9bedbbfb07d475e271923a7b86464e515f.tar.bz2 fuse_networks-873a9f9bedbbfb07d475e271923a7b86464e515f.zip |
more major refactoring
Diffstat (limited to 'src/get_conductivity.c')
-rw-r--r-- | src/get_conductivity.c | 4 |
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]; |