Skip to content

Commit e76d385

Browse files
committed
Fixed k computation in perturbations that was causing problems in accuracy test
1 parent 1baec92 commit e76d385

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

ABCMB/perturbations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ def full_evolution_scan(self):
8686
PerturbationTable
8787
Interpolatable table of perturbation evolution
8888
"""
89-
#lna = jnp.linspace(self.BG.lna_transfer_start, 0., 500) # lna_end hardcoded
90-
lna = jnp.linspace(-14., 0., 1000)
91-
#k = jnp.geomspace(1.e-4, 0.4, 300)
92-
k = jnp.array([1.e-3, 1.e-2, 1.e-1])
89+
lna = jnp.linspace(self.BG.lna_transfer_start, 0., 500) # lna_end hardcoded
90+
#lna = jnp.linspace(-14., 0., 1000)
91+
k = jnp.geomspace(1.e-4, 0.4, 300)
92+
#k = jnp.array([1.e-3, 1.e-2, 1.e-1])
9393

9494
def body_fun(_, ki):
9595
# evolution_one_k returns shape (Nlna, Ny)
@@ -332,8 +332,8 @@ def evolution_one_k_scan(self, k, lna):
332332

333333
# For small k's the superhorizon time can be set relatively late, but I impose a cutoff of z~20000 for all modes
334334
# at the very least.
335-
lna_start = jnp.minimum(lna_start, lna[0])
336-
#lna_start = jnp.minimum(lna_start, -10)
335+
#lna_start = jnp.minimum(lna_start, lna[0])
336+
lna_start = jnp.minimum(lna_start, -10.)
337337

338338
# Initial conditions for tight coupling
339339
y_ini = self.initial_conditions_one_k(k, lna_start)

0 commit comments

Comments
 (0)