Commit 8db06391 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Only split self-tasks that can be split given the smoothing length condition.

parent aab19f15
......@@ -141,6 +141,7 @@ static void scheduler_splittask(struct task *t, struct scheduler *s) {
/* Get a handle on the cell involved. */
struct cell *ci = t->ci;
const double hi = ci->dmin;
/* Foreign task? */
if (ci->nodeID != s->nodeID) {
......@@ -149,7 +150,7 @@ static void scheduler_splittask(struct task *t, struct scheduler *s) {
}
/* Is this cell even split? */
if (ci->split) {
if (ci->split && ci->h_max * kernel_gamma * space_stretch < hi / 2) {
/* Make a sub? */
if (scheduler_dosub &&
......
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