mirror of
https://github.com/QuantumPackage/qp2.git
synced 2025-01-03 17:15:40 +01:00
working on TC Slater matrix elements
This commit is contained in:
parent
7a144bc1a2
commit
721e0963b9
@ -40,22 +40,21 @@ subroutine test_slater_tc_opt
|
|||||||
if(i==j)cycle
|
if(i==j)cycle
|
||||||
integer :: degree
|
integer :: degree
|
||||||
call get_excitation_degree(psi_det(1,1,j), psi_det(1,1,i),degree,N_int)
|
call get_excitation_degree(psi_det(1,1,j), psi_det(1,1,i),degree,N_int)
|
||||||
if(degree .ne. 1)cycle
|
! if(degree .ne. 1)cycle
|
||||||
call htilde_mu_mat_bi_ortho(psi_det(1,1,j), psi_det(1,1,i), N_int, hmono, htwoe, hthree, htot)
|
call htilde_mu_mat_bi_ortho(psi_det(1,1,j), psi_det(1,1,i), N_int, hmono, htwoe, hthree, htot)
|
||||||
call single_htilde_mu_mat_fock_bi_ortho (N_int, psi_det(1,1,j), psi_det(1,1,i), hnewmono, hnewtwoe, hnewthree, hnewtot)
|
call htilde_mu_mat_opt_bi_ortho(psi_det(1,1,j), psi_det(1,1,i), N_int, hnewmono, hnewtwoe, hnewthree, hnewtot)
|
||||||
! print*,'j,i',j,i
|
! if(dabs(hthree).gt.1.d-15)then
|
||||||
! print*,htot,hnewtot,dabs(htot-hnewtot)
|
if(dabs(htot).gt.1.d-15)then
|
||||||
! print*,hthree,hnewthree,dabs(hthree-hnewthree)
|
|
||||||
if(dabs(hthree).gt.1.d-15)then
|
|
||||||
! if(dabs(htot-hnewtot).gt.1.d-8.or.dabs(htot-hnewtot).gt.dabs(htot))then
|
! if(dabs(htot-hnewtot).gt.1.d-8.or.dabs(htot-hnewtot).gt.dabs(htot))then
|
||||||
i_count += 1.D0
|
i_count += 1.D0
|
||||||
accu += dabs(htot-hnewtot)
|
accu += dabs(htot-hnewtot)
|
||||||
if(dabs(hthree-hnewthree).gt.1.d-8.or.dabs(hthree-hnewthree).gt.dabs(hthree))then
|
! if(dabs(hthree-hnewthree).gt.1.d-8.or.dabs(hthree-hnewthree).gt.dabs(hthree))then
|
||||||
|
if(dabs(htot-hnewtot).gt.1.d-8.or.dabs(htot-hnewtot).gt.dabs(htot))then
|
||||||
print*,j,i
|
print*,j,i
|
||||||
call debug_det(psi_det(1,1,i),N_int)
|
call debug_det(psi_det(1,1,i),N_int)
|
||||||
call debug_det(psi_det(1,1,j),N_int)
|
call debug_det(psi_det(1,1,j),N_int)
|
||||||
! print*,htot,hnewtot,dabs(htot-hnewtot)
|
print*,htot,hnewtot,dabs(htot-hnewtot)
|
||||||
print*,hthree,hnewthree,dabs(hthree-hnewthree)
|
! print*,hthree,hnewthree,dabs(hthree-hnewthree)
|
||||||
stop
|
stop
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user