10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-04 05:03:54 +01:00
quantum_package/plugins/MRPT/jm_mrpt2.irp.f

50 lines
1.1 KiB
Fortran
Raw Normal View History

program MRPT_Utils
implicit none
read_wf = .True.
touch read_wf
! call routine
! call routine_2
call routine_3
end
subroutine routine_3
implicit none
2016-08-26 18:00:49 +02:00
!provide fock_virt_total_spin_trace
2017-09-11 23:37:31 +02:00
provide delta_ij_mrpt
print *, 'N_det = ', N_det
print *, 'N_states = ', N_states
2017-06-02 01:15:29 +02:00
integer :: i
do i=1,N_states
print *, 'State = ', i
print *, 'PT2 = ', second_order_pt_new(i)
print *, 'E = ', CI_energy(i)
print *, 'E+PT2 = ', CI_energy(i)+second_order_pt_new(i)
print *, '-----------------------------'
enddo
print *,'****** DIAGONALIZATION OF DRESSED MATRIX ******'
2017-06-02 01:15:29 +02:00
print *, 'E dressed= ', CI_dressed_pt2_new_energy(i)
end
subroutine routine_2
implicit none
integer :: i
do i = 1, n_core_inact_orb
print*,fock_core_inactive_total(i,1,1),fock_core_inactive(i)
enddo
double precision :: accu
accu = 0.d0
do i = 1, n_act_orb
integer :: j_act_orb
j_act_orb = list_act(i)
accu += one_body_dm_mo_alpha(j_act_orb,j_act_orb,1)
print*,one_body_dm_mo_alpha(j_act_orb,j_act_orb,1),one_body_dm_mo_beta(j_act_orb,j_act_orb,1)
enddo
print*,'accu = ',accu
end