10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-06-22 05:02:22 +02:00

fixed generators problem for cisd in casscf

This commit is contained in:
Emmanuel Giner LCT 2019-07-15 15:47:48 +02:00
parent e7834fa7c5
commit 33b38b5d78
3 changed files with 8 additions and 1 deletions

View File

@ -6,6 +6,10 @@ subroutine cisd_scf_iteration(converged,iteration,energy,thr)
double precision, intent(out) :: energy
converged = .False.
call only_act_bitmask
N_det = N_det_generators
psi_coef = psi_coef_generators
psi_det = psi_det_generators
touch N_det psi_coef psi_det
call run_cisd
call change_orb_cisd(converged,iteration,energy,thr)
end

View File

@ -2,7 +2,7 @@ program test_pert_2rdm
implicit none
read_wf = .True.
touch read_wf
call get_pert_2rdm
!call get_pert_2rdm
integer :: i,j,k,l,ii,jj,kk,ll
double precision :: accu , get_two_e_integral, integral
accu = 0.d0

View File

@ -182,6 +182,9 @@ subroutine copy_H_apply_buffer_to_wf
ASSERT (sum(popcnt(psi_det(:,2,i+N_det_old))) == elec_beta_num )
enddo
do k=1,N_states
print*,"H_apply_buffer(j)%N_det",H_apply_buffer(j)%N_det
print*,'N_det_old = ',N_det_old
print*,'size(psi_coef,1)', size(psi_coef,1)
do i=1,H_apply_buffer(j)%N_det
psi_coef(i+N_det_old,k) = H_apply_buffer(j)%coef(i,k)
enddo