Skip to content

Commit

Permalink
properly define
Browse files Browse the repository at this point in the history
  • Loading branch information
qyx268 authored and Yuxiang Qin committed Aug 4, 2023
1 parent b39abd4 commit f4864be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/py21cmfast/_version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# coding: utf-8
# file generated by setuptools_scm
# don't change, don't track in version control
__version__ = version = '3.1.6.dev10+ge0095a4'
__version_tuple__ = version_tuple = (3, 1, 6, 'dev10', 'ge0095a4')
__version__ = version = "3.2.1.dev109+g56c708f0.d20230802"
__version_tuple__ = version_tuple = (3, 2, 1, "dev109", "g56c708f0.d20230802")
5 changes: 3 additions & 2 deletions src/py21cmfast/src/IonisationBox.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,11 @@ LOG_SUPER_DEBUG("defined parameters");

pixel_volume = pow(user_params->BOX_LEN/((float)(user_params->HII_DIM)), 3);

double F_ESC10_zterm, prev_F_ESC10_zterm;

if(flag_options->USE_MASS_DEPENDENT_ZETA) {
double F_ESC10_zterm = pow((1.+redshift)/8., astro_params->BETA_ESC);
double prev_F_ESC10_zterm = pow((1.+prev_redshift)/8., astro_params->BETA_ESC);
F_ESC10_zterm = pow((1.+redshift)/8., astro_params->BETA_ESC);
prev_F_ESC10_zterm = pow((1.+prev_redshift)/8., astro_params->BETA_ESC);
ION_EFF_FACTOR = global_params.Pop2_ion * astro_params->F_STAR10 * astro_params->F_ESC10 * F_ESC10_zterm;
prev_ION_EFF_FACTOR = global_params.Pop2_ion * astro_params->F_STAR10 * astro_params->F_ESC10 * prev_F_ESC10_zterm;
ION_EFF_FACTOR_MINI = global_params.Pop3_ion * astro_params->F_STAR7_MINI * astro_params->F_ESC7_MINI;
Expand Down
3 changes: 2 additions & 1 deletion src/py21cmfast/src/SpinTemperatureBox.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,10 @@ if (LOG_LEVEL >= DEBUG_LEVEL){
float M_MIN_at_zp;

int NO_LIGHT = 0;
double F_ESC10_zterm;

if(flag_options->USE_MASS_DEPENDENT_ZETA) {
double F_ESC10_zterm = pow((1.+redshift)/8., astro_params->BETA_ESC);
F_ESC10_zterm = pow((1.+redshift)/8., astro_params->BETA_ESC);
ION_EFF_FACTOR = global_params.Pop2_ion * astro_params->F_STAR10 * astro_params->F_ESC10 * F_ESC10_zterm;
ION_EFF_FACTOR_MINI = global_params.Pop3_ion * astro_params->F_STAR7_MINI * astro_params->F_ESC7_MINI;
}
Expand Down

0 comments on commit f4864be

Please sign in to comment.