Skip to content

Commit ac6416b

Browse files
committed
fix: Correct scale factor on last half step
There is a missing `; a = a(t)` in the argument to `outer_step!` that does the closing half step. This is never an issue if there is no background expansion. Add it in. This should maybe not be an optional argument; it shouldn't be possible to accidentally call with the wrong `a(t)`.
1 parent cf1800e commit ac6416b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "UltraDark"
22
uuid = "1c8d022d-dfc0-4b41-80ab-3fc7e88cdfea"
33
authors = ["Nathan Musoke <[email protected]>"]
4-
version = "0.9.2"
4+
version = "0.9.3"
55

66
[deps]
77
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

src/UltraDark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function take_steps!(grids, t_start, Δt, n, output_config, a, constants, extern
165165
output_summary_row(grids, output_config, t, a(t), Δt, constants, external_states)
166166
end
167167

168-
outer_step!(Δt / 2, grids, constants)
168+
outer_step!(Δt / 2, grids, constants; a = a(t))
169169
for s in external_states
170170
outer_step!(Δt / 2, grids, constants, s; a = a(t))
171171
end

0 commit comments

Comments
 (0)