mirror of
https://gitlab.com/scemama/qmcchem.git
synced 2024-12-22 04:13:31 +01:00
keep svd coefs
This commit is contained in:
parent
0898c98575
commit
205a89e391
@ -18,14 +18,11 @@ BEGIN_PROVIDER [ integer, n_svd_coefs ]
|
|||||||
! If true, use SVD wave function
|
! If true, use SVD wave function
|
||||||
END_DOC
|
END_DOC
|
||||||
integer :: i
|
integer :: i
|
||||||
double precision :: keep
|
|
||||||
keep = 1.d0
|
|
||||||
n_svd_coefs = 0
|
|
||||||
do i=1,n_svd_coefs_full
|
do i=1,n_svd_coefs_full
|
||||||
keep = keep - psi_svd_coefs(i)*psi_svd_coefs(i)
|
if (psi_svd_coefs(i) < ci_threshold) then
|
||||||
if (dsqrt(keep) < ci_threshold) then
|
|
||||||
exit
|
exit
|
||||||
endif
|
endif
|
||||||
|
print *, i, psi_svd_coefs(i)
|
||||||
n_svd_coefs = n_svd_coefs+1
|
n_svd_coefs = n_svd_coefs+1
|
||||||
enddo
|
enddo
|
||||||
END_PROVIDER
|
END_PROVIDER
|
||||||
|
Loading…
Reference in New Issue
Block a user