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
369dcca9
Commit
369dcca9
authored
Jun 27, 2017
by
Pedro Gonnet
Browse files
only need to explicitly activate drifts on cell being sent.
parent
4057a8a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
369dcca9
...
...
@@ -1718,7 +1718,7 @@ int cell_unskip_tasks(struct cell *c, struct scheduler *s) {
if
(
cell_need_rebuild_for_pair
(
ci
,
cj
))
rebuild
=
1
;
#ifdef WITH_MPI
/* Activate the send/recv
flag
s. */
/* Activate the send/recv
task
s. */
if
(
ci
->
nodeID
!=
engine_rank
)
{
/* Activate the tasks to recv foreign cell ci's data. */
...
...
@@ -1739,10 +1739,9 @@ int cell_unskip_tasks(struct cell *c, struct scheduler *s) {
if
(
l
==
NULL
)
error
(
"Missing link to send_xv task."
);
scheduler_activate
(
s
,
l
->
t
);
/* Drift
bo
th cell
s, the foreign one
at the level which it is sent,
i.e.
drift the cell specified in the send task (l->t) itself. */
/* Drift th
e
cell
which will be sent
at the level
at
which it is sent,
i.e.
drift the cell specified in the send task (l->t) itself. */
cell_activate_drift_part
(
l
->
t
->
ci
,
s
);
if
(
t
->
type
==
task_type_pair
)
cell_activate_drift_part
(
cj
,
s
);
if
(
cell_is_active
(
cj
,
e
))
{
...
...
@@ -1787,10 +1786,9 @@ int cell_unskip_tasks(struct cell *c, struct scheduler *s) {
if
(
l
==
NULL
)
error
(
"Missing link to send_xv task."
);
scheduler_activate
(
s
,
l
->
t
);
/* Drift
bo
th cell
s, the foreign one
at the level which it is sent,
i.e.
drift the cell specified in the send task (l->t) itself. */
/* Drift th
e
cell
which will be sent
at the level
at
which it is sent,
i.e.
drift the cell specified in the send task (l->t) itself. */
cell_activate_drift_part
(
l
->
t
->
ci
,
s
);
if
(
t
->
type
==
task_type_pair
)
cell_activate_drift_part
(
ci
,
s
);
if
(
cell_is_active
(
ci
,
e
))
{
...
...
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