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/free_network.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/free_network.c') diff --git a/src/free_network.c b/src/free_network.c index 651d3ae..5fd3290 100644 --- a/src/free_network.c +++ b/src/free_network.c @@ -1,21 +1,21 @@ #include "fracture.h" -void free_fnet(fnet *network, cholmod_common *c) { - free(network->edges_to_verts); - if (network->edges_to_verts_break != network->edges_to_verts) { - free(network->edges_to_verts_break); +void free_net(graph_t *network, cholmod_common *c) { + free(network->ev); + if (network->ev_break != network->ev) { + free(network->ev_break); } - free(network->verts_to_edges_ind); - free(network->verts_to_edges); + free(network->vei); + free(network->ve); free(network->bound_inds); free(network->bound_verts); free(network->vert_coords); free(network->edge_coords); - free(network->dual_edges_to_verts); + free(network->dev); free(network->dual_vert_coords); - free(network->dual_verts_to_edges_ind); - free(network->dual_verts_to_edges); + free(network->dvei); + free(network->dve); free(network->spanning_edges); CHOL_F(free_sparse)(&(network->voltcurmat), c); free(network); -- cgit v1.2.3-70-g09d2