From 02605421941ec0ef61b2b62f6a1e7704d5ccf6b0 Mon Sep 17 00:00:00 2001
From: Mladen Ivkovic <mladen.ivkovic@epfl.ch>
Date: Fri, 19 Jul 2019 14:18:41 +0100
Subject: [PATCH] Short main.c cleanup

---
 examples/main.c | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)

diff --git a/examples/main.c b/examples/main.c
index 13c4c918f4..fa4186fc0b 100644
--- a/examples/main.c
+++ b/examples/main.c
@@ -1011,7 +1011,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);
@@ -1099,10 +1099,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) {
 
@@ -1242,17 +1238,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) {
 
-- 
GitLab