9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-22 03:23:29 +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
endif
pt2_matrix = dabs(pt2_matrix)
iwork = maxloc(pt2_matrix,1)
iwork(1:N_states) = maxloc(pt2_matrix,1)
do k=1,N_states
e_pert(iwork(k)) = eigvalues(k) - E0(iwork(k))
enddo