From 873a9f9bedbbfb07d475e271923a7b86464e515f Mon Sep 17 00:00:00 2001 From: pants Date: Wed, 7 Sep 2016 14:55:30 -0400 Subject: more major refactoring --- src/homo_square_fracture.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/homo_square_fracture.c') diff --git a/src/homo_square_fracture.c b/src/homo_square_fracture.c index e3e8ad3..b301136 100644 --- a/src/homo_square_fracture.c +++ b/src/homo_square_fracture.c @@ -193,7 +193,7 @@ int main(int argc, char *argv[]) { for (unsigned int i = 0; i < N; i++) { printf("\033[F\033[JFRACTURE: %0*d / %d\n", (int)log10(N) + 1, i + 1, N); - double *fuse_thres = gen_fuse_thres(network->ne, network->edge_coords, beta, beta_scaling_flat); + double *fuse_thres = gen_fuse_thres(network->ne, network->ex, beta, beta_scaling_flat); net_t *instance = copy_instance(perm_instance, &c); data_t *breaking_data = fracture_network(instance, fuse_thres, &c, cutoff); free_instance(instance, &c); @@ -287,8 +287,8 @@ int main(int argc, char *argv[]) { if (save_network) { FILE *net_out = fopen("network.txt", "w"); for (unsigned int j = 0; j < network->nv; j++) { - fprintf(net_out, "%f %f ", network->vert_coords[2 * j], - tmp_instance->graph->vert_coords[2 * j + 1]); + fprintf(net_out, "%f %f ", network->vx[2 * j], + tmp_instance->graph->vx[2 * j + 1]); } fprintf(net_out, "\n"); for (unsigned int j = 0; j < tmp_instance->graph->ne; j++) { @@ -297,8 +297,8 @@ int main(int argc, char *argv[]) { } fprintf(net_out, "\n"); for (unsigned int j = 0; j < tmp_instance->graph->dnv; j++) { - fprintf(net_out, "%f %f ", tmp_instance->graph->dual_vert_coords[2 * j], - tmp_instance->graph->dual_vert_coords[2 * j + 1]); + fprintf(net_out, "%f %f ", tmp_instance->graph->dvx[2 * j], + tmp_instance->graph->dvx[2 * j + 1]); } fprintf(net_out, "\n"); for (unsigned int j = 0; j < tmp_instance->graph->ne; j++) { -- cgit v1.2.3-70-g09d2