2015-04-20 16:45:06 +02:00
|
|
|
BEGIN_PROVIDER [ double precision, H_matrix_all_dets,(N_det,N_det) ]
|
2016-11-02 16:01:01 +01:00
|
|
|
use bitmasks
|
2015-04-20 16:45:06 +02:00
|
|
|
implicit none
|
|
|
|
BEGIN_DOC
|
|
|
|
! H matrix on the basis of the slater determinants defined by psi_det
|
|
|
|
END_DOC
|
2016-11-02 16:01:01 +01:00
|
|
|
integer :: i,j,k
|
2015-04-20 16:45:06 +02:00
|
|
|
double precision :: hij
|
2016-11-02 16:01:01 +01:00
|
|
|
integer :: degree(N_det),idx(0:N_det)
|
2015-04-20 16:45:06 +02:00
|
|
|
call i_H_j(psi_det(1,1,1),psi_det(1,1,1),N_int,hij)
|
2016-11-02 17:39:39 +01:00
|
|
|
!$OMP PARALLEL DO SCHEDULE(GUIDED) DEFAULT(NONE) PRIVATE(i,j,hij,degree,idx,k) &
|
2015-04-20 16:45:06 +02:00
|
|
|
!$OMP SHARED (N_det, psi_det, N_int,H_matrix_all_dets)
|
|
|
|
do i =1,N_det
|
2016-11-02 16:01:01 +01:00
|
|
|
do j = i, N_det
|
2015-04-20 16:45:06 +02:00
|
|
|
call i_H_j(psi_det(1,1,i),psi_det(1,1,j),N_int,hij)
|
|
|
|
H_matrix_all_dets(i,j) = hij
|
|
|
|
H_matrix_all_dets(j,i) = hij
|
|
|
|
enddo
|
|
|
|
enddo
|
|
|
|
!$OMP END PARALLEL DO
|
|
|
|
END_PROVIDER
|
|
|
|
|
2016-11-02 16:01:01 +01:00
|
|
|
|