mirror of
https://github.com/triqs/dft_tools
synced 2024-08-30 07:43:40 +02:00
make total_density in calc_mu a real number
This commit is contained in:
parent
ba47c6a206
commit
10e0143413
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user