PRT012 literal-kind-suffix
warning enabled by defaultA literal with a numeric kind suffix (1.0_8, 10_4).
Why
Numeric kind values are compiler-specific; suffix the literal with a named kind (1.0_rk).
Reported
fortran
x = 1.0_8Preferred
fortran
x = 1.0_rkSuppressing
For one occurrence, with the reason on the same line (or alone on the line before the statement):
fortran
! fobis: ignore[PRT012] <why this occurrence is fine>For the whole project, ignore = PRT012 in the fobos [lint] section.
Equivalent
Fortitude rule PORT012 (see Lint Rules).