Skip to content

Commit

Permalink
Merge pull request #4089 from aannabe/fix_pyscf_converter
Browse files Browse the repository at this point in the history
Add UHF/UKS support in Pyscf converter
  • Loading branch information
ye-luo authored Jul 1, 2022
2 parents 4e14d0b + c3b2abb commit 9ca5c94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QMCTools/PyscfToQmcpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ def savetoqmcpack(cell,mf,title="Default",kpts=[],kmesh=[],sp_twist=[],weight=1.
Python2=True


val=str(mf)
val=str(mf.dump_flags)
ComputeMode= re.split('[. ]',val)

SizeMode=len(ComputeMode)
for i in range(SizeMode):
if ComputeMode[i] in ("UHF","KUHF","UKS"):
if ComputeMode[i] in ("UHF","KUHF","UKS","SymAdaptedUHF","SymAdaptedUKS"):
Restricted=False
if ComputeMode[i]=="pbc":
PBC=True
Expand Down

0 comments on commit 9ca5c94

Please sign in to comment.