10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-06-26 15:12:14 +02:00

Comments of Anthony taken into account

This commit is contained in:
Emmanuel Giner 2016-02-18 11:33:26 +01:00
parent 286ca3b61c
commit 8f5ba570ea
4 changed files with 35 additions and 10 deletions

View File

@ -59,9 +59,8 @@ program full_ci
if(do_pt2_end)then
print*,'Last iteration only to compute the PT2'
! threshold_selectors = 1.d0
! threshold_generators = 0.999d0
! soft_touch threshold_selectors
threshold_selectors = 1.d0
threshold_generators = 0.999d0
call H_apply_CAS_SD_PT2(pt2, norm_pert, H_pert_diag, N_st)
print *, 'Final step'

View File

@ -408,7 +408,6 @@ subroutine new_approach
deallocate(dressing_matrix_restart_2h1p)
deallocate(dressing_diag_good_det)
print*,'YOUPI C EST FINI !!'
end

View File

@ -33,9 +33,3 @@ doc: If true, skip the (inactive+core) --> (active) and the (active) --> (virtua
interface: ezfio,provider,ocaml
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

View File

@ -189,6 +189,39 @@ logical function is_connected_to(key,keys,Nint,Ndet)
enddo
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)
use bitmasks