summaryrefslogtreecommitdiff
path: root/src/fracture.c
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2017-01-15 00:50:38 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2017-01-15 00:50:38 -0500
commit57857b9ebfb2c0a78c2eb1128d3fb4ed8d597ec4 (patch)
tree805830d2729ad1fec1711c9b6ecb0890088d904a /src/fracture.c
parenta66e8e2d7a1e9d5eb51f4954435513f6ecb8383c (diff)
downloadfuse_networks-57857b9ebfb2c0a78c2eb1128d3fb4ed8d597ec4.tar.gz
fuse_networks-57857b9ebfb2c0a78c2eb1128d3fb4ed8d597ec4.tar.bz2
fuse_networks-57857b9ebfb2c0a78c2eb1128d3fb4ed8d597ec4.zip
about to change a whole bunch to get voltage and toriodal boundaries working
Diffstat (limited to 'src/fracture.c')
-rw-r--r--src/fracture.c4
1 files changed, 2 insertions, 2 deletions
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);