Skip to content

Commit

Permalink
minor formatting to keep everything similar
Browse files Browse the repository at this point in the history
  • Loading branch information
s-balu authored Feb 1, 2024
1 parent 3e156f3 commit 48acfeb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion input/params/Genesis_L210_N4320.par
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ LXrayGal : 3.16e40 # Soft-band (< NuXraySoftCut keV) X-ray luminosity fo
NuXrayGalThreshold : 500. # Energy threshold for HMXB X-rays escaping host galaxy (eV)
SpecIndexXrayGal : 1. # Spectral index of galaxy X-ray sources (nu^-alpha)

LXrayIII : 3.16e40 # Soft-band (< NuXraySoftCut keV) X-ray luminosity for galaxy based sources (HMXB)
LXrayGalIII : 3.16e40 # Soft-band (< NuXraySoftCut keV) X-ray luminosity for galaxy based sources (HMXB)
SpecIndexXrayIII : 1. # Spectral index of galaxy X-ray sources (nu^-alpha)

LXrayQSO : 3.16e40 # Soft-band (< NuXraySoftCut keV) X-ray luminosity for QSO based sources
Expand Down
2 changes: 1 addition & 1 deletion input/params/defaults.par
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ ZCrit : 0.0001 # Critical metallicity. If Z >= Zcrit -> Pop
#-------------------------------------------------------------------

LXrayGal : 3.16e40 # Soft-band (< NuXraySoftCut keV) X-ray luminosity for galaxy based sources (HMXB)
LXrayIII : 3.16e40 # Same as above for PopIII
LXrayGalIII : 3.16e40 # Same as above for PopIII

NuXrayGalThreshold : 500. # Energy threshold for HMXB X-rays escaping host galaxy (eV)
SpecIndexXrayGal : 1. # Spectral index of galaxy X-ray sources (nu^-alpha)
Expand Down
2 changes: 1 addition & 1 deletion src/core/ComputeTs.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ void _ComputeTs(int snapshot)
(run_globals.params.physics.NuXrayGalThreshold * NU_over_EV) * SPEED_OF_LIGHT *
pow(1 + zp, run_globals.params.physics.SpecIndexXrayGal + 3);
#if USE_MINI_HALOS
const_zp_prefactor_III = (run_globals.params.physics.LXrayIII * Luminosity_converstion_factor_III) /
const_zp_prefactor_III = (run_globals.params.physics.LXrayGalIII * Luminosity_converstion_factor_III) /
(run_globals.params.physics.NuXrayGalThreshold * NU_over_EV) * SPEED_OF_LIGHT *
pow(1 + zp, run_globals.params.physics.SpecIndexXrayIII + 3);
#endif
Expand Down
4 changes: 2 additions & 2 deletions src/core/read_params.c
Original file line number Diff line number Diff line change
Expand Up @@ -1091,8 +1091,8 @@ void read_parameter_file(char* fname, int mode)
required_tag[n_param] = 1;
params_type[n_param++] = PARAM_TYPE_DOUBLE;

strcpy(params_tag[n_param], "LXrayIII");
params_addr[n_param] = &(run_params->physics).LXrayIII;
strcpy(params_tag[n_param], "LXrayGalIII");
params_addr[n_param] = &(run_params->physics).LXrayGalIII;
#if USE_MINI_HALOS
required_tag[n_param] = 1;
#else
Expand Down
2 changes: 1 addition & 1 deletion src/meraxes.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ typedef struct physics_params_t
double LXrayGal;
double NuXrayGalThreshold;
double SpecIndexXrayGal;
double LXrayIII;
double LXrayGalIII;
double SpecIndexXrayIII;
double LXrayQSO;
double NuXrayQSOThreshold;
Expand Down

1 comment on commit 48acfeb

@s-balu
Copy link
Collaborator Author

@s-balu s-balu commented on 48acfeb Feb 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I didn't know it would get committed straightaway; I thought you would have to approve, sorry!

Please sign in to comment.