Skip to content
Snippets Groups Projects

Short main.c cleanup

Merged Mladen Ivkovic requested to merge short_main_cleanup into master
1 file
+ 1
16
Compare changes
  • Side-by-side
  • Inline
+ 1
16
@@ -1012,7 +1012,7 @@ int main(int argc, char *argv[]) {
"the ICs!");
}
/* Verify that each particle is in it's proper cell. */
/* Verify that each particle is in its proper cell. */
if (talking && !dry_run) {
int icount = 0;
space_map_cells_pre(&s, 0, &map_cellcheck, &icount);
@@ -1100,10 +1100,6 @@ int main(int argc, char *argv[]) {
if (s.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;
#endif
if (!restart) {
@@ -1243,17 +1239,6 @@ int main(int argc, char *argv[]) {
#endif // SWIFT_DEBUG_THREADPOOL
}
/* Print the values of the runner histogram. */
#ifdef HIST
printf("main: runner histogram data:\n");
for (k = 0; k < runner_hist_N; k++)
printf(" %e %e %e\n",
runner_hist_a + k * (runner_hist_b - runner_hist_a) / runner_hist_N,
runner_hist_a +
(k + 1) * (runner_hist_b - runner_hist_a) / runner_hist_N,
(double)runner_hist_bins[k]);
#endif
/* Write final time information */
if (myrank == 0) {
Loading