Skip to content
Snippets Groups Projects
Commit b1ad30fa authored by Loic Hausammann's avatar Loic Hausammann
Browse files

Compute stats on all the particles

parent 7b63f320
No related branches found
No related tags found
1 merge request!1070Compute stats on all the particles
...@@ -255,10 +255,8 @@ void stats_collect_gpart_mapper(void *map_data, int nr_gparts, ...@@ -255,10 +255,8 @@ void stats_collect_gpart_mapper(void *map_data, int nr_gparts,
/* Get the particle */ /* Get the particle */
const struct gpart *gp = &gparts[k]; const struct gpart *gp = &gparts[k];
/* If the g-particle has a counterpart, ignore it */ /* Ignore the hydro particles as they are already computed */
if (gp->type != swift_type_dark_matter && if (gp->type == swift_type_gas) continue;
gp->type != swift_type_dark_matter_background)
continue;
/* Ignore non-existing particles */ /* Ignore non-existing particles */
if (gp->time_bin == time_bin_inhibited || if (gp->time_bin == time_bin_inhibited ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment