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 wp2 set appropriately (e.g., use iso_fortran_env, only: wp => real64).



1

Here indicating double precision (8-byte)

2

“Working precision”