3
0
mirror of https://github.com/triqs/dft_tools synced 2024-06-20 12:12:16 +02:00

Correcting another bug in dos_*_basis

om_mesh was wrongly determined to zero (due to integer division...)
if no Sigma was given.
This commit is contained in:
Manuel Zingl 2015-04-14 15:44:07 +02:00
parent 8d0bc912af
commit b42a51fe17

View File

@ -52,8 +52,7 @@ class SumkDFTTools(SumkDFT):
mesh = (om_min,om_max,n_om)
else:
om_min,om_max,n_om = mesh
delta_om = (om_max-om_min)/(n_om-1)
om_mesh = [om_min + delta_om * i for i in range(n_om)]
om_mesh = numpy.linspace(om_min, om_max, n_om)
G_loc = []
for icrsh in range(self.n_corr_shells):
@ -148,8 +147,7 @@ class SumkDFTTools(SumkDFT):
mesh = (om_min,om_max,n_om)
else:
om_min,om_max,n_om = mesh
delta_om = (om_max-om_min)/(n_om-1)
om_mesh = [om_min + delta_om * i for i in range(n_om)]
om_mesh = numpy.linspace(om_min, om_max, n_om)
G_loc = []
spn = self.spin_block_names[self.SO]