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
f021c39c
Commit
f021c39c
authored
Dec 31, 2017
by
Matthieu Schaller
Browse files
Better criterion to skip empty cells in runner_do_grav_long_range()
parent
662299af
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/runner_doiact_grav.h
View file @
f021c39c
...
...
@@ -1185,7 +1185,7 @@ void runner_do_grav_long_range(struct runner *r, struct cell *ci, int timer) {
if
(
ci
==
cj
)
continue
;
/* Skip empty cells */
if
(
cj
->
gcount
==
0
)
continue
;
if
(
multi_j
->
m_pole
.
M_000
==
0
.
f
)
continue
;
/* Get the distance between the CoMs at the last rebuild*/
double
dx_r
=
CoM_rebuild_i
[
0
]
-
multi_j
->
CoM_rebuild
[
0
];
...
...
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