mirror of
https://github.com/TREX-CoE/irpjast.git
synced 2025-01-03 10:06:11 +01:00
jast2
This commit is contained in:
parent
266e9dc655
commit
f783e1c4fd
4
Makefile
4
Makefile
@ -1,6 +1,6 @@
|
|||||||
IRPF90 = irpf90 #-a -d
|
IRPF90 = irpf90 --codelet=factor_een_2:100000 #--codelet=factor_een:10000
|
||||||
FC = gfortran
|
FC = gfortran
|
||||||
FCFLAGS= -O2 -ffree-line-length-none -I .
|
FCFLAGS= -O2 -march=native -ffree-line-length-none -I .
|
||||||
NINJA = ninja
|
NINJA = ninja
|
||||||
ARCHIVE= ar crs
|
ARCHIVE= ar crs
|
||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
|
@ -11,13 +11,13 @@ BEGIN_PROVIDER [double precision, factor_een]
|
|||||||
|
|
||||||
do alpha = 1, nnuc
|
do alpha = 1, nnuc
|
||||||
do j = 1, nelec
|
do j = 1, nelec
|
||||||
b = rescale_een_n(j, alpha)
|
b = rescale_een_n(j, alpha, 1)
|
||||||
do i = 1, nelec
|
do i = 1, nelec
|
||||||
u = rescale_een_e(i, j)
|
u = rescale_een_e(i, j, 1)
|
||||||
a = rescale_een_n(i, alpha)
|
a = rescale_een_n(i, alpha, 1)
|
||||||
a2 = a * a
|
a2 = a * a
|
||||||
b2 = b * b
|
b2 = b * b
|
||||||
c = rescale_een_n(i, alpha) * rescale_een_n(j, alpha)
|
c = rescale_een_n(i, alpha, 1) * rescale_een_n(j, alpha, 1)
|
||||||
c_inv = 1.0d0 / c
|
c_inv = 1.0d0 / c
|
||||||
cindex = 0
|
cindex = 0
|
||||||
do p = 2, ncord
|
do p = 2, ncord
|
||||||
@ -64,3 +64,50 @@ BEGIN_PROVIDER [double precision, factor_een]
|
|||||||
factor_een = 0.5d0 * factor_een
|
factor_een = 0.5d0 * factor_een
|
||||||
|
|
||||||
END_PROVIDER
|
END_PROVIDER
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
BEGIN_PROVIDER [ double precision, factor_een_2 ]
|
||||||
|
implicit none
|
||||||
|
BEGIN_DOC
|
||||||
|
!
|
||||||
|
END_DOC
|
||||||
|
integer :: i,j,a,p,k,l,lmax,m
|
||||||
|
double precision :: riam, rjam_cn, rial, rjal, rijk
|
||||||
|
double precision :: cn
|
||||||
|
|
||||||
|
factor_een_2 = 0.0d0
|
||||||
|
|
||||||
|
do p=2,ncord
|
||||||
|
do k=0,p-1
|
||||||
|
if (k /= 0) then
|
||||||
|
lmax = p-k
|
||||||
|
else
|
||||||
|
lmax = p-k-2
|
||||||
|
endif
|
||||||
|
|
||||||
|
do l=0,lmax
|
||||||
|
if ( iand(p-k-l,1) == 1) cycle
|
||||||
|
m = (p-k-l)/2
|
||||||
|
|
||||||
|
do a=1, nnuc
|
||||||
|
cn = cord_vect_lkp(l,k,p,typenuc_arr(a))
|
||||||
|
do j=1, nelec
|
||||||
|
rjal = rescale_een_n(j,a,l)
|
||||||
|
rjam_cn = rescale_een_n(j,a,m) * cn
|
||||||
|
do i=1, j-1
|
||||||
|
rial = rescale_een_n(i,a,l)
|
||||||
|
riam = rescale_een_n(i,a,m)
|
||||||
|
rijk = rescale_een_e(i,j,k)
|
||||||
|
factor_een_2 = factor_een_2 + &
|
||||||
|
rijk * (rial+rjal) * riam * rjam_cn
|
||||||
|
enddo
|
||||||
|
enddo
|
||||||
|
enddo
|
||||||
|
|
||||||
|
enddo
|
||||||
|
enddo
|
||||||
|
enddo
|
||||||
|
|
||||||
|
END_PROVIDER
|
||||||
|
|
||||||
|
@ -2,5 +2,7 @@ program jastrow
|
|||||||
implicit none
|
implicit none
|
||||||
print *, 'The total Jastrow factor'
|
print *, 'The total Jastrow factor'
|
||||||
print *, jastrow_full
|
print *, jastrow_full
|
||||||
|
print *, factor_een
|
||||||
|
print *, factor_een_2
|
||||||
|
|
||||||
end program
|
end program
|
||||||
|
28
orders.irp.f
28
orders.irp.f
@ -69,3 +69,31 @@ BEGIN_PROVIDER [double precision, aord_vect, (naord + 1, typenuc)]
|
|||||||
close(fu)
|
close(fu)
|
||||||
|
|
||||||
END_PROVIDER
|
END_PROVIDER
|
||||||
|
|
||||||
|
BEGIN_PROVIDER [ double precision, cord_vect_lkp, (0:ncord-1, 0:ncord-1, 2:ncord, typenuc) ]
|
||||||
|
implicit none
|
||||||
|
BEGIN_DOC
|
||||||
|
!
|
||||||
|
END_DOC
|
||||||
|
integer :: alpha, l,k,p,lmax,cindex
|
||||||
|
|
||||||
|
cord_vect_lkp = 0.d0
|
||||||
|
cindex = 0
|
||||||
|
do alpha=1,typenuc
|
||||||
|
do p = 2, ncord
|
||||||
|
do k = p-1, 0, -1
|
||||||
|
if ( k /= 0 ) then
|
||||||
|
lmax = p - k
|
||||||
|
else
|
||||||
|
lmax = p - k - 2
|
||||||
|
end if
|
||||||
|
do l = lmax, 0, -1
|
||||||
|
if (iand(p-k-l,1) == 1) cycle
|
||||||
|
cindex = cindex + 1
|
||||||
|
cord_vect_lkp(l,k,p,alpha) = cord_vect(cindex, alpha)
|
||||||
|
end do
|
||||||
|
end do
|
||||||
|
end do
|
||||||
|
end do
|
||||||
|
|
||||||
|
END_PROVIDER
|
||||||
|
@ -42,30 +42,40 @@ BEGIN_PROVIDER [ double precision, rescale_en, (nelec, nnuc) ]
|
|||||||
enddo
|
enddo
|
||||||
END_PROVIDER
|
END_PROVIDER
|
||||||
|
|
||||||
BEGIN_PROVIDER [double precision, rescale_een_e, (nelec, nelec)]
|
BEGIN_PROVIDER [double precision, rescale_een_e, (nelec, nelec, 0:ncord)]
|
||||||
implicit none
|
implicit none
|
||||||
BEGIN_DOC
|
BEGIN_DOC
|
||||||
! R = exp(-kappa r) for electron-electron for $J_{een}$
|
! R = exp(-kappa r) for electron-electron for $J_{een}$
|
||||||
END_DOC
|
END_DOC
|
||||||
integer :: i, j
|
integer :: i, j, l
|
||||||
|
double precision :: kappa_l
|
||||||
|
|
||||||
do j = 1, nelec
|
do l=0,ncord
|
||||||
do i = 1, nelec
|
kappa_l = -dble(l) * kappa
|
||||||
rescale_een_e(i, j) = dexp(-kappa * elec_dist(i, j))
|
do j = 1, nelec
|
||||||
enddo
|
do i = 1, nelec
|
||||||
|
rescale_een_e(i, j, l) = kappa_l * elec_dist(i, j)
|
||||||
|
enddo
|
||||||
|
enddo
|
||||||
enddo
|
enddo
|
||||||
|
rescale_een_e = dexp(rescale_een_e)
|
||||||
END_PROVIDER
|
END_PROVIDER
|
||||||
|
|
||||||
BEGIN_PROVIDER [double precision, rescale_een_n, (nelec, nnuc)]
|
BEGIN_PROVIDER [double precision, rescale_een_n, (nelec, nnuc, 0:ncord)]
|
||||||
implicit none
|
implicit none
|
||||||
BEGIN_DOC
|
BEGIN_DOC
|
||||||
! R = exp(-kappa r) for electron-electron for $J_{een}$
|
! R = exp(-kappa r) for electron-electron for $J_{een}$
|
||||||
END_DOC
|
END_DOC
|
||||||
integer :: i, j
|
integer :: i, j, l
|
||||||
|
double precision :: kappa_l
|
||||||
|
|
||||||
do j = 1, nnuc
|
do l=0,ncord
|
||||||
do i = 1, nelec
|
kappa_l = - dble(l) * kappa
|
||||||
rescale_een_n(i, j) = dexp(-kappa * elnuc_dist(i, j))
|
do j = 1, nnuc
|
||||||
|
do i = 1, nelec
|
||||||
|
rescale_een_n(i, j, l) = kappa_l * elnuc_dist(i, j)
|
||||||
|
enddo
|
||||||
enddo
|
enddo
|
||||||
enddo
|
enddo
|
||||||
|
rescale_een_n = dexp(rescale_een_n)
|
||||||
END_PROVIDER
|
END_PROVIDER
|
||||||
|
Loading…
Reference in New Issue
Block a user