Skip to content

Commit

Permalink
Fixed memory_kernel and memory_kernel_ft signatures for LorentizanSD
Browse files Browse the repository at this point in the history
In previous commit optional argument `ωcutoff` was added to the wrong
method.
  • Loading branch information
cerisola committed Oct 29, 2023
1 parent 2746cf1 commit cb8284e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LorentzianSD.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ sdoverω(J::LorentzianSD, ω) = (J.α*J.Γ/π)/((ω^2 - J.ω0^2)^2 + (J.Γ*ω)^2

reorganisation_energy(J::LorentzianSD) = J.α/J.ω0^2/2

function memory_kernel(J::LorentzianSD, τ)
function memory_kernel(J::LorentzianSD, τ; ωcutoff=Inf)
if τ <= zero(τ)
return zero(τ)
end
Expand All @@ -51,7 +51,7 @@ end

real_memory_kernel_ft(J::LorentzianSD, ω) = (J.α*(J.ω0^2 - ω^2))/((ω^2 - J.ω0^2)^2 + (J.Γ*ω)^2)

memory_kernel_ft(J::LorentzianSD, ω; ωcutoff=Inf) = J.α/(J.ω0^2 - ω^2 - 1im*J.Γ*ω)
memory_kernel_ft(J::LorentzianSD, ω) = J.α/(J.ω0^2 - ω^2 - 1im*J.Γ*ω)

function frequency_cutoff(J::LorentzianSD; tol=eps())
ω1sq = 2*J.ω0^2 - J.Γ^2
Expand Down

0 comments on commit cb8284e

Please sign in to comment.