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

In the gravity FFT task only verufy if the multipoles are drifted when the...

In the gravity FFT task only verufy if the multipoles are drifted when the debugging checks are activated.
parent 0e91a8c4
......@@ -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);
......
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