Skip to content

Commit

Permalink
Merge pull request #95 from baopengbp/master
Browse files Browse the repository at this point in the history
Update noci.py,fix output of dEs and dSplit
  • Loading branch information
MatthewRHermes authored Jan 4, 2025
2 parents 7179ac0 + bbb1f67 commit bbbd592
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pyscf/msdft/noci.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,13 @@ def multi_states_scf(msks, ground_ks=None):
log.info('%-2d %18.15g AU %12.6g eV', i+1, e_d, (e_d-e_g)*au2ev)

log.info('Single and triple excitation:')
log.info(' E(S) E(T) dEt dEs')
log.info(' E(S) E(T) dEt dEs dSplit')
for i, (mf_s, mf_t) in enumerate(zip(mfs_s[::2], mfs_t)):
dEt = (mf_t.e_tot - e_g) * au2ev
e_split = (mf_s.e_tot - mf_t.e_tot) * au2ev
log.info('%-2d %18.15g AU %18.15g AU %15.9g eV %15.9g eV',
i+1, mf_s.e_tot, mf_t.e_tot, dEt, e_split)
dEs = dEt + 2 * e_split
log.info('%-2d %18.15g AU %18.15g AU %15.9g eV %15.9g eV %15.9g eV',
i+1, mf_s.e_tot, mf_t.e_tot, dEt, dEs, e_split)
return [ground_ks], mfs_s, mfs_d, mfs_t

class NOCI(lib.StreamObject):
Expand Down

0 comments on commit bbbd592

Please sign in to comment.