Skip to content

Commit

Permalink
Correct discrete spectral density
Browse files Browse the repository at this point in the history
  • Loading branch information
BrieucLD committed Jan 30, 2025
1 parent 6cda810 commit 4b98d2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/finitetemperature.jl
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ function chaincoeffs_finiteT_discrete(β, ωdiscrete, Jωdiscrete; procedure=:La
ω = ωdiscrete
= Jωdiscrete
length(ω)== length(Jω) || throw(ErrorException("J(ω) has $(length(Jω)) values while there is $(length(ω)) frequecencies"))
N=length(ω) #Number of bath modes
if β != Inf
ω_pos = ω
Jω_pos =.* (coth.((β/2).*ω_pos[:]) .+ 1) ./2
Expand All @@ -239,6 +238,8 @@ function chaincoeffs_finiteT_discrete(β, ωdiscrete, Jωdiscrete; procedure=:La
ω = vcat(ω_neg,ω_pos)
= vcat(Jω_neg,Jω_pos)
end

N=length(ω) #Number of bath modes
mp=length(ω) # the number of points in the discrete part of the measure

DM =Array{Float64}(undef,mp,2)
Expand Down

0 comments on commit 4b98d2d

Please sign in to comment.