Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
8db06391
Commit
8db06391
authored
Sep 16, 2016
by
Matthieu Schaller
Browse files
Only split self-tasks that can be split given the smoothing length condition.
parent
aab19f15
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scheduler.c
View file @
8db06391
...
...
@@ -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
&&
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment