Skip to content

Commit

Permalink
[Bugfix] The reciprocal lattice vector was incorrect.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuaki1987 committed Mar 31, 2019
1 parent b0b9569 commit b533d19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tool/dynamicalr2k.F90
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ SUBROUTINE read_geometry()
!
! Compute Reciprocal Lattice Vector
!
recipr(1:3,1:3) = direct(1:3,1:3)
recipr(1:3,1:3) = transpose(direct(1:3,1:3))
CALL dgetrf(3, 3, recipr, 3, Ipiv, ii)
CALL dgetri(3, recipr, 3, ipiv, work, 10, ii)
WRITE(*,*) " Reciplocal lattice vector :"
Expand Down
2 changes: 1 addition & 1 deletion tool/greenr2k.F90
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ SUBROUTINE read_geometry()
!
! Compute Reciprocal Lattice Vector
!
recipr(1:3,1:3) = direct(1:3,1:3)
recipr(1:3,1:3) = transpose(direct(1:3,1:3))
CALL dgetrf(3, 3, recipr, 3, Ipiv, ii)
CALL dgetri(3, recipr, 3, ipiv, work, 10, ii)
WRITE(*,*) " Reciplocal lattice vector :"
Expand Down

0 comments on commit b533d19

Please sign in to comment.