Commit c79fe14e authored by lesgourg's avatar lesgourg
Browse files

Some minor polishing of the p_k_eq and P_cb features

parents 97de0782 b2a4606f
......@@ -1337,8 +1337,8 @@ int background_ncdm_init(
pba->error_message,
pba->error_message);
for (index_q=0; index_q<pba->q_size_ncdm[k]; index_q++) {
pba->q_ncdm_bg[k] = pba->q_ncdm[k];
pba->w_ncdm_bg[k] = pba->w_ncdm[k];
pba->q_ncdm_bg[k][index_q] = pba->q_ncdm[k][index_q];
pba->w_ncdm_bg[k][index_q] = pba->w_ncdm[k][index_q];
}
/** - in verbose mode, inform user of number of sampled momenta
for background quantities */
......@@ -1477,7 +1477,7 @@ int background_ncdm_momenta(
}
/** - adjust normalization */
if (n!=NULL) *n *= factor2*(1.+z);
if (n!=NULL) *n *= factor2/(1.+z);
if (rho!=NULL) *rho *= factor2;
if (p!=NULL) *p *= factor2;
if (drho_dM!=NULL) *drho_dM *= factor2;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment