mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 12:23:41 +01: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:
parent
8d0bc912af
commit
b42a51fe17
@ -52,8 +52,7 @@ class SumkDFTTools(SumkDFT):
|
|||||||
mesh = (om_min,om_max,n_om)
|
mesh = (om_min,om_max,n_om)
|
||||||
else:
|
else:
|
||||||
om_min,om_max,n_om = mesh
|
om_min,om_max,n_om = mesh
|
||||||
delta_om = (om_max-om_min)/(n_om-1)
|
om_mesh = numpy.linspace(om_min, om_max, n_om)
|
||||||
om_mesh = [om_min + delta_om * i for i in range(n_om)]
|
|
||||||
|
|
||||||
G_loc = []
|
G_loc = []
|
||||||
for icrsh in range(self.n_corr_shells):
|
for icrsh in range(self.n_corr_shells):
|
||||||
@ -148,8 +147,7 @@ class SumkDFTTools(SumkDFT):
|
|||||||
mesh = (om_min,om_max,n_om)
|
mesh = (om_min,om_max,n_om)
|
||||||
else:
|
else:
|
||||||
om_min,om_max,n_om = mesh
|
om_min,om_max,n_om = mesh
|
||||||
delta_om = (om_max-om_min)/(n_om-1)
|
om_mesh = numpy.linspace(om_min, om_max, n_om)
|
||||||
om_mesh = [om_min + delta_om * i for i in range(n_om)]
|
|
||||||
|
|
||||||
G_loc = []
|
G_loc = []
|
||||||
spn = self.spin_block_names[self.SO]
|
spn = self.spin_block_names[self.SO]
|
||||||
|
Loading…
Reference in New Issue
Block a user