3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-22 20:34:38 +01:00

Merge pull request #222 from harrisonlabollita/unstable

transport kmesh check
This commit is contained in:
Alexander Hampel 2022-10-10 16:39:42 -04:00 committed by GitHub
commit 335dd89738
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -696,6 +696,14 @@ class Wien2kConverter(ConverterTools):
nu_i][nu_j][i].conjugate() nu_i][nu_j][i].conjugate()
velocities_k[isp].append(velocity_xyz) velocities_k[isp].append(velocity_xyz)
band_window_optics.append(numpy.array(band_window_optics_isp)) band_window_optics.append(numpy.array(band_window_optics_isp))
# check the number of kpoints is correct
last_kpt = None
try:
last_kpt = next(R)
except:
pass
if last_kpt is not None:
raise ValueError("The number of kpoints in case.pmat is larger than number of kpoints of Green's function. Please rerun dmftproj")
R.close() # Reading done! R.close() # Reading done!
# Put data to HDF5 file # Put data to HDF5 file