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
80de9a1b
Commit
80de9a1b
authored
Apr 18, 2016
by
Matthieu Schaller
Browse files
Removed out-dated confusing comments.
parent
ced55896
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
80de9a1b
...
...
@@ -475,15 +475,11 @@ void space_rebuild(struct space *s, double cell_max, int verbose) {
/* Exchange the strays, note that this potentially re-allocates
the parts arrays. */
/* TODO: This function also exchanges gparts, but this is shorted-out
until they are fully implemented. */
size_t
nr_parts_exchanged
=
s
->
nr_parts
-
nr_parts
;
size_t
nr_gparts_exchanged
=
s
->
nr_gparts
-
nr_gparts
;
engine_exchange_strays
(
s
->
e
,
nr_parts
,
&
ind
[
nr_parts
],
&
nr_parts_exchanged
,
nr_gparts
,
&
gind
[
nr_gparts
],
&
nr_gparts_exchanged
);
/* Add post-processing, i.e. re-linking/creating of gparts here. */
/* Set the new particle counts. */
s
->
nr_parts
=
nr_parts
+
nr_parts_exchanged
;
s
->
nr_gparts
=
nr_gparts
+
nr_gparts_exchanged
;
...
...
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