Skip to content
Prev 9525 / 12125 Next

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

On 30.08.2023 at 11:58 Ivan Krylov wrote:
Thank you, this helps. I had a look in Dr. Fortran myself and some other 
sites, but especially the COMPLEX definitions remain unclear.

I tried now the following, because the included original Fortran codes 
follow slightly different standards:

- replace COMPLEX(KIND=8) with DOUBLE COMPLEX in source files that use 
DOUBLE PRECISION otherwise

- replace real(kind=8) with real(kind=kind(0.0d0)) in the more modern 
source files

This is pragmatic and may not be the best way, but looks mostly 
consistent. Now I checked the package and everything was ok, but I was 
not able reproduce the warnings from the previous version.

I assume that I have to set an environment variable to see the warnings, 
but which one?

I use gfortran/gcc 13.2.1-1 on Fedora 38.

Thanks!

Thomas