Skip to content
Snippets Groups Projects

Swap order of evaluation of debugging check in gravity loops

Merged Matthieu Schaller requested to merge fix_eric_bug into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -655,7 +655,7 @@ static INLINE void runner_dopair_grav_pp_full(
#ifdef SWIFT_DEBUG_CHECKS
/* The gravity_cache are sometimes allocated with more
place than required => flag with mass=0 */
if (gparts_j[pjd].time_bin == time_bin_not_created && mass_j != 0.f) {
if (mass_j != 0.f && gparts_j[pjd].time_bin == time_bin_not_created) {
error("Found an extra gpart in the gravity interaction");
}
if (gparts_i[pid].time_bin == time_bin_not_created &&
Loading