mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-12-23 04:43:45 +01:00
Set unique kpt num based on number of Ls availible in hdf5 file
This commit is contained in:
parent
9d9cb32fd6
commit
99ce2d7418
@ -234,11 +234,15 @@ def convert_kpts_cd(filename,qph5path,qmcpack=True):
|
||||
kconserv = qph5['nuclei/kconserv'][()].tolist()
|
||||
minusk = qph5['Hamiltonian']['MinusK'][:]+1
|
||||
QKTok2 = qph5['Hamiltonian']['QPTok2'][:]+1
|
||||
unique_kpt_num = 1
|
||||
while f'L{i}' in qph5['Hamiltonian']['KPFactorized'].keys():
|
||||
unique_kpt_num += 1
|
||||
|
||||
ezfio.set_nuclei_kconserv(kconserv)
|
||||
ezfio.set_nuclei_io_kconserv('Read')
|
||||
ezfio.set_nuclei_minusk(minusk)
|
||||
ezfio.set_nuclei_qktok2(QKTok2)
|
||||
ezfio.set_nuclei_unique_kpt_num(unique_kpt_num)
|
||||
# kpt_sparse_map
|
||||
# unique_kpt_num
|
||||
# io_kpt_symm
|
||||
|
Loading…
Reference in New Issue
Block a user