10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-11-14 18:13:51 +01:00

Merge pull request #105 from kgasperich/features_kpts

add random imaginary part for complex davidson guess
This commit is contained in:
Kevin Gasperich 2020-05-13 10:58:24 -05:00 committed by GitHub
commit eab285c4e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1061,8 +1061,8 @@ subroutine davidson_diag_hjj_sjj_complex(dets_in,u_in,H_jj,s2_out,energies,dim_i
r1 = dsqrt(-2.d0*dlog(r1))
r2 = dtwo_pi*r2
!todo: real or complex? rescale for complex? sqrt(2)?
u_in(i,k) = dcmplx(r1*dcos(r2),0.d0)
!u_in(i,k) = dcmplx(r1*dcos(r2),r1*dsin(r2))
!u_in(i,k) = dcmplx(r1*dcos(r2),0.d0)
u_in(i,k) = dcmplx(r1*dcos(r2),r1*dsin(r2))
enddo
enddo
do k=1,N_st_diag