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
1 changed files with 1 additions and 1 deletions

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,