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
4a90c6c6
Commit
4a90c6c6
authored
Jun 30, 2017
by
Matthieu Schaller
Browse files
Make sure we do not update a local cell in the receive tasks.
parent
2abc9ff9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/runner.c
View file @
4a90c6c6
...
...
@@ -1518,6 +1518,11 @@ void runner_do_recv_part(struct runner *r, struct cell *c, int clear_sorts,
timebin_t
time_bin_max
=
0
;
float
h_max
=
0
.
f
;
#ifdef SWIFT_DEBUG_CHECKS
if
(
c
->
nodeID
==
engine_rank
)
error
(
"Updating a local cell!"
);
#endif
/* Clear this cell's sorted mask. */
if
(
clear_sorts
)
c
->
sorted
=
0
;
...
...
@@ -1597,6 +1602,11 @@ void runner_do_recv_gpart(struct runner *r, struct cell *c, int timer) {
timebin_t
time_bin_min
=
num_time_bins
;
timebin_t
time_bin_max
=
0
;
#ifdef SWIFT_DEBUG_CHECKS
if
(
c
->
nodeID
==
engine_rank
)
error
(
"Updating a local cell!"
);
#endif
/* If this cell is a leaf, collect the particle data. */
if
(
!
c
->
split
)
{
...
...
@@ -1670,6 +1680,11 @@ void runner_do_recv_spart(struct runner *r, struct cell *c, int timer) {
timebin_t
time_bin_min
=
num_time_bins
;
timebin_t
time_bin_max
=
0
;
#ifdef SWIFT_DEBUG_CHECKS
if
(
c
->
nodeID
==
engine_rank
)
error
(
"Updating a local cell!"
);
#endif
/* If this cell is a leaf, collect the particle data. */
if
(
!
c
->
split
)
{
...
...
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