summaryrefslogtreecommitdiff
path: root/src/homo_square_fracture.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/homo_square_fracture.c
parent805794c6e8b7c16e6219f75076fcbc76221d551d (diff)
downloadfuse_networks-873a9f9bedbbfb07d475e271923a7b86464e515f.tar.gz
fuse_networks-873a9f9bedbbfb07d475e271923a7b86464e515f.tar.bz2
fuse_networks-873a9f9bedbbfb07d475e271923a7b86464e515f.zip
more major refactoring
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++) {