10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-11-08 07:03:52 +01:00
QuantumPackage/src/utils_cc/energy.irp.f

13 lines
246 B
Fortran
Raw Normal View History

2023-03-13 09:38:35 +01:00
subroutine det_energy(det,energy)
implicit none
integer(bit_kind), intent(in) :: det
double precision, intent(out) :: energy
2023-05-17 16:55:29 +02:00
double precision, external :: diag_H_mat_elem
2023-03-13 09:38:35 +01:00
2023-05-17 16:55:29 +02:00
energy = diag_H_mat_elem(det,N_int) + nuclear_repulsion
2023-03-13 09:38:35 +01:00
end