Skip to content

Commit

Permalink
1.3.1 Minor Bugfix:
Browse files Browse the repository at this point in the history
In the Hamiltonian creation routine, the nonlocal (SF and PH) terms were
added to the matrix with swapped indices, as a consequence of a legacy
bugfix that has been superseded. The indices were only swapped in the
NORMAL case. Fixed by swapping the indices back.
  • Loading branch information
lcrippa committed Jan 19, 2024
1 parent 4240bf1 commit 341561c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ED_NORMAL/stored/H_non_local.f90
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
!
select case(MpiStatus)
case (.true.)
call sp_insert_element(MpiComm,spH0nd,htmp,j,i)
call sp_insert_element(MpiComm,spH0nd,htmp,i,j)
case (.false.)
call sp_insert_element(spH0nd,htmp,j,i)
call sp_insert_element(spH0nd,htmp,i,j)
end select
!
endif
Expand Down Expand Up @@ -72,9 +72,9 @@
!
select case(MpiStatus)
case (.true.)
call sp_insert_element(MpiComm,spH0nd,htmp,j,i)
call sp_insert_element(MpiComm,spH0nd,htmp,i,j)
case (.false.)
call sp_insert_element(spH0nd,htmp,j,i)
call sp_insert_element(spH0nd,htmp,i,j)
end select
!
endif
Expand Down

0 comments on commit 341561c

Please sign in to comment.