mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-11-19 03:42:21 +01:00
Added mo_symmetry in qp_convert
This commit is contained in:
parent
ad1fd55fe9
commit
9c49be2f59
@ -309,10 +309,19 @@ def write_ezfio(res, filename):
|
||||
|
||||
MoMatrix = []
|
||||
sym0 = [i.sym for i in res.mo_sets[MO_type]]
|
||||
sym = [i.sym for i in res.mo_sets[MO_type]]
|
||||
sym = [i.sym for i in res.mo_sets[MO_type]]
|
||||
for i in range(len(sym)):
|
||||
sym[MOmap[i]] = sym0[i]
|
||||
|
||||
irrep = {}
|
||||
for i in sym:
|
||||
irrep[i] = 0
|
||||
|
||||
for i, j in enumerate(irrep.keys()):
|
||||
irrep[j] = i+1
|
||||
|
||||
sym = [ irrep[k] for k in sym ]
|
||||
|
||||
MoMatrix = []
|
||||
for i in range(len(MOs)):
|
||||
m = MOs[i]
|
||||
@ -329,6 +338,7 @@ def write_ezfio(res, filename):
|
||||
ezfio.set_mo_basis_mo_num(mo_num)
|
||||
ezfio.set_mo_basis_mo_coef(MoMatrix)
|
||||
ezfio.set_mo_basis_mo_occ(OccNum)
|
||||
ezfio.set_mo_basis_mo_symmetry(sym)
|
||||
|
||||
print("OK")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user