Closed hmenke closed 1 year ago
Interestingly, the functionally equivalent C++ code compiles just fine.
#include <triqs/gfs.hpp>
#include <triqs/mesh.hpp>
int main() {
using namespace triqs;
using namespace triqs::gfs;
using triqs::mesh::Fermion;
auto tau_mesh = mesh::imtime{1.0, Fermion, 61};
auto iw_mesh = mesh::imfreq{1.0, Fermion, 10};
auto gf_struct = gf_struct_t{ {"up", 1}, {"dn", 1} };
auto G0_iw = block_gf(iw_mesh, gf_struct);
auto M_tau = block_gf<imtime,matrix_real_valued>(tau_mesh, gf_struct);
auto M_iw = make_gf_from_fourier(M_tau, G0_iw[0].mesh(), make_zero_tail(G0_iw));
}
Thank you @hmenke for pointing this out. This is now fixed in 6d8bde7aa
Prerequisites
Description
There are missing overloads for
make_gf_from_fourier
in case the Green's function is purely real. These seem to be only missing in the Python interface.Steps to Reproduce
Expected behavior: No crash.
Actual behavior:
Versions
Please provide the version of the TRIQS library that you used.
2cf77b059397b9ba299d229e41e61da5a9d839fd
Formatting
Please use markdown in your issue message. A useful summary of commands can be found here.
Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.