Skip to content
GitLab
Menu
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
9571b2a3
Commit
9571b2a3
authored
Aug 03, 2017
by
Matthieu Schaller
Browse files
Code formatting
parent
60d8ad06
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
9571b2a3
...
...
@@ -1754,16 +1754,16 @@ void engine_make_self_gravity_tasks_mapper(void *map_data, int num_elements,
/* Skip cells without gravity particles */
if
(
cj
->
gcount
==
0
)
continue
;
/* Is that neighbour local ? */
if
(
cj
->
nodeID
!=
nodeID
)
continue
;
// MATTHIEU
/* Is that neighbour local ? */
if
(
cj
->
nodeID
!=
nodeID
)
continue
;
// MATTHIEU
/* Are the cells to close for a MM interaction ? */
if
(
!
gravity_multipole_accept_rebuild
(
ci
->
multipole
,
cj
->
multipole
,
theta_crit_inv
,
periodic
,
dim
))
{
/* Are the cells to close for a MM interaction ? */
if
(
!
gravity_multipole_accept_rebuild
(
ci
->
multipole
,
cj
->
multipole
,
theta_crit_inv
,
periodic
,
dim
))
{
scheduler_addtask
(
sched
,
task_type_pair
,
task_subtype_grav
,
0
,
0
,
ci
,
cj
);
scheduler_addtask
(
sched
,
task_type_pair
,
task_subtype_grav
,
0
,
0
,
ci
,
cj
);
}
}
}
...
...
@@ -1785,9 +1785,7 @@ void engine_make_self_gravity_tasks(struct engine *e) {
struct
space
*
s
=
e
->
s
;
struct
scheduler
*
sched
=
&
e
->
sched
;
const
int
nodeID
=
e
->
nodeID
;
const
int
periodic
=
s
->
periodic
;
const
int
cdim
[
3
]
=
{
s
->
cdim
[
0
],
s
->
cdim
[
1
],
s
->
cdim
[
2
]};
const
int
cdim_ghost
[
3
]
=
{
s
->
cdim
[
0
]
/
4
+
1
,
s
->
cdim
[
1
]
/
4
+
1
,
s
->
cdim
[
2
]
/
4
+
1
};
struct
task
**
ghosts
=
NULL
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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