From 34adc23f226033269c95ad58159e98f95633bec1 Mon Sep 17 00:00:00 2001 From: Angela Riva <62027430+angelariva@users.noreply.github.com> Date: Thu, 24 Oct 2024 04:23:58 +0200 Subject: [PATCH] Update finitetemperature.jl fixed bug found by Masaaki Tokieda --- src/finitetemperature.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/finitetemperature.jl b/src/finitetemperature.jl index b0bb3fa..32c0826 100644 --- a/src/finitetemperature.jl +++ b/src/finitetemperature.jl @@ -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 @@ -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