Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosanjose committed Dec 4, 2024
1 parent 7f11787 commit c4bf4b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_greenfunction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ end
function testjosephson(g0)
J1 = josephson(g0[1], 1; phases = subdiv(0, pi, 10))
J2 = josephson(g0[2], 1; phases = subdiv(0, pi, 10))
J3 = josephson(g0[1], Paths.sawtooth(-5, 0); phases = subdiv(0, pi, 10))
J3 = josephson(g0[1], (-5, 0); phases = subdiv(0, pi, 10))
J4 = josephson(g0[1], Paths.sawtooth(range(-5, 0, 3)); phases = subdiv(0, pi, 10))
p5(µ, T) = ifelse(iszero(T),(-5,-2+3im,0),(-5,-2+3im,0,2+3im,5)) .+ sqrt(eps(Float64))*im
J5 = josephson(g0[1], Paths.polygon(p5); phases = subdiv(0, pi, 10))
Expand Down Expand Up @@ -461,7 +461,7 @@ end
gLU = h |> greenfunction(GS.SparseLU());
gSpectrum = h |> greenfunction(GS.Spectrum());
gKPM = h |> attach(nothing; reg...) |> greenfunction(GS.KPM(order = 100000, bandrange = (-3,3)));
ρ1, ρ2, ρ3 = densitymatrix(gLU[reg], Paths.sawtooth(-3,3)), densitymatrix(gSpectrum[reg]), densitymatrix(gKPM[1])
ρ1, ρ2, ρ3 = densitymatrix(gLU[reg], (-3,3)), densitymatrix(gSpectrum[reg]), densitymatrix(gKPM[1])
@test ρ1() ρ2() atol = 0.00001
@test ρ2() ρ3() atol = 0.00001
gLU´ = h |> attach(nothing; reg...) |> greenfunction(GS.SparseLU());
Expand Down

0 comments on commit c4bf4b1

Please sign in to comment.