10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-12-25 22:03:51 +01:00
quantum_package/plugins/mrcepa0/dressing_vector.irp.f

31 lines
817 B
Fortran
Raw Normal View History

2018-02-20 15:51:53 +01:00
2018-02-09 15:55:21 +01:00
BEGIN_PROVIDER [ double precision, dressing_column_h, (N_det,N_states) ]
&BEGIN_PROVIDER [ double precision, dressing_column_s, (N_det,N_states) ]
implicit none
BEGIN_DOC
! Null dressing vectors
END_DOC
integer :: i,ii,k,j,jj, l
double precision :: f, tmp
double precision, external :: u_dot_v
2018-07-30 16:37:51 +02:00
dressing_column_h(:,:) = 0.d0
dressing_column_s(:,:) = 0.d0
2018-02-09 15:55:21 +01:00
do k=1,N_states
l = dressed_column_idx(k)
2018-07-30 16:37:51 +02:00
f = -1.d0/psi_coef(l,k)
do jj=1,N_det_non_ref
2018-02-09 15:55:21 +01:00
j = idx_non_ref(jj)
2018-07-30 16:37:51 +02:00
dressing_column_h(j,k) = 2.d0*delta_ij (k,jj)
dressing_column_s(j,k) = 2.d0*delta_ij_s2(k,jj)
dressing_column_h(l,k) += psi_coef(j,k) * delta_ij(k,jj)
dressing_column_s(l,k) += psi_coef(j,k) * delta_ij_s2(k,jj)
2018-02-09 15:55:21 +01:00
enddo
2018-07-30 16:37:51 +02:00
dressing_column_h(l,k) *= f
dressing_column_s(l,k) *= f
2018-02-09 15:55:21 +01:00
enddo
END_PROVIDER