TRIQS / triqs

a Toolbox for Research on Interacting Quantum Systems
https://triqs.github.io
GNU General Public License v3.0
139 stars 72 forks source link

[gf] fix density function for MeshReFreq Gf #892

Closed the-hampel closed 1 year ago

the-hampel commented 1 year ago

density function always returned 0.0 as result of recent changes.

Additionally this commit strengthens the test for density(), density(beta), and total_density. Added tests in C++ and Python.

Wentzell commented 1 year ago

Thank you @the-hampel for this fix!