Fix to disloop code

master
Alex 5 years ago
parent 1b82d98a4f
commit 6a0d441bd0

@ -285,18 +285,18 @@ module opt_disl
if(loop_radius < 0.0_dp) then if(loop_radius < 0.0_dp) then
ALLOCATE(xLoop(4,3)) ALLOCATE(xLoop(4,3))
xLoop(:,:) = 0.d0 xLoop(:,:) = 0.d0
xLoop(1,a1) = centroid(1) - loop_radius xLoop(1,a1) = centroid(a1) + loop_radius
xLoop(1,a2) = centroid(2) - loop_radius xLoop(1,a2) = centroid(a2) + loop_radius
xLoop(1,a3) = centroid(3) xLoop(1,a3) = centroid(a3)
xLoop(2,a1) = centroid(1) + loop_radius xLoop(2,a1) = centroid(a1) - loop_radius
xLoop(2,a2) = centroid(2) - loop_radius xLoop(2,a2) = centroid(a2) + loop_radius
xLoop(2,a3) = centroid(3) xLoop(2,a3) = centroid(a3)
xLoop(3,a1) = centroid(1) + loop_radius xLoop(3,a1) = centroid(a1) - loop_radius
xLoop(3,a2) = centroid(2) + loop_radius xLoop(3,a2) = centroid(a2) - loop_radius
xLoop(3,a3) = centroid(3) xLoop(3,a3) = centroid(a3)
xLoop(4,a1) = centroid(1) - loop_radius xLoop(4,a1) = centroid(a1) + loop_radius
xLoop(4,a2) = centroid(2) + loop_radius xLoop(4,a2) = centroid(a2) - loop_radius
xLoop(4,a3) = centroid(3) xLoop(4,a3) = centroid(a3)
else else
!Calculate loop perimeter !Calculate loop perimeter
perimeter = 2.0_dp*pi*loop_radius perimeter = 2.0_dp*pi*loop_radius

Loading…
Cancel
Save