Skip to content

Commit

Permalink
Merge pull request #96 from jeanwsr/pdft
Browse files Browse the repository at this point in the history
fix unnecessary Pi deriv in tGGA energy
  • Loading branch information
MatthewRHermes authored Jan 3, 2025
2 parents bb743d1 + c730061 commit 33f8dc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyscf/mcpdft/otfnal.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def energy_ot (ot, casdm1s, casdm2, mo_coeff, ncore, max_memory=2000, hermi=1):
ni, xctype = ot._numint, ot.xctype
if xctype=='HF': return E_ot
dens_deriv = ot.dens_deriv
Pi_deriv = ot.Pi_deriv

nao = mo_coeff.shape[0]
ncas = casdm2.shape[0]
Expand All @@ -84,7 +85,7 @@ def energy_ot (ot, casdm1s, casdm2, mo_coeff, ncore, max_memory=2000, hermi=1):
rho = np.asarray ([m[0] (0, ao, mask, xctype) for m in make_rho])
t0 = logger.timer (ot, 'untransformed density', *t0)
Pi = get_ontop_pair_density (ot, rho, ao, cascm2, mo_cas,
dens_deriv, mask)
Pi_deriv, mask)
t0 = logger.timer (ot, 'on-top pair density calculation', *t0)
if rho.ndim == 2:
rho = np.expand_dims (rho, 1)
Expand Down

0 comments on commit 33f8dc4

Please sign in to comment.