Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
frssp committed Apr 2, 2019
1 parent 2a5ea95 commit 6d17fa3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ using Test
dQ = (Qf-Qi)/NQ
x = range(Qi, stop = Qf, length = NQ)
ħω = 1
e, v = solve1D_ev_amu(x->harmonic(x, ħω; param = Dict("E0" => 0, "Q0" => 0)), NQ = NQ , Qi = Qi, Qf = Qf, nev = nev)
analytic_sol = UnitRange(0, nev)
e, v = solve1D_ev_amu(x->harmonic(x, ħω,; E₀ = 0, Q₀ = 0), NQ = NQ , Qi = Qi, Qf = Qf, nev = nev)
@test isapprox(e, 0.5 .+ UnitRange(0, nev-1) ; rtol=etol)
end

0 comments on commit 6d17fa3

Please sign in to comment.