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

Moved the check of negative flags for hydro pairs to the debug code. That...

Moved the check of negative flags for hydro pairs to the debug code. That never happens in real life code.
parent 3f49741e
No related branches found
No related tags found
1 merge request!606Merged gravity M-M tasks
...@@ -1309,12 +1309,12 @@ void scheduler_reweight(struct scheduler *s, int verbose) { ...@@ -1309,12 +1309,12 @@ void scheduler_reweight(struct scheduler *s, int verbose) {
#ifdef SWIFT_DEBUG_CHECKS #ifdef SWIFT_DEBUG_CHECKS
if (t->flags < 0) error("Negative flag value!"); if (t->flags < 0) error("Negative flag value!");
#endif #endif
cost = 3.f * (wscale * count_i) * count_j * sid_scale[t->flags]; cost = 3.f * (wscale * count_i) * count_j * sid_scale[t->flags];
} else { } else {
#ifdef SWIFT_DEBUG_CHECKS #ifdef SWIFT_DEBUG_CHECKS
if (t->flags < 0) error("Negative flag value!"); if (t->flags < 0) error("Negative flag value!");
#endif #endif
cost = 2.f * (wscale * count_i) * count_j * sid_scale[t->flags]; cost = 2.f * (wscale * count_i) * count_j * sid_scale[t->flags];
} }
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment