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
e29b6908
Commit
e29b6908
authored
Feb 25, 2020
by
Matthieu Schaller
Browse files
Indicate that the index arrays are not aliased in engine_exchange_strays()
parent
15cde4b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
e29b6908
...
...
@@ -486,12 +486,13 @@ void engine_exchange_cells(struct engine *e) {
* gparts, i.e. the received particles have correct linkeage.
*/
void
engine_exchange_strays
(
struct
engine
*
e
,
const
size_t
offset_parts
,
const
int
*
ind_part
,
size_t
*
Npart
,
const
size_t
offset_gparts
,
const
int
*
ind_gpart
,
size_t
*
Ngpart
,
const
size_t
offset_sparts
,
const
int
*
ind_spart
,
size_t
*
Nspart
,
const
size_t
offset_bparts
,
const
int
*
ind_bpart
,
size_t
*
Nbpart
)
{
const
int
*
restrict
ind_part
,
size_t
*
Npart
,
const
size_t
offset_gparts
,
const
int
*
restrict
ind_gpart
,
size_t
*
Ngpart
,
const
size_t
offset_sparts
,
const
int
*
restrict
ind_spart
,
size_t
*
Nspart
,
const
size_t
offset_bparts
,
const
int
*
restrict
ind_bpart
,
size_t
*
Nbpart
)
{
#ifdef WITH_MPI
...
...
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