mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-11-19 03:42:21 +01:00
Fixed hf_energy
This commit is contained in:
parent
2016edd734
commit
489f9bd969
@ -86,7 +86,7 @@ def save_new_module(path, l_child):
|
|||||||
! TODO : Put the documentation of the program here
|
! TODO : Put the documentation of the program here
|
||||||
END_DOC
|
END_DOC
|
||||||
print *, 'Hello world'
|
print *, 'Hello world'
|
||||||
end
|
end
|
||||||
""")
|
""")
|
||||||
|
|
||||||
def main(arguments):
|
def main(arguments):
|
||||||
|
@ -20,6 +20,8 @@ END_PROVIDER
|
|||||||
END_DOC
|
END_DOC
|
||||||
integer :: i,j
|
integer :: i,j
|
||||||
HF_energy = nuclear_repulsion
|
HF_energy = nuclear_repulsion
|
||||||
|
HF_two_electron_energy = 0.d0
|
||||||
|
HF_one_electron_energy = 0.d0
|
||||||
do j=1,ao_num
|
do j=1,ao_num
|
||||||
do i=1,ao_num
|
do i=1,ao_num
|
||||||
HF_two_electron_energy += 0.5d0 * ( ao_two_e_integral_alpha(i,j) * SCF_density_matrix_ao_alpha(i,j) &
|
HF_two_electron_energy += 0.5d0 * ( ao_two_e_integral_alpha(i,j) * SCF_density_matrix_ao_alpha(i,j) &
|
||||||
|
Loading…
Reference in New Issue
Block a user