diff --git a/examples/EAGLE_ICs/EAGLE_12/eagle_12.yml b/examples/EAGLE_ICs/EAGLE_12/eagle_12.yml index 7945009d7dfac7dca8025c3e374926455cc9986b..fa72bf83b0581c439c0a2b1f2ef7bd29d7053c78 100644 --- a/examples/EAGLE_ICs/EAGLE_12/eagle_12.yml +++ b/examples/EAGLE_ICs/EAGLE_12/eagle_12.yml @@ -91,6 +91,15 @@ InitialConditions: generate_gas_in_ics: 1 # Generate gas particles from the DM-only ICs cleanup_smoothing_lengths: 1 # Since we generate gas, make use of the (expensive) cleaning-up procedure. +# Parameters of the line-of-sight outputs +LineOfSight: + basename: eagle_los + num_along_x: 0 + num_along_y: 0 + num_along_z: 100 + scale_factor_first: 0.1 + delta_time: 1.1 + # Impose primoridal metallicity EAGLEChemistry: init_abundance_metal: 0. @@ -104,6 +113,7 @@ EAGLEChemistry: init_abundance_Silicon: 0.0 init_abundance_Iron: 0.0 +# EAGLE cooling parameters EAGLECooling: dir_name: ./coolingtables/ H_reion_z: 7.5 # Planck 2018 diff --git a/examples/EAGLE_ICs/EAGLE_25/eagle_25.yml b/examples/EAGLE_ICs/EAGLE_25/eagle_25.yml index 0ca0f37bcfb8a5290790bc604ea9eb1bf11dbad2..5dc4a4dd6e33493f9dac2bfdf6d8b37bb3ef594f 100644 --- a/examples/EAGLE_ICs/EAGLE_25/eagle_25.yml +++ b/examples/EAGLE_ICs/EAGLE_25/eagle_25.yml @@ -91,6 +91,15 @@ InitialConditions: generate_gas_in_ics: 1 # Generate gas particles from the DM-only ICs cleanup_smoothing_lengths: 1 # Since we generate gas, make use of the (expensive) cleaning-up procedure. +# Parameters of the line-of-sight outputs +LineOfSight: + basename: eagle_los + num_along_x: 0 + num_along_y: 0 + num_along_z: 100 + scale_factor_first: 0.1 + delta_time: 1.1 + # Impose primoridal metallicity EAGLEChemistry: init_abundance_metal: 0. diff --git a/examples/EAGLE_ICs/EAGLE_50/eagle_50.yml b/examples/EAGLE_ICs/EAGLE_50/eagle_50.yml index b4aa82a79cf77c5d19c5f2f475ba5c968216758b..b824789bcc406115465a5c50815ed8d6234d680f 100644 --- a/examples/EAGLE_ICs/EAGLE_50/eagle_50.yml +++ b/examples/EAGLE_ICs/EAGLE_50/eagle_50.yml @@ -89,6 +89,15 @@ InitialConditions: generate_gas_in_ics: 1 # Generate gas particles from the DM-only ICs cleanup_smoothing_lengths: 1 # Since we generate gas, make use of the (expensive) cleaning-up procedure. +# Parameters of the line-of-sight outputs +LineOfSight: + basename: eagle_los + num_along_x: 0 + num_along_y: 0 + num_along_z: 100 + scale_factor_first: 0.1 + delta_time: 1.1 + # Impose primoridal metallicity EAGLEChemistry: init_abundance_metal: 0. diff --git a/examples/EAGLE_ICs/EAGLE_50_low_res/eagle_50.yml b/examples/EAGLE_ICs/EAGLE_50_low_res/eagle_50.yml index 201c5cdde6e8250b56b8493d8103f91ae0678ae5..bd81d0e848496165f3212f63a82a8c0fd1781e11 100644 --- a/examples/EAGLE_ICs/EAGLE_50_low_res/eagle_50.yml +++ b/examples/EAGLE_ICs/EAGLE_50_low_res/eagle_50.yml @@ -88,6 +88,15 @@ InitialConditions: generate_gas_in_ics: 1 # Generate gas particles from the DM-only ICs cleanup_smoothing_lengths: 1 # Since we generate gas, make use of the (expensive) cleaning-up procedure. +# Parameters of the line-of-sight outputs +LineOfSight: + basename: eagle_los + num_along_x: 0 + num_along_y: 0 + num_along_z: 100 + scale_factor_first: 0.1 + delta_time: 1.1 + # Impose primoridal metallicity EAGLEChemistry: init_abundance_metal: 0. diff --git a/examples/QuickLymanAlpha/L050N0752/qla_50.yml b/examples/QuickLymanAlpha/L050N0752/qla_50.yml index 32a5fbf66d96e68203b99d6cd920f98d6f75e090..9eeac77e732eeeb32c5440dd5586199c401fedf1 100644 --- a/examples/QuickLymanAlpha/L050N0752/qla_50.yml +++ b/examples/QuickLymanAlpha/L050N0752/qla_50.yml @@ -62,7 +62,7 @@ Scheduler: Restarts: onexit: 1 - delta_hours: 2.0 + delta_hours: 6.0 # Parameters related to the initial conditions InitialConditions: @@ -73,6 +73,15 @@ InitialConditions: generate_gas_in_ics: 1 # Generate gas particles from the DM-only ICs cleanup_smoothing_lengths: 1 # Since we generate gas, make use of the (expensive) cleaning-up procedure. +# Parameters of the line-of-sight outputs +LineOfSight: + basename: los + num_along_x: 0 + num_along_y: 0 + num_along_z: 100 + scale_factor_first: 0.1 + delta_time: 1.1 + # Quick Lyman-alpha cooling (EAGLE with fixed primoridal Z) QLACooling: dir_name: ./coolingtables/ diff --git a/src/line_of_sight.c b/src/line_of_sight.c index a4c4aa9a8c5b624ac7b9c3d824a828952ab4ad1c..0216d7429a50385fd6a62da14b53f7ad878d25e5 100644 --- a/src/line_of_sight.c +++ b/src/line_of_sight.c @@ -110,11 +110,11 @@ void los_init(const double dim[3], struct los_props *los_params, /* How many line of sights in each plane. */ los_params->num_along_z = - parser_get_opt_param_int(params, "LineOfSight:num_along_z", 0); + parser_get_param_int(params, "LineOfSight:num_along_z"); los_params->num_along_x = - parser_get_opt_param_int(params, "LineOfSight:num_along_x", 0); + parser_get_param_int(params, "LineOfSight:num_along_x"); los_params->num_along_y = - parser_get_opt_param_int(params, "LineOfSight:num_along_y", 0); + parser_get_param_int(params, "LineOfSight:num_along_y"); /* Min/max range across x,y and z (simulation axes) where random * LOS's are allowed. */