Skip to content

Commit

Permalink
Include parallelization into ddvolume.
Browse files Browse the repository at this point in the history
Signed-off-by: MtoLStoN <70513124+MtoLStoN@users.noreply.github.com>
  • Loading branch information
MtoLStoN committed Sep 18, 2023
1 parent 63deaf2 commit 44fc011
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/solv/ddvolume.f90
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ subroutine ddvolume(xyz,r,resolution,volume)
end do

call find_neighbours(spheres)

!$OMP PARALLEL DO DEFAULT(NONE) SHARED(spheres, volume,resolution) PRIVATE(s,x,y,z,x_min,x_max,y_min,y_max,z_min,z_max)
do s=1,size(spheres)
x_min=(spheres(s)%x-spheres(s)%r)
x_max=(spheres(s)%x+spheres(s)%r)
Expand All @@ -85,6 +85,7 @@ subroutine ddvolume(xyz,r,resolution,volume)
end do
volume(s) = spheres(s)%volume
end do
!$OMP END PARALLEL DO
end subroutine ddvolume

!> Initializes a sphere
Expand Down

0 comments on commit 44fc011

Please sign in to comment.