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
43b710d5
Commit
43b710d5
authored
Oct 10, 2016
by
Matthieu Schaller
Browse files
Merge branch 'master' of gitlab.cosma.dur.ac.uk:swift/swiftsim
parents
bd71c9a1
11bab025
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
43b710d5
...
...
@@ -589,9 +589,10 @@ void space_rebuild(struct space *s, double cell_max, int verbose) {
for
(
size_t
k
=
1
;
k
<
nr_parts
;
k
++
)
{
if
(
ind
[
k
-
1
]
>
ind
[
k
])
{
error
(
"Sort failed!"
);
}
else
if
(
ind
[
k
]
!=
cell_getid
(
cdim
,
s
->
parts
[
k
].
x
[
0
]
*
ih
[
0
],
s
->
parts
[
k
].
x
[
1
]
*
ih
[
1
],
s
->
parts
[
k
].
x
[
2
]
*
ih
[
2
]))
{
}
else
if
(
ind
[
k
]
!=
cell_getid
(
s
->
cdim
,
s
->
parts
[
k
].
x
[
0
]
*
s
->
iwidth
[
0
],
s
->
parts
[
k
].
x
[
1
]
*
s
->
iwidth
[
1
],
s
->
parts
[
k
].
x
[
2
]
*
s
->
iwidth
[
2
]))
{
error
(
"Incorrect indices!"
);
}
}
...
...
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