Skip to content

Commit

Permalink
Proper interface for eigsort4
Browse files Browse the repository at this point in the history
  • Loading branch information
foxtran committed Nov 27, 2024
1 parent 33ba143 commit b98efe9
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/gfnff/frag_hess.f90
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,12 @@ function shortest_distance(nspin, start, goal, numnb, neighbours, input_distance
real(wp) :: alt_dist
real(wp) :: distance(nspin)
end function shortest_distance
subroutine eigsort4(lab,ew,u)
subroutine eigsort4(lab,u,ew)
use xtb_mctc_accuracy, only : sp
implicit none
integer :: ii,k, j, i
real(sp) :: pp, hilf
integer :: lab
real(sp) :: ew(lab)
real(sp) :: u(lab,lab)
integer, intent(in) :: lab
real(sp), intent(inout) :: u(lab,lab)
real(sp), intent(inout) :: ew(lab)
end subroutine eigsort4
end interface

Expand Down Expand Up @@ -486,9 +484,9 @@ subroutine eigsort4(lab,u,ew)
integer :: ii,k, j, i
real(sp) :: pp, hilf

integer, intent(in) :: lab
real(sp), intent(inout) :: ew(lab)
integer, intent(in) :: lab
real(sp), intent(inout) :: u(lab,lab)
real(sp), intent(inout) :: ew(lab)

do ii = 2, lab
i = ii - 1
Expand Down

0 comments on commit b98efe9

Please sign in to comment.