1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include "fracture.h" void net_free(net_t *net, cholmod_common *c) { free(net->fuses); free(net->thres); CHOL_F(free_dense)(&(net->boundary_cond), c); CHOL_F(free_sparse)(&(net->adjacency), c); CHOL_F(free_factor)(&(net->factor), c); free(net->marks); free(net->dual_marks); free(net); }