Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions source/background.c
Original file line number Diff line number Diff line change
Expand Up @@ -2527,6 +2527,9 @@ int background_derivs(
if (pba->has_idm_dr == _TRUE_) {
rho_M += pvecback[pba->index_bg_rho_idm_dr];
}
// SAlviAug2021: Added the dcdm density to the growth factor in the case of DCDM
if (pba->has_dcdm)
rho_M += pvecback[pba->index_bg_rho_dcdm];

dy[pba->index_bi_D] = y[pba->index_bi_D_prime]/a/H;
dy[pba->index_bi_D_prime] = -y[pba->index_bi_D_prime] + 1.5*a*rho_M*y[pba->index_bi_D]/H;
Expand Down