summaryrefslogtreecommitdiff
path: root/src/corr_test.c
diff options
context:
space:
mode:
authorpants <jaron@kent-dobias.com>2016-09-07 14:55:30 -0400
committerpants <jaron@kent-dobias.com>2016-09-07 14:55:30 -0400
commit873a9f9bedbbfb07d475e271923a7b86464e515f (patch)
tree8c8b8e2ebcd45a9bf9174a7e22153e8c3261f419 /src/corr_test.c
parent805794c6e8b7c16e6219f75076fcbc76221d551d (diff)
downloadfuse_networks-873a9f9bedbbfb07d475e271923a7b86464e515f.tar.gz
fuse_networks-873a9f9bedbbfb07d475e271923a7b86464e515f.tar.bz2
fuse_networks-873a9f9bedbbfb07d475e271923a7b86464e515f.zip
more major refactoring
Diffstat (limited to 'src/corr_test.c')
-rw-r--r--src/corr_test.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/corr_test.c b/src/corr_test.c
index e0de2d8..a8eaff5 100644
--- a/src/corr_test.c
+++ b/src/corr_test.c
@@ -9,10 +9,8 @@ int main() {
unsigned int n = pow(width / 2 + 1, 2) + pow((width + 1) / 2, 2);
graph_t *network = ini_square_network(width, true, false, &c);
- net_t *instance = create_instance(network, 1e-14, true, true, &c);
- double *fuse_thres = gen_fuse_thres(network->ne, network->edge_coords,
- 0.001, beta_scaling_flat);
- fracture_network(instance, fuse_thres, &c, 1e-10);
+ net_t *instance = net_create(network, 1e-14, 0.001, 0, true, &c);
+ net_fracture(instance, &c, 1e-10);
double *corr = get_corr(instance, NULL, &c);
@@ -21,8 +19,8 @@ int main() {
}
printf("\n");
- free_instance(instance, &c);
- free_net(network, &c);
+ net_free(instance, &c);
+ graph_free(network, &c);
CHOL_F(finish)(&c);