mirror of
https://github.com/pfloos/quack
synced 2024-12-27 14:53:40 +01:00
45 lines
969 B
Fortran
45 lines
969 B
Fortran
|
subroutine lda_exchange_derivative_discontinuity(DFA,nEns,wEns,nGrid,weight,rhow,ExDD)
|
||
|
|
||
|
! Compute the exchange LDA part of the derivative discontinuity
|
||
|
|
||
|
implicit none
|
||
|
include 'parameters.h'
|
||
|
|
||
|
! Input variables
|
||
|
|
||
|
character(len=12),intent(in) :: DFA
|
||
|
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)
|
||
|
|
||
|
! Local variables
|
||
|
|
||
|
|
||
|
! Output variables
|
||
|
|
||
|
double precision,intent(out) :: ExDD(nEns)
|
||
|
|
||
|
! Select correlation functional
|
||
|
|
||
|
select case (DFA)
|
||
|
|
||
|
case ('S51')
|
||
|
|
||
|
ExDD(:) = 0d0
|
||
|
|
||
|
case ('RMFL20')
|
||
|
|
||
|
! call MFL20_lda_exchange_derivative_discontinuity(nEns,wEns,nGrid,weight(:),rhow(:),ExDD(:))
|
||
|
ExDD(:) = 0d0
|
||
|
|
||
|
case default
|
||
|
|
||
|
call print_warning('!!! LDA exchange functional not available !!!')
|
||
|
stop
|
||
|
|
||
|
end select
|
||
|
|
||
|
end subroutine lda_exchange_derivative_discontinuity
|