mirror of
https://github.com/LCPQ/quantum_package
synced 2024-11-04 05:03:54 +01:00
Patched apply_hole for temporary recompilation
This commit is contained in:
parent
2094dbaef4
commit
fac640e39c
@ -694,9 +694,9 @@ END_PROVIDER
|
|||||||
allocate(lref(N_det_non_ref))
|
allocate(lref(N_det_non_ref))
|
||||||
lref = 0
|
lref = 0
|
||||||
do II = 1, N_det_ref
|
do II = 1, N_det_ref
|
||||||
call apply_hole(psi_ref(1,1,II), hh_exists(1, hh), myMask, ok, N_int)
|
call apply_hole_local(psi_ref(1,1,II), hh_exists(1, hh), myMask, ok, N_int)
|
||||||
if(.not. ok) cycle
|
if(.not. ok) cycle
|
||||||
call apply_particle(myMask, pp_exists(1, pp), myDet, ok, N_int)
|
call apply_particle_local(myMask, pp_exists(1, pp), myDet, ok, N_int)
|
||||||
if(.not. ok) cycle
|
if(.not. ok) cycle
|
||||||
ind = searchDet(psi_non_ref_sorted(1,1,1), myDet(1,1), N_det_non_ref, N_int)
|
ind = searchDet(psi_non_ref_sorted(1,1,1), myDet(1,1), N_det_non_ref, N_int)
|
||||||
if(ind /= -1) then
|
if(ind /= -1) then
|
||||||
@ -1054,7 +1054,7 @@ integer function excCmp(exc1, exc2)
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
|
|
||||||
subroutine apply_hole(det, exc, res, ok, Nint)
|
subroutine apply_hole_local(det, exc, res, ok, Nint)
|
||||||
use bitmasks
|
use bitmasks
|
||||||
implicit none
|
implicit none
|
||||||
integer, intent(in) :: Nint
|
integer, intent(in) :: Nint
|
||||||
@ -1089,7 +1089,7 @@ subroutine apply_hole(det, exc, res, ok, Nint)
|
|||||||
end subroutine
|
end subroutine
|
||||||
|
|
||||||
|
|
||||||
subroutine apply_particle(det, exc, res, ok, Nint)
|
subroutine apply_particle_local(det, exc, res, ok, Nint)
|
||||||
use bitmasks
|
use bitmasks
|
||||||
implicit none
|
implicit none
|
||||||
integer, intent(in) :: Nint
|
integer, intent(in) :: Nint
|
||||||
|
@ -25,13 +25,13 @@ use bitmasks
|
|||||||
iproc = omp_get_thread_num() + 1
|
iproc = omp_get_thread_num() + 1
|
||||||
if(mod(gen, 1000) == 0) print *, "mrcc ", gen, "/", N_det_generators
|
if(mod(gen, 1000) == 0) print *, "mrcc ", gen, "/", N_det_generators
|
||||||
do h=1, hh_shortcut(0)
|
do h=1, hh_shortcut(0)
|
||||||
call apply_hole(psi_det_generators(1,1,gen), hh_exists(1, h), mask, ok, N_int)
|
call apply_hole_local(psi_det_generators(1,1,gen), hh_exists(1, h), mask, ok, N_int)
|
||||||
if(.not. ok) cycle
|
if(.not. ok) cycle
|
||||||
omask = 0_bit_kind
|
omask = 0_bit_kind
|
||||||
if(hh_exists(1, h) /= 0) omask = mask
|
if(hh_exists(1, h) /= 0) omask = mask
|
||||||
n = 1
|
n = 1
|
||||||
do p=hh_shortcut(h), hh_shortcut(h+1)-1
|
do p=hh_shortcut(h), hh_shortcut(h+1)-1
|
||||||
call apply_particle(mask, pp_exists(1, p), buf(1,1,n), ok, N_int)
|
call apply_particle_local(mask, pp_exists(1, p), buf(1,1,n), ok, N_int)
|
||||||
if(ok) n = n + 1
|
if(ok) n = n + 1
|
||||||
if(n > N_det_non_ref) stop "MRCC..."
|
if(n > N_det_non_ref) stop "MRCC..."
|
||||||
end do
|
end do
|
||||||
|
Loading…
Reference in New Issue
Block a user