Skip to content

Commit

Permalink
Update calls in prg_xlkernel_mod
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Bock <[email protected]>
  • Loading branch information
nicolasbock committed Jun 24, 2021
1 parent 1d20c8e commit ba376c5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/prg_xlkernel_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ subroutine prg_Fermi(D0,QQ,ee,gap,Fe_vec,mu0,H,Z,Nocc,T,OccErrLim,MaxIt,HDIM)
!! Orthogonalize H with inverse overlap factor Z, where Z'SZ = I
call prg_MMult(ONE,Z,H,ZERO,X,'T','N',HDIM) !
call prg_MMult(ONE,X,Z,ZERO,H0,'N','N',HDIM) ! H0 = Z'*H*Z
call Eig(H0,QQ,ee,'V',HDIM)
call prg_Eig(H0,QQ,ee,'V',HDIM)
!! QQ eigenvectors of H0 and ee the eigenvalues

OccErr = ONE
Expand Down Expand Up @@ -184,11 +184,11 @@ subroutine prg_kernel_Fermi_full(KK,JJ,D0,mu0,mu1,T,RX,RY,RZ,LBox,Hubbard_U,Elem
do J = 1,Nr_atoms ! TRIVIAL OPEN_MP OR MPI PARALLELISM
dq_v(J) = ONE
do I = 1,Nr_atoms
call Ewald_Real_Space(Coulomb_Pot_Real_I,Coulomb_Force_Real_I,I,RX,RY,RZ,LBox, &
call get_ewald_real(Coulomb_Pot_Real_I,Coulomb_Force_Real_I,I,RX,RY,RZ,LBox, &
dq_v,Hubbard_U,Element_Type,Nr_atoms,Coulomb_acc,TIMERATIO,nnRx,nnRy,nnRz,nrnnlist,nnType,HDIM,Max_Nr_Neigh)
Coulomb_Pot_Real(I) = Coulomb_Pot_Real_I
enddo
call Ewald_k_Space(Coulomb_Pot_k,Coulomb_Force_k,RX,RY,RZ,LBox,dq_v,Nr_atoms,Coulomb_acc,TIMERATIO,HDIM,Max_Nr_Neigh)
call get_ewald_recip(Coulomb_Pot_k,Coulomb_Force_k,RX,RY,RZ,LBox,dq_v,Nr_atoms,Coulomb_acc,TIMERATIO,HDIM,Max_Nr_Neigh)
Coulomb_Pot_dq_v = Coulomb_Pot_Real+Coulomb_Pot_k

H_dq_v = ZERO
Expand Down Expand Up @@ -266,11 +266,11 @@ subroutine prg_v_kernel_Fermi(D0,dq_dv,v,mu0,mu1,T,RX,RY,RZ,LBox,Hubbard_U,Eleme
dq_v = v/prg_norm2(v)

do I = 1,Nr_atoms
call Ewald_Real_Space(Coulomb_Pot_Real_I,Coulomb_Force_Real_I,I,RX,RY,RZ,LBox, &
call get_ewald_real(Coulomb_Pot_Real_I,Coulomb_Force_Real_I,I,RX,RY,RZ,LBox, &
dq_v,Hubbard_U,Element_Type,Nr_atoms,Coulomb_acc,TIMERATIO,nnRx,nnRy,nnRz,nrnnlist,nnType,HDIM,Max_Nr_Neigh)
Coulomb_Pot_Real(I) = Coulomb_Pot_Real_I
enddo
call Ewald_k_Space(Coulomb_Pot_k,Coulomb_Force_k,RX,RY,RZ,LBox,dq_v,Nr_atoms,Coulomb_acc,TIMERATIO,HDIM,Max_Nr_Neigh)
call get_ewald_recip(Coulomb_Pot_k,Coulomb_Force_k,RX,RY,RZ,LBox,dq_v,Nr_atoms,Coulomb_acc,TIMERATIO,HDIM,Max_Nr_Neigh)
Coulomb_Pot_dq_v = Coulomb_Pot_Real+Coulomb_Pot_k

H_dq_v = ZERO
Expand Down

0 comments on commit ba376c5

Please sign in to comment.