diff --git a/src/runner.h b/src/runner.h index 60466dc922f445e79bd37b855a10ffb6751aa371..b15dd001d928121ed5a60f0e9a601adb706b2191 100644 --- a/src/runner.h +++ b/src/runner.h @@ -75,6 +75,7 @@ void runner_do_stars_sort(struct runner *r, struct cell *c, int flag, int cleanup, int clock); void runner_do_drift_part(struct runner *r, struct cell *c, int timer); void runner_do_drift_gpart(struct runner *r, struct cell *c, int timer); +void runner_do_drift_spart(struct runner *r, struct cell *c, int timer); void runner_do_kick1(struct runner *r, struct cell *c, int timer); void runner_do_kick2(struct runner *r, struct cell *c, int timer); void runner_do_end_hydro_force(struct runner *r, struct cell *c, int timer); diff --git a/tests/test27cellsStars.c b/tests/test27cellsStars.c index d94de68932a4c6e1f7381fd14105ce540be2de50..e7e1b64b1cc99d8a51cf380fde1560bdd634ae20 100644 --- a/tests/test27cellsStars.c +++ b/tests/test27cellsStars.c @@ -172,13 +172,15 @@ struct cell *make_cell(size_t n, size_t n_stars, double *offset, double size, cell->loc[1] = offset[1]; cell->loc[2] = offset[2]; + cell->stars.ti_old_part = 8; + cell->stars.ti_end_min = 8; + cell->stars.ti_end_max = 8; cell->hydro.ti_old_part = 8; cell->hydro.ti_end_min = 8; cell->hydro.ti_end_max = 8; cell->grav.ti_old_part = 8; cell->grav.ti_end_min = 8; cell->grav.ti_end_max = 8; - cell->stars.ti_end_min = 8; cell->nodeID = NODE_ID; shuffle_particles(cell->hydro.parts, cell->hydro.count); @@ -187,6 +189,9 @@ struct cell *make_cell(size_t n, size_t n_stars, double *offset, double size, cell->hydro.sorted = 0; for (int k = 0; k < 13; k++) cell->hydro.sort[k] = NULL; + cell->stars.sorted = 0; + for (int k = 0; k < 13; k++) cell->stars.sort[k] = NULL; + return cell; } @@ -415,6 +420,7 @@ int main(int argc, char *argv[]) { perturbation, h_pert); runner_do_drift_part(&runner, cells[i * 9 + j * 3 + k], 0); + runner_do_drift_spart(&runner, cells[i * 9 + j * 3 + k], 0); runner_do_hydro_sort(&runner, cells[i * 9 + j * 3 + k], 0x1FFF, 0, 0); runner_do_stars_sort(&runner, cells[i * 9 + j * 3 + k], 0x1FFF, 0, 0);