Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!258Sanitize smoothing lengths
......@@ -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 &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment