mirror of
https://github.com/LCPQ/quantum_package
synced 2025-01-03 18:16:12 +01:00
Comments of Anthony taken into account
This commit is contained in:
parent
286ca3b61c
commit
8f5ba570ea
@ -59,9 +59,8 @@ program full_ci
|
|||||||
|
|
||||||
if(do_pt2_end)then
|
if(do_pt2_end)then
|
||||||
print*,'Last iteration only to compute the PT2'
|
print*,'Last iteration only to compute the PT2'
|
||||||
! threshold_selectors = 1.d0
|
threshold_selectors = 1.d0
|
||||||
! threshold_generators = 0.999d0
|
threshold_generators = 0.999d0
|
||||||
! soft_touch threshold_selectors
|
|
||||||
call H_apply_CAS_SD_PT2(pt2, norm_pert, H_pert_diag, N_st)
|
call H_apply_CAS_SD_PT2(pt2, norm_pert, H_pert_diag, N_st)
|
||||||
|
|
||||||
print *, 'Final step'
|
print *, 'Final step'
|
||||||
|
@ -408,7 +408,6 @@ subroutine new_approach
|
|||||||
deallocate(dressing_matrix_restart_2h1p)
|
deallocate(dressing_matrix_restart_2h1p)
|
||||||
deallocate(dressing_diag_good_det)
|
deallocate(dressing_diag_good_det)
|
||||||
|
|
||||||
print*,'YOUPI C EST FINI !!'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,9 +33,3 @@ doc: If true, skip the (inactive+core) --> (active) and the (active) --> (virtua
|
|||||||
interface: ezfio,provider,ocaml
|
interface: ezfio,provider,ocaml
|
||||||
default: False
|
default: False
|
||||||
|
|
||||||
[take_input_guess]
|
|
||||||
type: logical
|
|
||||||
doc: If true, the MOs in the directory are taken as input
|
|
||||||
interface: ezfio,provider,ocaml
|
|
||||||
default: False
|
|
||||||
|
|
||||||
|
@ -189,6 +189,39 @@ logical function is_connected_to(key,keys,Nint,Ndet)
|
|||||||
enddo
|
enddo
|
||||||
end
|
end
|
||||||
|
|
||||||
|
logical function is_connected_to_by_mono(key,keys,Nint,Ndet)
|
||||||
|
use bitmasks
|
||||||
|
implicit none
|
||||||
|
integer, intent(in) :: Nint, Ndet
|
||||||
|
integer(bit_kind), intent(in) :: keys(Nint,2,Ndet)
|
||||||
|
integer(bit_kind), intent(in) :: key(Nint,2)
|
||||||
|
|
||||||
|
integer :: i, l
|
||||||
|
integer :: degree_x2
|
||||||
|
|
||||||
|
|
||||||
|
ASSERT (Nint > 0)
|
||||||
|
ASSERT (Nint == N_int)
|
||||||
|
|
||||||
|
is_connected_to_by_mono = .false.
|
||||||
|
|
||||||
|
do i=1,Ndet
|
||||||
|
degree_x2 = popcnt(xor( key(1,1), keys(1,1,i))) + &
|
||||||
|
popcnt(xor( key(1,2), keys(1,2,i)))
|
||||||
|
!DEC$ LOOP COUNT MIN(3)
|
||||||
|
do l=2,Nint
|
||||||
|
degree_x2 = degree_x2 + popcnt(xor( key(l,1), keys(l,1,i))) +&
|
||||||
|
popcnt(xor( key(l,2), keys(l,2,i)))
|
||||||
|
enddo
|
||||||
|
if (degree_x2 > 2) then
|
||||||
|
cycle
|
||||||
|
else
|
||||||
|
is_connected_to_by_mono = .true.
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
enddo
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
integer function connected_to_ref(key,keys,Nint,N_past_in,Ndet)
|
integer function connected_to_ref(key,keys,Nint,N_past_in,Ndet)
|
||||||
use bitmasks
|
use bitmasks
|
||||||
|
Loading…
Reference in New Issue
Block a user