Reverting to r4065. Updating fortran standard broke too much stuff. Will do it by smaller chunks AB, LF