2021-11-29 13:21:45 +01:00
|
|
|
subroutine unrestricted_hybrid_exchange_derivative_discontinuity(DFA,nEns,wEns,nCC,aCC,nGrid,weight,rhow,&
|
2021-02-14 22:52:17 +01:00
|
|
|
Cx_choice,doNcentered,kappa,ExDD)
|
|
|
|
|
|
|
|
! Compute the exchange part of the derivative discontinuity for hybrid functionals
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
include 'parameters.h'
|
|
|
|
|
|
|
|
! Input variables
|
|
|
|
|
2021-10-25 12:20:25 +02:00
|
|
|
integer,intent(in) :: DFA
|
2021-02-14 22:52:17 +01:00
|
|
|
integer,intent(in) :: nEns
|
|
|
|
double precision,intent(in) :: wEns(nEns)
|
2021-11-29 13:21:45 +01:00
|
|
|
integer,intent(in) :: nCC
|
|
|
|
double precision,intent(in) :: aCC(nCC,nEns-1)
|
2021-02-14 22:52:17 +01:00
|
|
|
|
|
|
|
integer,intent(in) :: nGrid
|
|
|
|
double precision,intent(in) :: weight(nGrid)
|
|
|
|
double precision,intent(in) :: rhow(nGrid)
|
|
|
|
integer,intent(in) :: Cx_choice
|
|
|
|
logical,intent(in) :: doNcentered
|
|
|
|
double precision,intent(in) :: kappa(nEns)
|
|
|
|
|
|
|
|
! Local variables
|
|
|
|
|
|
|
|
|
|
|
|
! Output variables
|
|
|
|
|
|
|
|
double precision,intent(out) :: ExDD(nEns)
|
|
|
|
|
|
|
|
! Select exchange functional
|
|
|
|
|
|
|
|
select case (DFA)
|
|
|
|
|
2021-10-25 12:20:25 +02:00
|
|
|
case (1)
|
2021-02-14 22:52:17 +01:00
|
|
|
|
|
|
|
ExDD(:) = 0d0
|
|
|
|
|
2021-10-25 12:20:25 +02:00
|
|
|
case (2)
|
2021-02-14 22:52:17 +01:00
|
|
|
|
|
|
|
ExDD(:) = 0d0
|
|
|
|
|
2021-10-25 12:20:25 +02:00
|
|
|
case (3)
|
2021-02-14 22:52:17 +01:00
|
|
|
|
|
|
|
ExDD(:) = 0d0
|
|
|
|
|
|
|
|
case default
|
|
|
|
|
|
|
|
call print_warning('!!! Hybrid exchange derivative discontinuity not available !!!')
|
|
|
|
stop
|
|
|
|
|
|
|
|
end select
|
|
|
|
|
|
|
|
end subroutine unrestricted_hybrid_exchange_derivative_discontinuity
|