Skip to content

Commit

Permalink
z_max=3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeRZP committed Apr 18, 2024
1 parent 74d5264 commit eff815b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Settings(;kwargs...) = begin
nk = get(kwargs, :nk, 500)
nℓ = get(kwargs, :nℓ, 300)

z_max = get(kwargs, :z_max, 1100)
z_max = get(kwargs, :z_max, 3)
xs = LinRange(0, log(1+z_max), nz)
zs = @.(exp(xs) - 1)
zs_chi = 10 .^ Vector(LinRange(-3, log10(1100), nz_chi))
Expand Down
11 changes: 6 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ end
test_output = Dict{String}{Vector}()

if test_main
cosmo_EisHu = Cosmology(nz=1000, nz_t=1000, nz_pk=1000, nk=1000, tk_mode=:EisHu)
cosmo_EisHu = Cosmology(z_max=1100, nz=1000, nz_t=1000, nz_pk=1000, nk=1000, tk_mode=:EisHu)
cosmo_emul = Cosmology(Ωm=(0.12+0.022)/0.75^2, Ωb=0.022/0.75^2, h=0.75, ns=1.0, σ8=0.81,
nz=1000, nz_t=1000, nz_pk=1000, nk=1000, tk_mode=:EmuPk)
z_max=1100, nz=1000, nz_t=1000, nz_pk=1000, nk=1000, tk_mode=:EmuPk)
cosmo_emul_As = Cosmology(Ωm=0.27, Ωb=0.046, h=0.7, ns=1.0, As=2.097e-9,
nz=1000, nz_t=1000, nz_pk=1000, nk=1000, tk_mode=:EmuPk)
cosmo_EisHu_nonlin = Cosmology(nk=1000, nz=1000, nz_t=1000, nz_pk=1000, tk_mode=:EisHu, pk_mode=:Halofit)
z_max=1100, nz=1000, nz_t=1000, nz_pk=1000, nk=1000, tk_mode=:EmuPk)
cosmo_EisHu_nonlin = Cosmology(nk=1000, nz=1000, nz_t=1000, nz_pk=1000,
z_max=1100, tk_mode=:EisHu, pk_mode=:Halofit)
cosmo_emul_nonlin = Cosmology(Ωm=(0.12+0.022)/0.75^2, Ωb=0.022/0.75^2, h=0.75, ns=1.0, σ8=0.81,
nk=1000, nz=1000, nz_t=1000, nz_pk=1000, tk_mode=:EmuPk, pk_mode=:Halofit)
z_max=1100, nk=1000, nz=1000, nz_t=1000, nz_pk=1000, tk_mode=:EmuPk, pk_mode=:Halofit)

@testset "Main tests" begin
@testset "CreateCosmo" begin
Expand Down

0 comments on commit eff815b

Please sign in to comment.