All variables should be explicitly typed, in fact the IMPLICIT NONE statement in the header forces this. Array dimensions should be given in the type statement not in a separate DIMENSION statement. Non-standard types such as BYTE should only be used for compatibility with external data. All type conversion in expressions should be explicit using the REAL, INT and DBLE functions.