From 4c4ebb87ead363d6d6e11a8b95b07a0f93af5c88 Mon Sep 17 00:00:00 2001 From: pants Date: Tue, 6 Sep 2016 15:05:27 -0400 Subject: finished implementing embedded systems, refactored a bunch --- src/update_boundary.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/update_boundary.c') 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; -- cgit v1.2.3-70-g09d2