Skip to content

Commit

Permalink
Fix condition and move ri assignment
Browse files Browse the repository at this point in the history
Signed-off-by: Igor S. Gerasimov <[email protected]>
  • Loading branch information
foxtran committed Feb 5, 2025
1 parent 5779127 commit 0401508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xtb/hamiltonian.f90
Original file line number Diff line number Diff line change
Expand Up @@ -639,11 +639,11 @@ subroutine build_dSDQH0_noreset(nShell, hData, selfEnergy, dSEdcn, intcut, &
!$omp collapse(2) schedule(dynamic,32)
do iat = 1,nat
do jat = 1,nat
if (jat <= iat) cycle
ri = xyz(:,iat)
if (jat >= iat) cycle
izp = at(iat)
jzp = at(jat)

ri = xyz(:,iat)
rj = xyz(:,jat)
rij = ri - rj
rij2 = sum( rij**2 )
Expand Down

0 comments on commit 0401508

Please sign in to comment.