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
3d03d0ad
Commit
3d03d0ad
authored
7 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Do not free the Ewald table.
parent
4b7333e0
No related branches found
No related tags found
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/main.c
+0
-3
0 additions, 3 deletions
examples/main.c
src/gravity.c
+0
-13
0 additions, 13 deletions
src/gravity.c
with
0 additions
and
16 deletions
examples/main.c
+
0
−
3
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."
);
...
...
This diff is collapsed.
Click to expand it.
src/gravity.c
+
0
−
13
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.
...
...
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