Skip to content

Commit 14073d8

Browse files
committed
Added Feedback calculation from CAMB
1 parent 3aaa8c9 commit 14073d8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

hmcode/camb_stuff.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@
55
import camb
66

77
def run(zs, Omega_c, Omega_b, Omega_k, h, ns, sigma_8,
8-
m_nu=0., w=-1., wa=0., As=2e-9, norm_sigma8=True, kmax_CAMB=200., verbose=False):
8+
m_nu=0., w=-1., wa=0., As=2e-9, norm_sigma8=True, kmax_CAMB=200., log10_T_AGN=None, verbose=False):
99

1010
# Sets cosmological parameters in camb to calculate the linear power spectrum
11-
pars = camb.CAMBparams()
11+
if log10_T_AGN:
12+
pars = camb.CAMBparams(NonLinearModel=camb.nonlinear.Halofit(halofit_version="mead2020_feedback", HMCode_logT_AGN=log10_T_AGN), WantCls=False)
13+
else:
14+
pars = camb.CAMBparams(WantCls=False,NonLinearModel=camb.nonlinear.Halofit(halofit_version="mead2020"))
1215
wb, wc = Omega_b*h**2, Omega_c*h**2
1316

1417
# This function sets standard and helium set using BBN consistency

0 commit comments

Comments
 (0)