I was trying to look through some very old FORTRAN code and came across the following statement:
IF (XKJ.GT.ACCY) THEN
I looked through the entire code and didn’t find a declaration for ‘ACCY‘. I am assuming it is a built-in variable/constant/function, but wasn’t able to find the definition. I ‘googled’ it and came across other FORTRAN samples with similar expressions (but no definition of ACCY).
It’s been 20 years since I have looked at FORTRAN code. Anyone have any idea what ‘ACCY‘ is?
It’s undoubtedly a variable holding an “accuracy” used to measure floating point computations — which can drift due to the inexact representation of some floating point numbers. In Fortran variables don’t have to be declared unless you use a compiler option (or IMPLICIT statement) to turn this feature on. Variables that start with A-H and O-Z are automatically consider REAL variables (I-N are integers). The compiler in question may or may not zero out the memory for the variable so unless it’s assigned somewhere — typically a COMMON block — it may be zero or some arbitrary value.