summaryrefslogtreecommitdiff
path: root/src/net_free.c
blob: 8b5af508a0610b95e3dff5bac104c52ae137ea5b (plain)
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);
}