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
215d887d
Commit
215d887d
authored
Mar 15, 2018
by
Matthieu Schaller
Browse files
Make sure the Ewald tables for force checks are also initialised after a restart.
parent
f905e379
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
215d887d
...
...
@@ -802,11 +802,6 @@ int main(int argc, char *argv[]) {
e
.
dt_max
);
fflush
(
stdout
);
}
/* Initialise the table of Ewald corrections for the gravity checks */
#ifdef SWIFT_GRAVITY_FORCE_CHECKS
if
(
periodic
)
gravity_exact_force_ewald_init
(
e
.
s
->
dim
[
0
]);
#endif
}
/* Time to say good-bye if this was not a serious run. */
...
...
@@ -822,6 +817,11 @@ int main(int argc, char *argv[]) {
return
0
;
}
/* Initialise the table of Ewald corrections for the gravity checks */
#ifdef SWIFT_GRAVITY_FORCE_CHECKS
if
(
periodic
)
gravity_exact_force_ewald_init
(
e
.
s
->
dim
[
0
]);
#endif
/* Init the runner history. */
#ifdef HIST
for
(
k
=
0
;
k
<
runner_hist_N
;
k
++
)
runner_hist_bins
[
k
]
=
0
;
...
...
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