aboutsummaryrefslogtreecommitdiff
path: root/src/steps.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/steps.c')
-rw-r--r--src/steps.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/steps.c b/src/steps.c
index a04d5e2..2f5fd2c 100644
--- a/src/steps.c
+++ b/src/steps.c
@@ -152,20 +152,16 @@ void
152prepare_cs(ChoiceStep *cs, SolveOptions *opts) 152prepare_cs(ChoiceStep *cs, SolveOptions *opts)
153{ 153{
154 int i, j; 154 int i, j;
155 PDGenData pdg;
156 Step *s; 155 Step *s;
157 156
158 for (i = 0; cs->step[i] != NULL; i++) { 157 for (i = 0; cs->step[i] != NULL; i++) {
159 s = cs->step[i]; 158 s = cs->step[i];
160 init_moveset(s->moveset);
161 pdg.moveset = s->moveset;
162 for (j = 0; j < s->n_coord; j++) { 159 for (j = 0; j < s->n_coord; j++) {
163 gen_coord(s->coord[j]); 160 s->pd[j] = malloc(sizeof(PruneData));
164 161 s->pd[j]->moveset = s->moveset;
165 pdg.coord = s->coord[j]; 162 s->pd[j]->coord = s->coord[j];
166 pdg.pd = NULL; 163 s->pd[j]->compact = s->pd_compact[j];
167 164 s->pd[j] = genptable(s->pd[j], opts->nthreads);
168 s->pd[j] = genptable(&pdg, opts->nthreads);
169 } 165 }
170 } 166 }
171} 167}

Generated with cgit - Back to sebastiano.tronto.net