diff --git a/src/pgen/cluster/agn_triggering.hpp b/src/pgen/cluster/agn_triggering.hpp index 4e6c711e..51c1d3db 100644 --- a/src/pgen/cluster/agn_triggering.hpp +++ b/src/pgen/cluster/agn_triggering.hpp @@ -37,9 +37,7 @@ class AGNTriggering { public: const AGNTriggeringMode triggering_mode_; - - parthenon::Real inflow_cold_=0.0; // Cold mass inflow rate - parthenon::Real inflow_tot_=0.0; // Total gas mass inflow rate + const parthenon::Real accretion_radius_; @@ -74,9 +72,9 @@ class AGNTriggering { // Compute Cold gas accretion rate within the accretion radius for cold gas triggering // and simultaneously remove cold gas (updating conserveds and primitives) template - void ReduceColdMass(parthenon::Real &cold_mass,parthenon::Real &total_mass, + void ReduceColdMass(parthenon::Real &cold_mass, parthenon::Real &total_mass, parthenon::MeshData *md, const parthenon::Real dt, - const EOS eos) ; + const EOS eos) const; // Compute Mass-weighted total density, velocity, and sound speed and total mass // for Bondi accretion