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
6aaa4365
Commit
6aaa4365
authored
Mar 13, 2016
by
Pedro Gonnet
Browse files
fix the caller to engine_exchange_strays.
parent
5c083708
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
6aaa4365
...
...
@@ -370,9 +370,13 @@ void space_rebuild(struct space *s, double cell_max, int verbose) {
/* Exchange the strays, note that this potentially re-allocates
the parts arrays. */
s
->
nr_parts
=
nr_parts
+
engine_exchange_strays
(
s
->
e
,
nr_parts
,
&
ind
[
nr_parts
],
s
->
nr_parts
-
nr_parts
);
/* 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
=
0
;
engine_exchange_strays
(
s
->
e
,
nr_parts
,
&
ind
[
nr_parts
],
&
nr_parts_exchanged
,
0
,
NULL
,
&
nr_gparts_exchanged
);
s
->
nr_parts
=
nr_parts
+
nr_parts_exchanged
;
/* Re-allocate the index array if needed.. */
if
(
s
->
nr_parts
>
ind_size
)
{
...
...
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