Skip to content

Commit

Permalink
issue #105 debug oversight
Browse files Browse the repository at this point in the history
compare eris correctly
  • Loading branch information
MatthewRHermes committed Jul 9, 2024
1 parent 271d1f2 commit cc8f642
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion my_pyscf/mcscf/las_ao2mo.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ def get_h2eff_df (las, mo_coeff):
if mem_enough_int:
eri = lib.tag_array (eri, bmPu=np.concatenate (bmuP, axis=-1).transpose (0,2,1))
if las.verbose > lib.logger.DEBUG:
eri_comp = las.with_df.ao2mo (mo, compact=True)
eri_comp = las.with_df.ao2mo (mo_coeff, compact=True)
eri_comp = eri_comp[:,ncore:nocc,ncore:nocc,ncore:nocc]
eri_comp = lib.pack_tril (eri_comp.reshape (nmo*ncas, ncas, ncas)).reshape (nmo, -1)
lib.logger.debug(las,"CDERI two-step error: {}".format(linalg.norm(eri-eri_comp)))
return eri

Expand Down

0 comments on commit cc8f642

Please sign in to comment.