Skip to content
Snippets Groups Projects
Commit 27097ab6 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Only check the calculation of the minimal neighbour time-bin if we are not...

Only check the calculation of the minimal neighbour time-bin if we are not using vectorization. This feature is not used in the Gadget-SPH SIMD code.
parent 7837b22a
Branches
Tags
1 merge request!956Fully implement the timestep limiter (non MPI)
......@@ -46,8 +46,10 @@ timestep_limiter_prepare_force(struct part *restrict p,
__attribute__((always_inline)) INLINE static void timestep_limiter_end_force(
struct part *restrict p) {
#ifdef SWIFT_DEBUG_CHECKS
#ifndef WITH_VECTORIZATION
if (p->time_bin > 0 && p->limiter_data.min_ngb_time_bin == num_time_bins + 1)
error("Minimal time-bin not computed!");
#endif
if (p->limiter_data.min_ngb_time_bin == 0)
error("Minimal time-bin of neighbours is 0");
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment