3
0
mirror of https://github.com/triqs/dft_tools synced 2025-01-12 05:58:18 +01:00

gf: correct evaluator for gf imfreq (remove mesh_pt)

mesh_pt should NOT be done directly by (),
it should be casted to matsubara_freq.
Removed an old line of code which we forgot to clean
when introducing matsubara_freq
This commit is contained in:
Olivier Parcollet 2014-02-28 15:57:34 +01:00
parent a25f742b33
commit a1a29d6c85

View File

@ -70,8 +70,6 @@ namespace gfs {
template <typename Target, typename Opt> struct evaluator<imfreq, Target, Opt> {
static constexpr int arity = 1;
template <typename G> auto operator()(G const *g, int n) const DECL_AND_RETURN((*g)[n]);
template <typename G>
auto operator()(G const *g, matsubara_freq_mesh::mesh_point_t const &p) const DECL_AND_RETURN((*g)[p.index()]);
// dispatch for 2x2 cases : matrix/scalar and tail/no_tail ( true means no_tail)
template <typename G>