Skip to content

Commit

Permalink
minor enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayou-Zhang committed Dec 3, 2024
1 parent 3d12660 commit db925d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyscf/dft2/libxc.py
Original file line number Diff line number Diff line change
Expand Up @@ -874,8 +874,8 @@ def _libxc_to_xcfun_indices(xctype, spin=0, deriv=1):

def _eval_xc(xc_code, rho, spin=0, deriv=1, omega=None):
xc = _get_xc(xc_code, spin)
assert deriv <= max_deriv_order(xc_code)
xctype = xc_type(xc_code)
assert deriv <= xc.max_deriv_order
xctype = xc.xc_type
assert xctype in ('HF', 'LDA', 'GGA', 'MGGA')

rho = numpy.asarray(rho, order='C', dtype=numpy.double)
Expand Down

0 comments on commit db925d1

Please sign in to comment.