From f895d920a22a89a03ba88cb1f6369980349c7ba4 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Sat, 7 Dec 2019 17:58:50 +0100 Subject: [PATCH] Add the cumulative number of seeds and the total number of mergers of black holes to the snapshots. --- src/black_holes/EAGLE/black_holes_io.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/black_holes/EAGLE/black_holes_io.h b/src/black_holes/EAGLE/black_holes_io.h index bd99cb9bc3..78a6d21028 100644 --- a/src/black_holes/EAGLE/black_holes_io.h +++ b/src/black_holes/EAGLE/black_holes_io.h @@ -114,7 +114,7 @@ INLINE static void black_holes_write_particles(const struct bpart* bparts, int with_cosmology) { /* Say how much we want to write */ - *num_fields = 12; + *num_fields = 14; /* List what we want to write */ list[0] = io_make_output_field_convert_bpart( @@ -180,6 +180,12 @@ INLINE static void black_holes_write_particles(const struct bpart* bparts, cumulative_number_seeds, "Total number of BH seeds that have merged into this black hole"); + list[13] = io_make_output_field("NumberOfMergers", INT, 1, UNIT_CONV_NO_UNITS, + 0.f, bparts, number_of_mergers, + "Number of mergers black holes went through. " + "This does not include the number of mergers " + "accumulated by any merged black hole."); + #ifdef DEBUG_INTERACTIONS_BLACK_HOLES list += *num_fields; -- GitLab