Skip to content

Commit e1cf7e7

Browse files
committed
Better to declare its intent
1 parent 0390ee1 commit e1cf7e7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

inst/NEWS.Rd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
\subsection{Changed}{
1616
\itemize{
1717
\item Changes related to Github workflows and requirements.
18+
\item Minor tweaks to Fortran code for safety. No change to calculations.
1819
}
1920
}
2021
}

src/delaporte.f90

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
! Version 5.1: 2025-07-17
5959
! Made checks of the lt and lg variables passed from C to
6060
! be against _c_int variables, which they should be.
61+
! Version 5.2: 2025-12-31
62+
! Declared intent of threads variable in rdelap_f.
6163
!
6264
! LICENSE:
6365
! Copyright (c) 2016, Avraham Adler
@@ -394,7 +396,7 @@ subroutine rdelap_f(n, a, na, b, nb, l, nl, threads, vars) &
394396
real(kind = c_double), intent(in) :: a(na), b(nb), l(nl)
395397
real(kind = c_double), intent(out) :: vars(n)
396398
real(kind = c_double) :: p(n)
397-
integer(kind = c_int) :: threads
399+
integer(kind = c_int), intent(in) :: threads
398400

399401
call unifrnd(n, p)
400402
call qdelap_f(p, n, a, na, b, nb, l, nl, 1, 0, threads, vars)

0 commit comments

Comments
 (0)