diff --git a/src/black_holes/EAGLE/black_holes_io.h b/src/black_holes/EAGLE/black_holes_io.h index bd99cb9bc3814edc5e6b9222d149fe2ef8ffb3be..78a6d21028efb98073bbc97e04a5c53ec7aaed65 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;