Skip to content

Commit

Permalink
use do_nlc()
Browse files Browse the repository at this point in the history
  • Loading branch information
wxj6000 committed Jan 26, 2025
1 parent 1593f2a commit c5c5649
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gpu4pyscf/df/hessian/rks.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def partial_hess_elec(hessobj, mo_energy=None, mo_coeff=None, mo_occ=None,
mocc = mo_coeff[:,mo_occ>0]
dm0 = numpy.dot(mocc, mocc.T) * 2

if mf.nlc != '':
if mf.do_nlc():
raise NotImplementedError

omega, alpha, hyb = mf._numint.rsh_and_hybrid_coeff(mf.xc, spin=mol.spin)
Expand Down
2 changes: 1 addition & 1 deletion gpu4pyscf/df/hessian/uks.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def partial_hess_elec(hessobj, mo_energy=None, mo_coeff=None, mo_occ=None,
moccb = mo_coeff[1][:,mo_occ[1]>0]
dm0a = numpy.dot(mocca, mocca.T)
dm0b = numpy.dot(moccb, moccb.T)
if mf.nlc != '':
if mf.do_nlc():
raise NotImplementedError

omega, alpha, hyb = mf._numint.rsh_and_hybrid_coeff(mf.xc, spin=mol.spin)
Expand Down

0 comments on commit c5c5649

Please sign in to comment.