----------
John P Grimes wrote:
> I do however have 1 huge complaint. This has to do with the large
> number of DEC extensions to F77 that are platform specific. Programmers
> used them in desperation in F77 and then kept using them unecessarily on
> DEC machines with F90. This caused highly platform specific code. I
> don't know who to blame but its ugly. Also, in C you have long int (any
> platform), in Fortran its integer(kind=8) or integer(kind=4) on 32 bit
> machines.
kind=4, or kind=8 doesn't necessarily get you
4 bytes or 8 bytes. On some systems, you are in for a surprise!
Better is to use SELECTED_INT_KIND to specify the
number of digits. In this way, your program will be portable.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|