From a8d93bd75354b99c352d85308f50fb95993d1a45 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Wed, 26 Jun 2019 10:52:50 +0100
Subject: [PATCH] Fixed mistake in the logic used to collect particles to
 construct the hash map in the snapshots.

---
 src/common_io.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/src/common_io.c b/src/common_io.c
index d1c42a3d8f..a08ee3f631 100644
--- a/src/common_io.c
+++ b/src/common_io.c
@@ -471,14 +471,6 @@ void io_write_cell_offsets(hid_t h_grp, const int cdim[3],
 
   double cell_width[3] = {width[0], width[1], width[2]};
 
-  message("global_counts: %lld %lld %lld %lld %lld %lld", global_counts[0],
-          global_counts[1], global_counts[2], global_counts[3],
-          global_counts[4], global_counts[5]);
-
-  message("global_offsets: %lld %lld %lld %lld %lld %lld", global_offsets[0],
-          global_offsets[1], global_offsets[2], global_offsets[3],
-          global_offsets[4], global_offsets[5]);
-
   /* Temporary memory for the cell-by-cell information */
   double* centres = NULL;
   centres = (double*)malloc(3 * nr_cells * sizeof(double));
@@ -533,10 +525,6 @@ void io_write_cell_offsets(hid_t h_grp, const int cdim[3],
       count_spart[i] = cell_count_non_inhibited_stars(&cells_top[i]);
       count_bpart[i] = cell_count_non_inhibited_black_holes(&cells_top[i]);
 
-      if (count_background_gpart[i] == 0)
-        message("count_gpart = %lld count_gpart_back = %lld", count_gpart[i],
-                count_background_gpart[i]);
-
       /* Offsets including the global offset of all particles on this MPI rank
        */
       offset_part[i] = local_offset_part + global_offsets[swift_type_gas];
-- 
GitLab