1
0
mirror of https://gitlab.com/scemama/qp_plugins_scemama.git synced 2024-12-22 04:13:40 +01:00

Fixed bug in det-csf provider

This commit is contained in:
Anthony Scemama 2021-12-03 15:30:07 +01:00
parent 4d380c9948
commit f918fcf13e

View File

@ -48,7 +48,13 @@ subroutine write_champ_csf
do i=1,N_configuration
startdet = psi_configuration_to_psi_det(1,i)
enddet = psi_configuration_to_psi_det(2,i)
ndetI += enddet-startdet+1
do k=1,bfIcfg
write(iunit, '(I4)') ndetI
do j = startdet, enddet
if (DetToCSFTransformationMatrix(s,k,j-startdet+1) == 0.d0) cycle
ndetI += 1
end do
end do
end do
write(iunit, '(A)') 'csfmap'
@ -69,6 +75,7 @@ subroutine write_champ_csf
do k=1,bfIcfg
write(iunit, '(I4)') ndetI
do j = startdet, enddet
if (DetToCSFTransformationMatrix(s,k,j-startdet+1) == 0.d0) cycle
idx = psi_configuration_to_psi_det_data(j)
call get_phase_qp_to_cfg(psi_det(1,1,idx), psi_det(1,2,idx), phasedet)
write(iunit, '(I10, F18.12)') idx, DetToCSFTransformationMatrix(s,k,j-startdet+1)*phasedet