2023-06-28 18:57:41 +02:00
|
|
|
program print_tcscf_energy
|
|
|
|
|
|
|
|
BEGIN_DOC
|
|
|
|
! TODO : Put the documentation of the program here
|
|
|
|
END_DOC
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
print *, 'Hello world'
|
|
|
|
my_grid_becke = .True.
|
2023-07-02 21:49:25 +02:00
|
|
|
PROVIDE tc_grid1_a tc_grid1_r
|
|
|
|
my_n_pt_r_grid = tc_grid1_r
|
|
|
|
my_n_pt_a_grid = tc_grid1_a
|
2023-06-28 18:57:41 +02:00
|
|
|
touch my_grid_becke my_n_pt_r_grid my_n_pt_a_grid
|
|
|
|
|
|
|
|
call main()
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
! ---
|
|
|
|
|
|
|
|
subroutine main()
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
double precision :: etc_tot, etc_1e, etc_2e, etc_3e
|
|
|
|
|
|
|
|
PROVIDE mu_erf
|
|
|
|
PROVIDE j1b_type
|
|
|
|
|
|
|
|
print*, ' mu_erf = ', mu_erf
|
|
|
|
print*, ' j1b_type = ', j1b_type
|
|
|
|
|
|
|
|
etc_tot = TC_HF_energy
|
|
|
|
etc_1e = TC_HF_one_e_energy
|
|
|
|
etc_2e = TC_HF_two_e_energy
|
|
|
|
etc_3e = 0.d0
|
|
|
|
if(three_body_h_tc) then
|
|
|
|
!etc_3e = diag_three_elem_hf
|
|
|
|
etc_3e = tcscf_energy_3e_naive
|
|
|
|
endif
|
|
|
|
|
|
|
|
print *, " E_TC = ", etc_tot
|
|
|
|
print *, " E_1e = ", etc_1e
|
|
|
|
print *, " E_2e = ", etc_2e
|
|
|
|
print *, " E_3e = ", etc_3e
|
|
|
|
|
|
|
|
return
|
|
|
|
end subroutine main
|
|
|
|
|
|
|
|
! ---
|
|
|
|
|