Skip to content

Commit

Permalink
fixed a bug in block_loop
Browse files Browse the repository at this point in the history
  • Loading branch information
wxj6000 committed Feb 20, 2024
1 parent c7bd673 commit effa6ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpu4pyscf/dft/numint.py
Original file line number Diff line number Diff line change
Expand Up @@ -1352,8 +1352,8 @@ def _block_loop(ni, mol, grids, nao=None, deriv=0, max_memory=2000,
# cache ao indices
if (block_id, blksize, ngrids) not in ni.non0ao_idx:
ni.non0ao_idx[block_id, blksize, ngrids] = _sparse_index(mol, coords, opt.l_ctr_offsets)
else:
pad, idx, non0shl_idx, ctr_offsets_slice, ao_loc_slice = ni.non0ao_idx[block_id, blksize, ngrids]

pad, idx, non0shl_idx, ctr_offsets_slice, ao_loc_slice = ni.non0ao_idx[block_id, blksize, ngrids]

ao_mask = eval_ao(
ni, mol, coords, deriv,
Expand Down

0 comments on commit effa6ee

Please sign in to comment.