From b42a51fe17921c7b7e2bb948b36e0b07cb4289a8 Mon Sep 17 00:00:00 2001 From: Manuel Zingl Date: Tue, 14 Apr 2015 15:44:07 +0200 Subject: [PATCH] Correcting another bug in dos_*_basis om_mesh was wrongly determined to zero (due to integer division...) if no Sigma was given. --- python/sumk_dft_tools.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/python/sumk_dft_tools.py b/python/sumk_dft_tools.py index f572567a..19cad09a 100644 --- a/python/sumk_dft_tools.py +++ b/python/sumk_dft_tools.py @@ -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 ]