Skip to content

Commit 9af0152

Browse files
committed
Fix a few extra things in math
1 parent bb7789f commit 9af0152

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/math/math.f90

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -930,14 +930,14 @@ subroutine flipvdp(b, ind, n)
930930
integer :: i, jj
931931

932932
do i = 1, n
933-
jj = n+1-i
933+
jj = n + 1 - i
934934
temp(jj) = b(i)
935935
tempind(jj) = ind(i)
936936
end do
937-
do i = 1,n
938-
b(i) = temp(i)
939-
ind(i) = tempind(i)
940-
end do
937+
938+
b = temp
939+
ind = tempind
940+
941941
end subroutine flipvdp
942942

943943
!> Flip single integer vector b and ind
@@ -957,10 +957,9 @@ subroutine flipvi4(b, ind, n)
957957
temp(jj) = b(i)
958958
tempind(jj) = ind(i)
959959
end do
960-
do i = 1, n
961-
b(i) = temp(i)
962-
ind(i) = tempind(i)
963-
end do
960+
961+
b = temp
962+
ind = tempind
964963
end subroutine flipvi4
965964

966965
end module math

0 commit comments

Comments
 (0)