Skip to content

Commit

Permalink
Missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Aug 10, 2024
1 parent f622a7d commit 9d22725
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion pyscf/pbc/gto/ecp.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ def estimate_rcut(cell, precision=None):
aij = ai + aj
lij = li + lj
l3 = lij + lk
theta = 1./(1./aij + 1./ak)
theta1 = 1./(1./aj + 1./ak)
norm_ang = ((2*li+1)*(2*lj+1))**.5/(4*np.pi)
c1 = ci * cj * abs(ck) * norm_ang
Expand Down
1 change: 1 addition & 0 deletions pyscf/pbc/scf/hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ def get_hcore(self, cell=None, kpt=None):
else:
nuc = self.with_df.get_nuc(kpt)
if len(cell._ecpbas) > 0:
from pyscf.pbc.gto import ecp
nuc += ecp.ecp_int(cell, kpt)
return nuc + cell.pbc_intor('int1e_kin', 1, 1, kpt)

Expand Down

0 comments on commit 9d22725

Please sign in to comment.