Skip to content

Commit

Permalink
updated dft_driver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wxj6000 committed Mar 7, 2024
1 parent 6aa6cb7 commit 33b643d
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions examples/dft_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@
from gpu4pyscf.dft import rks, uks

parser = argparse.ArgumentParser(description='Run DFT with GPU4PySCF for molecules')
parser.add_argument("--input", type=str, default='benzene/coord')
parser.add_argument("--basis", type=str, default='def2-tzvpp')
parser.add_argument("--auxbasis", type=str, default='def2-tzvpp-jkfit')
parser.add_argument("--xc", type=str, default='B3LYP')
parser.add_argument("--solvent", type=str, default='')
parser.add_argument("--input", type=str, default='benzene/coord')
parser.add_argument("--basis", type=str, default='def2-tzvpp')
parser.add_argument("--auxbasis", type=str, default='def2-tzvpp-jkfit')
parser.add_argument("--xc", type=str, default='B3LYP')
parser.add_argument("--solvent", type=str, default='')
parser.add_argument('--unrestricted', type=bool, default=False)
args = parser.parse_args()

lib.num_threads(16)
Expand All @@ -37,8 +38,10 @@
# set verbose >= 6 for debugging timer
mol.verbose = 7

mf_df = uks.UKS(mol, xc=args.xc).density_fit(auxbasis=args.auxbasis)
#mf_df = rks.RKS(mol, xc=args.xc).density_fit(auxbasis=args.auxbasis)
if args.unrestricted:
mf_df = uks.UKS(mol, xc=args.xc).density_fit(auxbasis=args.auxbasis)
else:
mf_df = rks.RKS(mol, xc=args.xc).density_fit(auxbasis=args.auxbasis)
mf_df.verbose = 7

if args.solvent:
Expand Down

0 comments on commit 33b643d

Please sign in to comment.