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
3d03d0ad
Commit
3d03d0ad
authored
Aug 10, 2017
by
Matthieu Schaller
Browse files
Do not free the Ewald table.
parent
4b7333e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
3d03d0ad
...
...
@@ -818,9 +818,6 @@ int main(int argc, char *argv[]) {
if
(
with_verbose_timers
)
timers_close_file
();
engine_clean
(
&
e
);
free
(
params
);
#ifdef SWIFT_GRAVITY_FORCE_CHECKS
if
(
periodic
)
gravity_exact_force_ewald_free
();
#endif
/* Say goodbye. */
if
(
myrank
==
0
)
message
(
"done. Bye."
);
...
...
src/gravity.c
View file @
3d03d0ad
...
...
@@ -219,19 +219,6 @@ void gravity_exact_force_ewald_init(double boxSize) {
#endif
}
/**
* @brief Free the Ewald summation tables.
*/
void
gravity_exact_force_ewald_free
()
{
#ifdef SWIFT_GRAVITY_FORCE_CHECKS
free
(
fewald_x
);
free
(
fewald_y
);
free
(
fewald_z
);
#else
error
(
"Gravity checking function called without the corresponding flag."
);
#endif
}
#ifdef SWIFT_GRAVITY_FORCE_CHECKS
/**
* @brief Compute the Ewald correction for a given distance vector r.
...
...
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