10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2025-04-16 13:39:27 +02:00

Added save_energy in mo_optimization

This commit is contained in:
Anthony Scemama 2025-04-12 11:35:49 +02:00
parent 745adbcf31
commit 6c1b5cb770

View File

@ -0,0 +1,9 @@
subroutine save_energy(E,pt2)
implicit none
BEGIN_DOC
! Saves the energy in |EZFIO|.
END_DOC
double precision, intent(in) :: E(N_states), pt2(N_states)
call ezfio_set_fci_energy(E(1:N_states))
call ezfio_set_fci_energy_pt2(E(1:N_states)+pt2(1:N_states))
end