Skip to content

Commit

Permalink
bugfix: periodicity correction in k for rr
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Zhong committed Dec 16, 2024
1 parent d50199e commit 628e5c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions calcSlipVels.f90
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ subroutine calcRelShellVel
jj = modulo(j-1,n2m) + 1

! Abs distances to centroid from the (i,j,k) cell
rr_x = norm2 ( [ xc(i), ym(j), zm(k) ] - pos_CM(:,1) )
rr_y = norm2 ( [ xm(i), yc(j), zm(k) ] - pos_CM(:,1) )
rr_z = norm2 ( [ xm(i), ym(j), zc(k) ] - pos_CM(:,1) )
rr_x = norm2 ( [ xc(i), ym(j), zm(kk) ] - pos_CM(:,1) )
rr_y = norm2 ( [ xm(i), yc(j), zm(kk) ] - pos_CM(:,1) )
rr_z = norm2 ( [ xm(i), ym(j), zc(kk) ] - pos_CM(:,1) )

do nshell = 1,6 ! loop over each shell

Expand Down

0 comments on commit 628e5c6

Please sign in to comment.