Skip to content
Snippets Groups Projects
Commit 8c753eef authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Fix usage of enum for the BH spin jet mode

parent 2ee33e27
No related branches found
No related tags found
2 merge requests!1956Rename space_getsid to space_getsid_and_swap_cells() to try to prevent...,!1921Mhd canvas
......@@ -29,14 +29,6 @@
#include "rays_struct.h"
#include "timeline.h"
/*! The possible accretion modes every black hole can take. */
typedef enum BH_accretion_modes {
BH_thick_disc = 0, /* At low Eddington ratios */
BH_thin_disc, /* At moderate Eddington ratios */
BH_slim_disc, /* Super-Eddington accretion */
BH_accretion_modes_count /* Number of possible accretion modes */
} BH_accretion_modes;
/**
* @brief Particle fields for the black hole particles.
*
......
......@@ -326,7 +326,8 @@ static INLINE void tracers_after_black_holes_feedback(
static INLINE void tracers_after_jet_feedback(
const struct part *p, struct xpart *xp, const int with_cosmology,
const float scale_factor, const double time, const double delta_energy,
const float vel_kick, BH_accretion_modes accretion_mode, long long id) {
const float vel_kick, const enum BH_accretion_modes accretion_mode,
const long long id) {
if (with_cosmology)
xp->tracers_data.last_AGN_jet_feedback_scale_factor = scale_factor;
......
......@@ -23,6 +23,14 @@
/* Local includes */
#include "tracers_triggers.h"
/*! The possible accretion modes every black hole can take. */
enum BH_accretion_modes {
BH_thick_disc = 0, /* At low Eddington ratios */
BH_thin_disc, /* At moderate Eddington ratios */
BH_slim_disc, /* Super-Eddington accretion */
BH_accretion_modes_count /* Number of possible accretion modes */
};
/**
* @brief Properties of the tracers stored in the extended particle data.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment