From b1ad30fa2591e95c4d16904c2ce3bea151dc7f06 Mon Sep 17 00:00:00 2001 From: loikki <loic.hausammann@protonmail.ch> Date: Thu, 30 Apr 2020 09:46:10 +0200 Subject: [PATCH] Compute stats on all the particles --- src/statistics.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/statistics.c b/src/statistics.c index 2ddb1082fc..e4b779a6bd 100644 --- a/src/statistics.c +++ b/src/statistics.c @@ -255,10 +255,8 @@ void stats_collect_gpart_mapper(void *map_data, int nr_gparts, /* Get the particle */ const struct gpart *gp = &gparts[k]; - /* If the g-particle has a counterpart, ignore it */ - if (gp->type != swift_type_dark_matter && - gp->type != swift_type_dark_matter_background) - continue; + /* Ignore the hydro particles as they are already computed */ + if (gp->type == swift_type_gas) continue; /* Ignore non-existing particles */ if (gp->time_bin == time_bin_inhibited || -- GitLab