From 6485b6a9faaca71b8adec9c7130f4818e806fe40 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Sun, 19 May 2019 18:19:41 +0100 Subject: [PATCH] Do not ignore the BH reads from the ICs. --- examples/EAGLE_low_z/EAGLE_6/eagle_6.yml | 7 +++++-- src/single_io.c | 2 -- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/EAGLE_low_z/EAGLE_6/eagle_6.yml b/examples/EAGLE_low_z/EAGLE_6/eagle_6.yml index 0c993af676..c03f11b81c 100644 --- a/examples/EAGLE_low_z/EAGLE_6/eagle_6.yml +++ b/examples/EAGLE_low_z/EAGLE_6/eagle_6.yml @@ -69,7 +69,7 @@ FOF: linking_length_ratio: 0.2 # Linking length in units of the main inter-particle separation. black_hole_seed_halo_mass_Msun: 1.5e10 # Minimal halo mass in which to seed a black hole (in solar masses). absolute_linking_length: -1. # (Optional) Absolute linking length (in internal units) - run_freq: 100 # (Optional) The no. of steps between each FOF search. + run_freq: 10 # (Optional) The no. of steps between each FOF search. group_id_default: 2147483647 # (Optional) Sets the group ID of particles in groups below the minimum size. Defaults to 2^31 - 1 if unspecified. Has to be positive. group_id_offset: 1 # (Optional) Sets the offset of group ID labeling. Defaults to 1 if unspecified. @@ -80,6 +80,10 @@ InitialConditions: cleanup_h_factors: 1 # Remove the h-factors inherited from Gadget cleanup_velocity_factors: 1 # Remove the sqrt(a) factor in the velocities inherited from Gadget +# EAGLE black hole seeding parameters +EAGLEBlackHoles: + seed_halo_mass: 1.5e10 # The minimum group mass required for black hole seeding + EAGLEChemistry: # Solar abundances init_abundance_metal: 0.014 init_abundance_Hydrogen: 0.70649785 @@ -171,4 +175,3 @@ EAGLEAGN: coupling_efficiency: 0.15 # Fraction of the radiated energy that couples to the gas in feedback events. AGN_delta_T_K: 3.16228e8 # Change in temperature to apply to the gas particle in an AGN feedback event in Kelvin. AGN_num_ngb_to_heat: 1. # Target number of gas neighbours to heat in an AGN feedback event. - diff --git a/src/single_io.c b/src/single_io.c index 4dda6ad724..4125b1ba91 100644 --- a/src/single_io.c +++ b/src/single_io.c @@ -444,8 +444,6 @@ void read_ic_single(const char* fileName, for (int ptype = 0; ptype < swift_type_count; ++ptype) N[ptype] = (numParticles[ptype]) + (numParticles_highWord[ptype] << 32); - N[5] = 0; - /* Get the box size if not cubic */ dim[0] = boxSize[0]; dim[1] = (boxSize[1] < 0) ? boxSize[0] : boxSize[1]; -- GitLab