blob: 5fd3290bc31887a2cd3b889bd79eff7c30502f65 (
plain)
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 free_net(graph_t *network, cholmod_common *c) {
free(network->ev);
if (network->ev_break != network->ev) {
free(network->ev_break);
}
free(network->vei);
free(network->ve);
free(network->bound_inds);
free(network->bound_verts);
free(network->vert_coords);
free(network->edge_coords);
free(network->dev);
free(network->dual_vert_coords);
free(network->dvei);
free(network->dve);
free(network->spanning_edges);
CHOL_F(free_sparse)(&(network->voltcurmat), c);
free(network);
}
|