9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-11-18 11:23:38 +01:00

Fixed maxloc

This commit is contained in:
Anthony Scemama 2020-10-23 16:58:07 +02:00
parent 28cb4a5167
commit b148408938

View File

@ -815,7 +815,7 @@ subroutine fill_buffer_double(i_generator, sp, h1, h2, bannedOrb, banned, fock_d
stop -1 stop -1
endif endif
pt2_matrix = dabs(pt2_matrix) pt2_matrix = dabs(pt2_matrix)
iwork = maxloc(pt2_matrix,1) iwork(1:N_states) = maxloc(pt2_matrix,1)
do k=1,N_states do k=1,N_states
e_pert(iwork(k)) = eigvalues(k) - E0(iwork(k)) e_pert(iwork(k)) = eigvalues(k) - E0(iwork(k))
enddo enddo