Skip to content

Commit ec9e9dd

Browse files
authored
Fix rho calculation in vdw-DF.F for parallel threads
1 parent e15e9fe commit ec9e9dd

File tree

1 file changed

+1
-1
lines changed
  • src/nwpw/pspw/lib/exchange-correlation/vdw-DF

1 file changed

+1
-1
lines changed

src/nwpw/pspw/lib/exchange-correlation/vdw-DF/vdw-DF.F

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ subroutine vdw_DF_Generate_rho(ispin,n2ft3d,dn,rho)
393393
nthr = Parallel_nthreads()
394394

395395
do i=tid+1,n2ft3d,nthr
396-
rho(i) = dn(i,1)+dn(1,ispin)+dncut
396+
rho(i) = dn(i,1)+dn(i,ispin)+dncut
397397
end do
398398
!$OMP BARRIER
399399

0 commit comments

Comments
 (0)