Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed small scanf counting mistake.
  • Loading branch information
schoeneberg committed Oct 5, 2018
1 parent f3e1fc5 commit 7bf45e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyrec/history.c
Expand Up @@ -46,7 +46,7 @@ void rec_get_cosmoparam(FILE *fin, FILE *fout, REC_COSMOPARAMS *param) {
fscanf_result += fscanf(fin, "%lg", &(param->Y));
if (fout!=NULL && PROMPT==1) fprintf(fout, "Enter effective number of neutrino species, N_nu_eff: ");
fscanf_result += fscanf(fin, "%lg", &(param->Nnueff));
if (fscanf_result!=8){printf("Hyrec Warning :: Failed to read cosmological parameters");}
if (fscanf_result!=9){printf("Hyrec Warning :: Failed to read cosmological parameters");}

param->nH0 = 11.223846333047*param->obh2*(1.-param->Y); /* number density of hudrogen today in m-3 */
param->fHe = param->Y/(1-param->Y)/3.97153; /* abundance of helium by number */
Expand Down

0 comments on commit 7bf45e1

Please sign in to comment.