3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-21 20:03:41 +01:00

make total_density in calc_mu a real number

This commit is contained in:
aichhorn 2019-06-13 16:06:00 +02:00
parent ba47c6a206
commit 10e0143413

View File

@ -1762,7 +1762,7 @@ class SumkDFT(object):
"""
F = lambda mu: self.total_density(
mu=mu, iw_or_w=iw_or_w, broadening=broadening)
mu=mu, iw_or_w=iw_or_w, broadening=broadening).real
density = self.density_required - self.charge_below
self.chemical_potential = dichotomy.dichotomy(function=F,