From 1028cfc2017d4a9b6e120d6bc42549fca213a5e1 Mon Sep 17 00:00:00 2001 From: lvashb Date: Wed, 8 Sep 2021 12:59:41 +0200 Subject: [PATCH] Fixed the error --- source/background.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/background.c b/source/background.c index ddbccd82b..3cebadad4 100644 --- a/source/background.c +++ b/source/background.c @@ -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;