mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 04:13:47 +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,9 +52,8 @@ 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):
|
||||
spn = self.spin_block_names[self.corr_shells[icrsh]['SO']]
|
||||
@ -148,9 +147,8 @@ 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]
|
||||
gf_struct_parproj = [ [ (sp, range(self.shells[ish]['dim'])) for sp in spn ]
|
||||
|
Loading…
Reference in New Issue
Block a user