aboutsummaryrefslogtreecommitdiff
path: root/src/coord.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coord.c')
-rw-r--r--src/coord.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/coord.c b/src/coord.c
index 72e4403..f946d57 100644
--- a/src/coord.c
+++ b/src/coord.c
@@ -538,6 +538,11 @@ init_htr_eposs(void)
538 int eps_solved[4] = {UL, UR, DL, DR}; 538 int eps_solved[4] = {UL, UR, DL, DR};
539 unsigned int i, j; 539 unsigned int i, j;
540 540
541 /* NOTE: we loop over all possible positions of S-slice edges, *
542 * although some of them are not possible (because the E-slice *
543 * edges are already in the E-slice). Then we discard the invalid *
544 * configurations by checking that the value returned by *
545 * subset_to_index() is acceptable. */
541 for (i = 0; i < BINOM12ON4; i++) { 546 for (i = 0; i < BINOM12ON4; i++) {
542 for (j = 0; j < 12; j++) 547 for (j = 0; j < 12; j++)
543 ep[j] = ep2[j] = 0; 548 ep[j] = ep2[j] = 0;
@@ -545,7 +550,8 @@ init_htr_eposs(void)
545 for (j = 0; j < 8; j++) 550 for (j = 0; j < 8; j++)
546 ep2[j/2 + 4*(j%2)] = ep[j] ? 1 : 0; 551 ep2[j/2 + 4*(j%2)] = ep[j] ? 1 : 0;
547 htr_eposs_ind[i] = subset_to_index(ep2, 8, 4); 552 htr_eposs_ind[i] = subset_to_index(ep2, 8, 4);
548 htr_eposs_ant[htr_eposs_ind[i]] = i*24; 553 if (htr_eposs_ind[i] < (int)BINOM8ON4)
554 htr_eposs_ant[htr_eposs_ind[i]] = i*24;
549 } 555 }
550} 556}
551 557
@@ -605,17 +611,11 @@ init_coord(void)
605 init_trans(); 611 init_trans();
606 612
607 init_cphtr_cosets(); 613 init_cphtr_cosets();
608
609printf("%d\n", cphtr_right_rep[0]);
610 init_cornershtrfin(); 614 init_cornershtrfin();
611printf("%d\n", cphtr_right_rep[0]);
612 init_htr_eposs(); 615 init_htr_eposs();
613printf("%d\n", cphtr_right_rep[0]);
614 init_cpud_separate(); 616 init_cpud_separate();
615printf("%d\n", cphtr_right_rep[0]);
616 617
617 init_move_epud(); 618 init_move_epud();
618printf("%d\n", cphtr_right_rep[0]);
619 init_move_cphtr(); 619 init_move_cphtr();
620} 620}
621 621

Generated with cgit - Back to sebastiano.tronto.net