2020-11-17 21:35:52 +01:00
|
|
|
BEGIN_PROVIDER [ double precision, kappa ]
|
|
|
|
implicit none
|
|
|
|
BEGIN_DOC
|
|
|
|
! Constant in rescaling
|
|
|
|
END_DOC
|
|
|
|
kappa = 1.5d0
|
|
|
|
END_PROVIDER
|
|
|
|
|
|
|
|
BEGIN_PROVIDER [ double precision, kappa_inv ]
|
|
|
|
implicit none
|
|
|
|
BEGIN_DOC
|
|
|
|
! inverse of kappa
|
|
|
|
END_DOC
|
2020-11-25 16:59:53 +01:00
|
|
|
kappa_inv = 1.d0 / kappa
|
2020-11-17 21:35:52 +01:00
|
|
|
END_PROVIDER
|
|
|
|
|
|
|
|
BEGIN_PROVIDER [ double precision, rescale_ee, (nelec, nelec) ]
|
|
|
|
implicit none
|
|
|
|
BEGIN_DOC
|
2020-11-25 16:59:53 +01:00
|
|
|
! R = (1 - exp(-kappa r))/kappa for electron-electron for $J_{ee}$
|
2020-11-17 21:35:52 +01:00
|
|
|
END_DOC
|
|
|
|
integer :: i, j
|
|
|
|
do j=1,nelec
|
|
|
|
do i=1,nelec
|
|
|
|
rescale_ee(i, j) = (1.d0 - dexp(-kappa * elec_dist(i, j))) * kappa_inv
|
|
|
|
enddo
|
|
|
|
enddo
|
|
|
|
END_PROVIDER
|
|
|
|
|
|
|
|
BEGIN_PROVIDER [ double precision, rescale_en, (nelec, nnuc) ]
|
|
|
|
implicit none
|
|
|
|
BEGIN_DOC
|
2020-11-25 16:59:53 +01:00
|
|
|
! R = (1 - exp(-kappa r))/kappa for electron-nucleus for $J_{en}$
|
2020-11-17 21:35:52 +01:00
|
|
|
END_DOC
|
|
|
|
integer :: i, j
|
|
|
|
do j = 1, nnuc
|
|
|
|
do i = 1, nelec
|
2020-11-25 16:59:53 +01:00
|
|
|
rescale_en(i, j) = (1.d0 - dexp(-kappa * elnuc_dist(i, j))) * kappa_inv
|
|
|
|
enddo
|
|
|
|
enddo
|
|
|
|
END_PROVIDER
|
|
|
|
|
2020-11-26 16:12:33 +01:00
|
|
|
BEGIN_PROVIDER [double precision, rescale_een_e, (nelec, nelec)]
|
2020-11-25 16:59:53 +01:00
|
|
|
implicit none
|
|
|
|
BEGIN_DOC
|
|
|
|
! R = exp(-kappa r) for electron-electron for $J_{een}$
|
|
|
|
END_DOC
|
|
|
|
integer :: i, j
|
|
|
|
do j = 1, nelec
|
|
|
|
do i = 1, nelec
|
|
|
|
rescale_een_e(i, j) = dexp(-kappa * elec_dist(i, j))
|
|
|
|
enddo
|
|
|
|
enddo
|
|
|
|
END_PROVIDER
|
|
|
|
|
2020-11-26 16:12:33 +01:00
|
|
|
BEGIN_PROVIDER [double precision, rescale_een_n, (nelec, nnuc)]
|
2020-11-25 16:59:53 +01:00
|
|
|
implicit none
|
|
|
|
BEGIN_DOC
|
|
|
|
! R = exp(-kappa r) for electron-electron for $J_{een}$
|
|
|
|
END_DOC
|
|
|
|
integer :: i, j
|
|
|
|
do j = 1, nnuc
|
|
|
|
do i = 1, nelec
|
|
|
|
rescale_een_n(i, j) = dexp(-kappa * elnuc_dist(i, j))
|
2020-11-17 21:35:52 +01:00
|
|
|
enddo
|
|
|
|
enddo
|
|
|
|
END_PROVIDER
|