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
c0c39697
Commit
c0c39697
authored
Jun 03, 2018
by
Matthieu Schaller
Committed by
Matthieu Schaller
Jun 18, 2018
Browse files
Correct definition of a_smooth for the mesh forces.
parent
528d6422
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mesh_gravity.c
View file @
c0c39697
...
...
@@ -388,7 +388,7 @@ void pm_mesh_compute_potential(struct pm_mesh* mesh, const struct engine* e) {
/* Some common factors */
const
double
green_fac
=
-
1
.
/
(
M_PI
*
box_size
);
const
double
a_smooth2
=
4
.
*
M_PI
*
M_PI
*
a_smooth
*
a_smooth
/
(
(
double
)(
N
*
N
)
);
4
.
*
M_PI
*
M_PI
*
a_smooth
*
a_smooth
/
(
box_size
*
box_size
);
const
double
k_fac
=
M_PI
/
(
double
)
N
;
/* Now de-convolve the CIC kernel and apply the Green function */
...
...
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