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
......@@ -1309,12 +1309,12 @@ void scheduler_reweight(struct scheduler *s, int verbose) {
#ifdef SWIFT_DEBUG_CHECKS
if (t->flags < 0) error("Negative flag value!");
#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 {
#ifdef SWIFT_DEBUG_CHECKS
if (t->flags < 0) error("Negative flag value!");
#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;
......
Supports Markdown
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