diff --git a/src/runner_doiact_fft.c b/src/runner_doiact_fft.c index 945bbb9d892ebe0768cc5cf7b466dcd0192aefed..9531dcea7600fd6eda405add7bbf1f2ac464be96 100644 --- a/src/runner_doiact_fft.c +++ b/src/runner_doiact_fft.c @@ -185,11 +185,12 @@ void runner_do_grav_fft(struct runner* r, int timer) { struct gravity_tensors* restrict multipoles = s->multipoles_top; struct cell* cells = s->cells_top; +#ifdef SWIFT_DEBUG_CHECKS /* 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) - cell_drift_multipole(&cells[i], e); - // error("Top-level multipole %d not drifted", i); + error("Top-level multipole %d not drifted", i); +#endif /* Allocates some memory for the density mesh */ double* restrict rho = fftw_malloc(sizeof(double) * N * N * N);