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
2e6965f1
Commit
2e6965f1
authored
Oct 08, 2017
by
James Willis
Browse files
Convert index into the number of particles to loop over.
parent
5b0080ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cache.h
View file @
2e6965f1
...
...
@@ -305,7 +305,7 @@ __attribute__((always_inline)) INLINE void cache_read_two_partial_cells_sorted(
if
(
*
first_pi
-
pad
>=
0
)
*
first_pi
-=
pad
;
}
rem
=
*
last_pj
%
VEC_SIZE
;
rem
=
(
*
last_pj
+
1
)
%
VEC_SIZE
;
if
(
rem
!=
0
)
{
int
pad
=
VEC_SIZE
-
rem
;
...
...
@@ -514,7 +514,7 @@ cache_read_two_partial_cells_sorted_force(
if
(
*
first_pi
-
pad
>=
0
)
*
first_pi
-=
pad
;
}
rem
=
*
last_pj
%
VEC_SIZE
;
rem
=
(
*
last_pj
+
1
)
%
VEC_SIZE
;
if
(
rem
!=
0
)
{
int
pad
=
VEC_SIZE
-
rem
;
...
...
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