summaryrefslogtreecommitdiff
path: root/src/homo_square_fracture.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/homo_square_fracture.c')
-rw-r--r--src/homo_square_fracture.c10
1 files changed, 5 insertions, 5 deletions
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++) {