2022-01-07 09:13:38 +01:00
|
|
|
subroutine lda_correlation_derivative_discontinuity(DFA,nEns,wEns,nGrid,weight,rhow,Ec)
|
2019-03-13 11:07:31 +01:00
|
|
|
|
|
|
|
! Compute the correlation LDA part of the derivative discontinuity
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
include 'parameters.h'
|
|
|
|
|
|
|
|
! Input variables
|
|
|
|
|
2021-10-25 12:20:25 +02:00
|
|
|
integer,intent(in) :: DFA
|
2019-03-13 11:07:31 +01:00
|
|
|
integer,intent(in) :: nEns
|
|
|
|
double precision,intent(in) :: wEns(nEns)
|
|
|
|
integer,intent(in) :: nGrid
|
|
|
|
double precision,intent(in) :: weight(nGrid)
|
|
|
|
double precision,intent(in) :: rhow(nGrid,nspin)
|
|
|
|
|
|
|
|
! Local variables
|
|
|
|
|
|
|
|
double precision :: aC
|
|
|
|
|
|
|
|
! Output variables
|
|
|
|
|
|
|
|
double precision,intent(out) :: Ec(nsp,nEns)
|
|
|
|
|
|
|
|
! Select correlation functional
|
|
|
|
|
|
|
|
select case (DFA)
|
|
|
|
|
2021-10-25 12:20:25 +02:00
|
|
|
case (1)
|
2019-03-13 11:07:31 +01:00
|
|
|
|
2021-10-25 12:20:25 +02:00
|
|
|
Ec(:,:) = 0d0
|
|
|
|
|
|
|
|
case (2)
|
2019-03-13 11:07:31 +01:00
|
|
|
|
|
|
|
Ec(:,:) = 0d0
|
|
|
|
|
2021-10-25 12:20:25 +02:00
|
|
|
case (3)
|
|
|
|
|
|
|
|
Ec(:,:) = 0d0
|
2019-03-13 11:07:31 +01:00
|
|
|
|
2021-10-25 12:20:25 +02:00
|
|
|
case (4)
|
2019-03-13 11:07:31 +01:00
|
|
|
|
|
|
|
Ec(:,:) = 0d0
|
|
|
|
|
|
|
|
case default
|
|
|
|
|
|
|
|
call print_warning('!!! LDA correlation functional not available !!!')
|
|
|
|
stop
|
|
|
|
|
|
|
|
end select
|
|
|
|
|
2022-01-07 09:13:38 +01:00
|
|
|
end subroutine lda_correlation_derivative_discontinuity
|