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
b150ea1b
Commit
b150ea1b
authored
Dec 12, 2012
by
Pedro Gonnet
Browse files
remove hard-coded vector length.
Former-commit-id: f3728118e343a5901eacba9709494ca28065dd1c
parent
8060a976
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/runner_iact.h
View file @
b150ea1b
...
...
@@ -485,7 +485,7 @@ __attribute__ ((always_inline)) INLINE static void runner_iact_vec_force ( float
pjh_dt
.
v
=
mi
.
v
/
pirho
.
v
*
dvdr
.
v
*
wj_dr
.
v
;
/* Store the forces back on the particles. */
for
(
k
=
0
;
k
<
4
;
k
++
)
{
for
(
k
=
0
;
k
<
VEC_SIZE
;
k
++
)
{
pi
[
k
]
->
u_dt
+=
piu_dt
.
f
[
k
];
pj
[
k
]
->
u_dt
+=
pju_dt
.
f
[
k
];
pi
[
k
]
->
h_dt
+=
pih_dt
.
f
[
k
];
...
...
@@ -647,7 +647,7 @@ __attribute__ ((always_inline)) INLINE static void runner_iact_nonsym_vec_force
pih_dt
.
v
=
mj
.
v
/
pjrho
.
v
*
dvdr
.
v
*
wi_dr
.
v
;
/* Store the forces back on the particles. */
for
(
k
=
0
;
k
<
4
;
k
++
)
{
for
(
k
=
0
;
k
<
VEC_SIZE
;
k
++
)
{
pi
[
k
]
->
u_dt
+=
piu_dt
.
f
[
k
];
pi
[
k
]
->
h_dt
+=
pih_dt
.
f
[
k
];
for
(
j
=
0
;
j
<
3
;
j
++
)
...
...
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