mirror of
https://github.com/triqs/dft_tools
synced 2024-11-10 16:13:47 +01:00
[fix] w90 conv more generous matching to find fermi
This commit is contained in:
parent
23723bc580
commit
fbbba5dc95
@ -859,7 +859,7 @@ def read_misc_input(w90_seed, n_spin_blocks, n_k):
|
||||
for line in out_data:
|
||||
if 'number of Kohn-Sham states' in line:
|
||||
n_ks = int(line.split()[-1])
|
||||
elif 'Fermi energy' in line:
|
||||
elif 'the Fermi energy is' in line:
|
||||
fermi_energy = float(line.split()[-2])
|
||||
elif 'reciprocal axes' in line:
|
||||
reading_kpt_basis = True
|
||||
|
@ -675,7 +675,7 @@ class SumkDFT(object):
|
||||
if isinstance(self.mesh, MeshReFreq):
|
||||
if self.min_band_energy is None or self.max_band_energy is None:
|
||||
self.calculate_min_max_band_energies()
|
||||
mesh = np.array([i for i in self.mesh.values()])
|
||||
mesh = np.linspace(self.mesh.w_min, self.mesh.w_max, len(self.mesh))
|
||||
if mesh[0] > (self.min_band_energy - self.chemical_potential) or mesh[-1] < (self.max_band_energy - self.chemical_potential):
|
||||
warn('The given Sigma is on a mesh which does not cover the band energy range. The Sigma MeshReFreq runs from %f to %f, while the band energy (minus the chemical potential) runs from %f to %f'%(mesh[0], mesh[-1], self.min_band_energy, self.max_band_energy))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user