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
79fe1127
Commit
79fe1127
authored
Mar 15, 2020
by
Matthieu Schaller
Browse files
Minor style fixes
parent
fe01ea44
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/gravity.c
View file @
79fe1127
...
...
@@ -325,9 +325,8 @@ void gravity_exact_force_ewald_init(const double boxSize) {
* @param corr_f (return) The Ewald correction for the force.
* @param corr_p (return) The Ewald correction for the potential.
*/
void
gravity_exact_force_ewald_evaluate
(
const
double
rx
,
const
double
ry
,
const
double
rz
,
double
corr_f
[
3
],
double
*
corr_p
)
{
void
gravity_exact_force_ewald_evaluate
(
double
rx
,
double
ry
,
double
rz
,
double
corr_f
[
3
],
double
*
corr_p
)
{
#ifdef SWIFT_GRAVITY_FORCE_CHECKS
...
...
src/kernel_long_gravity.h
View file @
79fe1127
...
...
@@ -220,7 +220,7 @@ kernel_long_grav_force_eval_double(const double u, double *const W) {
#ifdef SWIFT_GRAVITY_FORCE_CHECKS
#ifdef GADGET2_LONG_RANGE_CORRECTION
const
double
one_over_sqrt_pi
=
((
double
)(
M_2_SQRTPI
*
0
.
5
))
;
const
double
one_over_sqrt_pi
=
M_2_SQRTPI
*
0
.
5
;
const
double
arg1
=
u
*
0
.
5
;
const
double
arg2
=
-
arg1
*
arg1
;
...
...
src/multipole.h
View file @
79fe1127
...
...
@@ -97,7 +97,7 @@ struct grav_tensor {
/* Number of gparts interacted through the tree. */
long
long
num_interacted_tree
;
/* Number of gparts interacted through the
grid.
*/
/* Number of gparts interacted through the
FFT mesh
*/
long
long
num_interacted_pm
;
#endif
...
...
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