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
38ec5e44
Commit
38ec5e44
authored
Feb 17, 2019
by
Matthieu Schaller
Browse files
Correct linking of the gradient communication task.
parent
5efa68ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/engine_maketasks.c
View file @
38ec5e44
...
...
@@ -153,7 +153,7 @@ void engine_addtasks_send_hydro(struct engine *e, struct cell *ci,
#ifdef EXTRA_HYDRO_LOOP
scheduler_addunlock
(
s
,
t_gradient
,
ci
->
super
->
kick2
);
scheduler_addunlock
(
s
,
t_gradient
,
ci
->
hydro
.
super
->
hydro
.
end_force
);
scheduler_addunlock
(
s
,
ci
->
hydro
.
super
->
hydro
.
extra_ghost
,
t_gradient
);
...
...
@@ -169,7 +169,7 @@ void engine_addtasks_send_hydro(struct engine *e, struct cell *ci,
#else
/* The send_rho task should unlock the super_hydro-cell's kick task. */
scheduler_addunlock
(
s
,
t_rho
,
ci
->
super
->
end_force
);
scheduler_addunlock
(
s
,
t_rho
,
ci
->
hydro
.
super
->
hydro
.
end_force
);
/* The send_rho task depends on the cell's ghost task. */
scheduler_addunlock
(
s
,
ci
->
hydro
.
super
->
hydro
.
ghost_out
,
t_rho
);
...
...
src/task.c
View file @
38ec5e44
...
...
@@ -680,7 +680,12 @@ void task_get_group_name(int type, int subtype, char *cluster) {
strcpy
(
cluster
,
"Density"
);
break
;
case
task_subtype_gradient
:
strcpy
(
cluster
,
"Gradient"
);
if
(
type
==
task_type_send
||
type
==
task_type_recv
)
{
strcpy
(
cluster
,
"None"
);
}
else
{
strcpy
(
cluster
,
"Gradient"
);
}
break
;
case
task_subtype_force
:
strcpy
(
cluster
,
"Force"
);
...
...
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