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
5df8732a
Commit
5df8732a
authored
May 17, 2017
by
Pedro Gonnet
Browse files
register the sort in the sorts flags no matter what.
parent
e169cbe9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
5df8732a
...
...
@@ -1546,6 +1546,8 @@ void cell_activate_subcell_tasks(struct cell *ci, struct cell *cj,
cj
->
requires_sorts
=
ti_current
;
ci
->
dx_max_sort_old
=
ci
->
dx_max_sort
;
cj
->
dx_max_sort_old
=
cj
->
dx_max_sort
;
atomic_or
(
&
ci
->
sorts
->
flags
,
(
1
<<
sid
));
atomic_or
(
&
cj
->
sorts
->
flags
,
(
1
<<
sid
));
/* Activate the drifts if the cells are local. */
if
(
ci
->
nodeID
==
engine_rank
)
scheduler_activate
(
s
,
ci
->
drift
);
...
...
@@ -1559,7 +1561,6 @@ void cell_activate_subcell_tasks(struct cell *ci, struct cell *cj,
}
}
if
(
!
(
ci
->
sorted
&
(
1
<<
sid
)))
{
atomic_or
(
&
ci
->
sorts
->
flags
,
(
1
<<
sid
));
scheduler_activate
(
s
,
ci
->
sorts
);
}
if
(
cj
->
dx_max_sort
>
space_maxreldx
*
cj
->
dmin
)
{
...
...
@@ -1570,7 +1571,6 @@ void cell_activate_subcell_tasks(struct cell *ci, struct cell *cj,
}
}
if
(
!
(
cj
->
sorted
&
(
1
<<
sid
)))
{
atomic_or
(
&
cj
->
sorts
->
flags
,
(
1
<<
sid
));
scheduler_activate
(
s
,
cj
->
sorts
);
}
}
...
...
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