From f04170d2936cf88d045cc2e89495d6fb39fd434c Mon Sep 17 00:00:00 2001 From: Claudia Lagos Date: Fri, 28 Jun 2024 12:13:43 +0800 Subject: [PATCH] Passing information of the stripped hot_halo_gas to descendant 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. --- src/evolve_halos.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/evolve_halos.cpp b/src/evolve_halos.cpp index 1fd3daa4..82935bbf 100644 --- a/src/evolve_halos.cpp +++ b/src/evolve_halos.cpp @@ -159,6 +159,8 @@ void transfer_galaxies_to_next_snapshot(const std::vector &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) {