summaryrefslogtreecommitdiff
path: root/src/graph_free.c
blob: ee30c9959a352951c083ac3ef5a9e840597c5b67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

#include "fracture.h"

void graph_free(graph_t *g, cholmod_common *c) {
	free(g->ev);
	free(g->vei);
	free(g->ve);
	free(g->bi);
	free(g->b);
	free(g->vx);
	free(g->dvx);
	free(g->dev);
	free(g->dvei);
	free(g->dve);
	free(g->nbi);
	free(g->bq);
	CHOL_F(free_sparse)(&(g->voltcurmat), c);
	free(g);
}