From a66e8e2d7a1e9d5eb51f4954435513f6ecb8383c Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Sat, 14 Jan 2017 11:59:39 -0500 Subject: tried to fix voltage boundary conditions --- src/graph_create.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/graph_create.c') 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: { -- cgit v1.2.3-70-g09d2