I'm relatively new using the Fortran language and I'm dealing with a pre-written program that I have to make some changes, and I have all 8 bytes variables declared as REAL(8) on the program's statement area. However, when attributing numerical values to the variables and/or arrays, the original program's author always uses something like:
...
REAL(8) A
A = 1.d0
...
Is that strict necessary given that 'A' is declared not as DOUBLE PRECISION, but literally as REAL(8), even thought -- I think -- both have the same KIND?
Furthermore, I have read somewhere that the use of REAL(8) should be abandoned? Is that so? Why?
As far as I know (and I certainly can be wrong), the number of bytes used in a DOUBLE PRECISION variable is dependent of the compiler, making it dangerous (I assume) or at least undesirable its use in place of REAL(8), if my intention is to declare an 8 bytes variable.
(I am working with Fortran 90/95)
I would gratefully receive comments to clarify this issue! Thanks a lot!