Skip to content

Commit

Permalink
fix ambiguities
Browse files Browse the repository at this point in the history
  • Loading branch information
lxvm committed Dec 6, 2023
1 parent 8c60d70 commit 1c4fa2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/AutoBZ.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ using Reexport
@reexport using AutoBZCore

import FourierSeriesEvaluators: period, frequency, allocate, contract!, evaluate!, nextderivative, show_dims, show_details
import AutoBZCore: SymRep, symmetrize_, MixedParameters, AutoBZAlgorithm, AbstractBZ, interior_point
import AutoBZCore: SymRep, symmetrize_, MixedParameters, IntegralAlgorithm, AutoBZAlgorithm, AbstractBZ, interior_point

using FourierSeriesEvaluators: FourierWorkspace, freq2rad
using EquiBaryInterp: LocalEquiBaryInterp
Expand Down
12 changes: 6 additions & 6 deletions src/apps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ function (kc::KCFrequencyIntegral)(hv_k, dom, Σ, n, β, Ω, μ)
return kinetic_coefficient_integrand(hv_k, solver, Σ, n, β, Ω, μ)
end

function KineticCoefficientIntegrand(lb_, ub_, alg, hv::AbstractVelocityInterp, args...; kwargs...)
function KineticCoefficientIntegrand(lb_, ub_, alg::IntegralAlgorithm, hv::AbstractVelocityInterp, args...; kwargs...)
solver_kws, kws = nested_solver_kwargs(NamedTuple(kwargs))
# put the frequency integral inside otherwise
frequency_integrand = ParameterIntegrand(transport_fermi_integrand_inside; hv_k=hv(period(hv)))
Expand All @@ -456,7 +456,7 @@ function KineticCoefficientIntegrand(lb_, ub_, alg, hv::AbstractVelocityInterp,
return FourierIntegrand(KCFrequencyIntegral(frequency_solver), hv, dom, args...; kws...)
end

function KineticCoefficientIntegrand(lb_, ub_, alg, w::FourierWorkspace{<:AbstractVelocityInterp}, args...; kwargs...)
function KineticCoefficientIntegrand(lb_, ub_, alg::IntegralAlgorithm, w::FourierWorkspace{<:AbstractVelocityInterp}, args...; kwargs...)
# put the frequency integral inside otherwise
solver_kws, kws = nested_solver_kwargs(NamedTuple(kwargs))
frequency_integrand = ParameterIntegrand(transport_fermi_integrand_inside; hv_k=w(period(w.series)))
Expand Down Expand Up @@ -620,15 +620,15 @@ function (n::DensityFrequencyIntegral)(h_k, dom, Σ, β, μ)
return solver(; h_k, Σ, β, μ)
end

function ElectronDensityIntegrand(lb, ub, alg, h::AbstractHamiltonianInterp; kwargs...)
function ElectronDensityIntegrand(lb, ub, alg::IntegralAlgorithm, h::AbstractHamiltonianInterp; kwargs...)
solver_kws, kws = nested_solver_kwargs(NamedTuple(kwargs))
frequency_integrand = ParameterIntegrand(dos_fermi_integrand_inside; h_k=h(period(h)))
frequency_solver = IntegralSolver(frequency_integrand, lb, ub, alg; solver_kws...)
dom = AutoBZCore.PuncturedInterval((lb, ub))
return FourierIntegrand(DensityFrequencyIntegral(frequency_solver), h, dom; kws...)
end

function ElectronDensityIntegrand(lb, ub, alg, w::FourierWorkspace{<:AbstractHamiltonianInterp}; kwargs...)
function ElectronDensityIntegrand(lb, ub, alg::IntegralAlgorithm, w::FourierWorkspace{<:AbstractHamiltonianInterp}; kwargs...)
solver_kws, kws = nested_solver_kwargs(NamedTuple(kwargs))
frequency_integrand = ParameterIntegrand(dos_fermi_integrand_inside; h_k=w(period(w.series)))
frequency_solver = IntegralSolver(frequency_integrand, lb, ub, alg; solver_kws...)
Expand Down Expand Up @@ -801,15 +801,15 @@ function aux_transport_fermi_integrand_inside(ω, auxfun; Σ, n, β, Ω, μ, hv_
return transport_fermi_integrand_(ω, Γ, n, β, Ω)
end

function AuxKineticCoefficientIntegrand(lb_, ub_, alg, hv::AbstractVelocityInterp, auxfun=default_transport_auxfun; kwargs...)
function AuxKineticCoefficientIntegrand(lb_, ub_, alg::IntegralAlgorithm, hv::AbstractVelocityInterp, auxfun=default_transport_auxfun; kwargs...)
solver_kws, kws = nested_solver_kwargs(NamedTuple(kwargs))
# put the frequency integral inside otherwise
frequency_integrand = ParameterIntegrand(aux_transport_fermi_integrand_inside, auxfun; hv_k=hv(period(hv)))
frequency_solver = IntegralSolver(frequency_integrand, lb_, ub_, alg; solver_kws...)
dom = AutoBZCore.PuncturedInterval((lb_, ub_))
return FourierIntegrand(KCFrequencyIntegral(frequency_solver), hv, dom; kws...)
end
function AuxKineticCoefficientIntegrand(lb_, ub_, alg, w::FourierWorkspace{<:AbstractVelocityInterp}, auxfun=default_transport_auxfun; kwargs...)
function AuxKineticCoefficientIntegrand(lb_, ub_, alg::IntegralAlgorithm, w::FourierWorkspace{<:AbstractVelocityInterp}, auxfun=default_transport_auxfun; kwargs...)
solver_kws, kws = nested_solver_kwargs(NamedTuple(kwargs))
# put the frequency integral inside otherwise
frequency_integrand = ParameterIntegrand(aux_transport_fermi_integrand_inside, auxfun; hv_k=w(period(w.series)))
Expand Down

0 comments on commit 1c4fa2b

Please sign in to comment.