While most people now are not writing Fortran, I did so for years back in the 1970s and '80s. I have probably written more than a hundred programs using Fortran. I can say from your attached image, I already know what's wrong. Without giving too much away, your program requires something either you don't have or it's not where it is supposed to be.