Skip to content

Commit

Permalink
Swith off sparsity algorithm for small system (issue pyscf#1956)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Nov 18, 2023
1 parent 574fa5a commit 9d1415c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyscf/dft/numint.py
Original file line number Diff line number Diff line change
Expand Up @@ -2802,7 +2802,7 @@ def block_loop(self, mol, grids, nao=None, deriv=0, max_memory=2000,
screen_index = non0tab

# the xxx_sparse() functions require ngrids 8-byte aligned
allow_sparse = ngrids % ALIGNMENT_UNIT == 0
allow_sparse = ngrids % ALIGNMENT_UNIT == 0 and nao > SWITCH_SIZE

if buf is None:
buf = _empty_aligned(comp * blksize * nao)
Expand Down

0 comments on commit 9d1415c

Please sign in to comment.