Re: [R-pkg-devel] Modernizing legacy Fortran:, REAL(kind=8)

2023-08-31 Thread Avraham Adler
Hi, Thomas. Since all the Fortran code must talk to R through SEXP's written in C, wouldn't it make sense to use " C_DOUBLE_COMPLEX" and " C_DOUBLE" to ensure maximum compatibility? Thanks, Avi On Thu, Aug 31, 2023 at 9:42 AM Thomas Petzoldt < thomas.petzo...@tu-dresden.de> wrote: > On 30.08.2

Re: [R-pkg-devel] Modernizing legacy Fortran:, REAL(kind=8)

2023-08-31 Thread Thomas Petzoldt
On 30.08.2023 at 11:58 Ivan Krylov wrote: On Wed, 30 Aug 2023 08:43:04 +0200 Thomas Petzoldt wrote: a) change REAL(kind=8) back to DOUBLE PRECISION that is again old style. It seems to be portable and is still widely used. I don't have a reference as good as the Fortran standard, but Steve L

Re: [R-pkg-devel] Modernizing legacy Fortran:, REAL(kind=8)

2023-08-30 Thread Ivan Krylov
On Wed, 30 Aug 2023 08:43:04 +0200 Thomas Petzoldt wrote: > a) change REAL(kind=8) back to DOUBLE PRECISION that is again old > style. It seems to be portable and is still widely used. I don't have a reference as good as the Fortran standard, but Steve Lionel said in Dr. Fortran [*] that DOUBLE

Re: [R-pkg-devel] Modernizing legacy Fortran:, REAL(kind=8)

2023-08-30 Thread Avraham Adler
I’ve had no issues using the iso_c_binding schema. Avi Sent from my iPhone > On Aug 30, 2023, at 2:43 AM, Thomas Petzoldt > wrote: > > Hi, > > some package maintainers including me got a reminder from Prof. Brian Ripley > to modernize REAL and INTEGER declarations using the KIND option:

[R-pkg-devel] Modernizing legacy Fortran:, REAL(kind=8)

2023-08-29 Thread Thomas Petzoldt
Hi, some package maintainers including me got a reminder from Prof. Brian Ripley to modernize REAL and INTEGER declarations using the KIND option: On 29.08.2023 at 19:31 Prof Brian Ripley wrote: According to the Fortran standards, numerical values are just an enumeration, and what e.g. real(k