9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-21 19:13:29 +01:00

Trying to fix csf.

This commit is contained in:
v1j4y 2022-02-08 00:01:08 +01:00
parent 7770e4df58
commit c6acad0b0a
2 changed files with 6 additions and 8 deletions

@ -1 +1 @@
Subproject commit bc856147f6e626a6616b20344e5b8e3f30f44a92
Subproject commit 90ee61f5041c7c94a0c605625a264860292813a0

View File

@ -64,13 +64,11 @@ subroutine convertWFfromDETtoCSF(N_st,psi_coef_det_in, psi_coef_cfg_out)
s = s + popcnt(psi_configuration(k,1,i))
enddo
bfIcfg = max(1,nint((binom(s,(s+1)/2)-binom(s,((s+1)/2)+1))))
! if(iand(s,1) .EQ. 0) then
! bfIcfg = max(1,nint((binom(s,s/2)-binom(s,(s/2)+1))))
! else
! bfIcfg = max(1,nint((binom(s,(s+1)/2)-binom(s,((s+1)/2)+1))))
! endif
if(iand(s,1) .EQ. 0) then
bfIcfg = max(1,nint((binom(s,s/2)-binom(s,(s/2)+1))))
else
bfIcfg = max(1,nint((binom(s,(s+1)/2)-binom(s,((s+1)/2)+1))))
endif
! perhaps blocking with CFGs of same seniority
! can be more efficient