diff options
Diffstat (limited to 'src/graph_create.c')
-rw-r--r-- | src/graph_create.c | 4 |
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: { |