9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-11-13 08:53:38 +01:00

minusk and qktok2 parse

This commit is contained in:
amandadumi 2022-05-18 14:50:03 -04:00 committed by Kevin Gasperich
parent e63c95c9ed
commit 9d9cb32fd6

View File

@ -232,11 +232,13 @@ def convert_kpts_cd(filename,qph5path,qmcpack=True):
#TODO #TODO
with h5py.File(qph5path,'r') as qph5: with h5py.File(qph5path,'r') as qph5:
kconserv = qph5['nuclei/kconserv'][()].tolist() kconserv = qph5['nuclei/kconserv'][()].tolist()
minusk = qph5['Hamiltonian']['MinusK'][:]+1
QKTok2 = qph5['Hamiltonian']['QPTok2'][:]+1
ezfio.set_nuclei_kconserv(kconserv) ezfio.set_nuclei_kconserv(kconserv)
ezfio.set_nuclei_io_kconserv('Read') ezfio.set_nuclei_io_kconserv('Read')
# qktok2 ezfio.set_nuclei_minusk(minusk)
# minuxk ezfio.set_nuclei_qktok2(QKTok2)
# kpt_sparse_map # kpt_sparse_map
# unique_kpt_num # unique_kpt_num
# io_kpt_symm # io_kpt_symm
@ -778,6 +780,7 @@ def convert_cplx(filename,qph5path):
ezfio.set_nuclei_kconserv(kconserv) ezfio.set_nuclei_kconserv(kconserv)
ezfio.set_nuclei_io_kconserv('Read') ezfio.set_nuclei_io_kconserv('Read')
########################################## ##########################################
# # # #
# Integrals Bi # # Integrals Bi #