diff options
Diffstat (limited to 'src/corr_test.c')
-rw-r--r-- | src/corr_test.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/corr_test.c b/src/corr_test.c index 01b3e11..cb00212 100644 --- a/src/corr_test.c +++ b/src/corr_test.c @@ -2,26 +2,26 @@ #include "fracture.h" int main() { - cholmod_common c; - CHOL_F(start)(&c); + cholmod_common c; + CHOL_F(start)(&c); - unsigned int width = 64; + unsigned int width = 64; - graph_t *network = graph_create(VORONOI_LATTICE, TORUS_BOUND, 128, false); - net_t *instance = net_create(network, 1e-14, 3, 0, true, &c); - net_fracture(instance, &c, 1e-10); + graph_t *network = graph_create(VORONOI_LATTICE, TORUS_BOUND, 128, false); + net_t *instance = net_create(network, 1e-14, 3, 0, true, &c); + net_fracture(instance, &c, 1e-10); - double *corr = get_corr(instance, NULL, &c); + double *corr = get_corr(instance, NULL, &c); - for (int i = 0; i < 2 * width; i++) { - printf("%g ", corr[i]); - } - printf("\n"); + for (int i = 0; i < 2 * width; i++) { + printf("%g ", corr[i]); + } + printf("\n"); - net_free(instance, &c); - graph_free(network); + net_free(instance, &c); + graph_free(network); - CHOL_F(finish)(&c); + CHOL_F(finish)(&c); - return 0; + return 0; } |