Skip to content

Commit ec110d3

Browse files
committed
minor tidy
1 parent bc7244e commit ec110d3

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

camb/cambdll.dll

0 Bytes
Binary file not shown.

camb/results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ def get_nonlinear_matter_power_spectrum(self, **kwargs):
717717
:param var1: variable i (index, or name of variable; default delta_tot)
718718
:param var2: variable j (index, or name of variable; default delta_tot)
719719
:param hubble_units: if true, output power spectrum in :Math:`({\rm Mpc}/h)^{3}` units, otherwise :math:`{\rm Mpc}^{3}`
720-
:param have_power_spectra: set to True if already computed power spectra
720+
:param have_power_spectra: set to False if not already computed power spectra
721721
:param params: if have_power_spectra=False, optional :class:`~.model.CAMBparams` instance to specify new parameters
722722
:return: kh, z, PK, where kz an z are arrays of k/h and z respectively, and PK[i,j] is value at z[i], k/h[j]
723723
"""

fortran/halofit.f90

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ module NonLinear
103103
REAL(dl), ALLOCATABLE :: log_k_plin(:), log_plin(:), log_plinc(:)
104104
real(dl) :: kmax
105105
INTEGER :: nk, ng, nsig
106-
real(dl) :: grow2_z, this_z !cached value at redshift being calclated
106+
real(dl) :: grow2_z, this_z !cached value at redshift being calculated
107107
!AM - Added feedback parameters below at fixed fiducial (DMONLY) values
108108
REAL(dl) :: A_baryon=3.13
109109
REAL(dl) :: eta_baryon=0.603
@@ -1563,8 +1563,6 @@ SUBROUTINE fill_sigtab(cosm)
15631563
cosm%log_r_sigma=log(r)
15641564
cosm%log_sigma=log(sig)
15651565

1566-
DEALLOCATE(r,sig)
1567-
15681566
IF(HM_verbose) WRITE(*,*) 'SIGTAB: Done'
15691567
IF(HM_verbose) WRITE(*,*)
15701568

@@ -2596,7 +2594,7 @@ SUBROUTINE fill_growtab(cosm)
25962594
cosm%ng=n
25972595
ALLOCATE(cosm%a_growth(n),cosm%growth(n))
25982596
DO i=1,n
2599-
a=ainit+(amax-ainit)*float(i-1)/float(n-1)
2597+
a=ainit+(amax-ainit)*(i-1)/real(n-1,dl)
26002598
cosm%a_growth(i)=a
26012599
cosm%growth(i)=find(a,a_tab,d_tab,SIZE(a_tab),iorder_int,ifind_int,imeth_int)
26022600
END DO

0 commit comments

Comments
 (0)