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
b0bd8eb5
Commit
b0bd8eb5
authored
Aug 09, 2017
by
Matthieu Schaller
Browse files
Make sure the exact calculation matches the Gadget one when the same kernel function is used.
parent
8aedd0db
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/EAGLE_12/eagle_12.yml
View file @
b0bd8eb5
...
...
@@ -26,7 +26,7 @@ Statistics:
# Parameters for the self-gravity scheme
Gravity
:
eta
:
0.025
# Constant dimensionless multiplier for time integration.
epsilon
:
0.00
0000
1
# Softening length (in internal units).
epsilon
:
0.001
# Softening length (in internal units).
theta
:
0.7
# Opening angle (Multipole acceptance criterion)
# Parameters for the hydrodynamics scheme
...
...
src/gravity.c
View file @
b0bd8eb5
...
...
@@ -436,7 +436,7 @@ void gravity_exact_force_compute_mapper(void *map_data, int nr_gparts,
a_grav
[
2
]
+=
f
*
dz
;
/* Apply Ewald correction for periodic BC */
if
(
periodic
)
{
if
(
periodic
&&
r
>
1e-5
*
hi
)
{
double
corr
[
3
];
gravity_exact_force_ewald_evaluate
(
dx
,
dy
,
dz
,
corr
);
...
...
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