Skip to content
GitLab
Menu
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
62739c95
Commit
62739c95
authored
Aug 10, 2017
by
Matthieu Schaller
Browse files
Only compile the Ewald interpolation function when running the Gravity checks.
parent
dfb84c2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gravity.c
View file @
62739c95
...
...
@@ -232,6 +232,7 @@ void gravity_exact_force_ewald_free() {
#endif
}
#ifdef SWIFT_GRAVITY_FORCE_CHECKS
/**
* @brief Compute the Ewald correction for a given distance vector r.
*
...
...
@@ -305,6 +306,7 @@ gravity_exact_force_ewald_evaluate(double rx, double ry, double rz,
corr
[
2
]
+=
fewald_z
[
i
+
1
][
j
+
1
][
k
+
1
]
*
dx
*
dy
*
dz
;
corr
[
2
]
*=
s_z
;
}
#endif
/**
* @brief Checks whether the file containing the exact accelerations for
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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