Skip to content

Commit

Permalink
Fix bug in calculate_dsp
Browse files Browse the repository at this point in the history
  • Loading branch information
kjelljorner committed Jul 19, 2023
1 parent ab5929d commit 5d972e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions coulson/ppp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1269,15 +1269,15 @@ def calculate_dsp(
if ci is True:
gap_s = (
ppp.fock_matrix_mo[j, j]
+ ppp.fock_matrix[lumo_idx, lumo_idx]
- ppp.fock_matrix[homo_idx, homo_idx]
+ ppp.fock_matrix_mo[lumo_idx, lumo_idx]
- ppp.fock_matrix_mo[homo_idx, homo_idx]
- ppp.fock_matrix_mo[i, i]
- energy_s_1
)
gap_t = (
ppp.fock_matrix_mo[j, j]
+ ppp.fock_matrix[lumo_idx, lumo_idx]
- ppp.fock_matrix[homo_idx, homo_idx]
+ ppp.fock_matrix_mo[lumo_idx, lumo_idx]
- ppp.fock_matrix_mo[homo_idx, homo_idx]
- ppp.fock_matrix_mo[i, i]
- energy_t_1
)
Expand Down

0 comments on commit 5d972e1

Please sign in to comment.