mirror of
https://github.com/TREX-CoE/irpjast.git
synced 2024-08-25 14:41:48 +02:00
68 lines
1.5 KiB
Fortran
68 lines
1.5 KiB
Fortran
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
|
|
kappa_inv = 1.d0 / kappa
|
|
END_PROVIDER
|
|
|
|
BEGIN_PROVIDER [ double precision, rescale_ee, (nelec, nelec) ]
|
|
implicit none
|
|
BEGIN_DOC
|
|
! R = (1 - exp(-kappa r))/kappa for electron-electron for $J_{ee}$
|
|
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
|
|
! R = (1 - exp(-kappa r))/kappa for electron-nucleus for $J_{en}$
|
|
END_DOC
|
|
integer :: i, j
|
|
do j = 1, nnuc
|
|
do i = 1, nelec
|
|
rescale_en(i, j) = (1.d0 - dexp(-kappa * elnuc_dist(i, j))) * kappa_inv
|
|
enddo
|
|
enddo
|
|
END_PROVIDER
|
|
|
|
BEGIN_PROVIDER [double precision, rescale_een_e, (nelec, nelec)]
|
|
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
|
|
|
|
BEGIN_PROVIDER [double precision, rescale_een_n, (nelec, nnuc)]
|
|
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))
|
|
enddo
|
|
enddo
|
|
END_PROVIDER
|