Skip to content

Commit

Permalink
Fix basis size bug in pbc.dft.numint module
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Sep 25, 2022
1 parent 70a783f commit 1a7d645
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyscf/pbc/dft/numint.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def nr_rks(ni, cell, grids, xc_code, dms, spin=0, relativity=0, hermi=1,
nelec = numpy.zeros(nset)
excsum = numpy.zeros(nset)
shls_slice = (0, cell.nbas)
ao_loc = cell.ao_loc_2c()
ao_loc = cell.ao_loc
deriv = 1
vmat = [0]*nset
v_hermi = 1 # the output matrix must be hermitian
Expand Down Expand Up @@ -457,7 +457,7 @@ def nr_uks(ni, cell, grids, xc_code, dms, spin=1, relativity=0, hermi=1,
excsum = numpy.zeros(nset)
if xctype in ('LDA', 'GGA', 'MGGA'):
shls_slice = (0, cell.nbas)
ao_loc = cell.ao_loc_2c()
ao_loc = cell.ao_loc
deriv = 1
vmata = [0]*nset
vmatb = [0]*nset
Expand Down

0 comments on commit 1a7d645

Please sign in to comment.