diff --git a/src/tracers/EAGLE/tracers.h b/src/tracers/EAGLE/tracers.h index 8065b803753ddb5f8ff7f01b0d9553dbda856405..11c5af4e5aa6d60f60dce330ee2c817a06f58f18 100644 --- a/src/tracers/EAGLE/tracers.h +++ b/src/tracers/EAGLE/tracers.h @@ -145,7 +145,7 @@ static INLINE void tracers_first_init_xpart( */ static INLINE void tracers_after_feedback(struct xpart *xp) { - xp->tracers_data.hit_by_SNII_feedback = 1; + xp->tracers_data.hit_by_SNII_feedback++; } /** @@ -163,7 +163,7 @@ static INLINE void tracers_after_black_holes_feedback( struct xpart *xp, const int with_cosmology, const float scale_factor, const double time, const double delta_energy) { - xp->tracers_data.hit_by_AGN_feedback = 1; + xp->tracers_data.hit_by_AGN_feedback++; xp->tracers_data.AGN_feedback_energy += delta_energy; } diff --git a/src/tracers/EAGLE/tracers_io.h b/src/tracers/EAGLE/tracers_io.h index 3c540132e95d0efd950d63e8e968ef34a15266f7..0971a7f4de17bc26e93df519fea05c4c92ce2f25 100644 --- a/src/tracers/EAGLE/tracers_io.h +++ b/src/tracers/EAGLE/tracers_io.h @@ -77,13 +77,15 @@ __attribute__((always_inline)) INLINE static int tracers_write_particles( io_make_output_field("HeatedBySNIIFeedback", CHAR, 1, UNIT_CONV_NO_UNITS, 0.f, xparts, tracers_data.hit_by_SNII_feedback, "Flags the particles that have been directly hit by " - "a SNII feedback event at some point in the past."); + "a SNII feedback event at some point in the past. " + "If > 0, contains the number of individual events."); list[3] = io_make_output_field("HeatedByAGNFeedback", CHAR, 1, UNIT_CONV_NO_UNITS, 0.f, xparts, tracers_data.hit_by_AGN_feedback, "Flags the particles that have been directly hit by " - "an AGN feedback event at some point in the past."); + "an AGN feedback event at some point in the past. " + "If > 0, contains the number of individual events."); list[4] = io_make_output_field("EnergiesReceivedFromAGNFeedback", FLOAT, 1, UNIT_CONV_ENERGY, 0.f, xparts,