Skip to content

Commit

Permalink
Passing information of the stripped hot_halo_gas to descendant
Browse files Browse the repository at this point in the history
In evolve_halos the information about the hot_halo_gas that has been
stripped and the radius of the RPS wasn't been passed from the subhalo
to its descendant. It's now included.
  • Loading branch information
cdplagos committed Jun 28, 2024
1 parent e8d2dfd commit f04170d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/evolve_halos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ void transfer_galaxies_to_next_snapshot(const std::vector<HaloPtr> &halos, int s
descendant_subhalo->star_central_infall = subhalo->star_central_infall;
descendant_subhalo->stellar_halo += subhalo->stellar_halo;
descendant_subhalo->mean_galaxy_making_stellar_halo += subhalo->mean_galaxy_making_stellar_halo;
descendant_subhalo->hot_halo_gas_stripped += subhalo->hot_halo_gas_stripped;
descendant_subhalo->hot_halo_gas_r_rps = subhalo->hot_halo_gas_r_rps;

// Track halo cooling and its properties.
if (subhalo->main_progenitor) {
Expand Down

0 comments on commit f04170d

Please sign in to comment.