Skip to content

Commit

Permalink
avoid rebuild int3c2e
Browse files Browse the repository at this point in the history
  • Loading branch information
wxj6000 authored and sunqm committed Oct 13, 2024
1 parent ed993be commit 49f0f65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gpu4pyscf/df/grad/rhf.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ def get_jk(mf_grad, mol=None, dm0=None, hermi=0, with_j=True, with_k=True, omega

nao_cart = intopt.mol.nao
block_size = with_df.get_blksize(nao=nao_cart)
intopt.clear()
# rebuild with aosym

intopt = int3c2e.VHFOpt(mol, auxmol, 'int2e')
intopt.build(mf.direct_scf_tol, diag_block_with_triu=True, aosym=False,
group_size_aux=block_size)#, group_size=block_size)
if not intopt._mol.cart:
Expand Down
4 changes: 2 additions & 2 deletions gpu4pyscf/df/grad/uhf.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ def get_jk(mf_grad, mol=None, dm0=None, hermi=0, with_j=True, with_k=True, omega

nao_cart = intopt.mol.nao
block_size = with_df.get_blksize(nao=nao_cart)
intopt.clear()
# rebuild with aosym

intopt = int3c2e.VHFOpt(mol, auxmol, 'int2e')
intopt.build(mf.direct_scf_tol, diag_block_with_triu=True, aosym=False,
group_size_aux=block_size)#, group_size=block_size)
if not intopt._mol.cart:
Expand Down

0 comments on commit 49f0f65

Please sign in to comment.