Commit e9b1402d authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Corrected typo in non-debugging mode in the FFT task.

parent ddf73330
......@@ -165,7 +165,6 @@ void runner_do_grav_fft(struct runner* r, int timer) {
const struct engine* e = r->e;
const struct space* s = e->s;
const integertime_t ti_current = e->ti_current;
const double a_smooth = e->gravity_properties->a_smooth;
const double box_size = s->dim[0];
const int cdim[3] = {s->cdim[0], s->cdim[1], s->cdim[2]};
......@@ -183,9 +182,11 @@ void runner_do_grav_fft(struct runner* r, int timer) {
/* Recover the list of top-level multipoles */
const int nr_cells = s->nr_cells;
struct gravity_tensors* restrict multipoles = s->multipoles_top;
struct cell* cells = s->cells_top;
#ifdef SWIFT_DEBUG_CHECKS
const struct cell* cells = s->cells_top;
const integertime_t ti_current = e->ti_current;
/* Make sure everything has been drifted to the current point */
for (int i = 0; i < nr_cells; ++i)
if (cells[i].ti_old_multipole != ti_current)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment