1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#include "fracture.h" void graph_free(graph_t *g, cholmod_common *c) { free(g->ev); if (g->ev_break != g->ev) { free(g->ev_break); } free(g->vei); free(g->ve); free(g->bound_inds); free(g->bound_verts); free(g->vx); free(g->ex); free(g->dev); free(g->dvx); free(g->dvei); free(g->dve); free(g->spanning_edges); CHOL_F(free_sparse)(&(g->voltcurmat), c); free(g); }