Skip to content

Commit

Permalink
added simplified esp_1pdm for unrestricted
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennepalos committed Jun 5, 2024
1 parent 52519fd commit 882c427
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/modules/quick_oeproperties_module.f90
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ subroutine esp_1pdm(Ips,Jps,IIsh,JJsh,NIJ1,Ax,Ay,Az,Bx,By,Bz,Cx,Cy,Cz,Px,Py,Pz,e
use quick_calculated_module, only : quick_qm_struct
use quick_basis_module, only: attraxiao,quick_basis
use quick_files_module, only: ioutfile
use quick_method_module, only: quick_method

double precision attra,aux(0:20)
integer a(3),b(3)
Expand Down Expand Up @@ -436,8 +437,12 @@ subroutine esp_1pdm(Ips,Jps,IIsh,JJsh,NIJ1,Ax,Ay,Az,Bx,By,Bz,Cx,Cy,Cz,Px,Py,Pz,e
dense_sym_factor = 1.0d0
if (III /= JJJ) dense_sym_factor = 2.0d0

esp = esp + dense_sym_factor*quick_qm_struct%denseSave(JJJ,III)*Xconstant &
*quick_basis%cons(III)*quick_basis%cons(JJJ)*attraxiao(itemp1,itemp2,0)
if (quick_method%UNRST) quick_qm_struct%denseSave(JJJ,III) = (quick_qm_struct%dense(JJJ,III)&
+quick_qm_struct%denseb(JJJ,III))

esp = esp + dense_sym_factor*quick_qm_struct%denseSave(JJJ,III)*Xconstant &
*quick_basis%cons(III)*quick_basis%cons(JJJ)*attraxiao(itemp1,itemp2,0)

enddo
enddo

Expand Down Expand Up @@ -489,7 +494,6 @@ subroutine esp_shell_pair(IIsh, JJsh, esp_electronic)
NII2=quick_basis%Qfinal(IIsh)
NJJ2=quick_basis%Qfinal(JJsh)
Maxm=NII2+NJJ2


! Calculation of V_elec starts here
do ips=1,quick_basis%kprim(IIsh)
Expand Down Expand Up @@ -552,4 +556,4 @@ subroutine logger(name, status)
call flush(ioutfile)
end subroutine logger

end module quick_oeproperties_module
end module quick_oeproperties_module

0 comments on commit 882c427

Please sign in to comment.