Commit 215d887d authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Make sure the Ewald tables for force checks are also initialised after a restart.

parent f905e379
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment