Skip to content

Commit

Permalink
di3 debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
aoterodelaroza committed Dec 18, 2023
1 parent b3fde5c commit 523890d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2643,6 +2643,34 @@ subroutine calc_di3_wannier(res,nmo,nbnd,nlat,nattr,nspin)
end do ! is
res%fa3 = 0.5d0 * res%fa3

! do is = 1, nspin
! do iat_a = 1, nattr
! do iat_b = 1, nattr
! do rat_b = 1, nlattot
! write (*,*) "xxxx ", abs(res%fa(iat_a,iat_b,rat_b,is)-sum(res%fa3(iat_a,iat_b,rat_b,:,:,is)))
! end do
! end do
! end do
! end do
! stop 1

do is = 1, nspin
do iat_a = 1, nattr
do iat_b = 1, nattr
do rat_b = 1, nlattot
do iat_c = 1, nattr
do rat_c = 1, nlattot
write (*,'("is=",I1," A:",I2," B:",I2,"/",I2," C:",I2,"/",I2," = ",F15.8)') &
is, iat_a, iat_b, rat_b, iat_c, rat_c, res%fa3(iat_a,iat_b,rat_b,iat_c,rat_c,is)
end do
end do
end do
end do
end do
end do
write (*,*) "fin"
stop 1

end subroutine calc_di3_wannier

!> Calculate the Fa matrix from the Sij matrix, psink version
Expand Down

0 comments on commit 523890d

Please sign in to comment.