4
1
mirror of https://github.com/pfloos/quack synced 2024-06-23 05:32:15 +02:00
quack/src/HF/mo_guess.f90

47 lines
825 B
Fortran
Raw Normal View History

2022-02-02 15:06:51 +01:00
subroutine mo_guess(nBas,guess_type,S,Hc,X,c)
2019-10-05 22:06:25 +02:00
! Guess of the molecular orbitals for HF calculation
implicit none
! Input variables
integer,intent(in) :: nBas
integer,intent(in) :: guess_type
double precision,intent(in) :: S(nBas,nBas)
double precision,intent(in) :: Hc(nBas,nBas)
double precision,intent(in) :: X(nBas,nBas)
! Local variables
integer :: nSCF
! Output variables
double precision,intent(out) :: c(nBas,nBas)
2022-08-16 15:59:15 +02:00
if(guess_type == 0) then
call read_guess(nBas,c)
elseif(guess_type == 1) then
2019-10-05 22:06:25 +02:00
2022-02-02 15:06:51 +01:00
call core_guess(nBas,Hc,X,c)
2019-10-05 22:06:25 +02:00
elseif(guess_type == 2) then
2022-02-02 15:06:51 +01:00
call huckel_guess(nBas,S,Hc,X,c)
2019-10-05 22:06:25 +02:00
elseif(guess_type == 3) then
call random_number(c)
2020-01-08 10:17:19 +01:00
else
print*,'Wrong guess option'
stop
2019-10-05 22:06:25 +02:00
endif
end subroutine