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
75d4e1e9
Commit
75d4e1e9
authored
Aug 16, 2017
by
James Willis
Browse files
Helps if you set the pointer to the correct particle...
parent
71b2986d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/runner_doiact_vec.c
View file @
75d4e1e9
...
...
@@ -293,6 +293,7 @@ __attribute__((always_inline)) INLINE static void populate_max_index_no_cache(
/* Populate max_index_i for remaining particles that are within range. */
for
(
int
i
=
first_pi
+
1
;
i
<
ci
->
count
;
i
++
)
{
temp
=
max_index_i
[
i
-
1
];
pi
=
&
parts_i
[
sort_i
[
i
].
i
];
while
(
temp
<=
cj
->
count
&&
(
sort_i
[
i
].
d
+
(
pi
->
h
*
kernel_gamma
+
dx_max
-
rshift
)
>
...
...
@@ -339,7 +340,8 @@ __attribute__((always_inline)) INLINE static void populate_max_index_no_cache(
/* Populate max_index_j for remaining particles that are within range. */
for
(
int
i
=
last_pj
-
1
;
i
>=
0
;
i
--
)
{
temp
=
max_index_j
[
i
+
1
];
pj
=
&
parts_j
[
sort_j
[
i
].
i
];
while
(
temp
>
0
&&
sort_j
[
i
].
d
-
dx_max
-
(
pj
->
h
*
kernel_gamma
)
<
sort_i
[
temp
].
d
-
rshift
)
...
...
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