From 57857b9ebfb2c0a78c2eb1128d3fb4ed8d597ec4 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Sun, 15 Jan 2017 00:50:38 -0500 Subject: about to change a whole bunch to get voltage and toriodal boundaries working --- src/fracture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fracture.c') diff --git a/src/fracture.c b/src/fracture.c index af9cd0f..1ed594f 100644 --- a/src/fracture.c +++ b/src/fracture.c @@ -327,8 +327,8 @@ int main(int argc, char *argv[]) { FILE *testout = fopen("test.txt", "w"); double *tmp_voltage = net_voltages(net, &c); - for (uint_t j = 0; j < g->bound_inds[1]; j++) { - fprintf(testout, "%g ", tmp_voltage[g->bound_verts[j]]-tmp_voltage[g->nv+j]); + for (uint_t j = 0; j < g->nv; j++) { + fprintf(testout, "%g ", tmp_voltage[j]); } fclose(testout); free(tmp_voltage); -- cgit v1.2.3-70-g09d2