I have a piece of fortran code, and I am not sure which standard it is - '77, '90 or '95. Is there a standard tool to identify which standard it subjects to?
There probably are automated tools, but my methods are largely heuristic:
!
anywhere on the line (F90+) or a C
in the first column (F77)?do
..end do
(F90+) or do
..continue
(F77)?&
at the end of the line (F90+) or in column 6 (f77)?module
or type
structures (F90)?allocatable
or pointer
methods) used (F90)?Generally these are enough to discriminate between F90 and F77. The differences between Fortran 90 and FORTRAN 77 are much, much larger than the differences between Fortran 90 and Fortran 95 so I usually stop there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With