2003-01-20 05:58:50 +08:00
|
|
|
!
|
|
|
|
! Copyright (C) 2001 PWSCF group
|
|
|
|
! This file is distributed under the terms of the
|
|
|
|
! GNU General Public License. See the file `License'
|
|
|
|
! in the root directory of the present distribution,
|
|
|
|
! or http://www.gnu.org/copyleft/gpl.txt .
|
|
|
|
!
|
|
|
|
|
|
|
|
!-----------------------------------------------------------------------
|
2003-02-08 00:04:36 +08:00
|
|
|
subroutine h_1psi (lda, n, psi, hpsi, spsi)
|
2003-01-20 05:58:50 +08:00
|
|
|
!-----------------------------------------------------------------------
|
|
|
|
!
|
2003-02-08 00:04:36 +08:00
|
|
|
! This routine applies the Hamiltonian and the S matrix
|
2003-01-20 05:58:50 +08:00
|
|
|
! to a vector psi and puts the result in hpsi and spsi
|
2003-05-22 18:18:38 +08:00
|
|
|
! Wrapper routine - calls h_psi and s_psi
|
2004-01-23 23:08:03 +08:00
|
|
|
USE kinds, only: DP
|
2003-01-20 05:58:50 +08:00
|
|
|
implicit none
|
|
|
|
!
|
2003-02-08 00:04:36 +08:00
|
|
|
integer :: lda, n
|
2003-01-20 05:58:50 +08:00
|
|
|
complex(kind=DP) :: psi (n), hpsi (n), spsi(n)
|
|
|
|
!
|
2003-02-08 00:04:36 +08:00
|
|
|
call start_clock ('h_1psi')
|
2003-05-22 18:18:38 +08:00
|
|
|
call h_psi (lda, n, 1, psi, hpsi)
|
|
|
|
call s_psi (lda, n, 1, psi, spsi)
|
2003-02-08 00:04:36 +08:00
|
|
|
call stop_clock ('h_1psi')
|
|
|
|
return
|
2003-01-20 05:58:50 +08:00
|
|
|
end subroutine h_1psi
|
|
|
|
|