Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
b0bd8eb5
Commit
b0bd8eb5
authored
7 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Make sure the exact calculation matches the Gadget one when the same kernel function is used.
parent
8aedd0db
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!398
Use particle caches for the gravity P-P interactions. Ewald summation for the gravity force checks
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/EAGLE_12/eagle_12.yml
+1
-1
1 addition, 1 deletion
examples/EAGLE_12/eagle_12.yml
src/gravity.c
+1
-1
1 addition, 1 deletion
src/gravity.c
with
2 additions
and
2 deletions
examples/EAGLE_12/eagle_12.yml
+
1
−
1
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
...
...
This diff is collapsed.
Click to expand it.
src/gravity.c
+
1
−
1
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment