Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dlr operation with sumrule needs proper warning when input is multidimensional object #23

Open
fsxbhyy opened this issue Jan 17, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@fsxbhyy
Copy link
Collaborator

fsxbhyy commented Jan 17, 2022

When doing fourier transform of objects with dimension D > 1, sumrule needs to be an array with dimension D-1.
When incorrectly using sumrule = 1.0 for an 2D object, the code pops out with:

ERROR: LoadError: MethodError: no method matching reshape(::Float64, ::Int64)
Stacktrace:
[1] tau2dlr(dlrGrid::DLRGrid, green::Matrix{ComplexF64}, τGrid::Vector{Float64}; error::Nothing, axis::Int64, sumrule::Float64, verbose::Bool)
@ Lehmann ~/Julia_manybody3/Lehmann.jl/src/operation.jl:219
[2] tau2matfreq(dlrGrid::DLRGrid, green::Matrix{ComplexF64}, nNewGrid::Vector{Int64}, τGrid::Vector{Float64}; error::Nothing, axis::Int64, sumrule::Float64, verbose::Bool)
@ Lehmann ~/Julia_manybody3/Lehmann.jl/src/operation.jl:390

@fsxbhyy fsxbhyy added the enhancement New feature or request label Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants