mirror of
https://github.com/triqs/dft_tools
synced 2024-12-25 13:53:40 +01:00
gf: generalize the constructor of gf_mesh from domain
- to add "positive_only" flags, in the case we need both negative and positive frequencies in matsubara.
This commit is contained in:
parent
c0993d9db8
commit
74469ad5b0
@ -36,7 +36,7 @@ namespace gfs {
|
||||
static double m1(double beta) { return std::acos(-1) / beta; }
|
||||
gf_mesh() = default;
|
||||
gf_mesh(B const &x) : B(x) {} // enables also construction from another Opt
|
||||
gf_mesh(typename B::domain_t const &d, int Nmax = 1025) : B(d, Nmax, true) {}
|
||||
gf_mesh(typename B::domain_t const &d, int Nmax = 1025, bool positive_only = true) : B(d, Nmax, positive_only) {}
|
||||
gf_mesh(double beta, statistic_enum S, int Nmax = 1025) : gf_mesh({beta, S}, Nmax) {}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user