From 2bb0740b68fdb62d45adc00204b3990ca42ade77 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Mon, 22 Aug 2016 10:11:14 -0400 Subject: started repo again without all the data files gunking the works --- src/free_network.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/free_network.c (limited to 'src/free_network.c') diff --git a/src/free_network.c b/src/free_network.c new file mode 100644 index 0000000..651d3ae --- /dev/null +++ b/src/free_network.c @@ -0,0 +1,22 @@ + +#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); + } + free(network->verts_to_edges_ind); + free(network->verts_to_edges); + free(network->bound_inds); + free(network->bound_verts); + free(network->vert_coords); + free(network->edge_coords); + free(network->dual_edges_to_verts); + free(network->dual_vert_coords); + free(network->dual_verts_to_edges_ind); + free(network->dual_verts_to_edges); + free(network->spanning_edges); + CHOL_F(free_sparse)(&(network->voltcurmat), c); + free(network); +} -- cgit v1.2.3-70-g09d2