mirror of
https://github.com/triqs/dft_tools
synced 2024-12-25 13:53:40 +01:00
gf/imfreq : remove the little () workaround
- was a bug workaround. Should be ok, but reason of previous fix unclear. Suspicious... - necessary to remove this : - it is useless normally. - it prevent the evaluator to work for scalar valued gf
This commit is contained in:
parent
9edda8724d
commit
d6cb6d2945
@ -60,14 +60,11 @@ namespace triqs { namespace gfs {
|
|||||||
public :
|
public :
|
||||||
static constexpr int arity = 1;
|
static constexpr int arity = 1;
|
||||||
template<typename G>
|
template<typename G>
|
||||||
auto operator()(G const * g, int n)
|
auto operator()(G const * g, int n) const DECL_AND_RETURN((*g)[n]);
|
||||||
//const DECL_AND_RETURN(g->data()(n, arrays::ellipsis()));
|
|
||||||
// hidden bug : should not need the ().... to investigate
|
|
||||||
const DECL_AND_RETURN((*g)[n]());
|
|
||||||
|
|
||||||
template<typename G>
|
template<typename G>
|
||||||
auto operator() (G const * g, linear_mesh<matsubara_domain<true>>::mesh_point_t const & p)
|
auto operator() (G const * g, linear_mesh<matsubara_domain<true>>::mesh_point_t const & p)
|
||||||
const DECL_AND_RETURN((*g)[p.index()]());
|
const DECL_AND_RETURN((*g)[p.index()]);
|
||||||
|
|
||||||
template<typename G>
|
template<typename G>
|
||||||
typename G::singularity_t const & operator()(G const * g,freq_infty const &) const {return g->singularity();}
|
typename G::singularity_t const & operator()(G const * g,freq_infty const &) const {return g->singularity();}
|
||||||
|
Loading…
Reference in New Issue
Block a user