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
b5e7b69d
Commit
b5e7b69d
authored
Sep 29, 2017
by
Matthieu Schaller
Browse files
Also (uniquely) create gravity pair tasks for pairs that involved a foreign neighbour
parent
624bf531
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
b5e7b69d
...
...
@@ -1861,20 +1861,12 @@ void engine_make_self_gravity_tasks_mapper(void *map_data, int num_elements,
const
int
cjd
=
cell_getid
(
cdim
,
ii
,
jj
,
kk
);
struct
cell
*
cj
=
&
cells
[
cjd
];
/* /\* Is that neighbour local and does it have particles ? *\/ */
/* if (cid <= cjd || cj->count == 0 || */
/* (ci->nodeID != nodeID && cj->nodeID != nodeID)) */
/* continue; */
/* Avoid duplicates */
if
(
cid
<=
cjd
)
continue
;
/* Avoid duplicates of local pairs*/
if
(
cid
<=
cjd
&&
cj
->
nodeID
==
nodeID
)
continue
;
/* Skip cells without gravity particles */
if
(
cj
->
gcount
==
0
)
continue
;
/* Is that neighbour local ? */
if
(
cj
->
nodeID
!=
nodeID
)
continue
;
// MATTHIEU
/* Recover the multipole information */
const
struct
gravity_tensors
*
const
multi_j
=
cj
->
multipole
;
...
...
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