summaryrefslogtreecommitdiff
path: root/src/graph_create.c
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2017-01-14 11:59:39 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2017-01-14 11:59:39 -0500
commita66e8e2d7a1e9d5eb51f4954435513f6ecb8383c (patch)
treefd9fcbee58f5e3b22f718e856ebc2b1670a6a650 /src/graph_create.c
parent3d6f2bbb756c7fed4e627da196e99047ec7406cc (diff)
downloadfuse_networks-a66e8e2d7a1e9d5eb51f4954435513f6ecb8383c.tar.gz
fuse_networks-a66e8e2d7a1e9d5eb51f4954435513f6ecb8383c.tar.bz2
fuse_networks-a66e8e2d7a1e9d5eb51f4954435513f6ecb8383c.zip
tried to fix voltage boundary conditions
Diffstat (limited to 'src/graph_create.c')
-rw-r--r--src/graph_create.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph_create.c b/src/graph_create.c
index b071c49..c1f556c 100644
--- a/src/graph_create.c
+++ b/src/graph_create.c
@@ -158,7 +158,7 @@ graph_t *ini_square_network(uint_t width, bound_t boundary, bool side_bounds,
network->bound_inds[0] = 0;
network->bound_inds[1] = width / 2;
network->bound_verts = (uint_t *)calloc(width / 2, sizeof(uint_t));
- network->break_dim = network->nv_break;
+ network->break_dim = network->nv_break + 1;
}
if (boundary != TORUS_BOUND) {
for (uint_t i = 0; i < (width + 1) / 2; i++) {
@@ -598,7 +598,7 @@ graph_t *ini_voro_graph(uint_t L, bound_t boundary, bool use_dual,
g->nv = tmp_num_verts;
g->ev_break = edges;
g->ev = tmp_edges;
- g->break_dim = num_verts;
+ g->break_dim = num_verts + 1;
break;
}
case EMBEDDED_BOUND: {