mirror of
https://github.com/LCPQ/quantum_package
synced 2024-11-03 20:54:00 +01:00
Added truncate_wf
This commit is contained in:
parent
9bce6b8a2e
commit
3c0bdc9572
@ -7,6 +7,8 @@ subroutine save_dets_qmcchem
|
||||
integer, allocatable :: occ(:,:,:), occ_tmp(:,:)
|
||||
!DIR$ ATTRIBUTES ALIGN : $IRP_ALIGN :: occ, occ_tmp
|
||||
|
||||
read_wf = .True.
|
||||
TOUCH read_wf
|
||||
call ezfio_set_determinants_det_num(N_det)
|
||||
call ezfio_set_determinants_det_coef(psi_coef_sorted(1,1))
|
||||
|
||||
|
18
src/Dets/truncate_wf.irp.f
Normal file
18
src/Dets/truncate_wf.irp.f
Normal file
@ -0,0 +1,18 @@
|
||||
program cisd
|
||||
implicit none
|
||||
integer :: i,k
|
||||
|
||||
|
||||
double precision, allocatable :: pt2(:), norm_pert(:), H_pert_diag(:)
|
||||
integer :: N_st, degree
|
||||
N_det=10000
|
||||
do i=1,N_det
|
||||
do k=1,N_int
|
||||
psi_det(k,1,i) = psi_det_sorted(k,1,i)
|
||||
psi_det(k,2,i) = psi_det_sorted(k,2,i)
|
||||
enddo
|
||||
psi_coef(k,:) = psi_coef_sorted(k,:)
|
||||
enddo
|
||||
TOUCH psi_det psi_coef psi_det_sorted psi_coef_sorted psi_average_norm_contrib_sorted N_det
|
||||
call save_wavefunction
|
||||
end
|
Loading…
Reference in New Issue
Block a user