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
209c4e50
Commit
209c4e50
authored
Mar 08, 2018
by
Matthieu Schaller
Browse files
Correct expression for softened potential in brute-force calculation.
parent
06730235
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gravity.c
View file @
209c4e50
...
...
@@ -427,7 +427,7 @@ void gravity_exact_force_compute_mapper(void *map_data, int nr_gparts,
/* Get softened gravity */
f
=
mj
*
hi_inv3
*
Wf
;
phi
=
mj
*
hi_inv
3
*
Wp
;
phi
=
mj
*
hi_inv
*
Wp
;
}
a_grav
[
0
]
+=
f
*
dx
;
...
...
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