triqs.sumk.sumk_discrete_from_lattice.SumkDiscreteFromLattice.Recompute_Grid
- SumkDiscreteFromLattice.Recompute_Grid(n_points, method='Riemann', Q=None)[source]
(Re)compute the k-grid on the patch (or full BZ) given at construction.
Reallocates the grid arrays via
SumkDiscrete.resize_arrays()and dispatches to the patch-based or full-BZ helper depending on whetherpatchis set.- Parameters:
- n_pointsint
Number of grid points per spatial direction.
- method{“Riemann”, “Gauss”}, optional
Integration scheme. Default
"Riemann". The"Gauss"branch is not currently functional.- Qarray-like, optional
Momentum shift: when given, \(t(k + Q)\) is stored instead of \(t(k)\). Useful for evaluating quantities such as the bare susceptibility \(\chi_0(Q)\). Default
None.