Skip to content

Commit

Permalink
[fix] w90 conv more generous matching to find fermi
Browse files Browse the repository at this point in the history
  • Loading branch information
the-hampel committed Aug 2, 2023
1 parent 23723bc commit fbbba5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/triqs_dft_tools/converters/wannier90.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion python/triqs_dft_tools/sumk_dft.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ def put_Sigma(self, Sigma_imp, transform_to_sumk_blocks=True):
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))

Expand Down

0 comments on commit fbbba5d

Please sign in to comment.