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
d806d119
Commit
d806d119
authored
Dec 02, 2016
by
Peter W. Draper
Browse files
Fixed incorrect uses of ind instead of gind
Gravity only tests
parent
2d959882
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
d806d119
...
...
@@ -639,9 +639,9 @@ void space_rebuild(struct space *s, int verbose) {
cell_getid
(
cdim
,
p
->
x
[
0
]
*
ih
[
0
],
p
->
x
[
1
]
*
ih
[
1
],
p
->
x
[
2
]
*
ih
[
2
]);
#ifdef SWIFT_DEBUG_CHECKS
if
(
cells_top
[
ind
[
k
]].
nodeID
!=
s
->
e
->
nodeID
)
if
(
cells_top
[
g
ind
[
k
]].
nodeID
!=
s
->
e
->
nodeID
)
error
(
"Received part that does not belong to me (nodeID=%i)."
,
cells_top
[
ind
[
k
]].
nodeID
);
cells_top
[
g
ind
[
k
]].
nodeID
);
#endif
}
nr_gparts
=
s
->
nr_gparts
;
...
...
@@ -661,7 +661,7 @@ void space_rebuild(struct space *s, int verbose) {
gind
[
nr_gparts
]
=
s
->
nr_cells
;
for
(
size_t
k
=
0
;
k
<
nr_gparts
;
k
++
)
{
if
(
gind
[
k
]
<
gind
[
k
+
1
])
{
cells_top
[
ind
[
k
]].
gcount
=
k
-
last_gindex
+
1
;
cells_top
[
g
ind
[
k
]].
gcount
=
k
-
last_gindex
+
1
;
last_gindex
=
k
+
1
;
}
}
...
...
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