Skip to content

Commit

Permalink
add workspace for TransportFunctionIntegrand
Browse files Browse the repository at this point in the history
  • Loading branch information
lxvm committed Jan 2, 2024
1 parent dadfe86 commit ab53a7e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/apps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,13 @@ function TransportFunctionIntegrand(hv::AbstractVelocityInterp; kwargs...)
# TODO change to the Hamiltonian gauge automatically
return FourierIntegrand(transport_function_integrand, hv; kwargs...)
end

function TransportFunctionIntegrand(w::FourierWorkspace{<:AbstractVelocityInterp}; kwargs...)
@assert gauge(w.series) isa Hamiltonian
# TODO change to the Hamiltonian gauge automatically
p = ParameterIntegrand(transport_function_integrand; kwargs...)
nest = make_fourier_nest(p, ParameterIntegrand(transport_function_integrand), w)
return nest === nothing ? FourierIntegrand(p, w) : FourierIntegrand(p, w, nest)
end

const TransportFunctionIntegrandType = FourierIntegrand{typeof(transport_function_integrand)}

Expand Down

0 comments on commit ab53a7e

Please sign in to comment.