diff options
Diffstat (limited to 'src/update_boundary.c')
-rw-r--r-- | src/update_boundary.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/update_boundary.c b/src/update_boundary.c index 3d2a086..6bc4fca 100644 --- a/src/update_boundary.c +++ b/src/update_boundary.c @@ -1,10 +1,10 @@ #include "fracture.h" -void update_boundary(finst *instance, const double *avg_field) { - int size = instance->network->num_edges; +void update_boundary(net_t *instance, const double *avg_field) { + int size = instance->graph->ne; int width = sqrt(size); - int num_verts = instance->network->num_verts; + int num_verts = instance->graph->nv; double *boundary = (double *)instance->boundary_cond->x; boundary[num_verts] = 0; |