Skip to content

Commit

Permalink
Update finitetemperature.jl
Browse files Browse the repository at this point in the history
fixed bug found by Masaaki Tokieda
  • Loading branch information
angelariva authored Oct 24, 2024
1 parent a6da426 commit 34adc23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/finitetemperature.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function chaincoeffs_finiteT(nummodes, β, ohmic=true; α=1, s=1, J=nothing, ωc
else
throw(ArgumentError("An interval AB with mc = $mc components should have been provided."))
end
elseif length(AB) != mc
elseif length(AB) != 2*mc
throw(ArgumentError("AB has a different number of intervals than mc = $mc."))
end

Expand Down Expand Up @@ -148,7 +148,7 @@ function chaincoeffs_fermionic(nummodes, β, chain; ϵ=nothing, J=nothing, ωc=1
else
throw(ArgumentError("An interval AB with mc = $mc components should have been provided."))
end
elseif length(AB) != mc
elseif length(AB) != 2* mc
throw(ArgumentError("AB has a different number of intervals than mc = $mc."))
end

Expand Down

0 comments on commit 34adc23

Please sign in to comment.