Skip to content

Commit

Permalink
fixed df class names (pyscf#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxj6000 authored May 4, 2024
1 parent fdbb4c9 commit 05d4521
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/00-h2o.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
atom=atom, # water molecule
basis='def2-tzvpp', # basis set
output='./pyscf.log', # save log file
verbose=1 # control
verbose=1 # control the level of print info
)

mf_GPU = rks.RKS( # restricted Kohn-Sham DFT
Expand Down
2 changes: 1 addition & 1 deletion gpu4pyscf/df/df_jk.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class _DFHF:
'''
to_gpu = utils.to_gpu
device = utils.device

__name_mixin__ = 'DF'
_keys = {'rhoj', 'rhok', 'disp', 'screen_tol'}

def __init__(self, mf, dfobj, only_dfj):
Expand Down
2 changes: 0 additions & 2 deletions gpu4pyscf/grad/dispersion.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ def get_dispersion(mf_grad, disp_version=None):
from gpu4pyscf.lib import dftd4
dftd4_model = dftd4.DFTD4Dispersion(mol, xc=method)
res = dftd4_model.get_dispersion(grad=True)
print(method, disp_version)
print(res.get("gradient"))
return res.get("gradient")
else:
raise RuntimeError(f'dispersion correction: {disp_version} is not supported.')
Expand Down

0 comments on commit 05d4521

Please sign in to comment.