034. Replace non-standard REAL*8
declaration with real(kind=real64)
#
topic: Data types
In older code, declarations such as1
REAL*8 x
are common but non-standard. They should be replaced by
real(kind=real64) :: x
or
real(kind=wp) :: x
with wp
2 set appropriately (e.g., use iso_fortran_env, only: wp => real64
).
In older code, declarations such as
— FortranTip (@fortrantip) December 20, 2021
real*8 x
are common but non-standard. They should be replaced by
real(kind=real64) :: x
or
real(kind=wp) :: x
with wp set appropriately.