Closed YannIntVeld closed 10 months ago
@YannIntVeld Could you reduce your example to not use functions from tprf? Also, you are currently not defining mu and e_k. A self-contained example would be helpful
@Wentzell That indeed makes more sense. I just updated the example.
Thank you @YannIntVeld for updating the example. This was very helpful.
This helped find a bug in cppdlr
for non-contiguous input data.
I have created a PR with a fix in https://github.com/flatironinstitute/cppdlr/pull/4
Fixed by https://github.com/flatironinstitute/cppdlr/pull/4
I also added a test in 814063980
Description
Calling make_gf_dlr on a slice of a mesh-product Green's function gives incorrect results.
Steps to Reproduce
g0_Dwk
Slice at a certain k-point and interpolate using the DLR
As a comparison, create a new Green's function with the same data as the slice.
g0_slice_w
andg0_w
This results on the following plot![bugreportplot](https://github.com/TRIQS/triqs/assets/77014033/c5cf43d5-b647-4550-b6bc-d0b0e372f558)
Expected behavior:
g0_w
andg0_slice_w
should be equalActual behavior: They are not equal
Additional Information
@HugoStrand mentioned that this probably has to do with the fact that cppdlr requires data to be contiguous.