mirror of
https://github.com/triqs/dft_tools
synced 2024-10-31 19:23:45 +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 :
|
||||
static constexpr int arity = 1;
|
||||
template<typename G>
|
||||
auto operator()(G const * g, int n)
|
||||
//const DECL_AND_RETURN(g->data()(n, arrays::ellipsis()));
|
||||
// hidden bug : should not need the ().... to investigate
|
||||
const DECL_AND_RETURN((*g)[n]());
|
||||
auto operator()(G const * g, int n) const DECL_AND_RETURN((*g)[n]);
|
||||
|
||||
template<typename G>
|
||||
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>
|
||||
typename G::singularity_t const & operator()(G const * g,freq_infty const &) const {return g->singularity();}
|
||||
|
Loading…
Reference in New Issue
Block a user